/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #06192B;
    --primary-gold: #E3B950;
    --light-blue: #1a3a5c;
    --light-gold: #e0b865;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #4a5568;
    --border-gray: #e2e8f0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(13, 42, 76, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-gold);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    opacity: 1;
    transition: opacity 0.1s ease-in;
    width: 100%;
    height: auto;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 20px;
    gap: 1rem;
    min-height: 80px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    flex-shrink: 0;
}

.header .logo {
    height: 63px !important;
    width: auto !important;
    max-height: 63px !important;
    min-height: 63px !important;
    display: block !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    aspect-ratio: auto;
    object-fit: contain;
    -webkit-transform: translate3d(0, 0, 0) !important;
    transform: translate3d(0, 0, 0) !important;
    will-change: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.company-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Medium screen optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .header .container {
        padding: 0.7rem 15px;
        min-height: 75px;
    }
    
    .company-name {
        font-size: 1.6rem;
    }
    
    .header .logo {
        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;
    }
    
    .language-switcher {
        margin-left: auto;
    }
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    min-height: 45px;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: color, border-color, background-color;
    font-size: 0.95rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 180px;
}

@media (max-width: 768px) {
    .nav-link {
        padding: 8px 15px;
        margin: 1px 0;
        font-size: 1rem;
    }
}

/* Tablet navigation optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav {
        gap: 1.2rem;
    }
    
    .nav-link {
        padding: 6px 10px;
        font-size: 0.9rem;
        max-width: 150px;
    }
    
    html[lang="de"] .nav-link {
        max-width: 160px;
        font-size: 0.88rem;
    }
}

/* Large screen navigation */
@media (min-width: 1025px) {
    .nav {
        gap: 1.8rem;
    }
    
    .nav-link {
        padding: 8px 14px;
        font-size: 0.95rem;
    }
}

/* Extra small desktop screens */
@media (min-width: 769px) and (max-width: 900px) {
    .nav {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 6px 8px;
        font-size: 0.85rem;
        max-width: 140px;
    }
    
    html[lang="de"] .nav-link {
        max-width: 150px;
        font-size: 0.83rem;
        padding: 6px 7px;
    }
    
    .lang-current {
        padding: 6px 10px;
        font-size: 0.85rem;
        min-width: 100px;
    }
}

/* Language-specific adjustments */
html[lang="mn"] .nav-link {
    font-size: 0.9rem;
    letter-spacing: -0.02em;
}

html[lang="mn"] .company-name {
    font-size: 1.7rem;
}

html[lang="de"] .nav-link {
    font-size: 0.92rem;
    max-width: 190px;
    letter-spacing: -0.01em;
}

html[lang="de"] .nav {
    gap: 1.4rem;
}

/* Consistent header height across languages */
.header {
    height: auto;
}

/* Global header consistency - applies to all pages */
.header .container {
    box-sizing: border-box;
}

.nav {
    flex-shrink: 0;
}

.nav-link {
    line-height: 1.4;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.nav-link:hover {
    color: var(--primary-gold);
    border-color: var(--primary-gold);
    background: rgba(212, 163, 72, 0.1);
}

/* Simple Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 10px 8px;
    background: none;
    border: none;
    position: relative;
    z-index: 1002;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
    display: block;
}

/* Mobile menu button animation when active */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hide mobile language switcher on desktop */
.mobile-lang-switcher {
    display: none !important;
}

/* Language Switcher - Enhanced Safari Support */
.language-switcher {
    position: relative;
    z-index: 1001;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    isolation: isolate;
    flex-shrink: 0;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-current {
    background: var(--white);
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--primary-blue);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 110px;
    justify-content: space-between;
    -webkit-appearance: none;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: background-color, color, border-color;
}

.lang-current:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.lang-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.lang-dropdown.active .lang-arrow {
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
}

.lang-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(13, 42, 76, 0.15);
    min-width: 140px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1002;
    -webkit-transform: translate3d(0, -10px, 0);
    transform: translate3d(0, -10px, 0);
    -webkit-transition: opacity 0.3s ease, -webkit-transform 0.3s ease, visibility 0.3s ease;
    will-change: opacity, transform, visibility;
    pointer-events: none;
}

.lang-options.show {
    opacity: 1;
    transform: translateY(0);
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-gray);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: background-color, color;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(
        135deg,
        var(--primary-blue) 0%,
        #1a4a73 25%,
        #2a5a85 50%,
        #3a6a97 75%,
        #4a7aa9 100%
    );
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(74, 122, 169, 0.1) 50%,
        transparent 100%
    );
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    padding-top: 100px;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.1;
    color: var(--white);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.6),
        1px 1px 2px rgba(0, 0, 0, 0.7);
}

.route {
    display: block;
    color: var(--white);
    font-size: 3.2rem;
    margin-top: 1rem;
    font-weight: 700;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.7),
        1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    text-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.6),
        0px 0px 1px rgba(0, 0, 0, 0.7);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 180px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: var(--primary-gold);
    color: var(--primary-blue);
    border-color: var(--primary-gold);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(212, 163, 72, 0.8);
}

