/* Design System & Variables */
:root {
    --primary: #0D1B2A;
    --accent: #0070F3;
    --accent-glow: rgba(0, 112, 243, 0.1);
    --bg: #FFFFFF;
    --bg-subtle: #F5F7FA;
    --bg-dark: #111827;
    --text: #1F2937;
    --text-muted: #6B7280;
    --white: #FFFFFF;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --container: 1200px;
    --nav-height: 80px;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Command Center Palette (Inject into Shadow Mode) */
    --tech-bg: #0A0F1E;
    --tech-surface: #111927;
    --tech-accent: #00E5FF;
    --tech-amber: #FFB000;
    --tech-border: rgba(0, 229, 255, 0.15);
}

/* Shadow Mode Theme Override */
body.shadow-mode {
    background-color: var(--tech-bg);
    color: #E2E8F0;
    --primary: #F8FAFC;
    --bg: var(--tech-bg);
    --bg-subtle: var(--tech-surface);
    --text: #E2E8F0;
    --text-muted: #94A3B8;
    --accent: var(--tech-accent);
}

body.shadow-mode h1, 
body.shadow-mode h2, 
body.shadow-mode h3, 
body.shadow-mode h4,
body.shadow-mode .nav-links a:not(.btn-primary) {
    color: var(--primary);
}

body.shadow-mode .enterprise-card,
body.shadow-mode .project-card {
    background: var(--tech-surface);
    border: 1px solid var(--tech-border);
}

body.shadow-mode .section-header .subtitle {
    color: var(--tech-accent);
    background: rgba(0, 229, 255, 0.1);
}

/* ===== Preloader & Status Ticker ===== */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #0A0F1E;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

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

.preloader-logo {
    width: 120px;
    filter: brightness(0) invert(1);
    animation: pulse-logo 2s infinite ease-in-out;
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin-top: 30px;
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.preloader-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--tech-accent);
    animation: bar-load 1.5s infinite;
}

@keyframes pulse-logo {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes bar-load {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}

.status-ticker {
    background: #000000;
    height: 32px;
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--tech-border);
}

.ticker-scroll {
    display: flex;
    white-space: nowrap;
    animation: ticker-slide 30s linear infinite;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
    margin-right: 50px;
    text-transform: uppercase;
}

.ticker-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.ticker-dot.green { background: #10B981; box-shadow: 0 0 8px #10B981; }
.ticker-dot.cyan { background: #00E5FF; box-shadow: 0 0 8px #00E5FF; }
.ticker-dot.amber { background: #F59E0B; box-shadow: 0 0 8px #F59E0B; }

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.w-full { width: 100%; }

/* Buttons */
.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: inline-block;
    border: 2px solid #E5E7EB;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Glassmorphism & Advanced Effects */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.shadow-premium {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

/* Updated Navigation */
/* Updated Navigation */
header {
    height: var(--nav-height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

header.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

nav {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 65px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease;
}

.logo-img:hover {
    opacity: 0.85;
}

.logo-img--footer {
    height: 85px;
}

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

.nav-links a:not(.btn-primary) {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-muted);
}

.nav-links a:not(.btn-primary):hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
    transition: 0.3s;
}

/* Advanced Hero Slider */
.hero {
    padding: 0;
    height: 100vh; /* Full screen impact */
    width: 100%;
    position: relative;
    overflow: hidden;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
}

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

.slide-bg img, .hero-video, .hero-live-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
}

.hero-video {
    z-index: 1;
    pointer-events: none;
}

.technical-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.05) 0px,
        rgba(0, 0, 0, 0.05) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 2;
    pointer-events: none;
    opacity: 0.3;
}

/* Scroll Indicator (Mobile Only) */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: none; /* Desktop hidden */
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

@media (max-width: 768px) {
    .scroll-indicator {
        display: flex;
        bottom: 75px; /* Moved up to avoid pagination dots */
    }
}

