/* ========================================
   AVARIS CONSULTING - MAIN STYLESHEET
   ======================================== 
   
   CURRENT STATE: WORKING AND TESTED
   - All pages display correctly across devices
   - Responsive design functions properly
   - Animations and interactions work as expected
   - Spacing and layout are visually consistent
   
   TECHNICAL DEBT NOTED:
   - Some duplicate CSS rules (partially cleaned up)
   - Mixed naming conventions (BEM and non-BEM)
   - Large single file structure
   - Complex media query dependencies
   
   MAINTENANCE NOTES:
   - Changes should be tested on all pages
   - Mobile breakpoints: 768px, 1024px
   - Key components: hero sections, strategy sections, CTA sections
   - Animation delays are staggered for visual effects
   
   ======================================== */

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* CSS Variables - Design System */
:root {
    /* Brand Colors */
    --brand-cream-soft: #FFF9F1;
    --brand-cream-light: #FFFCF9;
    --brand-cream-medium: #F9F7F2;
    --brand-cream-dark: #F2E9DA;
    --brand-navy: #1A2A44;
    --brand-blue: #1A2A44;
    --brand-gold: #F2B126;
    --brand-secondary-blue: #7A8AA4;
    
    /* Text Colors */
    --text-dark: #1A2A44;
    --text-gray: #2C3E5E;
    --text-light: #ffffff;
    --text-hover: #2C3E5E;
    
    /* Spacing - 8-Point Grid System */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-7: 56px;
    --space-8: 64px;
    --space-9: 72px;
    --space-10: 80px;
    
    /* Semantic Spacing */
    --spacing-xs: var(--space-1);
    --spacing-sm: var(--space-2);
    --spacing-md: var(--space-3);
    --spacing-lg: var(--space-4);
    --spacing-xl: var(--space-6);
    --spacing-xxl: var(--space-8);
    --spacing-section: var(--space-10);
    --spacing-mobile: 100px;
    
    /* Typography */
    --font-primary: 'Noto Sans Thai', sans-serif;
    --font-heading: 'Noto Sans Thai Looped', sans-serif;
    --font-chinese: 'Noto Sans SC', sans-serif;
    
    /* Font Sizes - Industry Standard */
    --font-size-base: 18px;
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
    --font-size-2xl: 28px;
    --font-size-3xl: 32px;
    --font-size-4xl: 40px;
    --font-size-5xl: 48px;
    
    /* Language-specific font sizes */
    --font-size-chinese: 17px;
    --font-size-thai: 18px;
    --font-size-japanese: 17px;
    --font-size-korean: 17px;
    
    /* Layout */
    --container-max-width: 1200px;
    --header-height: 195px;
}

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

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--brand-cream-light);
    scroll-behavior: smooth;
}

/* Language-specific typography */
[lang="zh"] body,
[lang="ja"] body,
[lang="ko"] body {
    font-size: var(--font-size-chinese);
    line-height: 1.7;
}

[lang="th"] body {
    font-size: var(--font-size-thai);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}


/* Header Styles */
.site-header {
    background-color: var(--brand-cream-soft);
    box-shadow: 0 2px 4px rgba(26, 42, 68, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 249, 241, 0.4);
}

.header-top {
    height: 50px;
    background-color: transparent;
    border-bottom: 1px solid var(--brand-gold);
}

.header-top-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    gap: var(--spacing-md);
    flex-wrap: nowrap;
    min-height: 50px;
}

.header-main {
    height: 145px;
    border-bottom: 2px solid var(--brand-navy);
    background-color: transparent;
}

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 145px;
}

/* Language Menu */
.language-menu {
    display: flex;
    align-items: center;
    height: 100%;
}

.language-list {
    display: flex;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 100%;
}

.language-list li {
    display: flex;
    align-items: center;
    height: 100%;
}

.language-list li:not(:last-child)::after {
    content: '|';
    color: var(--text-dark);
    margin-left: var(--spacing-xs);
    font-weight: 400;
}

.language-link {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    text-decoration: none;
    padding: 0 4px;
    transition: all 0.3s ease;
}

.language-link:hover,
.language-link.active {
    color: var(--brand-secondary-blue) !important;
}

/* Isolate header from Chinese font settings */
.header-top {
    font-size: 18px !important;
    line-height: 1.6 !important;
}

/* Social Links */
.social-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.social-link img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}


.social-link:hover {
    transform: translateY(-2px);
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    padding-top: 5px;
}

.logo {
    max-height: 125px;
    width: auto;
}