.btn-primary:hover {
    background: var(--light-gold);
    transform: translateY(-3px);
    box-shadow: 
        0 10px 25px rgba(212, 163, 72, 0.4),
        0 0 0 1px rgba(212, 163, 72, 1);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 
        0 10px 25px rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(255, 255, 255, 1);
}

/* Page content spacing for non-hero pages */
.page-content {
    padding-top: 100px;
    min-height: 100vh;
    background: var(--light-gray);
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-gold);
    margin: 20px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 
        0 8px 25px rgba(13, 42, 76, 0.08),
        0 3px 8px rgba(13, 42, 76, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(212, 163, 72, 0.1);
    border-top: 4px solid var(--primary-gold);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), #f4d673, var(--primary-gold));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(13, 42, 76, 0.15),
        0 10px 25px rgba(212, 163, 72, 0.1);
    border-top-color: var(--primary-blue);
    border-color: rgba(212, 163, 72, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    margin-bottom: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-gold), #f4d673);
    border-radius: 20px;
    margin: 0 auto 1.8rem;
    box-shadow: 0 8px 25px rgba(212, 163, 72, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 2.5rem;
    color: var(--white);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--white);
    transition: all 0.3s ease;
}

/* Unicode emoji styling */
.service-icon {
    font-size: 2.5rem;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card:hover .service-icon {
    transform: translateY(-8px) scale(1.1);
    background: linear-gradient(135deg, var(--primary-blue), #2a5a85);
    box-shadow: 0 15px 35px rgba(212, 163, 72, 0.4);
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
    color: var(--primary-gold);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.3rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary-gold);
}

.service-card p {
    color: var(--dark-gray);
    line-height: 1.65;
    font-size: 1rem;
    margin: 0;
    transition: color 0.3s ease;
}

.service-card:hover p {
    color: #4a5568;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(
        135deg,
        #4a7aa9 0%,
        #3a6a97 25%,
        #2a5a85 50%,
        #1a4a73 75%,
        var(--primary-blue) 100%
    );
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(74, 122, 169, 0.1) 50%,
        transparent 100%
    );
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact .section-title {
    color: var(--white);
}

.contact .section-title::after {
    background: var(--primary-gold);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-top: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-gold);
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--primary-gold);
    margin-top: 0.25rem;
}

.contact-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 0.8rem;
}

.contact-item p {
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
    color: var(--light-gold);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-input, .form-textarea {
    padding: 15px 20px;
    border: 2px solid var(--border-gray);
    border-radius: 10px;
    font-size: 1.1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: var(--white);
    color: var(--primary-blue);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 163, 72, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 3rem 0;
    border-top: 2px solid var(--primary-gold);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--primary-gold);
}

.footer-logo {
    height: 45px;
    width: auto;
}