.mouse-scroll {
    width: 20px;
    height: 35px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.mouse-wheel {
    width: 2px;
    height: 6px;
    background: #fff;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollMove 2s infinite;
}

.chevron-down {
    width: 15px;
    height: 15px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes scrollMove {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-10px) rotate(45deg); }
    60% { transform: translateY(-5px) rotate(45deg); }
}


.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle dark overlay for readability without hiding the live action */
    background: rgba(0,0,0,0.3);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 10;
    max-width: 650px;
    padding-left: 24px;
}

.slide-content h1 {
    font-size: 72px;
    margin-bottom: 24px;
    line-height: 1.1;
    color: #ffffff; /* Forced white for impact */
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Projects Section */
.portfolio {
    padding: 100px 0;
    background: #fff;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s;
}

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

.project-card:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* Controls */
.swiper-pagination-bullet-active {
    background: var(--accent) !important;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--primary) !important;
    background: rgba(255,255,255,0.5);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

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

.animate-in {
    animation: fadeInUp 0.8s forwards;
}

/* About Section */
.about {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.subtitle {
    display: block;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 42px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
}

.about-text p {
    margin-bottom: 24px;
    font-size: 17px;
    color: var(--text-muted);
}

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

.stat-card {
    background: var(--bg-subtle);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.05);
}

.stat-card h3 {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat-card p {
    font-weight: 500;
    color: var(--text-muted);
}

/* Enterprise Services Grid - Premium Light */
.enterprise-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.enterprise-card {
    background: var(--white);
    border: 1px solid #eaeaea;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ent-card-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-subtle);
    border-bottom: 1px solid #eaeaea;
    transition: transform 0.6s ease;
}

.enterprise-card:hover .ent-card-image {
    transform: scale(1.05);
}

.ent-card-content {
    padding: 35px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--white);
    z-index: 2;
}

.enterprise-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transform: translateY(-5px);
    border-color: var(--accent);
}

.ent-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.ent-number {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    color: #f0f0f0;
    transition: color 0.4s;
    line-height: 1;
}

.enterprise-card:hover .ent-number {
    color: var(--accent);
    opacity: 0.2;
}

.ent-arrow-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.4s ease;
}

.ent-arrow-icon svg {
    width: 24px;
    height: 24px;
}

.enterprise-card:hover .ent-arrow-icon {
    background: var(--accent);
    color: var(--white);
    transform: translateX(5px) rotate(-45deg);
}

.enterprise-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--primary);
}

.enterprise-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* ===================================================
   Industries Section
   =================================================== */
.industries-section {
    padding: 120px 0;
    background: linear-gradient(rgba(10, 15, 30, 0.88), rgba(10, 15, 30, 0.92)), url('assets/industries_bg.png') center/cover no-repeat fixed;
    position: relative;
    overflow: hidden;
}

.text-white {
    color: #FFFFFF !important;
}

.industries-desc {
    color: rgba(255, 255, 255, 0.7) !important;
}

.industries-subtitle {
    color: #00E5FF !important;
    background: rgba(0, 229, 255, 0.1) !important;
    padding: 4px 12px;
    border-radius: 20px;
}

.industries-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 112, 243, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* 2-column grid, last card spans full width */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

/* Base industry card */
.industry-card {
    background: var(--white);
    border: 1px solid #e8edf3;
    border-radius: var(--radius-md);
    padding: 40px 36px;
    display: flex;
    gap: 28px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
    box-shadow: var(--shadow-sm);
}

.industry-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #00c6ff);
    transition: width 0.4s ease;
    border-radius: 0 3px 3px 0;
}

.industry-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0, 112, 243, 0.1);
    border-color: rgba(0, 112, 243, 0.25);
}

.industry-card:hover::after {
    width: 100%;
}

/* Wide card — SME spans both columns */
.industry-card--wide {
    grid-column: 1 / -1;
}

