/* ========== RESPONSIVE DESIGN ========== */

/* Tablet and Mobile - 768px and below */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: var(--spacing-xl);
        gap: var(--spacing-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    /* Hero Section - Mobile Layout */
    .hero {
        min-height: auto;
        padding: 120px 0 var(--spacing-3xl) 0;
    }
    
    .hero-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .profile-card {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .stat-item {
        flex: 1;
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Cards Grid */
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    /* Pricing Grid */
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: none;
        order: -1;
    }
    
    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-lg);
    }
    
    .footer-brand {
        order: 1;
    }
    
    .footer-nav {
        order: 2;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-social {
        order: 3;
        justify-content: center;
    }
    
    /* Language Picker */
    .language-picker {
        gap: var(--spacing-sm);
    }
    
    .lang-btn {
        padding: var(--spacing-sm);
    }
    
    .lang-btn span {
        display: none;
    }
    
    /* Contact Buttons */
    .contact-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Testimonials */
    .testimonial-card {
        flex: 0 0 100%;
    }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
    .hero {
        min-height: auto;
        padding: 140px 0 var(--spacing-3xl) 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Hero Stats - Stack Vertically */
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: var(--spacing-sm) var(--spacing-md);
        background: rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-lg);
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        margin: 0;
        opacity: 0.9;
    }
    
    /* Profile Card */
    .profile-card {
        padding: var(--spacing-md);
    }
    
    .profile-image {
        aspect-ratio: 1/1;
    }
    
    .credential-badge {
        font-size: 0.7rem;
        padding: 2px var(--spacing-xs);
    }
    
    /* Badges */
    .badges-wrapper {
        gap: var(--spacing-sm);
    }
    
    .badge-item {
        font-size: 0.8rem;
        padding: var(--spacing-xs) var(--spacing-md);
    }
    
    /* Cards and Pricing */
    .info-card,
    .pricing-card {
        padding: var(--spacing-lg);
    }
    
    /* Contact Buttons */
    .contact-buttons {
        grid-template-columns: 1fr;
    }
    
    /* Hero Buttons */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Large Screens - 1200px and above */
@media (min-width: 1200px) {
    .hero-layout {
        gap: var(--spacing-3xl);
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .profile-card {
        max-width: 450px;
    }
    
    .hero-stats {
        gap: var(--spacing-2xl);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Extra Large Screens - 1400px and above */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-layout {
        grid-template-columns: 1.3fr 0.7fr;
    }
}

/* Ultra Wide Screens - 1800px and above */
@media (min-width: 1800px) {
    .container {
        max-width: 1600px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 var(--spacing-xl) 0;
    }
    
    .hero-layout {
        grid-template-columns: 1fr 0.6fr;
        gap: var(--spacing-lg);
    }
    
    .hero-visual {
        order: 0;
    }
    
    .profile-card {
        max-width: 250px;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: var(--spacing-md);
    }
    
    .stat-item {
        background: none;
        padding: 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-top,
    .floating-elements,
    .scroll-indicator {
        display: none;
    }
    
    .hero {
        background: none;
        color: black;
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }
    
    .hero-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .profile-card {
        background: white;
        border: 1px solid #ccc;
    }
    
    .hero-title,
    .section-title {
        color: black;
        background: none;
        -webkit-text-fill-color: initial;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .btn {
        border: 1px solid black;
        color: black;
        background: white;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .profile-card,
    .hero-buttons .btn,
    .scroll-indicator {
        transition: none;
        animation: none;
    }
    
    .profile-image img {
        transition: none;
    }
    
    .hero-title .highlight::after {
        animation: none;
    }
}

/* Dark Mode Specific Responsive Adjustments */
@media (max-width: 768px) {
    [data-theme="dark"] .nav-menu {
        background: rgba(15, 23, 42, 0.95);
    }
    
    [data-theme="dark"] .profile-card {
        background: rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Focus Visible for Better Accessibility */
@media (any-hover: hover) {
    .btn:focus-visible,
    .nav-link:focus-visible,
    .contact-btn:focus-visible,
    .faq-question:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}