/* Main Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 18px;
    text-transform: uppercase;
    color: var(--text-dark);
    text-decoration: none;
    padding: 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-secondary-blue) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-secondary-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    gap: 4px;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(29, 34, 51, 0.3);
    z-index: 1;
}


.hero-title {
    font-family: var(--font-primary);
    font-size: 45px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-light);
    margin: 0 0 var(--spacing-sm) 0;
    max-width: 600px;
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-size: 25px;
    font-weight: 400;
    color: var(--text-light);
    margin: 0;
    max-width: 500px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

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

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

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


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 42, 68, 0.3);
    z-index: 1;
}

.hero-section .container {
    max-width: var(--container-max-width);
    width: 100%;
    padding: 0 var(--spacing-lg);
}



.hero-subtitle {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 25px;
    line-height: 1.3;
    color: var(--text-light);
    margin: 0;
}

/* Strategy Section */
.strategy-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--brand-cream-light);
}

.strategy-content {
    /* Default single column layout for homepage */
}

.strategy-title-column {
    /* Left column - 1/3 */
}

.strategy-text-column {
    /* Right column - 2/3 */
}


/* Mobile responsive for Contact Us strategy section */
@media (max-width: 768px) {
    .contact-us .strategy-content {
        display: block !important;
        text-align: center !important;
        grid-template-columns: none !important;
        gap: 0 !important;
    }
    
    .contact-us .strategy-title-column {
        width: 100% !important;
        margin-bottom: var(--spacing-sm) !important;
        text-align: center !important;
    }
    
    .contact-us .strategy-text-column {
        width: 100% !important;
        text-align: center !important;
    }
    
    .contact-us .strategy-text {
        text-align: center !important;
    }
}

/* Extra aggressive mobile fix for iPhone Pro Max and smaller */
@media (max-width: 430px) {
    .contact-us .strategy-content {
        display: block !important;
        text-align: center !important;
        grid-template-columns: none !important;
        gap: 0 !important;
    }
    
    .contact-us .strategy-title-column {
        width: 100% !important;
        margin-bottom: 20px !important;
        text-align: center !important;
    }
    
    .contact-us .strategy-text-column {
        width: 100% !important;
        text-align: center !important;
    }
    
    .contact-us .strategy-text {
        text-align: center !important;
    }
}

/* Image and Content Section */
.image-content-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--brand-cream-medium);
}

.image-content-section.light-background {
    background-color: var(--brand-cream-light);
}

.image-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

/* Mobile responsive - always image first, then text */
@media (max-width: 768px) {
    .image-content-section {
        padding: var(--spacing-lg) 0;
    }
    
    .image-content-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .image-content-grid .image-column {
        order: 1;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .image-content-grid .text-column {
        order: 2;
        width: 100%;
        max-width: 100%;
    }
    
    .image-column img {
        max-width: 100%;
        width: 100%;
        height: auto;
        box-shadow: 4px 4px 16px rgba(26, 42, 68, 0.6);
    }
    
    .container {
        padding: 0 20px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    body {
        overflow-x: hidden;
    }
    
}

.text-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.section-text {
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-gray);
}

.section-text ul {
    margin: var(--spacing-sm) 0;
    padding-left: var(--spacing-sm);
}

.section-text li {
    margin-bottom: var(--spacing-xs);
    color: var(--text-gray);
}

.image-column {
    display: flex;
    justify-content: center;
    align-items: stretch;
    min-height: 400px;
}

.image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 8px 8px 32px rgba(26, 42, 68, 0.6);
}

.caption-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-sm);
}

/* Mobile responsive for caption container */
@media (max-width: 768px) {
    .caption-container {
        display: block;
        text-align: center;
    }
    
    .caption-left {
        width: 100%;
    }
    
    .caption-right {
        display: none;
    }
}

.caption-left {
    display: flex;
    justify-content: center;
    align-items: center;
}

.caption-right {
    /* Empty right column for 50/50 split */
}

.image-caption {
    font-style: italic;
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    margin: 0;
}

/* Contact Us page specific animations - now using standard fade-in */
.caption-container.fade-in {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity;
}

.caption-container.fade-in.visible {
    opacity: 1;
}

/* Form field hover animations */
.contact-form .form-group input,
.contact-form .form-group textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.contact-form .form-group input:hover,
.contact-form .form-group textarea:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 42, 68, 0.1);
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(26, 42, 68, 0.15);
}

/* Button animation */
.contact-form .btn {
    transition: all 0.3s ease;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(26, 42, 68, 0.2);
}

.content-column {
    /* Right column - 50% */
}

.form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-heading);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #E5E5E5;
    font-size: 16px;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
}

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

.strategy-section .container {
    max-width: var(--container-max-width);
    width: 100%;
    padding: 0 var(--spacing-md);
}

/* General strategy content - single column layout for homepage */
.strategy-content {
    text-align: left;
    max-width: none;
    width: 100%;
    margin: 0;
}

/* Contact page uses grid layout - this rule takes precedence */
.contact-us .strategy-content {
    display: grid !important;
    grid-template-columns: 1fr 2fr !important;
    gap: var(--spacing-xl) !important;
    align-items: start !important;
}

.strategy-text p {
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
}