/* Icon */
.industry-icon-wrap {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8edf3;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.industry-card:hover .industry-icon-wrap {
    background: rgba(0, 112, 243, 0.06);
    border-color: rgba(0, 112, 243, 0.2);
}

.industry-icon {
    width: 44px;
    height: 44px;
}

/* Content */
.industry-content {
    flex: 1;
}

.industry-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--primary);
    transition: color 0.3s;
}

.industry-card:hover .industry-content h3 {
    color: var(--accent);
}

.industry-content p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Capability tags */
.industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.industry-tags li {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(0, 112, 243, 0.08);
    border: 1px solid rgba(0, 112, 243, 0.15);
    border-radius: 20px;
    padding: 4px 14px;
    letter-spacing: 0.3px;
    transition: background 0.25s, color 0.25s;
}

.industry-card:hover .industry-tags li {
    background: rgba(0, 112, 243, 0.14);
}

/* Large ghost number */
.industry-number {
    position: absolute;
    bottom: 16px;
    right: 24px;
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 700;
    color: rgba(0, 112, 243, 0.05);
    line-height: 1;
    pointer-events: none;
    transition: color 0.4s;
    user-select: none;
}

.industry-card:hover .industry-number {
    color: rgba(0, 112, 243, 0.1);
}

/* CTA strip below grid */
.industries-cta {
    display: flex;
    align-items: center;
    gap: 28px;
    justify-content: center;
    margin-top: 60px;
    padding: 36px 40px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid #e8edf3;
    box-shadow: var(--shadow-sm);
}

.industries-cta p {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .industries-grid {
        grid-template-columns: 1fr;
    }
    .industry-card--wide {
        grid-column: auto;
    }
    .industry-card {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .industries-cta {
        flex-direction: column;
        text-align: center;
    }
}

/* Portfolio / Projects Section */
.portfolio {
    padding: 120px 0;
    background: var(--bg-subtle);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

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

.project-card:hover .project-img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
    width: fit-content;
}

.project-overlay h3 {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 10px;
}

.project-overlay p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

/* Case Study Lightbox Modal */
.case-study-dialog {
    margin: auto;
    border: none;
    border-radius: var(--radius-lg);
    background: transparent;
    max-width: 950px;
    width: 94%;
    padding: 0;
    overflow: hidden;
}

.case-study-dialog::backdrop {
    background: rgba(10, 15, 30, 0.75);
    backdrop-filter: blur(12px);
}

.case-study-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 85vh;
}

.case-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(0,0,0,0.5);
    border: none;
    font-size: 28px;
    color: var(--white);
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.case-close-btn:hover {
    background: rgba(0,0,0,0.8);
}

.case-study-image-wrap {
    overflow: hidden;
}

.case-study-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.case-study-body {
    padding: 40px 35px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.case-study-body h2 {
    font-size: 26px;
    color: var(--primary);
    line-height: 1.3;
}

.cs-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
}

.cs-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 10px 0;
}

.cs-stat {
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    padding: 20px 15px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.04);
}

.cs-stat-number {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    display: block;
    margin-bottom: 6px;
}

.cs-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cs-cta {
    display: inline-block;
    text-align: center;
    margin-top: 10px;
    padding: 14px 28px;
    text-decoration: none;
}

