:root {
    /* "Premium Industrial" Palette */
    --bg-dark: #f4f6f8;
    /* Sophisticated light cool gray */
    --bg-card: #ffffff;
    --bg-card-hover: #f9fafb;

    --text-primary: #0f172a;
    /* Rich dark slate */
    --text-secondary: #475569;
    /* Balanced slate for readability */
    --text-muted: #94a3b8;

    /* Accents */
    --accent-primary: #0f4c81;
    /* Deep Corporate Navy - Trust & Authority */
    --accent-secondary: #10b981;
    /* Emerald tech green */
    --accent-warning: #f59e0b;
    --accent-success: #10b981;

    --border-color: #e2e8f0;
    --card-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    /* Soft, diffused premium shadow */

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Layout */
    --container-width: 1280px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;

    /* Modern Subtle Grid Pattern Background */
    background-image:
        linear-gradient(rgba(15, 76, 129, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 76, 129, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    background-attachment: fixed;
}

/* We override body background if a video hero is present */
body:has(.video-hero) {
    background-image: none;
    background-color: var(--bg-dark);
    /* Ensure fallback color */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

/* Utility / Common */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.mono {
    font-family: var(--font-mono);
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--accent-primary);
    /* Solid color for corporate trust */
    background: none;
    -webkit-text-fill-color: initial;
}

/* ========== Independent Fixed Logo ========== */
.site-logo-fixed {
    position: fixed;
    top: 0;
    left: 90px;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 22px 34px 22px 28px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 2px 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-logo-fixed img {
    height: 110px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Shrink logo slightly when scrolled */
.site-logo-fixed.scrolled {
    padding: 12px 26px 12px 22px;
}

.site-logo-fixed.scrolled img {
    height: 60px;
}

/* Header / Navbar - Premium Dark Redesign */
.site-header {
    background: rgba(15, 23, 42, 0.85);
    /* Deep Slate Navy */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
    padding-left: 240px; /* Make room for the independent logo */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}

.logo img {
    height: 55px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo span {
    color: var(--accent-primary);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
    font-family: inherit;
    font-weight: inherit;
}

.lang-btn:hover {
    color: #ffffff;
}

.lang-btn.active {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: var(--accent-primary);
    text-underline-offset: 4px;
}

.lang-divider {
    color: rgba(255, 255, 255, 0.15);
}

.header-actions {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.main-nav {
    background: rgba(255, 255, 255, 0.06);
    padding: 6px 24px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.main-nav > ul {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    padding: 6px 4px;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
}

/* Modern Animated Underline */
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    border-radius: 2px;
    background: var(--accent-primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #17365d 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 76, 129, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(15, 76, 129, 0.35);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--text-secondary);
}

/* Hero Section with Video Background */
.hero-section.video-hero {
    position: relative;
    padding: 160px 0 120px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Remove the old background-image from body for proper video display */
}

/* We override body background if a video hero is present */
/* Handled in main body selector now */

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

#heroVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    transform: scale(1.12);
    /* Fine-tuned zoom to hide Veo with less quality loss */
    filter: contrast(1.08) saturate(1.15) brightness(1.02);
    /* Enhances perceived video quality without heavy file sizes */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient overlay to ensure text readability against the video */
    background: linear-gradient(to right,
            rgba(248, 250, 252, 0.95) 0%,
            rgba(248, 250, 252, 0.8) 50%,
            rgba(248, 250, 252, 0.4) 100%);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 750px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-success);
    border-radius: 50%;
}

.hero-section h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* Services Section */
.services-section {
    padding: 120px 0;
    background-color: #ffffff;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg stroke='%230f4c81' stroke-width='1.5' stroke-opacity='0.05' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M40,0 L40,60 L80,100 L80,160 L40,200 M120,0 L120,40 L160,80 L160,140 L120,180 L120,200 M0,40 L20,40 L30,50 L30,80 M200,120 L180,120 L170,130 L170,160 M80,20 L100,40 L100,70 L120,90 M160,20 L180,40 L180,60 M20,160 L40,180 L40,200'/%3E%3Ccircle cx='80' cy='100' r='3.5' fill='%230f4c81' fill-opacity='0.05'/%3E%3Ccircle cx='160' cy='80' r='3.5' fill='%230f4c81' fill-opacity='0.05'/%3E%3Ccircle cx='30' cy='80' r='3.5' fill='%230f4c81' fill-opacity='0.05'/%3E%3Ccircle cx='170' cy='160' r='3.5' fill='%230f4c81' fill-opacity='0.05'/%3E%3Ccircle cx='80' cy='20' r='3.5' fill='%230f4c81' fill-opacity='0.05'/%3E%3Ccircle cx='120' cy='90' r='3.5' fill='%230f4c81' fill-opacity='0.05'/%3E%3Ccircle cx='160' cy='20' r='3.5' fill='%230f4c81' fill-opacity='0.05'/%3E%3Ccircle cx='180' cy='60' r='3.5' fill='%230f4c81' fill-opacity='0.05'/%3E%3Ccircle cx='20' cy='160' r='3.5' fill='%230f4c81' fill-opacity='0.05'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(180deg, #ffffff 0%, var(--bg-dark) 100%);
    position: relative;
}

/* Subtle decorative blur blobs for background depth */
.services-section::before,
.services-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    filter: blur(80px);
}

.services-section::before {
    top: 10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: rgba(15, 76, 129, 0.04);
}

.services-section::after {
    bottom: 5%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(16, 185, 129, 0.03);
    /* Subtle emerald tint */
}

.section-header {
    margin-bottom: 70px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.services-grid {
    display: grid;
    /* Force 4 columns on desktop, wrap on smaller screens */
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.services-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 80px;
    row-gap: 40px;
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
    .services-list-grid {
        position: relative;
    }

    .services-list-grid::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: calc(50% - 1px);
        width: 2px; /* Thicker trunk */
        background: linear-gradient(to bottom, 
            transparent 0%, 
            rgba(15, 76, 129, 0.2) 10%, 
            rgba(15, 76, 129, 0.2) 90%, 
            transparent 100%);
        pointer-events: none;
        z-index: 0;
    }

    .services-list-grid .service-card::before {
        content: '';
        position: absolute;
        width: 40px; 
        height: 2px; /* Thicker branch */
        background: rgba(15, 76, 129, 0.2);
        top: 50%;
        transition: all 0.35s ease;
        z-index: 1;
    }

    .services-list-grid .service-card:nth-child(odd)::before {
        right: -40px;
    }

    .services-list-grid .service-card:nth-child(even)::before {
        left: -40px;
    }

    .services-list-grid .service-card::after {
        content: '';
        position: absolute;
        width: 10px;
        height: 10px;
        background: var(--accent-primary);
        border-radius: 50%;
        top: calc(50% - 5px);
        opacity: 0.15; /* Always slightly visible */
        transition: all 0.35s ease;
        z-index: 2;
        box-shadow: 0 0 12px rgba(15, 76, 129, 0.2);
    }

    .services-list-grid .service-card:nth-child(odd)::after {
        right: -45px;
    }

    .services-list-grid .service-card:nth-child(even)::after {
        left: -45px;
    }

    .services-list-grid .service-card:hover::before {
        background: var(--accent-primary);
        opacity: 1;
        width: 42px; /* Connect deeper */
    }

    .services-list-grid .service-card:hover::after {
        opacity: 1;
        transform: scale(1.4);
        background: var(--accent-primary);
        box-shadow: 0 0 15px var(--accent-primary);
    }
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid,
    .services-list-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: #ffffff;
    border-radius: 20px;
    /* overflow: hidden; REMOVED to allow branches to be visible */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative; /* Ensure it can contain branches correctly */
}

.service-card.padding-rich {
    padding: 50px 40px;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    display: inline-block;
}

/* Ensure sub-elements maintain the card's rounded corners */
.service-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.service-card-content {
    border-radius: 0 0 20px 20px;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.1);
}

.service-card-content {
    padding: 35px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-card-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #ebebeb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    background: #ffffff;
    transition: all 0.3s ease;
    margin-top: auto;
}

.service-card-btn:hover {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
    transform: rotate(45deg);
}

.service-card-btn svg {
    width: 20px;
    height: 20px;
}

/* Custom Highlight Section */
.highlight-section {
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.6) 0%, rgba(10, 37, 64, 0.8) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Transparent glassmorphism navy gradient */
    padding: 140px 0;
    position: relative;
    clip-path: polygon(0 0, 100% 4vw, 100% 100%, 0 calc(100% - 4vw));
    margin-top: -4vw;
    z-index: 5;
    color: #ffffff;
}

.highlight-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

.highlight-title {
    flex: 1;
}

.highlight-title h2 {
    font-size: 2.8rem;
    font-weight: 500;
    line-height: 1.3;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.highlight-content {
    flex: 1;
    max-width: 550px;
}

.highlight-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    /* Slightly muted for perfect contrast */
    font-weight: 400;
}

@media (max-width: 992px) {
    .highlight-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .highlight-section {
        padding: 100px 0;
        clip-path: polygon(0 0, 100% 6vw, 100% 100%, 0 calc(100% - 6vw));
        margin-top: -6vw;
    }
}

/* Feature Showcase Section */
.feature-showcase-section {
    padding: 120px 0;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg stroke='%230f4c81' stroke-width='1.5' stroke-opacity='0.07' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M40,0 L40,60 L80,100 L80,160 L40,200 M120,0 L120,40 L160,80 L160,140 L120,180 L120,200 M0,40 L20,40 L30,50 L30,80 M200,120 L180,120 L170,130 L170,160 M80,20 L100,40 L100,70 L120,90 M160,20 L180,40 L180,60 M20,160 L40,180 L40,200'/%3E%3Ccircle cx='80' cy='100' r='3.5' fill='%230f4c81' fill-opacity='0.07'/%3E%3Ccircle cx='160' cy='80' r='3.5' fill='%230f4c81' fill-opacity='0.07'/%3E%3Ccircle cx='30' cy='80' r='3.5' fill='%230f4c81' fill-opacity='0.07'/%3E%3Ccircle cx='170' cy='160' r='3.5' fill='%230f4c81' fill-opacity='0.07'/%3E%3Ccircle cx='80' cy='20' r='3.5' fill='%230f4c81' fill-opacity='0.07'/%3E%3Ccircle cx='120' cy='90' r='3.5' fill='%230f4c81' fill-opacity='0.07'/%3E%3Ccircle cx='160' cy='20' r='3.5' fill='%230f4c81' fill-opacity='0.07'/%3E%3Ccircle cx='180' cy='60' r='3.5' fill='%230f4c81' fill-opacity='0.07'/%3E%3Ccircle cx='20' cy='160' r='3.5' fill='%230f4c81' fill-opacity='0.07'/%3E%3C/g%3E%3C/svg%3E");
    position: relative;
    z-index: 10;
}

.feature-showcase-container {
    display: flex;
    align-items: flex-start;
    gap: 80px;
}

.feature-visual {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

.floating-img {
    width: 100%;
    max-width: 550px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    /* Soft elegant shadow */
    animation: floatingObj 6s ease-in-out infinite;
    /* Floating effect */
}

@keyframes floatingObj {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.feature-text {
    flex: 1;
    padding-top: 20px;
}

.feature-text h2 {
    font-size: 2.8rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.feature-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.feature-grid {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-box {
    width: 48px;
    height: 48px;
    background: var(--text-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

@media (max-width: 992px) {
    .feature-showcase-container {
        flex-direction: column;
        gap: 60px;
    }

    .feature-visual {
        justify-content: center;
        order: -1;
        /* Image stays on top in mobile */
    }

    .feature-text h2 {
        font-size: 2.3rem;
    }

    .feature-grid {
        flex-direction: column;
        gap: 20px;
    }
}

/* Projects Section */
.projects-section {
    padding: 100px 0;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg stroke='%230f4c81' stroke-width='1.5' stroke-opacity='0.07' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M40,0 L40,60 L80,100 L80,160 L40,200 M120,0 L120,40 L160,80 L160,140 L120,180 L120,200 M0,40 L20,40 L30,50 L30,80 M200,120 L180,120 L170,130 L170,160 M80,20 L100,40 L100,70 L120,90 M160,20 L180,40 L180,60 M20,160 L40,180 L40,200'/%3E%3Ccircle cx='80' cy='100' r='3.5' fill='%230f4c81' fill-opacity='0.07'/%3E%3Ccircle cx='160' cy='80' r='3.5' fill='%230f4c81' fill-opacity='0.07'/%3E%3Ccircle cx='30' cy='80' r='3.5' fill='%230f4c81' fill-opacity='0.07'/%3E%3Ccircle cx='170' cy='160' r='3.5' fill='%230f4c81' fill-opacity='0.07'/%3E%3Ccircle cx='80' cy='20' r='3.5' fill='%230f4c81' fill-opacity='0.07'/%3E%3Ccircle cx='120' cy='90' r='3.5' fill='%230f4c81' fill-opacity='0.07'/%3E%3Ccircle cx='160' cy='20' r='3.5' fill='%230f4c81' fill-opacity='0.07'/%3E%3Ccircle cx='180' cy='60' r='3.5' fill='%230f4c81' fill-opacity='0.07'/%3E%3Ccircle cx='20' cy='160' r='3.5' fill='%230f4c81' fill-opacity='0.07'/%3E%3C/g%3E%3C/svg%3E");
}

.project-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.project-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 32px 40px;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    box-shadow: var(--card-shadow);
}

.project-card:hover {
    border-color: var(--accent-primary);
    background: #f8fafc;
}

.project-info h3 {
    font-size: 1.35rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.project-client {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    gap: 10px;
}

.tag {
    font-size: 0.8rem;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 100px;
    color: var(--text-secondary);
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.project-status-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dcfce7;
    color: var(--accent-success);
    font-size: 1.2rem;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    /* Use transparent so the global site background (grid pattern) shows through */
    background: transparent;
    position: relative;
    z-index: 1;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.glass-form {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}


.form-header {
    margin-bottom: 30px;
    text-align: center;
}

.form-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-header p {
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 14px 18px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.1);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #17365d 100%);
    color: #ffffff;
    border: none;
    padding: 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(15, 76, 129, 0.2);
}

.btn-submit:hover {
    box-shadow: 0 8px 24px rgba(15, 76, 129, 0.35);
    transform: translateY(-2px);
}

/* Rich Footer Redesign */
.site-footer {
    background: var(--accent-primary);
    color: #ffffff;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

/* Subtle circuit pattern for footer background */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg stroke='%23ffffff' stroke-width='1.5' stroke-opacity='0.05' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M40,0 L40,60 L80,100 L80,160 L40,200 M120,0 L120,40 L160,80 L160,140 L120,180 L120,200 M0,40 L20,40 L30,50 L30,80 M200,120 L180,120 L170,130 L170,160 M80,20 L100,40 L100,70 L120,90 M160,20 L180,40 L180,60 M20,160 L40,180 L40,200'/%3E%3Ccircle cx='80' cy='100' r='3.5' fill='%23ffffff' fill-opacity='0.05'/%3E%3Ccircle cx='160' cy='80' r='3.5' fill='%23ffffff' fill-opacity='0.05'/%3E%3Ccircle cx='30' cy='80' r='3.5' fill='%23ffffff' fill-opacity='0.05'/%3E%3Ccircle cx='170' cy='160' r='3.5' fill='%23ffffff' fill-opacity='0.05'/%3E%3Ccircle cx='80' cy='20' r='3.5' fill='%23ffffff' fill-opacity='0.05'/%3E%3Ccircle cx='120' cy='90' r='3.5' fill='%23ffffff' fill-opacity='0.05'/%3E%3Ccircle cx='160' cy='20' r='3.5' fill='%23ffffff' fill-opacity='0.05'/%3E%3Ccircle cx='180' cy='60' r='3.5' fill='%23ffffff' fill-opacity='0.05'/%3E%3Ccircle cx='20' cy='160' r='3.5' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr 3fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.footer-brand .logo {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 12px;
    display: block;
    max-width: 160px;
    height: auto;
}

.footer-brand .logo img {
    height: 50px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.footer-brand .logo span {
    color: var(--accent-secondary);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    max-width: 250px;
}

.site-footer h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 24px;
    font-weight: 700;
}

.contact-details {
    display: flex;
    gap: 30px;
}

.contact-col p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.contact-col strong {
    color: #ffffff;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.newsletter-form label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--accent-secondary);
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--accent-secondary);
}

.checkbox-wrapper label {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.newsletter-form .btn-primary {
    background: var(--text-primary);
    color: #ffffff;
    width: 100%;
    padding: 12px;
    box-shadow: none;
    border: 1px solid transparent;
}

.newsletter-form .btn-primary:hover {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.footer-social-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 45px;
}

.footer-social-list a {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s;
    display: inline-block;
}

.footer-social-list a:hover {
    transform: translateX(4px);
    color: var(--accent-secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: left;
    position: relative;
    z-index: 1;
}

.footer-bottom .copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Responsive Footer */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-social-list {
        padding-top: 0;
        flex-direction: row;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-details {
        flex-direction: column;
        gap: 16px;
    }
}

/* Blog Section */
.blog-section {
    background: transparent;
    position: relative;
    z-index: 1;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-list-item {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 30px 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.blog-list-item:hover {
    background: rgba(241, 245, 249, 0.4);
    /* subtle hover */
    padding-left: 15px;
    padding-right: 5px;
    border-color: var(--accent-primary);
}

.blog-list-item:last-child {
    border-bottom: none;
}

.blog-list-content {
    display: flex;
    flex-direction: column;
}


.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.blog-meta .tag {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.blog-list-content h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.4;
    font-weight: 700;
}

.blog-list-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-link {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.blog-link:hover {
    gap: 12px;
}

/* Mobile */
html,
body {
    overflow-x: hidden !important;
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 10px;
    padding: 4px;
}

@media (max-width: 768px) {
    .site-header {
        padding: 12px 0;
        padding-left: 80px; /* Smaller space for logo on mobile */
    }

    .site-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }

    .container {
        padding: 0 16px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Hide get quote button aggressively on mobile to save space */
    .header-actions .btn-primary {
        display: none !important;
    }

    .lang-switcher {
        margin-right: 5px;
        font-size: 0.8rem;
    }

    /* Fixed logo on mobile */
    .site-logo-fixed {
        top: 8px;
        left: 12px;
    }

    .site-logo-fixed img {
        height: 50px;
    }

    .site-logo-fixed.scrolled img {
        height: 38px;
    }

    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 24px;
        border-radius: 0 0 24px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }

    .main-nav.active {
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .main-nav a::after {
        display: none;
        /* Hide animated underline on mobile for simpler look */
    }

    .hero-section {
        padding-top: 120px;
    }

    .hero-section h1 {
        font-size: 2.25rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
        margin-top: 60px;
    }

    .project-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .project-tags {
        flex-wrap: wrap;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggering delays for lists/grids */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

/* Page Loader */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    /* Match site theme */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

#page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(15, 76, 129, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-primary);
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    /* Playful corporate elastic spin */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Dropdown Variables */
.nav-dropdown {
    position: relative;
    padding: 6px 0; /* Add padding for safe hover zone */
}

/* Base Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 8px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    list-style: none !important;
    display: flex;
    flex-direction: column;
}

/* Dropdown Hover State */
.nav-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-submenu {
    position: relative;
    width: 100%;
}

.dropdown-menu a {
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 10px 20px !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    border-radius: 0;
}

/* Override Animated Underline inside dropdown */
.dropdown-menu a::after {
    display: none !important;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
}

/* Submenu layout */
.dropdown-menu.sub {
    top: 0;
    left: 100%;
    transform: translateX(10px);
    margin-top: -8px; /* align to parent */
}

.dropdown-submenu:hover > .dropdown-menu.sub {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.caret {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4px solid rgba(255, 255, 255, 0.5);
    margin-left: auto;
    transition: border-left-color 0.2s;
}

.dropdown-menu a:hover .caret {
    border-left-color: #ffffff;
}

/* Mobile responsive resets */
@media (max-width: 992px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        border: none;
        padding-left: 15px;
        min-width: 100%;
        display: none;
    }
    .nav-dropdown:hover > .dropdown-menu {
        display: flex;
    }
    .dropdown-menu.sub {
        margin-left: 15px;
    }
}

/* Contact Page */
.contact-page-wrapper {
    background-color: #ffffff;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg stroke='%230f4c81' stroke-width='1.5' stroke-opacity='0.05' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M40,0 L40,60 L80,100 L80,160 L40,200 M120,0 L120,40 L160,80 L160,140 L120,180 L120,200 M0,40 L20,40 L30,50 L30,80 M200,120 L180,120 L170,130 L170,160 M80,20 L100,40 L100,70 L120,90 M160,20 L180,40 L180,60 M20,160 L40,180 L40,200'/%3E%3Ccircle cx='80' cy='100' r='3.5' fill='%230f4c81' fill-opacity='0.05'/%3E%3Ccircle cx='160' cy='80' r='3.5' fill='%230f4c81' fill-opacity='0.05'/%3E%3Ccircle cx='30' cy='80' r='3.5' fill='%230f4c81' fill-opacity='0.05'/%3E%3Ccircle cx='170' cy='160' r='3.5' fill='%230f4c81' fill-opacity='0.05'/%3E%3Ccircle cx='80' cy='20' r='3.5' fill='%230f4c81' fill-opacity='0.05'/%3E%3Ccircle cx='120' cy='90' r='3.5' fill='%230f4c81' fill-opacity='0.05'/%3E%3Ccircle cx='160' cy='20' r='3.5' fill='%230f4c81' fill-opacity='0.05'/%3E%3Ccircle cx='180' cy='60' r='3.5' fill='%230f4c81' fill-opacity='0.05'/%3E%3Ccircle cx='20' cy='160' r='3.5' fill='%230f4c81' fill-opacity='0.05'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(180deg, #ffffff 0%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.contact-section {
    padding: 150px 0 80px;
    position: relative;
    z-index: 1;
}

.contact-page-wrapper::before,
.contact-page-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    filter: blur(80px);
}

.contact-page-wrapper::before {
    top: 5%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: rgba(15, 76, 129, 0.04);
}

.contact-page-wrapper::after {
    bottom: 10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(16, 185, 129, 0.03);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 50px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: rgba(15, 76, 129, 0.08); /* Sophisticated light blue background */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary); /* Use primary navy */
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #0f172a; /* Slate 900 */
    font-weight: 700;
}

.info-text p {
    font-size: 1.05rem;
    color: #475569; /* Slate 600 */
    line-height: 1.6;
    font-weight: 500;
}

/* ========== WhatsApp Float Button ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transform: translateY(-5px) scale(1.05);
    background-color: #20ba5a;
    color: #FFF;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}
