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

body {
    font-family: 'Noto Sans Thai', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    overflow-x: hidden;
}

/* Better mobile menu body scroll prevention */
body.menu-open {
    overflow: hidden;
    touch-action: none;
    -webkit-overflow-scrolling: auto;
}

/* For older iOS versions, add this alternative */
@supports not (touch-action: none) {
    body.menu-open {
        position: relative;
        overflow: hidden;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .nav-menu {
        -webkit-overflow-scrolling: touch !important;
        -webkit-transform: translate3d(0, 0, 0);
    }
    
    body.menu-open {
        position: relative;
        overflow: hidden;
        -webkit-overflow-scrolling: auto;
    }
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.gradient-text {
    background: linear-gradient(135deg, #22358c 0%, #4a6bb5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Dark theme for navigation (when over light backgrounds) */
.navbar.nav-dark {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Light theme for navigation (when over dark backgrounds) */
.navbar.nav-light {
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.nav-logo .logo-img {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.8));
    transition: all 0.3s ease;
}

/* Light theme logo (for dark backgrounds) */
.navbar.nav-light .nav-logo h2 {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.navbar.nav-light .nav-logo .logo-img {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8)) brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.nav-menu a:hover {
    color: #22358c;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* Light theme menu (for dark backgrounds) */
.navbar.nav-light .nav-menu a {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.navbar.nav-light .nav-menu a:hover {
    color: #4a6bb5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.nav-cta {
    background: linear-gradient(135deg, #22358c 0%, #4a6bb5 100%);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-shadow: none !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    color: white !important;
    box-shadow: 0 8px 20px rgba(34, 53, 140, 0.4);
}

/* Light theme CTA button (for dark backgrounds) */
.navbar.nav-light .nav-cta {
    background: linear-gradient(135deg, #4a6bb5 0%, #6b8dd6 100%);
    color: white !important;
}

.navbar.nav-light .nav-cta:hover {
    color: white !important;
    box-shadow: 0 8px 20px rgba(74, 107, 181, 0.5);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 1rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(34, 53, 140, 0.5);
    color: #22358c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lang-btn.active {
    background: rgba(34, 53, 140, 0.9);
    border-color: rgba(34, 53, 140, 0.9);
    color: white;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-shadow: none;
}

.lang-btn.active:hover {
    background: rgba(34, 53, 140, 1);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 53, 140, 0.3);
}

/* Light theme language buttons (for dark backgrounds) */
.navbar.nav-light .lang-btn {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.3);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.navbar.nav-light .lang-btn:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(74, 107, 181, 0.7);
    color: #4a6bb5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.navbar.nav-light .lang-btn.active {
    background: rgba(74, 107, 181, 0.9);
    border-color: rgba(74, 107, 181, 0.9);
    color: white;
}

.navbar.nav-light .lang-btn.active:hover {
    background: rgba(74, 107, 181, 1);
    box-shadow: 0 4px 12px rgba(74, 107, 181, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #1a1a1a;
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
    box-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Light theme hamburger (for dark backgrounds) */
.navbar.nav-light .mobile-menu-toggle span {
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

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

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

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Use vh instead of 100% for better mobile support */
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    /* Prevent scrolling through the overlay */
    touch-action: none;
    overscroll-behavior: contain;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 769px) {
    .mobile-menu-overlay {
        display: none;
    }
}
/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: 0;
    left: 0;
    /* Improve performance */
    will-change: transform;
    /* Ensure video doesn't interfere with touch events */
    pointer-events: none;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

/* Fallback for browsers that don't support video */
@supports not (object-fit: cover) {
    .hero-video {
        display: none;
    }
    
    .hero {
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    }
}

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

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

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-quote {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-quote blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.quote-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.quote-author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #22358c;
}

.hero-quote cite {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #22358c 0%, #4a6bb5 100%);
    color: white;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(34, 53, 140, 0.4);
}

.btn-secondary {
    background: white;
    color: #22358c;
    border: 2px solid #22358c;
}

.btn-secondary:hover {
    background: #22358c;
    color: white;
    transform: translateY(-2px);
}
/* Section Styles */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.section-header p {
    font-size: 1.25rem;
    color: #64748b;
}

/* Approach Section */
.approach {
    background: white;
}

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

.approach-card {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8fafc;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.approach-card:hover {
    transform: translateY(-10px);
}

.approach-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #22358c 0%, #4a6bb5 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.approach-card h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.approach-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Focus Section */
.focus {
    background: #f8fafc;
}

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

.focus-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.focus-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.focus-icon {
    color: #22358c;
    margin-bottom: 1rem;
}

.focus-item h3 {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.focus-item p {
    color: #64748b;
    font-size: 0.9rem;
}
/* Portfolio Carousel */
.portfolio-carousel-section {
    margin: 4rem 0;
}

.portfolio-swiper {
    padding: 2rem 0 4rem;
    overflow: visible;
}

.portfolio-carousel-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-carousel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.portfolio-carousel-card .portfolio-logo {
    height: 100px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.portfolio-carousel-card .business-logo {
    max-height: 70px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0.2);
    transition: all 0.3s ease;
}

.portfolio-carousel-card:hover .business-logo {
    filter: grayscale(0);
    transform: scale(1.05);
}

.portfolio-carousel-card:hover .portfolio-logo {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-carousel-card h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-size: 1.25rem;
}

.portfolio-carousel-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Swiper Navigation Customization */
.portfolio-swiper .swiper-button-next,
.portfolio-swiper .swiper-button-prev {
    color: #22358c;
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: -25px;
    transition: all 0.3s ease;
}

.portfolio-swiper .swiper-button-next:hover,
.portfolio-swiper .swiper-button-prev:hover {
    background: #22358c;
    color: white;
    transform: scale(1.1);
}

.portfolio-swiper .swiper-button-next::after,
.portfolio-swiper .swiper-button-prev::after {
    font-size: 20px;
    font-weight: 700;
}

/* Swiper Pagination Customization */
.portfolio-swiper .swiper-pagination {
    bottom: 0;
}

.portfolio-swiper .swiper-pagination-bullet {
    background: #22358c;
    opacity: 0.3;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}

.portfolio-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

/* Portfolio Section Updates */

/* Video Showcase Section */
.video-showcase {
    background: #0f0f0f;
    padding: 6rem 0;
    overflow: hidden;
    position: relative;
    user-select: none;
    cursor: grab;
    transition: all 0.2s ease;
    touch-action: none; /* Prevents default touch scrolling */
}

.video-showcase:active {
    cursor: grabbing;
}

.video-showcase.manual-control {
    cursor: grabbing;
}

.video-showcase-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.video-showcase-header h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #22358c 0%, #4a6bb5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.video-showcase-header p {
    color: #94a3b8;
    font-size: 1.25rem;
}

.video-row {
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
    cursor: inherit;
    transition: transform 0.2s ease;
}

.video-row.dragging {
    cursor: grabbing;
}

.video-row.dragging .video-track {
    animation-play-state: paused;
}

.video-track {
    display: flex;
    gap: 2rem;
    width: calc(100% * 2);
    /* CSS animations disabled - controlled by JavaScript */
    /* animation-duration: 40s; */
    /* animation-timing-function: linear; */
    /* animation-iteration-count: infinite; */
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.video-row-right .video-track {
    /* CSS animation disabled - controlled by JavaScript */
    /* animation-name: scrollRight; */
}

.video-row-left .video-track {
    /* CSS animation disabled - controlled by JavaScript */
    /* animation-name: scrollLeft; */
    animation-direction: reverse;
}

/* Pause animations when dragging */
.video-row.dragging .video-track {
    animation-play-state: paused;
}

@keyframes scrollRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollLeft {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.video-item {
    min-width: 400px;
    height: 250px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #1a1a1a;
    transition: transform 0.3s ease, filter 0.3s ease;
    pointer-events: none; /* Prevent video controls during drag */
    flex-shrink: 0;
}

.video-item:hover {
    transform: scale(1.05);
}

.video-showcase.manual-control .video-item {
    pointer-events: none;
}

.video-showcase.manual-control .video-item:hover {
    transform: none;
}

.video-row.dragging .video-item {
    pointer-events: none;
    transition: none;
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    user-select: none;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1.5rem 1.5rem;
    color: white;
    z-index: 2;
    pointer-events: none;
    user-select: none;
}

.video-overlay h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Enhanced animation controls */
.video-showcase:hover .video-track,
.video-showcase.manual-control .video-track {
    animation-play-state: paused;
}

/* Smooth transition when resuming animations */
.video-showcase:not(.manual-control) .video-track {
    animation-play-state: running;
}

/* Mobile Responsive for Video Showcase */
@media (max-width: 768px) {
    .video-showcase {
        padding: 4rem 0;
    }
    
    .video-showcase-header {
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    .video-showcase-header h2 {
        font-size: 2rem;
    }
    
    .video-showcase-header p {
        font-size: 1.1rem;
    }
    
    .video-row {
        margin-bottom: 1.5rem;
    }
    
    .video-track {
        gap: 1rem;
        animation-duration: 30s;
    }
    
    .video-item {
        min-width: 280px;
        height: 180px;
    }
    
    .video-overlay {
        padding: 1.5rem 1rem 1rem;
    }
    
    .video-overlay h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .video-item {
        min-width: 240px;
        height: 150px;
    }
    
    .video-overlay {
        padding: 1rem 0.75rem 0.75rem;
    }
    
    .video-overlay h4 {
        font-size: 0.9rem;
    }
}
.portfolio {
    background: white;
}

.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 15px;
}

.stat h3 {
    font-size: 3rem;
    color: #22358c;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #64748b;
    font-weight: 500;
}

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

.portfolio-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #22358c;
}

.portfolio-logo {
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 15px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.business-logo {
    max-height: 60px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0.2);
    transition: all 0.3s ease;
}

.portfolio-card:hover .business-logo {
    filter: grayscale(0);
    transform: scale(1.05);
}

.portfolio-card:hover .portfolio-logo {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.portfolio-card h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.portfolio-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Team Section */
.team {
    background: #f8fafc;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.team-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #22358c 0%, #4a6bb5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-placeholder {
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-card h3 {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.team-role {
    color: #22358c;
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-bio {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.team-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.team-highlights span {
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    color: #475569;
}
/* CTA Section */
.cta {
    background: linear-gradient(135deg, #22358c 0%, #4a6bb5 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    margin-bottom: 1.5rem;
    color: white;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-quote {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.cta-quote blockquote {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta .btn-primary {
    background: white;
    color: #22358c;
}

.cta .btn-primary:hover {
    background: #f8fafc;
}

.cta .btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.cta .btn-secondary:hover {
    background: white;
    color: #22358c;
}

/* Contact Section */
.contact {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.contact-info > p {
    color: #64748b;
    margin-bottom: 3rem;
    font-size: 1.25rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h4 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #64748b;
}

.contact-form {
    background: #f8fafc;
    padding: 3rem;
    border-radius: 20px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #22358c;
}

.contact-form textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 4rem 0 2rem;
}

/*
.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}
*/

/* Replace by Non */
.footer-content {
    display: flex;
    justify-content: center; /* This is the key for horizontal centering */
    align-items: center;
    text-align: center;      /* This centers the text inside */
    margin-bottom: 3rem;
}

.footer-brand h3 {
    margin-bottom: 1rem;
    color: white;
}

.footer-logo {
    height: 32px;
    width: auto;
    max-width: 160px;
    margin-bottom: 1rem;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Makes the logo white for dark footer */
}

.footer-brand p {
    color: #94a3b8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #22358c;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #94a3b8;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}
/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85vw;
        max-width: 300px;
        height: 100vh; /* Use vh for better mobile support */
        background: #ffffff;
        border-left: 1px solid rgba(0, 0, 0, 0.1);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        /* Improve scrolling behavior */
        overscroll-behavior: contain;
        touch-action: pan-y;
        /* Prevent momentum scrolling from affecting parent */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* Light theme mobile menu (for dark backgrounds) */
    .navbar.nav-light .nav-menu {
        background: #ffffff;
        border-left: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 0 0 10px 0;
        width: 100%;
        flex-shrink: 0;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        padding: 15px 0;
        display: flex;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        color: #1a1a1a;
        font-weight: 600;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
        transition: all 0.3s ease;
        word-wrap: break-word;
        overflow-wrap: break-word;
        touch-action: manipulation;
        min-height: 44px;
        align-items: center;
        text-decoration: none;
        cursor: pointer;
        /* Improve touch responsiveness */
        -webkit-tap-highlight-color: rgba(34, 53, 140, 0.1);
        tap-highlight-color: rgba(34, 53, 140, 0.1);
    }
    
    /* Light theme mobile menu links (solid white background) */
    .navbar.nav-light .nav-menu a {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        color: #1a1a1a;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    }
    
    /* Extra small screens */
    @media (max-width: 480px) {
        .nav-menu {
            width: 90vw;
            padding: 80px 15px 20px;
        }
        
        .nav-menu a {
            font-size: 1rem;
            padding: 12px 0;
            min-height: 40px;
        }
        
        .language-switcher {
            flex-direction: row;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin: 10px 0 20px 0;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            width: 100%;
        }
        
        .lang-btn {
            width: auto;
            min-width: 60px;
            padding: 8px 12px;
            margin: 5px 0;
        }
    }
    
    .nav-cta {
        margin-top: 20px;
        text-align: center;
        border-radius: 25px !important;
        border-bottom: none !important;
        background: rgba(34, 53, 140, 0.9) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        text-shadow: none !important;
    }
    
    /* Light theme mobile CTA (for dark backgrounds) */
    .navbar.nav-light .nav-cta {
        background: rgba(74, 107, 181, 0.9) !important;
    }
    
    /* Language switcher responsive */
    .language-switcher {
        display: flex !important;
        margin: 20px 0 20px 0;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        justify-content: center;
        width: 100%;
        gap: 0.5rem;
    }
    
    .nav-menu .lang-btn {
        flex: 1;
        max-width: 80px;
        background: rgba(34, 53, 140, 0.1);
        border: 1px solid rgba(34, 53, 140, 0.3);
        color: #22358c;
        padding: 0.75rem 1rem;
        border-radius: 25px;
        font-size: 0.875rem;
        font-weight: 600;
        text-align: center;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        text-shadow: none;
    }
    
    .nav-menu .lang-btn.active {
        background: rgba(34, 53, 140, 0.9);
        color: white;
        border-color: #22358c;
    }
    
    .nav-menu .lang-btn:hover {
        background: rgba(34, 53, 140, 0.2);
        transform: none;
        box-shadow: none;
    }
    
    .nav-menu .lang-btn.active:hover {
        background: rgba(34, 53, 140, 1);
    }
    
    /* Hero */
    .hero {
        padding: 6rem 0 4rem;
        text-align: center;
    }
    
    .hero-video {
        /* Ensure video covers properly on mobile and stays centered */
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        object-position: center center;
        /* Additional centering for mobile devices */
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    
    .hero-video-overlay {
        /* Overlay removed for full video visibility */
        background: transparent;
    }
    
    .hero-title {
        font-size: 2.5rem;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    /* Sections */
    section {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    /* Grids */
    .approach-grid,
    .focus-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .portfolio-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Portfolio logos responsive */
    .portfolio-logo {
        height: 70px;
        margin-bottom: 1rem;
        padding: 0.75rem;
    }
    
    .business-logo {
        max-height: 50px;
        max-width: 150px;
    }
    
    /* Portfolio Carousel Mobile */
    .portfolio-carousel-card {
        padding: 1.5rem;
    }
    
    .portfolio-carousel-card .portfolio-logo {
        height: 80px;
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .portfolio-carousel-card .business-logo {
        max-height: 60px;
        max-width: 160px;
    }
    
    .portfolio-carousel-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .portfolio-carousel-card p {
        font-size: 0.9rem;
    }
    
    .portfolio-swiper .swiper-button-next,
    .portfolio-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }
    
    .portfolio-swiper .swiper-button-next::after,
    .portfolio-swiper .swiper-button-prev::after {
        font-size: 16px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* CTA */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Logo responsive */
    .nav-logo .logo-img {
        height: 32px;
        max-width: 140px;
    }
    
    .footer-logo {
        height: 28px;
        max-width: 120px;
    }
    
    /* Quote author responsive */
    .quote-author {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .quote-author-img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    }
    
    .hero-quote {
        padding: 1.5rem;
    }
    
    .hero-quote blockquote {
        font-size: 1.2rem;
    }
    
    .approach-card,
    .team-card {
        padding: 2rem 1.5rem;
    }
    
    .portfolio-stats {
        grid-template-columns: 1fr;
    }
}

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

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

.hero-content,
.section-header,
.approach-card,
.focus-item,
.portfolio-card,
.team-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus States */
.btn-primary:focus,
.btn-secondary:focus,
.nav-menu a:focus {
    outline: 2px solid #22358c;
    outline-offset: 2px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(34, 53, 140, 0.1);
}