/* ==========================================================================
   WHYN Corporate Stylesheet - Premium Modern SaaS Design
   ========================================================================== */

/* 1. Reset & Global Base Settings */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. Color Themes & Design Tokens */
:root {
    /* Fonts */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Light Theme Palette (Default) */
    --primary: #1A3CFF;
    --primary-glow: rgba(26, 60, 255, 0.15);
    --secondary: #6C63FF;
    --accent: #00C2A8;
    --bg-main: #FFFFFF;
    --bg-section: #F8F9FB;
    --bg-card: #FFFFFF;
    --border-color: #E5E7EB;
    --text-main: #111827;
    --text-muted: #6B7280;
    --white: #FFFFFF;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.08);

    /* Glassmorphism Defaults */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-blur: blur(20px) saturate(180%);
    --glass-border: rgba(255, 255, 255, 0.5);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Layout Sizes */
    --navbar-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-pill: 9999px;
}

/* Dark Theme Overrides */
body.dark-theme {
    --bg-main: #0B0F19;
    --bg-section: #111827;
    --bg-card: #161B26;
    --border-color: #242B3D;
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.35);

    --glass-bg: rgba(11, 15, 25, 0.75);
    --glass-border: rgba(36, 43, 61, 0.5);
    --primary-glow: rgba(26, 60, 255, 0.3);
}

body.dark-theme .logo-img,
body.dark-theme .hero-svg-ecosystem image {
    filter: brightness(0) invert(1);
}

body {
    background-color: var(--bg-main);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* 3. Typography & Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    transition: color var(--transition-smooth);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* 4. Common Layout Elements */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

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

.section-header {
    max-width: 680px;
    margin-bottom: 72px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 16px;
    background-color: var(--primary-glow);
    padding: 6px 16px;
    border-radius: var(--border-radius-pill);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 5. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    border: 1px solid transparent;
    gap: 8px;
}

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

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background-color: #0b29eb;
    box-shadow: 0 6px 20px rgba(26, 60, 255, 0.35);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--bg-section);
    border-color: var(--text-muted);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--bg-main);
    box-shadow: 0 4px 14px rgba(0, 194, 168, 0.25);
}

.btn-accent:hover {
    background-color: #00ab94;
    box-shadow: 0 6px 20px rgba(0, 194, 168, 0.4);
}

/* 6. Sticky Header & Mega Menu */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.header-nav.scrolled {
    background-color: var(--glass-bg);
    box-shadow: var(--shadow-sm);
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 850;
    font-size: 1.4rem;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.logo-img {
    height: 48px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    border-radius: 6px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
}

.nav-link:hover {
    background-color: var(--bg-section);
}

/* Products Mega Menu Dropdown */
.mega-menu {
    position: absolute;
    top: calc(var(--navbar-height) - 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 640px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.2s;
    z-index: 101;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 700;
}

.mega-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mega-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    transition: background-color var(--transition-fast);
}

.mega-item:hover {
    background-color: var(--bg-section);
}

.mega-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mega-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.mega-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.mega-featured {
    background: linear-gradient(135deg, rgba(26, 60, 255, 0.03) 0%, rgba(108, 99, 255, 0.03) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mega-featured-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.mega-featured-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

.mega-featured-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast);
}

.theme-toggle-btn:hover {
    background-color: var(--bg-section);
}

.theme-toggle-btn .sun { display: none; }
.theme-toggle-btn .moon { display: block; }
body.dark-theme .theme-toggle-btn .sun { display: block; }
body.dark-theme .theme-toggle-btn .moon { display: none; }

.menu-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    font-size: 1.5rem;
}