/* About Section */
.about-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--brand-cream-medium);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: 60px 60px 0 -20px var(--brand-cream-dark);
    transition: transform 3s ease-out, filter 3s ease-out;
}

.about-image img:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

.about-text {
    padding-left: var(--spacing-xl);
}

.section-title {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 35px;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
}

.section-description {
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: var(--spacing-xl);
}

/* Services Section - Exact WordPress Structure */
.services-section {
    padding: var(--spacing-xxl) 0;
    background-color: #F2E9DA00; /* Transparent cream background */
    margin: 0;
}


.services-intro {
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-gray);
    text-align: left;
    max-width: none;
    margin: 10px 0 var(--spacing-xl) 0;
    padding: 0;
}

.services-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 30px;
    padding: 0;
    margin: 0;
}

.service-card {
    width: 31.5%;
    background-color: #fff9f1; /* Light cream background */
    background-image: url('/images/card-lines-background.svg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 0 0 20px 0;
    border-radius: 0;
    text-align: left;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1); /* Small shadow bottom and right */
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background-color: #E8EBF0;
    background-image: url('/images/card-lines-background.svg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.service-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin: 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 3s ease-out, filter 3s ease-out;
}

.service-image img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.service-card:hover .service-image img {
    transform: none;
}

.service-title {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 25px;
    color: var(--text-dark);
    margin: 20px 0 0 20px;
    padding: 0;
}

.service-description {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-gray);
    margin: 20px 0 20px 20px;
    padding: 0;
}

.service-link {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 15px;
    text-transform: none;
    color: var(--brand-navy);
    background-color: transparent;
    text-decoration: none;
    padding: 0;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
    margin: 0 0 0 20px;
    position: relative;
}

.service-link::after {
    content: '↗';
    margin-left: 10px;
    font-size: 16px;
}

.service-link:hover,
.service-link:active {
    background-color: transparent;
    color: var(--brand-secondary-blue);
    transform: none;
}

/* CTA Section */
.cta-section {
    padding: 0;
    margin: 0;
    position: relative;
}

.cta-tile {
    background: linear-gradient(to bottom, 
        var(--brand-cream-light) 0%, 
        var(--brand-cream-light) 50%, 
        var(--brand-cream-dark) 50%, 
        var(--brand-cream-dark) 100%);
    padding: var(--spacing-xxl) 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.cta-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        transparent 50%, 
        var(--brand-cream-dark) 50%, 
        var(--brand-cream-dark) 100%);
    z-index: -1;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    background-color: var(--brand-navy);
    position: relative;
    z-index: 2;
}

.cta-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/card-lines-background.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
}

.cta-text {
    flex: 2;
    text-align: left;
}


.cta-title {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 30px;
    line-height: 1.3;
    color: var(--text-light);
    margin-bottom: 7px !important;
    text-align: left;
}

.cta-description {
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 1.6;
    color: #FFFFFFA1;
    margin: 0 0 7px 0;
    text-align: left;
    max-width: 800px;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    flex-shrink: 0;
}




.cta-link {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 15px;
    text-transform: none;
    color: var(--text-light);
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid var(--text-light);
    border-radius: 0;
    transition: all 0.3s ease;
    display: inline-block;
    background-color: var(--brand-navy);
}

.cta-link:hover {
    background-color: var(--text-light);
    color: var(--brand-navy);
    transform: translateY(-2px);
}

.cta-link.selected {
    background-color: var(--text-light);
    color: var(--brand-navy);
}

/* Primary CTA button - always white, opposite behavior */
.cta-link-primary {
    background-color: var(--text-light) !important;
    color: var(--brand-navy) !important;
    border: 2px solid var(--text-light) !important;
}

.cta-link-primary:hover {
    background-color: var(--brand-navy) !important;
    color: var(--text-light) !important;
    border: 2px solid var(--text-light) !important;
}




