/* ==========================================
   RESPONSIVE DESIGN - ALL SCREEN SIZES
   ========================================== */

/* ==========================================
   LARGE DESKTOP (1440px+)
   ========================================== */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero h1 {
        font-size: 80px;
    }
    
    .section-header h2 {
        font-size: 54px;
    }
    
    .stat-item h3 {
        font-size: 72px;
    }
}

/* ==========================================
   DESKTOP (1024px - 1440px)
   ========================================== */
@media (max-width: 1440px) {
    .container {
        max-width: 1200px;
        padding: 0 30px;
    }
}

/* ==========================================
   TABLET & SMALL DESKTOP (768px - 1024px)
   ========================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 25px;
    }
    
    /* Hero adjustments */
    .hero {
        min-height: 80vh;
    }
    
    .hero h1 {
        font-size: 56px;
    }
    
    .hero h1[style*="text-align"] {
        text-align: inherit !important;
    }
    
    .hero .subtitle {
        font-size: 16px;
    }
    
    .hero .subtitle[style*="text-align"] {
        text-align: inherit !important;
    }
    
    .hero p[style*="text-align"] {
        text-align: inherit !important;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    /* Stats grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .stat-item h3 {
        font-size: 56px;
    }
    
    /* About content */
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-image {
        order: -1;
    }
    
    /* Partners grid */
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
    
    /* Contact grid */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .contact-info-box {
        margin-top: 0;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    /* Section spacing */
    .section {
        padding: 70px 0;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .section-header h2 {
        font-size: 42px;
    }
    
    .section-header h2[style*="text-align"],
    .section-header p[style*="text-align"] {
        text-align: inherit !important;
    }
}

/* ==========================================
   TABLET PORTRAIT (768px - 1024px)
   ========================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Office cards */
    .offices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Header top - tablet */
    .header-top-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .contact-info {
        flex: 0 0 auto;
        gap: 15px;
    }
    
    .header-top-right {
        flex: 0 0 auto;
        gap: 10px;
    }
    
    /* Tablet'te navbar açılır menüyü göster */
    .language-switcher-desktop {
        display: none !important;
    }
    
    .language-switcher-mobile {
        display: none !important;
    }
    
    .language-switcher-navbar {
        display: block !important;
    }
}

/* ==========================================
   MOBILE & TABLET (Max 768px)
   ========================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* Header adjustments */
    .header-top {
        font-size: 12px;
        padding: 8px 0;
    }
    
    .header-top-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    .contact-info {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        gap: 15px;
    }
    
    .header-top-right {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
    }
    
    .contact-info a {
        font-size: 11px;
        white-space: nowrap;
    }
    
    /* Mobil'de açılır menüyü göster, desktop'u gizle */
    .language-switcher-desktop {
        display: none !important;
    }
    
    .language-switcher-mobile {
        display: block !important;
    }
    
    
    /* Dil değiştirme butonları - mobil */
    .language-switcher {
        justify-content: center;
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 5px;
        align-items: center;
        gap: 6px !important;
    }
    
    .lang-btn-flag {
        min-width: 32px !important;
        width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 !important;
        border: 1px solid rgba(255,255,255,0.3) !important;
        border-radius: 6px !important;
        background: transparent !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    
    .lang-btn-flag.active {
        background: rgba(255,255,255,0.2) !important;
        border-color: rgba(255,255,255,0.5) !important;
    }
    
    .lang-btn-flag span {
        font-size: 18px !important;
        line-height: 1 !important;
        display: block !important;
    }
    
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px !important;
        width: 100%;
    }
    
    .social-links a {
        font-size: 14px;
        width: 28px;
        height: 28px;
    }
    
    /* Header top içeriğinin düzeni - mobil */
    .header-top-content {
        flex-wrap: wrap;
    }
    
    .contact-info-left {
        order: 1;
        width: 100%;
        justify-content: flex-start;
        margin-bottom: 5px;
    }
    
    .header-top-right {
        order: 2;
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .contact-info-right {
        order: 1;
    }
    
    
    .language-switcher {
        order: 3;
        margin: 0 !important;
    }
    
    /* Mobile menu */
    .navbar {
        padding: 15px 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .nav-menu {
        position: fixed;
        top: 110px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        max-height: 400px;
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 16px 20px;
        border-radius: 0;
        text-align: center;
        font-size: 13px;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .logo img {
        max-height: 40px;
    }
    
    .logo i {
        font-size: 24px;
    }
    
    /* Hero section */
    .hero {
        min-height: 70vh;
        padding: 60px 0 40px;
        padding-top: 140px;
    }
    
    .hero h1 {
        font-size: 42px;
        line-height: 1.1;
        margin-bottom: 20px;
    }
    
    .hero h1[style*="text-align: left"] { text-align: left !important; }
    .hero h1[style*="text-align: center"] { text-align: center !important; }
    .hero h1[style*="text-align: right"] { text-align: right !important; }
    .hero h1[style*="text-align: justify"] { text-align: justify !important; }
    
    .hero .subtitle {
        font-size: 14px;
        letter-spacing: 1.5px;
        margin-bottom: 15px;
    }
    
    .hero .subtitle[style*="text-align: left"] { text-align: left !important; }
    .hero .subtitle[style*="text-align: center"] { text-align: center !important; }
    .hero .subtitle[style*="text-align: right"] { text-align: right !important; }
    .hero .subtitle[style*="text-align: justify"] { text-align: justify !important; }
    
    .hero p {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .hero p[style*="text-align: left"] { text-align: left !important; }
    .hero p[style*="text-align: center"] { text-align: center !important; }
    .hero p[style*="text-align: right"] { text-align: right !important; }
    .hero p[style*="text-align: justify"] { text-align: justify !important; }
    
    .section-header h2[style*="text-align: left"] { text-align: left !important; }
    .section-header h2[style*="text-align: center"] { text-align: center !important; }
    .section-header h2[style*="text-align: right"] { text-align: right !important; }
    .section-header h2[style*="text-align: justify"] { text-align: justify !important; }
    
    .section-header p[style*="text-align: left"] { text-align: left !important; }
    .section-header p[style*="text-align: center"] { text-align: center !important; }
    .section-header p[style*="text-align: right"] { text-align: right !important; }
    .section-header p[style*="text-align: justify"] { text-align: justify !important; }
    
    .content-text[style*="text-align: left"] { text-align: left !important; }
    .content-text[style*="text-align: center"] { text-align: center !important; }
    .content-text[style*="text-align: right"] { text-align: right !important; }
    .content-text[style*="text-align: justify"] { text-align: justify !important; }
    
    .hero-arrow {
        bottom: 20px;
    }
    
    .hero-arrow i {
        font-size: 24px;
    }
    
    /* Section spacing */
    .section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .section-header p {
        font-size: 16px;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 28px;
        font-size: 13px;
        letter-spacing: 0.5px;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .service-card {
        padding: 35px 25px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .service-card img {
        width: 100% !important;
        height: auto !important;
        max-height: 200px;
        object-fit: cover;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .service-card h3 {
        font-size: 20px;
        margin-bottom: 15px;
        word-wrap: break-word;
    }
    
    .service-card p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Stats grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px;
    }
    
    .stat-item {
        padding: 15px;
        box-sizing: border-box;
    }
    
    .stat-item h3 {
        font-size: 48px;
        word-wrap: break-word;
    }
    
    .stat-item p {
        font-size: 12px;
        letter-spacing: 1.5px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* About section */
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 40px;
        width: 100%;
        max-width: 100%;
    }
    
    .about-image {
        width: 100% !important;
        max-width: 100%;
        order: -1;
    }
    
    .about-image img {
        width: 100% !important;
        height: auto !important;
        max-height: 400px;
        object-fit: cover;
    }
    
    .about-text h3 {
        font-size: 32px;
        margin-bottom: 20px;
        word-wrap: break-word;
    }
    
    .about-text p {
        font-size: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Partners grid */
    .partners-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px;
    }
    
    .partner-logo {
        padding: 20px;
        min-height: 100px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .partner-logo img {
        max-height: 50px;
        max-width: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    
    /* Offices grid */
    .offices-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .office-card {
        padding: 30px;
    }
    
    /* Contact form */
    .contact-form {
        padding: 30px 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    /* Footer */
    .footer-main {
        padding: 50px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-col h3,
    .footer-col h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-bottom-content p {
        font-size: 12px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links a {
        font-size: 12px;
    }
    
    /* Scroll to top */
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* ==========================================
   MOBILE LANDSCAPE (481px - 768px)
   ========================================== */
@media (min-width: 481px) and (max-width: 768px) {
    .hero {
        min-height: 60vh;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================
   SMALL MOBILE (320px - 480px)
   ========================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header */
    .header-top {
        padding: 6px 0;
    }
    
    .header-top-content {
        flex-direction: column;
        gap: 6px;
    }
    
    .contact-info {
        width: 100%;
        justify-content: flex-start;
        order: 1;
        gap: 12px;
    }
    
    .header-top-right {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 5px;
        order: 2;
    }
    
    /* Küçük mobil'de navbar açılır menüyü göster */
    .language-switcher-desktop {
        display: none !important;
    }
    
    .language-switcher-mobile {
        display: none !important;
    }
    
    .language-switcher-navbar {
        display: block !important;
    }
    
    .contact-info a {
        font-size: 10px;
    }
    
    .lang-dropdown-toggle-navbar {
        padding: 6px 10px !important;
        font-size: 12px !important;
        min-width: 50px !important;
    }
    
    .lang-dropdown-toggle-navbar .lang-current-name-navbar {
        display: none;
    }
    
    .lang-dropdown-menu-navbar {
        min-width: 120px;
        right: 0;
    }
    
    .lang-dropdown-item-navbar {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    /* Dil değiştirme butonları - küçük mobil */
    .language-switcher {
        justify-content: center;
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 4px;
        gap: 4px !important;
        align-items: center;
    }
    
    .lang-btn-flag {
        min-width: 28px !important;
        width: 28px !important;
        height: 28px !important;
        min-height: 28px !important;
        padding: 0 !important;
        border: 1px solid rgba(255,255,255,0.3) !important;
        border-radius: 5px !important;
        background: transparent !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    
    .lang-btn-flag.active {
        background: rgba(255,255,255,0.2) !important;
        border-color: rgba(255,255,255,0.5) !important;
    }
    
    .lang-btn-flag span {
        font-size: 16px !important;
        line-height: 1 !important;
        display: block !important;
    }
    
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px !important;
        width: 100%;
    }
    
    .contact-info a {
        font-size: 11px;
    }
    
    .social-links a {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    
    /* Logo */
    .logo {
        font-size: 16px;
    }
    
    .logo img {
        max-height: 35px;
    }
    
    /* Hero */
    .hero {
        min-height: 60vh;
        padding-top: 120px;
    }
    
    .hero h1 {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .hero .subtitle {
        font-size: 12px;
        letter-spacing: 1px;
    }
    
    .hero p {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    /* Sections */
    .section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-header p {
        font-size: 14px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 24px;
        font-size: 12px;
        gap: 8px;
    }
    
    /* Services */
    .service-card {
        padding: 30px 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .service-card h3 {
        font-size: 18px;
    }
    
    .service-card p {
        font-size: 14px;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
    
    .stat-item {
        padding: 15px;
        box-sizing: border-box;
    }
    
    .stat-item h3 {
        font-size: 42px;
        word-wrap: break-word;
    }
    
    .stat-item p {
        font-size: 11px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* About */
    .about-text h3 {
        font-size: 28px;
    }
    
    .about-text p {
        font-size: 14px;
    }
    
    /* Partners */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    .partner-logo {
        padding: 15px;
        min-height: 80px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .partner-logo img {
        max-height: 40px;
        max-width: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    
    /* CTA section */
    .section h2[style*="font-size: 48px"] {
        font-size: 32px !important;
        line-height: 1.2;
    }
    
    .section p[style*="font-size: 18px"] {
        font-size: 15px !important;
        margin-bottom: 30px !important;
    }
    
    /* Contact */
    .contact-form {
        padding: 25px 15px;
    }
    
    .form-control {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    /* Footer */
    .footer-main {
        padding: 40px 0 25px;
    }
    
    .footer-grid {
        gap: 30px;
    }
    
    .footer-col h3,
    .footer-col h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .footer-col p,
    .footer-col ul li a {
        font-size: 13px;
    }
    
    .footer-bottom {
        padding: 20px 0;
    }
    
    /* Scroll to top */
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* ==========================================
   EXTRA SMALL MOBILE (Max 360px)
   ========================================== */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero h1[style*="text-align: left"] { text-align: left !important; }
    .hero h1[style*="text-align: center"] { text-align: center !important; }
    .hero h1[style*="text-align: right"] { text-align: right !important; }
    .hero h1[style*="text-align: justify"] { text-align: justify !important; }
    
    .hero .subtitle[style*="text-align: left"] { text-align: left !important; }
    .hero .subtitle[style*="text-align: center"] { text-align: center !important; }
    .hero .subtitle[style*="text-align: right"] { text-align: right !important; }
    .hero .subtitle[style*="text-align: justify"] { text-align: justify !important; }
    
    .hero p[style*="text-align: left"] { text-align: left !important; }
    .hero p[style*="text-align: center"] { text-align: center !important; }
    .hero p[style*="text-align: right"] { text-align: right !important; }
    .hero p[style*="text-align: justify"] { text-align: justify !important; }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .section-header h2[style*="text-align: left"] { text-align: left !important; }
    .section-header h2[style*="text-align: center"] { text-align: center !important; }
    .section-header h2[style*="text-align: right"] { text-align: right !important; }
    .section-header h2[style*="text-align: justify"] { text-align: justify !important; }
    
    .section-header p[style*="text-align: left"] { text-align: left !important; }
    .section-header p[style*="text-align: center"] { text-align: center !important; }
    .section-header p[style*="text-align: right"] { text-align: right !important; }
    .section-header p[style*="text-align: justify"] { text-align: justify !important; }
    
    .content-text[style*="text-align: left"] { text-align: left !important; }
    .content-text[style*="text-align: center"] { text-align: center !important; }
    .content-text[style*="text-align: right"] { text-align: right !important; }
    .content-text[style*="text-align: justify"] { text-align: justify !important; }
    
    .stat-item h3 {
        font-size: 36px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 11px;
    }
    
    .service-card h3 {
        font-size: 16px;
    }
    
    .about-text h3 {
        font-size: 24px;
    }
}

/* ==========================================
   TOUCH DEVICE OPTIMIZATIONS
   ========================================== */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        padding: 14px 32px;
    }
    
    .nav-menu a {
        min-height: 48px;
        padding: 16px 20px;
    }
    
    .scroll-to-top {
        width: 50px;
        height: 50px;
    }
    
    /* Remove hover effects on touch */
    .service-card:hover,
    .partner-logo:hover,
    .office-card:hover {
        transform: none;
    }
    
    /* Tap highlight */
    a, button {
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }
}

/* ==========================================
   LANDSCAPE ORIENTATION
   ========================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero h1[style*="text-align: left"] { text-align: left !important; }
    .hero h1[style*="text-align: center"] { text-align: center !important; }
    .hero h1[style*="text-align: right"] { text-align: right !important; }
    .hero h1[style*="text-align: justify"] { text-align: justify !important; }
    
    .hero .subtitle[style*="text-align: left"] { text-align: left !important; }
    .hero .subtitle[style*="text-align: center"] { text-align: center !important; }
    .hero .subtitle[style*="text-align: right"] { text-align: right !important; }
    .hero .subtitle[style*="text-align: justify"] { text-align: justify !important; }
    
    .hero p[style*="text-align: left"] { text-align: left !important; }
    .hero p[style*="text-align: center"] { text-align: center !important; }
    .hero p[style*="text-align: right"] { text-align: right !important; }
    .hero p[style*="text-align: justify"] { text-align: justify !important; }
    
    .section-header h2[style*="text-align: left"] { text-align: left !important; }
    .section-header h2[style*="text-align: center"] { text-align: center !important; }
    .section-header h2[style*="text-align: right"] { text-align: right !important; }
    .section-header h2[style*="text-align: justify"] { text-align: justify !important; }
    
    .section-header p[style*="text-align: left"] { text-align: left !important; }
    .section-header p[style*="text-align: center"] { text-align: center !important; }
    .section-header p[style*="text-align: right"] { text-align: right !important; }
    .section-header p[style*="text-align: justify"] { text-align: justify !important; }
    
    .content-text[style*="text-align: left"] { text-align: left !important; }
    .content-text[style*="text-align: center"] { text-align: center !important; }
    .content-text[style*="text-align: right"] { text-align: right !important; }
    .content-text[style*="text-align: justify"] { text-align: justify !important; }
    
    .hero-arrow {
        display: none;
    }
}

/* ==========================================
   HIGH RESOLUTION (RETINA) DISPLAYS
   ========================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper images and icons */
    .service-icon,
    .partner-logo img,
    .about-image img {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .header-top,
    .mobile-menu-toggle,
    .scroll-to-top,
    .hero-arrow,
    .btn,
    .footer {
        display: none !important;
    }
    
    .section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
    
    .hero {
        min-height: auto;
        padding: 20px 0;
        background: white !important;
        color: black !important;
    }
    
    .stats-section {
        background: white !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1 { font-size: 24pt; }
    h2 { font-size: 20pt; }
    h3 { font-size: 16pt; }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* ==========================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================== */

/* Focus states for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
    a:focus,
    button:focus,
    input:focus,
    textarea:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-arrow {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Keep the design light - air-mark style is black/white */
    /* If you want dark mode, uncomment and customize:
    
    body {
        background: #121212;
        color: #e0e0e0;
    }
    
    .header,
    .nav-menu {
        background: #1e1e1e;
    }
    
    */
}

/* ==========================================
   IE11 FALLBACKS (if needed)
   ========================================== */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    /* IE11 specific fixes */
    .services-grid,
    .stats-grid,
    .partners-grid {
        display: flex;
        flex-wrap: wrap;
    }
    
    .service-card,
    .stat-item,
    .partner-logo {
        flex: 0 0 calc(33.333% - 20px);
        margin: 10px;
    }
}

/* Subheader Responsive */
@media (max-width: 768px) {
    .page-subheader {
        padding: 50px 15px !important;
    }
    
    .page-subheader h1 {
        font-size: 36px !important;
        margin-bottom: 12px !important;
        letter-spacing: 0 !important;
    }
    
    .page-subheader .breadcrumb {
        font-size: 14px !important;
        flex-wrap: wrap !important;
    }
}

@media (max-width: 480px) {
    .page-subheader {
        padding: 40px 15px !important;
    }
    
    .page-subheader h1 {
        font-size: 28px !important;
    }
    
    .page-subheader .breadcrumb {
        font-size: 12px !important;
    }
}