/* 7. Hero Section */
.hero-section {
    padding-top: 180px;
    padding-bottom: 120px;
    background: radial-gradient(circle at 10% 20%, rgba(26, 60, 255, 0.03) 0%, transparent 60%),
                radial-gradient(circle at 90% 80%, rgba(0, 194, 168, 0.03) 0%, transparent 60%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 850;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

/* Hero Visual Canvas & Float Animation */
.hero-visual {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-svg-ecosystem {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Floating keyframe loops for ecosystem objects */
@keyframes float-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

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

.ecosystem-float-1, .ecosystem-float-2, .ecosystem-float-3 {
    transform-box: fill-box;
    transform-origin: center;
}

.ecosystem-float-1 { animation: float-gentle 6s ease-in-out infinite; }
.ecosystem-float-2 { animation: float-medium 7s ease-in-out infinite 0.5s; }
.ecosystem-float-3 { animation: float-gentle 5s ease-in-out infinite 1s; }

.ecosystem-card {
    fill: var(--bg-card);
    stroke: var(--border-color);
    stroke-width: 1px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.04));
    transition: fill var(--transition-smooth), stroke var(--transition-smooth);
}

body.dark-theme .ecosystem-card {
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.2));
}

.ecosystem-card-highlight {
    stroke: var(--primary);
    stroke-width: 1.5px;
    filter: drop-shadow(0 12px 36px var(--primary-glow));
}

.hero-svg-ecosystem text {
    transition: fill var(--transition-smooth);
}

.hero-svg-ecosystem .node-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    fill: var(--text-main);
}

.hero-svg-ecosystem .highlight-label {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    fill: var(--text-main);
}

/* 8. Who We Are Section & Statistics */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
}

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

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 850;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

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

/* 9. Product Cards Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    color: var(--white);
}

.product-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 28px;
    flex-grow: 1;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--border-radius-pill);
}

.status-available {
    background-color: rgba(0, 194, 168, 0.1);
    color: #00a892;
}

.status-soon {
    background-color: rgba(108, 99, 255, 0.1);
    color: #5c53eb;
}

.status-development {
    background-color: rgba(26, 60, 255, 0.1);
    color: var(--primary);
}

/* 10. Industries We Serve (Interactive Tabs) */
.industries-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 64px;
    align-items: flex-start;
}

.industries-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.industry-tab-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 24px;
    border-radius: var(--border-radius-md);
    background-color: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
}

.industry-tab-btn:hover {
    background-color: var(--bg-section);
    color: var(--text-main);
}

.industry-tab-btn.active {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.industry-tab-btn.active i {
    transform: translateX(4px);
    color: var(--primary);
}

.industry-tab-btn i {
    font-size: 0.95rem;
    transition: transform var(--transition-fast), color var(--transition-fast);
    color: var(--text-muted);
}

.industry-content-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
    display: none;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

.industry-content-card.active {
    display: grid;
    animation: fade-in-up-anim 0.5s var(--transition-smooth);
}

@keyframes fade-in-up-anim {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.industry-text h3 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 16px;
}

.industry-text p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 28px;
}

.industry-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    list-style: none;
}

.industry-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.industry-feature-item i {
    color: var(--accent);
}

.industry-visual-box {
    width: 100%;
    height: 280px;
    background-color: var(--bg-section);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 11. Why WHYN Section */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.why-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 16px;
}

.why-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.why-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 12. What We Build Grid */
.build-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.build-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.build-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.build-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.build-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

/* 13. Development Process (Timeline) */
.timeline-section {
    padding: 120px 0;
}

.timeline-container {
    position: relative;
    margin-top: 80px;
    padding-bottom: 40px;
}

/* Base horizontal track line */
.timeline-line {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--border-color);
    z-index: 1;
}

.timeline-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 160px;
    text-align: center;
    cursor: pointer;
}

.timeline-dot {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 4px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
}

.timeline-step:hover .timeline-dot {
    border-color: var(--text-muted);
    color: var(--text-main);
}

.timeline-step.active .timeline-dot {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 6px var(--primary-glow);
    transform: scale(1.1);
}