@media (max-width: 768px) {
    .case-study-content {
        grid-template-columns: 1fr;
    }
    .case-study-image-wrap img {
        min-height: 220px;
        max-height: 250px;
    }
    .cs-stats-row {
        grid-template-columns: 1fr;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Section */
.contact {
    padding: 120px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
}

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

.contact-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-subtle);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.contact-text a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.contact-text strong {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.contact-text p, .contact-text a {
    font-size: 16px;
    font-weight: 500;
}

.contact-text a:hover {
    color: var(--accent);
}

.contact-text a:hover strong {
    opacity: 0.8;
}

.modern-form {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px -12px rgba(50,50,93,0.1);
    border: 1px solid rgba(0,0,0,0.03);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s;
}

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

/* Footer */
footer {
    background: var(--bg-subtle);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 20px;
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links h4, .footer-social h4 {
    margin-bottom: 24px;
    font-size: 16px;
}

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

.footer-links a {
    color: var(--text-muted);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent);
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: fit-content;
    font-size: 14px;
}

.social-icon-svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.social-link--linkedin:hover {
    border-color: #0077b5;
    color: #0077b5;
    background: rgba(0, 119, 181, 0.04);
}

.social-link--instagram:hover {
    border-color: #E1306C;
    color: #E1306C;
    background: rgba(225, 48, 108, 0.04);
}

.social-link:hover .social-icon-svg {
    transform: scale(1.15);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Solution Partners Infinite Marquee ===== */
.partners-section {
    padding: 80px 0 60px;
    background: var(--bg-subtle);
    overflow: hidden;
    position: relative;
}

.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
}

/* Fade edges for premium infinite effect */
.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-subtle), transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-subtle), transparent);
}

.marquee-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: marquee-scroll 35s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

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

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 160px;
    height: 70px;
    padding: 15px 25px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.partner-logo:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: translateY(-3px);
    border-color: var(--accent);
}

.partner-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

.partner-logo:hover img {
    transform: scale(1.1);
}

.partner-logo span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: block;
    transition: opacity 0.3s ease;
}

.partner-logo:hover span {
    opacity: 1;
}