.cta-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    margin-top: 7px !important;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.cta-feature {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.cta-feature h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.cta-feature p {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: #FFFFFFA1;
    margin: 0;
}

/* Enhanced animations for About Us page */
.image-content-section.fade-in {
    opacity: 0;
    transform: scale(0.95);
    transform-origin: center center;
    transition: opacity 2s ease-out, transform 2s ease-out;
    will-change: opacity, transform;
}

.image-content-section.fade-in.visible {
    opacity: 1;
    transform: scale(1);
}

.strategy-section.fade-in {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.strategy-section.fade-in.visible {
    opacity: 1;
}

.cta-section.fade-in {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-section.fade-in.visible {
    opacity: 1;
}

/* Hover effects for feature tiles - smooth 3D transform with custom easing */
.cta-feature {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.4s ease;
}

.cta-feature:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
}

/* Staggered animation delays for feature tiles */
.cta-feature:nth-child(1) {
    transition-delay: 0.1s;
}

.cta-feature:nth-child(2) {
    transition-delay: 0.2s;
}

.cta-feature:nth-child(3) {
    transition-delay: 0.3s;
}

/* Mobile responsive styles for CTA features */
@media (max-width: 768px) {
    .cta-features {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        margin-top: var(--spacing-sm) !important;
    }
    
    .cta-feature {
        padding: var(--spacing-sm);
    }
    
    .cta-feature h4 {
        font-size: 18px;
        margin-bottom: var(--spacing-xs);
    }
    
    .cta-feature p {
        font-size: 14px;
    }
}


/* Services Page - Independent CTA Section (copied from homepage) */
.services-cta-section {
    padding: 0;
    margin: 0;
    position: relative;
}

.services-cta-tile {
    background: linear-gradient(to bottom, 
        var(--brand-cream-light) 0%, 
        var(--brand-cream-light) 50%, 
        var(--brand-cream-dark) 50%, 
        var(--brand-cream-dark) 100%);
    padding: var(--spacing-xxl) 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.services-cta-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        transparent 50%, 
        var(--brand-cream-dark) 50%, 
        var(--brand-cream-dark) 100%);
    z-index: -1;
}

.services-cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    background-color: var(--brand-navy);
    position: relative;
    z-index: 2;
}

/* Services CTA Background (matching homepage) */
.services-cta-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/lines-background-2.svg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: -1;
}

.services-cta-text {
    flex: 2;
    text-align: left;
}

.services-cta-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 28px;
    color: var(--text-light);
    margin: 0 0 7px 0;
    text-align: left;
    max-width: 800px;
}

.services-cta-description {
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 1.6;
    color: #FFFFFFA1;
    margin: 0 0 7px 0;
    text-align: left;
    max-width: 800px;
}

.services-cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    flex-shrink: 0;
}

.services-cta-link {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 15px;
    text-transform: none;
    color: var(--text-light);
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid var(--text-light);
    border-radius: 0;
    transition: all 0.3s ease;
    display: inline-block;
    background-color: var(--brand-navy);
}

.services-cta-link:hover {
    background-color: var(--text-light);
    color: var(--brand-navy);
    transform: translateY(-2px);
}

.services-cta-link.selected {
    background-color: var(--text-light);
    color: var(--brand-navy);
}

/* Primary Services CTA button - always white, opposite behavior */
.services-cta-link-primary {
    background-color: var(--text-light) !important;
    color: var(--brand-navy) !important;
    border: 2px solid var(--text-light) !important;
}

.services-cta-link-primary:hover {
    background-color: var(--brand-navy) !important;
    color: var(--text-light) !important;
    border: 2px solid var(--text-light) !important;
}

/* Mobile responsive styles for services CTA - moved to 768px breakpoint */



/* About Us Page - Blue Background with White Lines */
.about-why-tile {
    background-color: var(--brand-navy);
    position: relative;
}

.about-why-section.fade-in {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity;
}

.about-why-section.fade-in.visible {
    opacity: 1;
}

.about-why-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/lines-background-2.svg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.about-why-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

.about-why-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 28px;
    color: var(--text-light);
    margin: 0 0 7px 0;
    text-align: center;
}

.about-why-description {
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 1.6;
    color: #FFFFFFA1;
    text-align: center;
    margin: 0 0 var(--spacing-lg) 0;
}