.timeline-label {
    font-weight: 800;
    color: var(--text-main);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* 14. Featured Product (VineOS Showcase) */
.featured-showcase {
    background: radial-gradient(circle at 100% 0%, var(--primary-glow) 0%, transparent 40%);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
}

.showcase-visual {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    width: 100%;
    height: 480px;
}

/* Dashboard Mockup Representation (pure CSS mockup) */
.laptop-mockup {
    position: absolute;
    bottom: 20px;
    width: 85%;
    height: 320px;
    background-color: #1E293B;
    border: 12px solid #0F172A;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.laptop-mockup::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: -10%;
    width: 120%;
    height: 12px;
    background-color: #334155;
    border-radius: 0 0 8px 8px;
}

.dashboard-screen {
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    padding: 12px;
    font-size: 0.6rem;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.dash-grid {
    display: grid;
    grid-template-columns: 50px 1fr 1fr;
    gap: 8px;
    flex-grow: 1;
}

.dash-sidebar {
    background-color: var(--bg-section);
    border-radius: 4px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-bar {
    height: 6px;
    border-radius: 3px;
    background-color: var(--border-color);
}

.dash-bar.active {
    background-color: var(--primary);
}

.dash-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--accent);
}

.phone-mockup {
    position: absolute;
    right: 20px;
    top: 40px;
    width: 130px;
    height: 260px;
    background-color: #0F172A;
    border: 6px solid #1E293B;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 5;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    padding: 10px;
    font-size: 0.5rem;
}

/* 15. Technology Stack Marquee */
.tech-marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 16px 0;
}

.tech-marquee-wrapper::before,
.tech-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.tech-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-main) 0%, transparent 100%);
}

.tech-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-main) 0%, transparent 100%);
}

.tech-marquee {
    display: flex;
    width: max-content;
    animation: scroll-marquee 25s linear infinite;
    gap: 40px;
}

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

.tech-logo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-radius: var(--border-radius-pill);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

.tech-logo-item img {
    height: 20px;
    width: auto;
}

/* 16. Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.testimonial-quote {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 32px;
    flex-grow: 1;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
}

.testimonial-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.testimonial-org {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 17. Contact & Modals & Forms */
.contact-section {
    background-color: var(--bg-section);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-list {
    margin-top: 32px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-title {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.contact-info-val {
    font-size: 0.9rem;
}

/* Form Styles */
.form-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-lg);
}

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

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

.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--border-radius-md);
    background-color: var(--bg-section);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Captcha Control block */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.captcha-question-box {
    background-color: var(--bg-section);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-main);
}

/* Success / Error feedbacks */
.form-feedback {
    display: none;
    padding: 14px 18px;
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.form-feedback-error {
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.form-feedback-success {
    background-color: rgba(0, 194, 168, 0.08);
    border: 1px solid rgba(0, 194, 168, 0.2);
    color: #00c2a8;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 15, 25, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 24px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.modal-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 48px;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: background-color var(--transition-fast);
}

.modal-close-btn:hover {
    background-color: var(--bg-section);
    color: var(--text-main);
}

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

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

/* 18. Call To Action (Start a Project Section) */
.cta-section {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-title {
    color: var(--white);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 24px;
    font-weight: 850;
    line-height: 1.15;
}

.cta-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* 19. Footer */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px 0;
    background-color: var(--bg-main);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.footer-link:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.footer-social-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* 20. Scroll animations and scroll-trigger helper classes */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive Overrides */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .industries-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .showcase-visual {
        height: 360px;
    }
    
    .laptop-mockup {
        height: 260px;
    }
    
    .phone-mockup {
        height: 200px;
        width: 100px;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 70px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .menu-hamburger {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        background-color: var(--bg-main);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 24px;
        border-top: 1px solid var(--border-color);
        z-index: 99;
        overflow-y: auto;
    }
    
    .nav-links.mobile-active {
        display: flex;
    }
    
    .nav-item {
        height: auto;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .nav-item:hover .mega-menu {
        display: none; /* Hide mega menu on mobile drawer */
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .timeline-line {
        display: none; /* Vertical timeline layout would be better, but simpler to remove track line on mobile */
    }
    
    .timeline-steps {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .timeline-step {
        width: 100%;
    }
    
    .timeline-dot {
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .form-card {
        padding: 24px;
    }
    
    .modal-card {
        padding: 32px 20px;
    }
}
