/* Hide Google Translate Banner */
.goog-te-banner-frame, 
.goog-te-balloon-frame,
.goog-te-gadget-icon,
#goog-gt-tt,
.goog-te-spinner-pos {
    display: none !important;
}
body {
    top: 0 !important;
}
.goog-tooltip {
    display: none !important;
}
.goog-tooltip:hover {
    display: none !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* CSS Setup for Modern Sub Contract Web */
:root {
    --primary: #0a1930;
    /* Deep Navy Blue */
    --primary-light: #172a45;
    --primary-dark: #020c1b;
    --accent: #64ffda;
    --accent-blue: #007bff;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #ccd6f6;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Prompt', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* Typography & Utils */
h1,
h2,
h3,
h4 {
    color: var(--primary);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.bg-light {
    background-color: var(--bg-light);
}

.mt-4 {
    margin-top: 2rem;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 30px;
    border-radius: 2px;
}

.divider.align-left {
    margin-left: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 30px rgba(10, 25, 48, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(10, 25, 48, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
    background: transparent;
}

.navbar.scrolled {
    background: var(--white);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

@media (min-width: 1101px) {
    .navbar.scrolled .nav-links a {
        color: var(--primary);
    }
}

.navbar.scrolled .btn-primary,
.navbar.scrolled .nav-links a.btn-primary,
.nav-links .btn-primary {
    color: var(--white) !important;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 5px;
}

.logo:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.logo:active {
    transform: scale(0.96);
}

.logo img {
    height: 70px !important;
    width: auto !important;
    margin-left: -5px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: brightness(1.1) contrast(1.05) drop-shadow(0 4px 15px rgba(0,0,0,0.15));
}

@media (max-width: 1400px) {
    .logo img {
        height: 60px !important;
    }
}

@media (max-width: 1200px) {
    .logo img {
        height: 50px !important;
    }
}

.navbar.scrolled .logo img {
    height: 60px !important;
    filter: brightness(1) contrast(1) drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

@media (max-width: 1200px) {
    .navbar.scrolled .logo img {
        height: 48px !important;
    }
}

.logo:hover img {
    transform: scale(1.08);
    filter: brightness(1.35) contrast(1.1) saturate(1.25) 
            drop-shadow(0 0 25px rgba(255, 255, 255, 0.5)) 
            drop-shadow(0 6px 15px rgba(28, 62, 114, 0.4));
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

@media (max-width: 1400px) {
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 0.95rem;
    }
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .nav-links a:not(.btn)::after {
    background: var(--primary);
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 30px;
    height: 3px;
    background: var(--white);
    margin: 6px 0;
    transition: var(--transition);
    border-radius: 3px;
}

.navbar.scrolled .line {
    background: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 48, 0.9) 0%, rgba(10, 25, 48, 0.6) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.07);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 74, 173, 0.08);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(10, 25, 48, 0.15);
    border-color: var(--primary);
}

.service-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.icon-circle {
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(10, 25, 48, 0.3);
    border: 3px solid var(--white);
}

.service-content {
    padding: 30px 20px;
}

.service-content h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.service-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* About Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.check-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.check-list i {
    color: var(--primary);
    font-size: 1.2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 5px solid var(--primary);
    transition: all 0.4s ease;
}

.stat-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(10, 25, 48, 0.12);
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact CTA */
.cta {
    background: var(--primary);
    color: var(--white);
    padding: 100px 0;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta p {
    color: var(--text-light);
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 20px;
    max-width: 800px;
    margin: 40px auto 0;
}

.contact-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.c-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.c-item i {
    font-size: 2rem;
    color: var(--white);
}

/* Footer */
footer {
    background: #111111;
    color: #e0e0e0;
    padding: 70px 0 20px;
    border-top: 5px solid #004aad;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand .logo-text {
    display: block;
    margin-bottom: 0px;
}

.footer-brand .logo-text img {
    height: 80px !important;
    margin-bottom: -10px !important;
    margin-left: -12px !important;
    transition: all 0.3s ease;
}

.footer-brand .logo-text img:hover {
    transform: scale(1.05);
}

.footer-brand .logo-text span {
    color: #ffffff;
    font-weight: 400;
    font-size: 1.1rem;
    display: block;
    margin-top: -5px;
}

.footer-brand p {
    color: #a0aab2;
    margin-bottom: 25px;
    font-size: 0.95rem;
    max-width: 280px;
}

.social-icons-square {
    display: flex;
    gap: 15px;
}

.social-icons-square a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #1c2b4b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-icons-square a:hover {
    background: #004aad;
    transform: translateY(-3px);
}

.footer-links h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: #a0aab2;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-contact .c-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: #a0aab2;
    font-size: 0.95rem;
}

.footer-contact .c-item i {
    color: #004aad;
    font-size: 1.2rem;
    margin-top: 3px;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0 auto 20px;
    max-width: 1200px;
}

.footer-bottom {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

/* Page Header for subpages */
.page-header {
    min-height: 400px; /* Reduced from 60vh for better proportional fit */
    aspect-ratio: 16 / 6; /* Maintain banner proportions */
    background-color: var(--primary); /* Fallback */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px; /* Adjusted padding */
    text-align: center;
    color: var(--white);
    position: relative;
}

@supports not (aspect-ratio: 16 / 6) {
    .page-header {
        min-height: 450px;
    }
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    object-fit: cover;
    z-index: 1;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.6) 100%); /* Improved neutral overlay */
    z-index: 2;
}

.page-header .container {
    position: relative;
    z-index: 5; /* Keep text above everything */
}

.page-header h1 {
    color: var(--white) !important;
    font-size: 2.5rem; /* Reduced from 2.8rem to fit long Thai titles in one line */
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    word-wrap: normal;
    white-space: nowrap; /* Force single line on PC */
    max-width: 100%;
}

@media (max-width: 1200px) {
    .page-header h1 {
        white-space: normal; /* Allow wrapping on smaller screens */
        font-size: 2.2rem;
    }
}

.page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header {
        min-height: 350px;
        padding: 130px 20px 70px;
    }

    .privacy-content, .terms-content {
        padding: 40px 30px;
        margin-top: -40px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 110px 15px 60px !important; /* Higher top padding to clear fixed navbar */
        min-height: 280px !important;
        height: auto !important;
        aspect-ratio: auto !important;
        display: block !important; /* Simpler layout for mobile */
    }
    
    .page-header .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .page-header h1 {
        font-size: 1.65rem !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
    }
    
    .page-header p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        margin-bottom: 15px !important;
        max-width: 100% !important;
    }

    .page-header .btn {
        margin-top: 15px !important;
        padding: 12px 25px !important;
        font-size: 0.95rem !important;
        display: inline-block !important; /* Ensure visibility */
    }

    /* Animations are now enabled on mobile for consistency */
    .page-header .fade-up, 
    .page-header .fade-in {
        /* Removed forced visibility to allow scroll animations */
    }
}


/* Animations - Initial Hidden State */
.fade-up,
.fade-in,
.slide-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.fade-up {
    transform: translateY(30px);
}

.slide-up {
    transform: translateY(50px);
}

.fade-in-left {
    transform: translateX(-50px);
}

.fade-in-right {
    transform: translateX(50px);
}

/* Delay classes */
.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Active class added by JS */
.in-view {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsiveness */
@media (max-width: 991px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1200px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 20px;
        bottom: 20px;
        height: calc(100vh - 40px);
        width: 280px !important; /* Constant width for phones */
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        box-shadow: -10px 0 40px rgba(10, 25, 48, 0.15);
        border-radius: 30px 0 0 30px;
        transition: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1000;
        overflow-y: auto;
    }

    @media (min-width: 768px) {
        .nav-links {
            width: 350px !important; /* Constant width for iPad/Tablet */
        }
    }

    /* Decorative Top Section */
    .nav-links::before {
        content: 'MENU';
        display: block;
        text-align: center;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 3px;
        color: var(--primary);
        opacity: 0.3;
        margin-bottom: 25px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--primary) !important;
        font-size: 1.15rem !important;
        font-weight: 500 !important;
        width: 100%;
        padding: 15px 20px !important;
        margin-bottom: 8px;
        border-radius: 12px;
        border: none;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
    }

    .nav-links a.active, 
    .nav-links a:hover {
        background: var(--primary) !important;
        color: #ffffff !important; /* Force white text for visibility */
        padding-left: 25px;
        box-shadow: 0 5px 15px rgba(10, 25, 48, 0.2);
    }

    .hamburger {
        display: block;
        z-index: 1101;
    }

    .hamburger.active .line {
        background: var(--primary);
    }

    .hamburger.active .line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    /* General text boost for tablet readability */
    body {
        font-size: 17px;
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 260px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 15px 0;
    z-index: 1000;

    /* Animation initial state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links a.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a.dropdown-item i {
    width: 25px;
    margin-right: 12px;
    color: var(--primary);
    font-size: 1.1rem;
    text-align: center;
}

.nav-links a.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary);
    transform: translateX(5px);
}

/* First item special styling (HR SMART LABOUR separator) */
.dropdown-menu li:first-child a.dropdown-item {
    border-bottom: 1px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 1200px) {
    .dropdown-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        position: static;
        box-shadow: none;
        background-color: transparent;
        visibility: visible;
        opacity: 1;
        transform: none;
        display: none;
        width: 100%;
        padding: 0;
    }

    .dropdown.active .dropdown-menu {
        display: block;
        max-height: 1000px;
        opacity: 1;
        visibility: visible;
        margin: 5px 0 15px;
        background: rgba(10, 25, 48, 0.03);
        border-radius: 12px;
        padding: 10px 0;
    }

    .dropdown.active > a {
        background: var(--primary);
        color: var(--white) !important;
    }

    .dropdown.active > a i {
        transform: rotate(180deg);
        color: var(--white);
    }

    .nav-links a.dropdown-item {
        color: var(--primary);
        padding: 10px 20px 10px 35px;
        font-size: 0.95rem;
        border: none;
    }

    .nav-links a.dropdown-item:hover {
        background: transparent;
        color: var(--primary);
        font-weight: 600;
        padding-left: 40px;
        transform: none;
    }

    .dropdown-menu li:first-child a.dropdown-item {
        border-bottom: none;
        color: var(--primary);
    }
}

/* Modal System Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 48, 0.85); /* Deep Navy semi-transparent */
    overflow-y: auto;
    transition: opacity 0.3s ease-in-out;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    width: 90%;
    max-width: 900px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
    margin: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 25px 30px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-text h2 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.header-text p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.8;
}