.about-why-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.about-why-feature {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.about-why-feature.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.about-why-feature:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.about-why-feature h4 {
    color: var(--text-light);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.about-why-feature p {
    color: #FFFFFFA1;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Staggered animation delays for tiles - creates wave effect */
.about-why-feature:nth-child(1) {
    transition-delay: 0.1s;
    animation: float 6s ease-in-out infinite;
    animation-delay: 0s;
}

.about-why-feature:nth-child(2) {
    transition-delay: 0.2s;
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

.about-why-feature:nth-child(3) {
    transition-delay: 0.3s;
    animation: float 6s ease-in-out infinite;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .about-why-features {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .about-why-feature {
        padding: 25px;
    }
    
    .about-why-feature h4 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .about-why-feature p {
        font-size: 14px;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 18px 30px;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--brand-navy);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--brand-gold);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--brand-navy);
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background-color: var(--brand-cream-dark);
    color: var(--text-dark);
}

.footer-middle {
    padding: var(--spacing-xxl) 0;
    background-color: var(--brand-cream-dark);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo-column {
    align-items: flex-start;
}

.footer-contact-column {
    align-items: flex-start;
}

.footer-social-column {
    align-items: flex-end;
}

.footer-logo img {
    max-height: 90px;
    width: auto;
}

.footer-locations {
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--text-dark);
    margin-top: var(--spacing-sm);
    opacity: 0.8;
}

.footer-navigation {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-navigation a {
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-navigation a:hover {
    color: var(--brand-secondary-blue);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact-info p {
    font-family: var(--font-primary);
    font-size: 15px;
    color: var(--text-dark);
    margin: 0;
    opacity: 0.8;
}

.whatsapp-chat-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-size: 15px;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-top: 4px;
}

.whatsapp-chat-link:hover {
    color: var(--brand-secondary-blue);
}

.whatsapp-chat-link img {
    filter: brightness(0) saturate(100%) invert(27%) sepia(8%) saturate(1200%) hue-rotate(184deg) brightness(95%) contrast(88%);
    opacity: 0.8;
}

.email-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-size: 15px;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-bottom: 4px;
}

.email-link:hover {
    color: var(--brand-secondary-blue);
}

.email-icon {
    display: inline-block;
    width: 16px;
    height: 12px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    position: relative;
    opacity: 0.8;
}

.email-icon::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 6px solid currentColor;
}

.footer-title {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.footer-contact {
    margin-bottom: var(--spacing-md);
}

.footer-email {
    font-family: var(--font-primary);
    font-size: 17px;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: var(--brand-secondary-blue);
}

.footer-socials {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-socials .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(218, 222, 228, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.footer-socials .social-link:hover {
    background-color: var(--brand-secondary-blue);
    transform: translateY(-2px);
}

.footer-bottom {
    background-color: #D6CBB9;
    border-top: 1px solid var(--brand-navy);
    padding: 25px 0;
}

.footer-bottom-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-bottom-left {
    text-align: left;
}

.footer-copyright {
    text-align: center;
    grid-column: 2;
}

.footer-bottom-right {
    text-align: right;
}

.footer-bottom-socials {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.footer-bottom-socials .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.footer-bottom-socials .social-link img {
    filter: brightness(0) saturate(100%) invert(27%) sepia(8%) saturate(1200%) hue-rotate(184deg) brightness(95%) contrast(88%);
    opacity: 0.7;
}

.footer-bottom-socials .social-link:hover {
    transform: translateY(-2px);
}

.footer-bottom-socials .social-link:hover img {
    opacity: 1;
}

.footer-copyright p {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 15px;
    color: rgba(56, 69, 74, 0.7);
    margin: 0;
}

.footer-info p {
    font-size: 15px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-main-content {
        flex-direction: row;
        justify-content: space-between;
        gap: var(--spacing-md);
        padding: var(--spacing-md) 0;
    }
    
    .nav-list {
        gap: var(--spacing-md);
    }
    
    .nav-link {
        font-size: 16px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 80px; /* Increased gap between image and text on mobile */
    }
    
    .about-text {
        padding-left: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .footer-logo-column,
    .footer-contact-column,
    .footer-social-column {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .about-content {
        gap: 80px; /* Increased gap between image and text on mobile */
    }
    
    .about-section {
        padding: 32px 0 32px 0 !important; /* Mobile: 32px top and bottom */
    }
    
    .about-text {
        text-align: center;
        padding-top: 40px;
    }
    
    .about-text .btn {
        margin: 0 auto;
        display: block;
    }
    
    .services-section {
        padding: 32px 0 32px 0 !important; /* Mobile: 32px top and bottom */
    }
    
    .services-section .section-title {
        text-align: center;
    }
    
    .services-intro {
        text-align: center;
        font-size: 16px;
        margin: 20px 0 var(--spacing-lg) 0;
    }
    
    .services-grid {
        flex-direction: column;
        gap: 40px;
        padding: 0;
    }
    
    .service-card {
        width: 100%;
        padding: 20px;
    }
    
    .service-image {
        height: 100%;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
    }
    
    .cta-text {
        text-align: center;
    }
    
    .cta-title {
        text-align: center;
    }
    
    .cta-description {
        text-align: center;
        margin: 0 auto 7px auto;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .cta-link {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .services-cta-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
        align-items: center;
    }
    
    .services-cta-text {
        flex: none;
        text-align: center;
        max-width: 800px;
    }
    
    .services-cta-title {
        text-align: center;
    }
    
    .services-cta-description {
        text-align: center;
        margin: 0 auto 7px auto;
    }
    
    .services-cta-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .services-cta-link {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    /* Hide arrow icon on mobile for service links */
    .service-link::after {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--brand-cream-light);
        border-top: 1px solid #D6CBB9;
        padding: var(--spacing-md);
        box-shadow: 0 4px 8px rgba(26, 42, 68, 0.1);
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .nav-link {
        display: block;
        padding: var(--spacing-sm) 0;
        border-bottom: 1px solid #D6CBB9;
    }
    
    .header-top-content {
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm) 0;
    }
    
    .language-list {
        gap: var(--spacing-xs);
    }
    
    .header-top-content .social-links {
        display: none; /* Hide social buttons on mobile - they're available in footer */
    }
    
    .hero-section {
        height: 100vh; /* Ensure consistent height on mobile */
        align-items: flex-end;
        justify-content: center;
        padding-bottom: var(--spacing-section);
        background-position: center center !important; /* Standardize positioning */
    }
    
    .hero-section.home {
        background-image: url('/images/optimized/bridge-Edited-800.jpg') !important;
    }
    
    .hero-section.services {
        background-image: url('/images/optimized/Dubai-sykline-by-AG-Edited-scaled-800.jpg') !important;
    }
    
    .hero-section.about {
        background-image: url('/images/optimized/trees-Edited-scaled-800.jpg') !important;
    }
    
    .hero-section.contact {
        background-image: url('/images/optimized/Berlin1-Edited-scaled-800.jpg') !important;
    }
    
    .hero-title {
        font-size: 24px;
        text-align: center;
        /* Smoother mobile animations - reduced duration and transform distance */
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        transform: translateY(10px); /* Reduced from 20px for less jumpiness */
    }
    
    /* Safari-specific fix for hero title */
    @supports (-webkit-appearance: none) {
        .hero-title {
            font-size: 20px;
        }
    }
    
    .hero-subtitle {
        font-size: 14px;
        text-align: center;
        /* Smoother mobile animations */
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        transform: translateY(10px); /* Reduced from 20px for less jumpiness */
        transition-delay: 0.1s; /* Reduced delay for faster mobile experience */
    }
    
    .strategy-section {
        padding: 50px 0 12px 0 !important; /* Mobile spacing - reduced bottom padding for tighter layout */
    }
    
    /* Also target any page with strategy section */
    body .strategy-section {
        padding: 50px 0 12px 0 !important;
    }
    
    .hero-content {
        margin-left: 0 !important;
        max-width: 100% !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 var(--spacing-sm) !important;
    }
    
    .hero-content h1 {
        text-align: center !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    .hero-content p {
        text-align: center !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    
    .section-title {
        font-size: 28px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-logo-column,
    .footer-contact-column,
    .footer-social-column {
        align-items: center;
    }
    
    .footer-bottom-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-copyright {
        grid-column: 1;
    }
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .hero-section {
        height: 100vh; /* Ensure consistent height on tablet */
        padding-top: 160px;
        margin-bottom: 0;
        background-position: center center !important; /* Standardize positioning */
    }
    
    .hero-section.home {
        background-image: url('/images/optimized/bridge-Edited-1200.jpg') !important;
    }
    
    .hero-section.services {
        background-image: url('/images/optimized/Dubai-sykline-by-AG-Edited-scaled-1200.jpg') !important;
    }
    
    .hero-section.about {
        background-image: url('/images/optimized/trees-Edited-scaled-1200.jpg') !important;
    }
    
    .hero-section.contact {
        background-image: url('/images/optimized/Berlin1-Edited-scaled-1200.jpg') !important;
    }
    
    .strategy-section {
        padding: 50px 0 12px 0 !important; /* Mobile/tablet spacing - reduced bottom padding by 50% from 25px to 12px */
    }
    
    .hero-title {
        font-size: 50px;
        /* Smoother tablet animations */
        transition: opacity 1s ease-out, transform 1s ease-out;
        transform: translateY(15px); /* Slightly reduced for smoother animation */
    }
    
    .hero-subtitle {
        /* Smoother tablet animations */
        transition: opacity 1s ease-out, transform 1s ease-out;
        transform: translateY(15px);
        transition-delay: 0.15s;
    }
}

/* Hero Section - Reusable for all pages */
.hero-section {
    height: 100vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: var(--spacing-mobile);
}

/* Homepage hero image - Responsive with optimized images */
.hero-section.home {
    background-image: url('/images/optimized/bridge-Edited-1200.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Force hero background - very specific rule */
body .hero-section.home {
    background-image: url('/images/optimized/bridge-Edited-1200.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Ultra-specific hero background rule */
html body .site-main .hero-section.home {
    background-image: url('/images/optimized/bridge-Edited-1200.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

@media (max-width: 768px) {
    .hero-section.home {
        background-image: url('/images/optimized/bridge-Edited-800.jpg') !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
}

@media (max-width: 480px) {
    .hero-section.home {
        background-image: url('/images/optimized/bridge-Edited-600.jpg') !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
}

/* Services page hero image - Responsive with optimized images */
.hero-section.services {
    background-image: url('/images/optimized/Dubai-sykline-by-AG-Edited-scaled-1200.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

@media (max-width: 768px) {
    .hero-section.services {
        background-image: url('/images/optimized/Dubai-sykline-by-AG-Edited-scaled-800.jpg') !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
}

@media (max-width: 480px) {
    .hero-section.services {
        background-image: url('/images/optimized/Dubai-sykline-by-AG-Edited-scaled-600.jpg') !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
}

/* About page hero image - Responsive with optimized images */
.hero-section.about {
    background-image: url('/images/optimized/trees-Edited-scaled-1200.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

@media (max-width: 768px) {
    .hero-section.about {
        background-image: url('/images/optimized/trees-Edited-scaled-800.jpg') !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
}

@media (max-width: 480px) {
    .hero-section.about {
        background-image: url('/images/optimized/trees-Edited-scaled-600.jpg') !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
}

/* Contact page hero image - Responsive with optimized images */
.hero-section.contact {
    background-image: url('/images/optimized/Berlin1-Edited-scaled-1200.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

@media (max-width: 768px) {
    .hero-section.contact {
        background-image: url('/images/optimized/Berlin1-Edited-scaled-800.jpg') !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
}

@media (max-width: 480px) {
    .hero-section.contact {
        background-image: url('/images/optimized/Berlin1-Edited-scaled-600.jpg') !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 600px;
    margin-left: var(--spacing-mobile);
}

/* Mobile hero content - center properly */
@media (max-width: 768px) {
    .hero-content {
        margin-left: 0;
        margin-right: 0;
        text-align: center;
        max-width: 100%;
        padding: 0 var(--spacing-lg);
    }
    
    /* Show line break on mobile */
    .mobile-break {
        display: block;
    }
}

/* Hide line break on desktop */
@media (min-width: 769px) {
    .mobile-break {
        display: none;
    }
}

@media (min-width: 1200px) {
    .hero-title {
        font-family: var(--font-heading);
        font-size: 60px;
        font-weight: 900;
        line-height: 1.2;
        color: var(--text-light);
        margin-bottom: var(--spacing-md);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 1.2s ease-out, transform 1.2s ease-out;
        will-change: opacity, transform;
    }
}

.hero-title.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
    will-change: opacity, transform;
}

.hero-title.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-light);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
    will-change: opacity, transform;
    transition-delay: 0.2s;
}

.hero-subtitle.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
    will-change: opacity, transform;
}

.hero-subtitle.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* About Section */
.about-section {
    padding: var(--spacing-xxl) 0;
}

/* Scroll Animations - Standardized for all pages */
.fade-in {
    opacity: 0;
    transition: opacity 2s ease-out;
    will-change: opacity;
}

.fade-in.visible {
    opacity: 1;
}

/* Staggered animation delays */
.strategy-section.fade-in.visible {
    transition-delay: 0.1s;
}

.about-section.fade-in.visible {
    transition-delay: 0.2s;
}

.services-section.fade-in.visible {
    transition-delay: 0.3s;
}

.cta-section.fade-in.visible {
    transition-delay: 0.4s;
}

/* Services page specific animations */
.service-detail-section.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease-out, transform 2s ease-out;
    will-change: opacity, transform;
}

.service-detail-section.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.packages-section.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease-out, transform 2s ease-out;
    will-change: opacity, transform;
}

.packages-section.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.services-cta-section.fade-in.visible {
    transition-delay: 0.4s;
}

/* About Us page specific animation delays */
.image-content-section.fade-in.visible {
    transition-delay: 0.2s;
}

/* Contact Us page specific animation delays */
.caption-container.fade-in.visible {
    transition-delay: 0.2s;
}

/* Enhanced Button Hover Effects */
.btn {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}



/* ========================================
   PAGE-SPECIFIC STYLES
   ======================================== */


/* Services Page CTA Section - Horizontal Layout (same as homepage) */
.services .cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
}

.services .cta-text {
    flex: 2;
    text-align: left;
}

.services .cta-title {
    text-align: left;
}

.services .cta-description {
    text-align: left;
    margin: 0 0 7px 0;
}

.services .cta-buttons {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    flex: 1;
}

/* Homepage CTA Section - Horizontal Layout */
.homepage .cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
}

.homepage .cta-text {
    flex: 2;
    text-align: left;
}

.homepage .cta-title {
    text-align: left;
}

.homepage .cta-description {
    text-align: left;
    margin: 0 0 7px 0;
}


/* Homepage CTA Background - Second layer from original */
.homepage .cta-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/lines-background-2.svg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: -1;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--brand-cream-light) 0%, var(--brand-cream-medium) 100%);
    padding: 120px 0 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 35px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-primary);
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* About Page Styles */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text h2 {
    font-size: 35px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-primary);
}

.about-text h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 40px 0 20px 0;
}

.about-text ul {
    margin: var(--spacing-sm) 0;
    padding-left: var(--spacing-sm);
}

.about-text li {
    margin-bottom: var(--spacing-xs);
    color: var(--text-gray);
}


/* Team Section */
.team-section {
    background-color: var(--brand-cream-light);
    padding: var(--spacing-section) 0;
}

.team-section h2 {
    text-align: center;
    font-size: 35px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-primary);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.team-member {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(26, 42, 68, 0.08);
}

.member-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.member-info p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Services Page Styles */
.service-detail-section {
    padding: var(--spacing-section) 0;
}

/* ASEAN section specific styling */
.service-detail-section.asean-section {
    background-color: var(--brand-cream-medium);
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.service-detail-content.reverse {
    direction: rtl;
}

.service-detail-content.reverse > * {
    direction: ltr;
}

.service-detail-text h3 {
    font-size: 35px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-primary);
}

.service-detail-text p {
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
}

.service-detail-text ul {
    margin: var(--spacing-sm) 0;
    padding-left: var(--spacing-sm);
}

.service-detail-text li {
    margin-bottom: var(--spacing-xs);
    color: var(--text-gray);
}

.service-detail-image img {
    width: 100%;
    height: auto;
    box-shadow: 60px 60px 0 -20px #f2e9da !important;
}

/* Packages Section */
.packages-section {
    background-color: var(--brand-cream-light);
    padding: var(--spacing-section) 0;
}

.packages-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    align-items: start;
    margin-bottom: var(--spacing-xl);
}

.packages-section h2 {
    text-align: center;
    font-size: 35px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-primary);
}

.packages-section > .container > p {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.package-card {
    background-color: #fff9f1; /* Light cream background */
    background-image: url('/images/card-lines-background.svg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1); /* Small shadow bottom and right */
    transition: all 0.5s ease;
    position: relative;
}

.package-card:hover {
    background-color: #E8EBF0;
    background-image: url('/images/card-lines-background.svg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.package-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.package-content {
    padding: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.package-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.package-content p {
    color: var(--text-gray);
    margin-bottom: var(--spacing-sm);
}

.package-content ul {
    margin: 0;
    padding-left: 20px;
}

.package-content li {
    margin-bottom: 8px;
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Contact Page Styles */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(26, 42, 68, 0.1);
}

.contact-info h2 {
    font-size: 35px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-primary);
}

.contact-methods {
    margin-top: 40px;
}

.contact-method {
    margin-bottom: 40px;
}

.contact-method h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.contact-method p {
    color: var(--text-gray);
    margin-bottom: 10px;
}

.contact-method a {
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 500;
}

.contact-method a:hover {
    color: var(--brand-gold);
}

.contact-method .social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: 15px;
}

.contact-method .social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: var(--brand-cream-medium);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-method .social-links a:hover {
    background: var(--brand-gold);
    color: white;
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(26, 42, 68, 0.08);
}

.contact-form h2 {
    font-size: 35px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-primary);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--brand-cream-dark);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
}

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

/* Contact Form Section */
.contact-form-section {
    background-color: var(--brand-cream-light);
    padding: var(--spacing-section) 0;
}

.contact-form-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(26, 42, 68, 0.1);
    margin-top: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.form-group {
    text-align: left;
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
}

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

/* Contact Additional */
.contact-additional {
    background-color: var(--brand-cream-light);
    padding: var(--spacing-section) 0;
}

.contact-additional h2 {
    text-align: center;
    font-size: 35px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-primary);
}

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

.expectation {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(26, 42, 68, 0.08);
    text-align: center;
}

.expectation h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.expectation p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ========================================
   RESPONSIVE DESIGN FOR NEW PAGES
   ======================================== */

@media (max-width: 1024px) {
    .page-header h1 {
        font-size: 32px;
    }
    
    .about-content,
    .service-detail-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    /* Mobile order for service detail sections: Image → Title → Text */
    .service-detail-content .service-detail-image {
        order: 1;
        margin-bottom: var(--spacing-lg);
    }
    
    .service-detail-content .service-detail-text {
        order: 2;
    }
    
    /* Reduce mobile spacing for service detail sections */
    .service-detail-section {
        padding-top: 0 !important;
    }
    
    /* Mobile responsive for packages header */
    .packages-header {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .packages-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 767px) {
    .page-header {
        padding: var(--spacing-mobile) 0 var(--spacing-xl) 0;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .about-content,
    .service-detail-content,
    .contact-content {
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .about-text h2,
    .contact-info h2,
    .team-section h2,
    .packages-section h2,
    .contact-additional h2 {
        font-size: 28px;
    }
    
    .about-text h3,
    .service-detail-text h3 {
        font-size: 28px;
    }
    
    .team-member,
    .contact-form,
    .expectation {
        padding: var(--spacing-lg);
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-method .social-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .expectation-grid {
        grid-template-columns: 1fr;
    }
}

/* Desktop specific - uniform strategy section spacing across all pages */
@media (min-width: 1025px) {
    /* Increase top padding of strategy section title on all pages */
    .strategy-section .section-title {
        padding-top: var(--spacing-xxl) !important; /* Add 64px top padding */
    }
    
    /* Contact page override - remove extra padding for grid alignment */
    .contact-us .strategy-section .section-title {
        padding-top: 0 !important; /* Remove padding for proper grid alignment */
    }
    
    /* Reduce bottom margin of strategy text on all pages */
    .strategy-text {
        margin-bottom: 0 !important;
    }
}