.footer-text {
    opacity: 0.8;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Safari-specific mobile fixes */
    .header {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        position: fixed;
    }
    
    .header .container {
        position: relative;
        min-height: 70px;
        padding: 0.8rem 15px;
    }
    
    /* Hero section mobile fixes */
    .hero {
        padding-top: 80px;
    }
    
    .hero .container {
        padding: 80px 20px 60px;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 2.0rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
    }
    
    .route {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-top: 0.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        line-height: 1.6;
        padding: 0 10px;
    }
    
    /* Simple Mobile Navigation */
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 0.75rem 1rem 1rem 1rem;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1000;
        border-top: 1px solid #e0e0e0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    
    /* Show menu when nav-open class is added */
    .nav.nav-open {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
    
    /* Backdrop effect when menu is open */
    .nav.nav-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: -1;
        pointer-events: none;
    }
    
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex !important;
    }
    
    /* Hide desktop language switcher on mobile */
    .language-switcher {
        display: none !important;
    }
    

    
    /* Mobile navigation adjustments */
    .nav-link {
        max-width: none;
        text-overflow: initial;
        overflow: visible;
    }
    
    /* Show mobile language switcher */
    .mobile-lang-switcher {
        display: block !important;
        background: var(--primary-blue);
        margin: -0.75rem -1rem 0.75rem -1rem;
        padding: 0.75rem;
        border-bottom: 3px solid var(--primary-gold);
    }
    
    .mobile-lang-horizontal {
        display: flex;
        gap: 8px;
        justify-content: center;
        flex-wrap: nowrap;
    }
    
    .mobile-lang-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 10px;
        text-decoration: none;
        color: var(--white);
        font-weight: 500;
        font-size: 0.85rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid transparent;
        min-width: 80px;
        text-align: center;
    }
    
    .mobile-lang-btn:hover,
    .mobile-lang-btn:focus {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }
    
    .mobile-lang-btn.active {
        background: var(--primary-gold);
        color: var(--primary-blue);
        border-color: var(--primary-gold);
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(212, 163, 72, 0.4);
    }
    
    .lang-flag {
        font-size: 1.2rem;
        margin-bottom: 4px;
        display: block;
    }
    
    .lang-name {
        font-size: 0.75rem;
        opacity: 0.9;
    }
    
    .mobile-lang-btn.active .lang-name {
        opacity: 1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Enhanced small mobile fixes */
    .hero .container {
        padding: 75px 15px 50px;
    }
    
    .hero-content {
        padding: 0 5px;
    }
    
    .hero-title {
        font-size: 1.7rem;
        line-height: 1.1;
        margin-bottom: 1rem;
        word-break: break-word;
        -webkit-hyphens: auto;
        hyphens: auto;
    }
    
    .route {
        font-size: 1.3rem;
        line-height: 1.2;
        margin-top: 0.3rem;
        word-break: break-word;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
        padding: 0 5px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .service-card, .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card, .contact-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Mobile menu animations are now handled in the main mobile responsive section */

/* Language Switcher Dropdown */
.lang-options {
    -webkit-transform: translate3d(0, -10px, 0);
    transform: translate3d(0, -10px, 0);
    -webkit-transition: opacity 0.3s ease, -webkit-transform 0.3s ease, visibility 0.3s ease;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.lang-options.show {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

/* Header Styling */
.header {
    opacity: 1;
    transition: opacity 0.1s ease-in;
    z-index: 1001;
}

/* Enhanced text rendering */
.nav-brand, .company-name, .header .logo {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Safari-specific mobile hero fixes */
@supports (-webkit-appearance: none) {
    @media (max-width: 768px) {
        .hero {
            -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
        }
        
        .hero-title {
            -webkit-font-smoothing: antialiased;
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
        }
        
        .route {
            -webkit-font-smoothing: antialiased;
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
        }
        
        .hero-description {
            -webkit-font-smoothing: antialiased;
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
        }
        
        /* Prevent hero content from jumping during load */
        .hero .container {
            -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
        }
        
        /* Better viewport handling on Safari */
        .hero-content {
            -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
            will-change: auto;
        }
    }
    
    @media (max-width: 480px) {
        /* Additional Safari micro-phone fixes */
        .hero-title {
            font-size: 1.7rem !important;
            line-height: 1.1 !important;
        }
        
        .route {
            font-size: 1.3rem !important;
            line-height: 1.2 !important;
        }
    }
}

/* Alternative Modern Card Designs - Uncomment to use */

/* Option 1: Glassmorphism Cards 
.service-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(13, 42, 76, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    box-shadow: 0 25px 50px rgba(13, 42, 76, 0.2);
}
*/

/* Option 2: Minimal Flat Design 
.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    border-left: 6px solid var(--primary-gold);
    box-shadow: 0 2px 10px rgba(13, 42, 76, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateX(8px);
    border-left-color: var(--primary-blue);
    box-shadow: 0 8px 25px rgba(13, 42, 76, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gold);
    border-radius: 50%;
    margin: 0 auto 1.8rem;
}

.service-card:hover .service-icon {
    background: var(--primary-blue);
    transform: scale(1.1);
}
*/

/* Shopping Service Page Styles */
.shopping-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-gold) 100%);
    color: var(--white);
    padding: 120px 0 80px 0;
    text-align: center;
}

.shopping-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.shopping-hero .subtitle {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.shopping-hero .hero-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.how-it-works {
    padding: 80px 0;
    background: var(--light-gray);
}

.how-it-works h2 {
    text-align: center;
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--primary-gold);
    color: var(--primary-blue);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.step h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.platforms {
    padding: 80px 0;
    background: var(--white);
}

.platforms h2 {
    text-align: center;
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.platform-card {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.platform-card:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.platform-logo {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.platform-card h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.platform-card p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.platform-link {
    display: inline-block;
    background: var(--primary-gold);
    color: var(--primary-blue);
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.platform-link:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.shopping-form {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    padding: 80px 0;
}

.shopping-form h2 {
    text-align: center;
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.shopping-request-form .form-group {
    margin-bottom: 1.5rem;
}

.shopping-request-form label {
    display: block;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.shopping-request-form input,
.shopping-request-form select,
.shopping-request-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-gray);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.shopping-request-form input:focus,
.shopping-request-form select:focus,
.shopping-request-form textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.shopping-request-form textarea {
    resize: vertical;
    min-height: 100px;
}

.shopping-request-form .btn-primary {
    width: 100%;
    background: var(--primary-gold);
    color: var(--primary-blue);
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.shopping-request-form .btn-primary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.shopping-request-form .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    border: 1px solid #f5c6cb;
}

/* Tablet responsiveness for shopping page */
@media (max-width: 1024px) and (min-width: 769px) {
    .steps-grid {
        gap: 1.5rem;
        max-width: 700px;
    }
    
    .step {
        padding: 1.5rem;
    }
}

/* Mobile responsiveness for shopping page */
@media (max-width: 768px) {
    .shopping-hero {
        padding: 100px 0 60px 0;
    }
    
    .shopping-hero .hero-title {
        font-size: 2rem;
    }
    
    .shopping-hero .subtitle {
        font-size: 1.2rem;
    }
    
    .how-it-works h2,
    .platforms h2,
    .shopping-form h2 {
        font-size: 2rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .platforms-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-container {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .how-it-works,
    .platforms,
    .shopping-form {
        padding: 60px 0;
    }
}

 
 