/* Individual brand colors */
.brand-abb { color: #FF000F; }
.brand-yaskawa { color: #0033A0; }
.brand-panasonic { color: #003DA5; }
.brand-kuka { color: #F7700D; }
.brand-fanuc { color: #FFD100; text-shadow: 0 0 1px rgba(0,0,0,0.3); }
.brand-fronius { color: #E30613; }
.brand-kemppi { color: #003882; }
.brand-megmeet { color: #0072CE; }
.brand-delta { color: #76232F; }
.brand-omron { color: #003DA5; }
.brand-siemens { color: #009999; }
.brand-salzer { color: #1B3A6B; }
.brand-schneider { color: #3DCD58; }
.brand-bch { color: #C8102E; }
.brand-kml { color: #00529B; }
.brand-ewm { color: #E30613; }

/* Mobile Hamburger Button - Hidden on Desktop */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1001; /* Above mobile menu */
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger Animation */
.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

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

.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Responsive Overhauls */
@media (max-width: 992px) {
    .container {
        padding: 0 24px;
    }
    .hero-grid, .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 { font-size: 42px; }
    .bento-grid {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: auto;
    }
    .main-service { grid-column: span 1; grid-row: span 1; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    /* Header & Nav Fixes */
    header {
        padding: 15px 0;
    }
    
    .logo-img {
        max-height: 45px;
    }

    /* Enable Hamburger */
    .mobile-menu-btn {
        display: flex;
    }

    /* Convert Desktop Nav to Mobile Drawer - Premium Solid Look */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 85%;
        max-width: 320px;
        flex-direction: column;
        justify-content: flex-start;
        background: #ffffff; /* Solid White for absolute readability */
        box-shadow: -15px 0 40px rgba(0,0,0,0.15);
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        padding: 100px 40px 40px;
        gap: 0;
        z-index: 1000;
        margin: 0;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .nav-links li a {
        display: block;
        padding: 20px 0;
        font-size: 18px;
        font-weight: 600;
        color: var(--primary);
    }

    .nav-links li:last-child {
        border-bottom: none;
        margin-top: 30px;
    }

    .nav-links li .btn-primary {
        text-align: center;
        padding: 18px;
        font-size: 16px;
    }
    
    .nav-links.active {
        right: 0;
    }

    /* Hero Typography Fixes */
    .hero h1 { 
        font-size: 32px; 
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }

    .hero {
        height: 92vh !important; /* Adjusted for better proportion and visibility */
    }

    .slide-content {
        padding: 40px 24px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: transparent; /* Removed blur and backdrop */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        margin: 0;
        width: 100%;
        transform: translateY(-40px); /* Lifted content slightly */
    }
    
    .slide-content h1 {
        font-size: 36px !important;
        text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    }
    
    .slide-content p {
        font-size: 16px !important;
        text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    }

    .slide-overlay {
        /* Deep dark overlay for Shadow Mode command center feel */
        background: radial-gradient(circle at center, rgba(10, 15, 30, 0.4) 0%, rgba(10, 15, 30, 0.9) 100%);
    }

    body.shadow-mode .slide-bg img {
        filter: brightness(0.6) contrast(1.1);
    }

    /* Section Spacing Fixes */
    section {
        padding: 80px 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

    /* Fix Layout Grids - Horizontal Swipe Overhaul */
    .form-row { 
        grid-template-columns: 1fr; 
    }
    
    .enterprise-services-grid, 
    .project-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 20px 20px 40px;
        margin-left: -20px;
        margin-right: -20px;
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }
    
    .enterprise-services-grid::-webkit-scrollbar,
    .project-grid::-webkit-scrollbar {
        display: none; /* Hide scrollbar Chrome/Safari */
    }
    
    .enterprise-card, 
    .project-card {
        min-width: 290px;
        width: 85%;
        flex-shrink: 0;
        scroll-snap-align: center;
    }

    .cs-stats-row {
        grid-template-columns: 1fr;
    }
    
    /* Case Study Modal Mobile Fixes */
    .case-study-content {
        grid-template-columns: 1fr;
        max-height: 95vh;
    }
    
    .case-study-image-wrap img {
        height: 250px;
        min-height: 250px;
    }
    
    .case-study-body {
        padding: 30px 20px;
    }
    
    .cs-stat {
        padding: 15px;
    }
    
    .cs-stat-number {
        font-size: 28px;
    }
}

/* Appointment Booking Floating Button & Modal */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    padding: 16px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 112, 243, 0.4);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 112, 243, 0.5);
}

.booking-dialog {
    margin: auto;
    border: none;
    border-radius: var(--radius-lg);
    background: transparent;
    max-width: 650px;
    width: 90%;
    padding: 0;
    overflow: hidden;
}

.booking-dialog::backdrop {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--white);
    padding: 40px;
    position: relative;
    border-radius: var(--radius-lg);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 24px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--primary);
}

.modal-header {
    margin-bottom: 30px;
}

.modal-header h3 {
    font-size: 28px;
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--text-muted);
}

.booking-success {
    text-align: center;
    padding: 40px 20px;
}

.booking-success h4 {
    font-size: 24px;
    margin-bottom: 12px;
}

.booking-success p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

/* Command Center Fixes - Visibility Overrides */
body.shadow-mode .about, 
body.shadow-mode .partners-section,
body.shadow-mode .enterprise-services,
body.shadow-mode .portfolio,
body.shadow-mode .contact,
body.shadow-mode footer {
    background: var(--tech-bg);
}

body.shadow-mode .nav-links {
    background: var(--tech-surface);
}

body.shadow-mode .nav-links li {
    border-bottom: 1px solid var(--tech-border);
}

body.shadow-mode .nav-links li a {
    color: var(--tech-accent);
}

body.shadow-mode .mobile-menu-btn span {
    background: var(--tech-accent);
}

body.shadow-mode .logo-img {
    filter: brightness(1.2) contrast(1.2); /* Ensure logo pops */
}

body.shadow-mode #header.scrolled {
    background: rgba(10, 15, 30, 0.9);
    border-bottom: 1px solid var(--tech-border);
}

body.shadow-mode .section-header h2 {
    color: var(--primary);
}

body.shadow-mode .enterprise-card h3,
body.shadow-mode .project-card h3 {
    color: var(--tech-accent);
}

body.shadow-mode .enterprise-card p,
body.shadow-mode .project-card p {
    color: #94A3B8;
}

body.shadow-mode .badge {
    color: var(--tech-accent);
    border-color: var(--tech-accent);
    background: rgba(0, 229, 255, 0.05);
}