.close-modal {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.service-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10,25,48,0.95) 0%, transparent 100%);
    color: var(--white);
    padding: 40px 30px 20px;
}

.image-overlay h3 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    color: var(--white);
}

.image-overlay p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
}

.service-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 30px;
    background: var(--bg-light);
}

.feature-item {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 22px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.feature-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    border-color: rgba(59, 130, 246, 0.2);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #3b82f6;
    font-size: 22px;
}

.feature-text h4 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    color: var(--primary);
}

.feature-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.service-highlights {
    padding: 30px;
    background: var(--white);
}

.service-highlights h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-light);
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: var(--text-main);
    font-size: 1rem;
}

.highlight-item i {
    color: #10b981;
    margin-right: 12px;
    font-size: 20px;
    margin-top: 3px;
}

@media (max-width: 768px) {
    .service-features {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .modal-content {
        width: 95%;
        margin: 10px;
        max-height: 95vh;
    }
    .header-text h2 {
        font-size: 1.2rem;
    }
}

.modal-footer {
    padding: 20px 30px;
    background: var(--bg-light);
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

@media (max-width: 480px) {
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn, .modal-footer .btn-outline {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

/* Language Switcher - Premium Globe Style */
.lang-switcher-container {
    position: relative;
    margin-left: 20px;
    display: flex;
    align-items: center;
}

.lang-btn-globe {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.navbar.scrolled .lang-btn-globe {
    color: var(--primary);
}

.lang-btn-globe:hover {
    transform: scale(1.1);
    color: #10b981;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 15px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
}

.lang-switcher-container:hover .lang-dropdown,
.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    width: 100%;
    border: none;
    background: none;
    text-align: left;
}

.lang-option:hover, .lang-option.active {
    background: var(--bg-light);
    color: var(--primary);
}

.lang-option img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

@media (max-width: 1200px) {
    /* Language Switcher integrated as a Globe Dropdown in Mobile Menu */
    .lang-switcher-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 20px 0 !important;
        border-top: 1px solid rgba(0,0,0,0.05);
        width: 100% !important;
        order: 10 !important;
        position: static !important;
        margin-top: 20px !important;
    }

    .lang-btn-globe {
        display: flex !important;
        background: var(--bg-light) !important;
        color: var(--primary) !important;
        padding: 12px 25px !important;
        border-radius: 30px !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        gap: 10px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
        border: 1px solid #e0e6ed !important;
        cursor: pointer;
    }

    .lang-dropdown {
        display: none !important; /* Managed by .active toggle in JS */
        position: static !important;
        width: 100% !important;
        flex-direction: column !important;
        align-items: center !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 15px 0 !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }

    .lang-dropdown.active {
        display: flex !important;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .lang-option {
        width: 80% !important;
        max-width: 200px;
        justify-content: center !important;
        margin-bottom: 8px !important;
        border-radius: 20px !important;
        background: var(--white) !important;
        border: 1px solid #eee !important;
        padding: 10px !important;
    }

    .lang-option.active {
        background: var(--primary) !important;
        color: var(--white) !important;
        border: none !important;
    }

    /* Animations are now enabled on mobile for consistency with PC */
    /* .fade-up, .fade-in, .slide-up, .fade-in-left, .fade-in-right {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        transition: none !important;
    } */
}

/* Tech Card / Solution Card Enhancements */
.tech-card {
    display: block;
    background: var(--white);
    border-radius: 25px;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

.tech-card:hover {
    transform: translateY(-15px) scale(1.01);
    box-shadow: 0 35px 80px rgba(10, 25, 48, 0.25);
}

.tech-card img,
.tech-card video {
    border-radius: 18px; /* Matching card aesthetics */
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.platform-showcase {
    background: var(--bg-light);
    border-radius: 25px;
    padding: 60px 40px;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.02), 0 15px 45px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

.section-light {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.section-off-white {
    background-color: #fcfcfc;
}