/* 
 * QuickStart Website - Responsive Styles
 * Mobile-First Responsive Design
 */

/* =====================
   Large Desktop (1440px+)
   ===================== */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 5.5rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}

/* =====================
   Desktop (1024px - 1439px)
   ===================== */
@media (max-width: 1439px) and (min-width: 1024px) {
    .container {
        max-width: 1000px;
    }
}

/* =====================
   Tablet (768px - 1023px)
   ===================== */
@media (max-width: 1023px) {
    /* Navigation */
    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(15, 36, 25, 0.98);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 3.5rem;
    }
    
    .value-props {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Sectors */
    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================
   Mobile (max-width: 767px)
   ===================== */
@media (max-width: 767px) {
    /* Typography */
    html {
        font-size: 14px;
    }
    
    /* Language Switcher */
    .lang-switcher {
        position: fixed;
        top: 100px;
        right: 15px;
        left: auto;
        transform: none;
        width: auto;
        max-width: calc(100% - 30px);
        padding: 8px 14px;
        gap: 10px;
        justify-content: flex-end;
        z-index: 998;
    }
    
    .lang-btn {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
    
    /* Navigation */
    .nav-content {
        /* Use min-height + padding so larger logo fits and nav can grow if needed */
        min-height: 100px;
        padding-top: 8px;
        padding-bottom: 8px;
        display: flex;
        align-items: center; /* vertically center logo */
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    /* Make the header logo larger on mobile for better visibility */
    .main-nav .logo img,
    .logo img {
        height: 72px !important; /* increased from 56px; keep !important during testing */
        width: auto;
        display: block;
        max-height: 72px;
    }
    
    .nav-menu {
        top: 70px;
        padding: 20px;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
        padding-top: 190px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-ctas {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 40px;
    }
    
    .btn {
        width: 100%;
        padding: 12px 30px;
    }
    
    .value-props {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .value-prop {
        padding: 25px;
    }
    
    .value-icon {
        font-size: 2.5rem;
    }
    
    /* Sections */
    section {
        padding: 60px 15px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .section-divider {
        width: 80px;
        margin-bottom: 30px;
    }
    
    /* About Section */
    .about-mission {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .core-values {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .value-card {
        padding: 30px;
    }
    
    .value-card-icon {
        font-size: 3rem;
    }
    
    .value-card h3 {
        font-size: 1.2rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-card {
        padding: 30px;
    }
    
    .service-icon {
        font-size: 3rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-list li {
        font-size: 0.9rem;
    }
    
    /* Sectors */
    .sectors-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sector-card {
        padding: 30px;
    }
    
    .sector-icon {
        font-size: 3.5rem;
    }
    
    .sector-card h3 {
        font-size: 1.3rem;
    }
    
    /* Process */
    .process-timeline {
        padding: 0;
    }
    
    .process-step {
        flex-direction: column;
        margin-bottom: 40px;
        gap: 15px;
    }
    
    .process-step::before {
        display: none;
    }
    
    .step-number {
        font-size: 1.5rem;
        min-width: auto;
    }
    
    .step-icon {
        font-size: 2.5rem;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .step-content h3 {
        font-size: 1.3rem;
    }
    
    .step-content > p {
        font-size: 1rem;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    
    .contact-item {
        margin-bottom: 20px;
    }
    
    .contact-icon {
        font-size: 2.5rem;
    }
    
    .contact-item h4 {
        font-size: 1.1rem;
    }
    
    .contact-item a,
    .contact-item p {
        font-size: 1rem;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
    }
    
    /* Footer */
    .main-footer {
        padding: 40px 15px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-logo img {
        height: 35px;
    }
    
    .footer-col h3 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .footer-bottom {
        padding-top: 20px;
        font-size: 0.85rem;
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* =====================
   Small Mobile (max-width: 480px)
   ===================== */
@media (max-width: 480px) {
    /* Hero */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-section {
        padding-top: 200px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    /* Value Props */
    .value-prop {
        padding: 20px;
    }
    
    .value-prop h3 {
        font-size: 1.1rem;
    }
    
    .value-prop p {
        font-size: 0.9rem;
    }
    
    /* Sections */
    section {
        padding: 50px 10px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Cards */
    .service-card,
    .sector-card,
    .value-card {
        padding: 25px 20px;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 25px 15px;
    }
    
    /* Language Switcher */
    .lang-switcher {
        top: 90px;
        right: 12px;
        width: auto;
        padding: 8px 12px;
        gap: 8px;
    }
}

/* =====================
   Landscape Mode (Mobile)
   ===================== */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 150px 20px 60px;
    }
    
    .value-props {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* =====================
   Print Styles
   ===================== */
@media print {
    .lang-switcher,
    .mobile-menu-toggle,
    .scroll-indicator,
    .back-to-top,
    .three-canvas,
    .particles-bg {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    .hero-section {
        background: #fff;
        color: #000;
        min-height: auto;
        padding: 20px;
    }
    
    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    .main-nav,
    .main-footer {
        background: #fff;
        color: #000;
    }
}

/* =====================
   Touch Device Optimizations
   ===================== */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .btn {
        min-height: 44px;
    }
    
    .nav-menu a {
        padding: 12px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .social-icon {
        min-width: 48px;
        min-height: 48px;
    }
    
    /* Disable hover effects */
    .hover-lift:hover,
    .hover-scale:hover,
    .hover-glow:hover {
        transform: none;
        filter: none;
    }
    
    /* Use tap highlight */
    .btn,
    a,
    button {
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    }
}

/* =====================
   High DPI Displays
   ===================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize images for retina */
    .logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* =====================
   Dark Mode Support
   ===================== */
@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode styles if needed */
}
