/* Responsive CSS for RemovePDFPassword.xyz */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .pdf-illustration {
        width: 250px;
        height: 250px;
    }
    
    .pdf-illustration i:first-child {
        font-size: 6rem;
    }
    
    .pdf-illustration i:last-child {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-hero-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Global typography downscale (mobile) */
    html {
        font-size: 16px;
    }

    body {
        font-size: 1rem;
        line-height: 1.6;
    }

    p,
    li {
        font-size: 1rem;
    }

    /* Navigation */
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
        padding: 1rem 0;
    }
    
    .navbar-menu.active {
        display: block;
    }
    
    .navbar-nav {
        flex-direction: column;
        padding: 0 1rem;
    }
    
    .navbar-nav li {
        margin-bottom: 0.5rem;
    }
    
    .nav-link {
        padding: 0.75rem;
        border-radius: var(--border-radius);
    }

    .navbar-brand .logo {
        font-size: 1.25rem;
    }

    .navbar-brand .logo i {
        font-size: 1.4rem;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-secondary);
        margin-top: 0.5rem;
        border-radius: var(--border-radius);
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Section */
    .hero {
        padding: 2rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.25rem;
        margin-bottom: 1rem;
        color: #ffffff;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        color: rgba(255, 255, 255, 0.95);
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .pdf-illustration {
        width: 200px;
        height: 200px;
        order: -1;
    }
    
    .pdf-illustration i:first-child {
        font-size: 5rem;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .pdf-illustration i:last-child {
        font-size: 2.5rem;
        color: rgba(255, 255, 255, 1);
    }
    
    /* Services Hero Section */
    .services-hero {
        padding: 3rem 0;
        margin-top: -1rem;
    }

    .services-hero-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-hero-item {
        padding: 2rem 1.5rem;
    }

    .service-hero-item-link:hover {
        transform: translateY(-1px);
    }

    .service-hero-item-link:hover .service-hero-item {
        transform: translateY(-3px) scale(1.01);
    }

    .service-hero-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .service-hero-text h3 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .service-hero-text p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .service-hero-meta {
        gap: 1.25rem;
    }

    .service-price {
        font-size: 1rem;
    }

    .service-hero-link {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
        max-width: 180px;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .features h2,
    .services-preview h2,
    .faq-section h2,
    .how-it-works h2,
    .testimonials h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
        color: #ffffff;
    }
    
    .order-content {
        padding: 2rem 1.5rem;
    }
    
    .order-content h2 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Sections padding */
    .features,
    .services-preview,
    .faq-section {
        padding: 3rem 0;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .content-article {
        padding: 2rem 1.5rem;
    }
    
    .cta-section {
        padding: 3rem 0;
    }
    
    /* Grid layouts */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card,
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    /* FAQ adjustments */
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
        line-height: 1.4;
        margin-right: 1rem;
    }
    
    .faq-answer {
        padding: 0 1rem;
    }
    
    .faq-answer.active {
        padding: 0 1rem 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-brand {
        order: -1;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* CTA Section */
    .cta-content p {
        font-size: 0.95rem;
    }
    
    /* Tables - if any */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
    }

    /* Page Header */
    .page-header {
        padding: 1.35rem 0;
    }

    .page-header h1 {
        font-size: 1.65rem !important;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .page-subtitle {
        font-size: 0.98rem !important;
        line-height: 1.45;
    }

    /* Articles (listing + single) */
    .articles-layout .search-input-group input,
    .articles-layout .popular-article a,
    .articles-layout .cta-widget p,
    .articles-layout .read-more {
        font-size: 14px !important;
    }

    .articles-layout .article-meta {
        font-size: 13px !important;
    }

    .articles-layout .article-excerpt {
        font-size: 18px !important;
        line-height: 1.7;
    }

    .article-layout .article-meta,
    .article-layout .author-title,
    .article-layout .article-byline-top {
        font-size: 13px !important;
    }

    .article-layout .article-excerpt {
        font-size: 18px !important;
    }

    .article-layout .article-body {
        font-size: 19px !important;
        line-height: 1.75;
    }

    .article-layout .article-body p,
    .article-layout .article-body li {
        font-size: 19px !important;
        line-height: 1.75;
    }

    /* Content article (homepage/other pages) */
    .content-article p {
        font-size: 18px !important;
        line-height: 1.75;
    }

    .content-article li {
        font-size: 18px !important;
        line-height: 1.7;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    /* Global typography downscale (small mobile) */
    html {
        font-size: 15px;
    }

    body {
        font-size: 1rem;
        line-height: 1.55;
    }

    p,
    li {
        font-size: 0.98rem;
    }

    .container {
        padding: 0 1rem;
    }
    
    /* Typography */
    .hero-text h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    /* Page Header */
    .page-header {
        padding: 1.15rem 0;
    }

    .page-header h1 {
        font-size: 1.45rem !important;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .page-subtitle {
        font-size: 0.9rem !important;
        line-height: 1.4;
    }

    /* Articles (listing + single) */
    .articles-layout .search-input-group input,
    .articles-layout .popular-article a,
    .articles-layout .cta-widget p,
    .articles-layout .read-more {
        font-size: 13px !important;
    }

    .articles-layout .article-meta {
        font-size: 12px !important;
    }

    .articles-layout .article-excerpt {
        font-size: 17px !important;
        line-height: 1.65;
    }

    .article-layout .article-meta,
    .article-layout .author-title,
    .article-layout .article-byline-top {
        font-size: 12px !important;
    }

    .article-layout .article-excerpt {
        font-size: 17px !important;
    }

    .article-layout .article-body {
        font-size: 18px !important;
        line-height: 1.75;
    }

    .article-layout .article-body p,
    .article-layout .article-body li {
        font-size: 18px !important;
        line-height: 1.75;
    }

    /* Content article (homepage/other pages) */
    .content-article p {
        font-size: 17px !important;
        line-height: 1.7;
    }

    .content-article li {
        font-size: 17px !important;
        line-height: 1.65;
    }
    
    .features h2,
    .services-preview h2,
    .faq-section h2,
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Cards */
    .feature-card,
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .content-article {
        padding: 1.5rem 1rem;
    }
    
    /* Service pricing */
    .service-price .price {
        font-size: 1.75rem;
    }
    
    /* PDF Illustration */
    .pdf-illustration {
        width: 150px;
        height: 150px;
    }
    
    .pdf-illustration i:first-child {
        font-size: 4rem;
    }
    
    .pdf-illustration i:last-child {
        font-size: 2rem;
    }
    
    /* Services Hero Section - Small screens */
    .services-hero {
        padding: 2.5rem 0;
    }

    .services-hero-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-hero-item {
        padding: 1.5rem 1rem;
    }

    .service-hero-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .service-hero-text h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .service-hero-text p {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
        line-height: 1.6;
    }

    .service-hero-meta {
        gap: 1rem;
    }

    .service-price {
        font-size: 1rem;
    }

    .service-hero-link {
        font-size: 0.8rem;
        padding: 0.625rem 1.25rem;
        max-width: 160px;
    }

    .service-hero-link .arrow {
        font-size: 0.9rem;
    }
    
    /* FAQ */
    .faq-question h3 {
        font-size: 0.875rem;
    }
    
    /* Footer */
    .footer-brand .logo {
        font-size: 1.25rem;
    }
    
    .footer-brand .logo i {
        font-size: 1.5rem;
    }
    
    /* Utility spacing adjustments */
    .mb-3 { margin-bottom: 0.75rem; }
    .mb-4 { margin-bottom: 1rem; }
    .mb-5 { margin-bottom: 1.5rem; }
    
    .mt-3 { margin-top: 0.75rem; }
    .mt-4 { margin-top: 1rem; }
    .mt-5 { margin-top: 1.5rem; }
}

/* Large Mobile Landscape */
@media (max-width: 667px) and (orientation: landscape) {
    .hero {
        padding: 1.5rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        text-align: left;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .btn {
        width: auto;
        max-width: none;
    }
    
    .pdf-illustration {
        order: 0;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for high-DPI displays */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .logo,
    .btn,
    .feature-icon,
    .service-icon {
        -webkit-font-smoothing: antialiased;
    }
}

/* Hover states - disable on touch devices */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .service-card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
    
    .service-hero-item-link:hover {
        transform: none;
    }

    .service-hero-item-link:hover .service-hero-item {
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    .service-hero-link:hover {
        transform: none;
        box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    }

    .service-hero-link:hover .arrow {
        transform: none;
    }

    .popular-badge {
        top: -12px;
        right: 15px;
        font-size: 0.7rem;
        padding: 0.375rem 0.75rem;
        min-width: 80px;
    }

    .service-quick-features {
        justify-content: center;
        margin-bottom: 1rem;
    }

    .feature-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-outline:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .header,
    .navbar,
    .hero,
    .features,
    .services-preview,
    .cta-section,
    .footer,
    .btn {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
    }
    
    .content-article {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    p, ul, ol {
        orphans: 3;
        widows: 3;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
    }
    
    .page-break {
        page-break-before: always;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .pdf-illustration i {
        animation: none !important;
    }
    
    .spinner {
        animation: none !important;
    }
}

/* Dark Mode Support (if implemented) */
@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode styles if desired */
    /* This would override the CSS variables for dark theme */
}

/* Focus styles for better accessibility */
@media (any-hover: hover) {
    .nav-link:focus,
    .btn:focus,
    .faq-question:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    .dropdown-menu a:focus {
        background-color: var(--primary-color);
        color: white;
        outline: none;
    }
}
