/* ============================================
   CYBERBURGS - Modern Enterprise Design System
   ============================================ */

/* CSS Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Brand Colors - Refined Green */
    --primary: #10b981;
    --primary-light: #34d399;
    --primary-dark: #059669;
    --primary-glow: rgba(16, 185, 129, 0.15);

    /* Secondary - Professional Blue */
    --secondary: #0ea5e9;
    --secondary-light: #38bdf8;
    --secondary-dark: #0284c7;

    /* Backgrounds - Modern Dark */
    --bg-dark: #0a0f1a;
    --bg-primary: #0f172a;
    --bg-card: #1e293b;
    --bg-elevated: #334155;
    --bg-hover: #3f4f66;

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;

    /* Borders & Effects */
    --border: rgba(148, 163, 184, 0.1);
    --border-hover: rgba(148, 163, 184, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--primary-glow);

    /* Typography */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --section-padding: 120px 80px;
    --container-max: 1280px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
}

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition-base);
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-image: url('IMG_VID/Logo.ico');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: var(--transition-base);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--bg-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-base);
}

.nav-cta:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 40px 80px;
    position: relative;
    overflow: hidden;
}

/* Video Background */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(10, 15, 26, 0.85) 0%,
            rgba(10, 15, 26, 0.7) 50%,
            rgba(10, 15, 26, 0.85) 100%);
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(14, 165, 233, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 2;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: var(--container-max);
    width: 100%;
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-glow);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.hero-title .highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--primary);
    color: var(--bg-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid var(--border-hover);
    transition: var(--transition-base);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    color: var(--primary);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: contain;
    background: transparent;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: float-hover 4s ease-in-out infinite;
    transition: var(--transition-smooth);
}

.logo-image:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

@keyframes float-hover {

    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }

    50% {
        transform: translateY(-20px);
        box-shadow: 0 35px 50px rgba(0, 0, 0, 0.3);
    }
}

/* ============================================
   ABOUT & STATS SECTION
   ============================================ */

.about-section {
    padding: 100px 20px;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.about-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 60px;
}

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

.about-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    padding: 40px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 10px;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(148, 163, 184, 0.2), transparent);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    display: block;
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    display: block;
}

/* ============================================
   SECTION COMMON STYLES
   ============================================ */

.section {
    padding: var(--section-padding);
    position: relative;
}

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

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-glow);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   SERVICES SECTION - BENTO GRID
   ============================================ */

.services-section {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(14, 165, 233, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Bento Grid Layout */
.services-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto auto;
    gap: 20px;
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Featured Cards - Large (spans 2 columns) */
.bento-card.bento-featured {
    grid-column: span 2;
    min-height: 320px;
}

/* Medium Cards */
.bento-card.bento-medium {
    grid-column: span 1;
    min-height: 280px;
}

/* Standard Cards */
.bento-card.bento-standard {
    grid-column: span 1;
    min-height: 200px;
}

/* Center the last two cards - Position them in columns 2 and 3 */
/* Cards are: 1-2 Featured, 3-4 Medium, 5-6-7-8 Standard */
/* Last two (7th and 8th) should be in columns 2 and 3 to center them */
.services-bento>.bento-card:nth-child(7) {
    grid-column: 2;
    min-height: 280px;
}

.services-bento>.bento-card:nth-child(8) {
    grid-column: 3;
    min-height: 280px;
}

/* Spacer for visual balance (hidden but maintains grid structure) */
.bento-spacer {
    display: none;
}

/* Base Bento Card Styling */
.bento-card {
    position: relative;
    background: linear-gradient(135deg,
            rgba(30, 41, 59, 0.8) 0%,
            rgba(30, 41, 59, 0.4) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 24px;
    padding: 32px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg,
            rgba(16, 185, 129, 0.3) 0%,
            transparent 50%,
            rgba(14, 165, 233, 0.2) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(16, 185, 129, 0.15);
}

/* Glow Effect */
.bento-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center,
            rgba(16, 185, 129, 0.15) 0%,
            transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.bento-card:hover .bento-glow {
    opacity: 1;
}

/* Pattern Background for Featured Cards */
.bento-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background:
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 30%),
        repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(16, 185, 129, 0.02) 10px,
            rgba(16, 185, 129, 0.02) 20px);
    pointer-events: none;
    opacity: 0.5;
}

/* Bento Content */
.bento-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bento-featured .bento-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 28px;
}

/* Icon Wrapper */
.bento-icon-wrapper {
    position: relative;
    flex-shrink: 0;
}

.bento-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 24px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.bento-icon svg {
    width: 28px;
    height: 28px;
    color: var(--bg-dark);
    stroke-width: 2;
}

.bento-card:hover .bento-icon {
    transform: translateY(-4px) rotate(-5deg);
    box-shadow:
        0 16px 40px rgba(16, 185, 129, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Icon Ring Animation */
.bento-icon-ring {
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 22px;
    opacity: 0;
    animation: none;
}

.bento-card:hover .bento-icon-ring {
    opacity: 1;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Icon Variants */
.bento-icon.bento-icon-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    box-shadow:
        0 8px 24px rgba(14, 165, 233, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.bento-card:hover .bento-icon.bento-icon-secondary {
    box-shadow:
        0 16px 40px rgba(14, 165, 233, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.bento-icon.bento-icon-accent {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow:
        0 8px 24px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.bento-icon.bento-icon-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow:
        0 8px 24px rgba(245, 158, 11, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.bento-icon.bento-icon-subtle {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg,
            rgba(16, 185, 129, 0.15) 0%,
            rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 14px;
    box-shadow: none;
}

.bento-icon.bento-icon-subtle svg {
    color: var(--primary);
    width: 24px;
    height: 24px;
}

.bento-card:hover .bento-icon.bento-icon-subtle {
    background: linear-gradient(135deg,
            rgba(16, 185, 129, 0.25) 0%,
            rgba(16, 185, 129, 0.1) 100%);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
    transform: translateY(-4px);
}

/* Text Content */
.bento-text {
    flex: 1;
}

.bento-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
}

.bento-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.bento-featured .bento-title {
    font-size: 26px;
}

.bento-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.bento-featured .bento-description {
    font-size: 15px;
}

/* Feature Lists */
.bento-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bento-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.bento-card:hover .bento-features li {
    color: var(--text-secondary);
}

.feature-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.bento-card:hover .feature-dot {
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* Compact Feature List for Medium Cards */
.bento-features-compact {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.bento-features-compact li {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 12px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.bento-card:hover .bento-features-compact li {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--text-secondary);
}

/* Standard Card Adjustments */
.bento-standard .bento-icon-wrapper {
    margin-bottom: 16px;
}

.bento-standard .bento-title {
    font-size: 17px;
    margin-bottom: 8px;
}

.bento-standard .bento-description {
    font-size: 13px;
    margin-bottom: 0;
    color: var(--text-muted);
}

/* Medium Card Adjustments */
.bento-medium .bento-icon-wrapper {
    margin-bottom: 20px;
}

.bento-medium .bento-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
}

.bento-medium .bento-icon svg {
    width: 26px;
    height: 26px;
}

.bento-medium .bento-title {
    font-size: 20px;
}

/* Staggered Animation */
.services-bento .bento-card:nth-child(1) {
    transition-delay: 0ms;
}

.services-bento .bento-card:nth-child(2) {
    transition-delay: 50ms;
}

.services-bento .bento-card:nth-child(3) {
    transition-delay: 100ms;
}

.services-bento .bento-card:nth-child(4) {
    transition-delay: 150ms;
}

.services-bento .bento-card:nth-child(5) {
    transition-delay: 200ms;
}

.services-bento .bento-card:nth-child(6) {
    transition-delay: 250ms;
}

.services-bento .bento-card:nth-child(7) {
    transition-delay: 300ms;
}

.services-bento .bento-card:nth-child(8) {
    transition-delay: 350ms;
}

/* Responsive Bento Grid */
@media (max-width: 1200px) {
    .services-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-card.bento-featured {
        grid-column: span 2;
    }

    .bento-card.bento-medium,
    .bento-card.bento-standard {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .services-bento {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bento-card.bento-featured,
    .bento-card.bento-medium,
    .bento-card.bento-standard {
        grid-column: span 1;
        min-height: auto;
    }

    .bento-featured .bento-content {
        flex-direction: column;
    }

    .bento-icon {
        width: 52px;
        height: 52px;
    }

    .bento-featured .bento-title {
        font-size: 22px;
    }

    .about-title {
        font-size: 28px;
        /* Responsive title for about section */
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 grid on mobile */
        gap: 20px;
        padding: 24px;
    }

    .stat-item:not(:last-child)::after {
        display: none;
        /* Remove dividers on mobile */
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        /* Stack on very small screens */
    }
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects-section {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
.projects-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.projects-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr auto;
    gap: 28px;
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Main Project Card */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}



.project-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(16, 185, 129, 0.1);
    border-color: var(--primary);
    z-index: 2;
}

/* Featured Card - GuardianEye (Large square, top-left) */
.project-card.featured {
    grid-column: 1;
    grid-row: 1;
    background: linear-gradient(145deg,
            rgba(22, 33, 46, 0.95) 0%,
            rgba(16, 185, 129, 0.08) 50%,
            rgba(14, 165, 233, 0.05) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    padding: 40px;
}

.project-card.featured h3 {
    font-size: 28px;
}

.project-card.featured .project-metrics {
    gap: 30px;
}

.project-card.featured .metric-value {
    font-size: 24px;
}

.project-card.featured::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.project-card.featured:hover::after {
    opacity: 1;
}

.project-card.featured:hover {
    border-color: var(--primary);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(16, 185, 129, 0.2),
        inset 0 0 20px rgba(16, 185, 129, 0.05);
}

/* Vertical Card - Chamber of Ciphers (Right side, row 1 only) */
.project-card.vertical {
    grid-column: 2;
    grid-row: 1;
    background: linear-gradient(180deg,
            rgba(22, 33, 46, 0.95) 0%,
            rgba(139, 92, 246, 0.08) 100%);
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.project-card.vertical .project-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.02) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: none;
}

.project-card.vertical .project-icon svg {
    color: #8b5cf6;
}

.project-card.vertical:hover .project-icon {
    transform: translateY(-6px) scale(1.1);
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.project-card.vertical:hover {
    border-color: #8b5cf6;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(139, 92, 246, 0.2),
        inset 0 0 20px rgba(139, 92, 246, 0.05);
}

.project-card.vertical .icon-ring {
    border-color: #8b5cf6;
}

/* Horizontal Card - CSS Prep (Full width, spans both columns at bottom) */
.project-card.horizontal {
    grid-column: 1 / 3;
    grid-row: 2;
    padding: 60px 36px 36px;
    /* Increased top padding for status badge */
    background: linear-gradient(90deg,
            rgba(22, 33, 46, 0.95) 0%,
            rgba(14, 165, 233, 0.08) 100%);
    border: 2px solid rgba(14, 165, 233, 0.3);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: start;
    /* Changed from center to start for better layout */
}

.project-card.horizontal .project-icon-wrapper {
    margin-top: 0;
    margin-bottom: 0;
}

.project-card.horizontal .project-number {
    font-size: 60px;
}

.project-card.horizontal .project-status {
    top: 24px;
    left: 36px;
}

.project-card.horizontal h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.project-card.horizontal p {
    margin-bottom: 12px;
    font-size: 13px;
}

.project-card.horizontal .project-content {
    display: flex;
    flex-direction: column;
}

.project-card.horizontal .project-content .project-category {
    width: fit-content;
}

.project-card.horizontal .project-metrics {
    flex-direction: row;
    border: none;
    padding: 0;
    margin-bottom: 16px;
}

.project-card.horizontal .project-icon {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(14, 165, 233, 0.02) 100%);
    border: 1px solid rgba(14, 165, 233, 0.3);
    box-shadow: none;
}

.project-card.horizontal .project-icon svg {
    color: var(--secondary);
}

.project-card.horizontal:hover .project-icon {
    transform: translateY(-6px) scale(1.1);
    border-color: var(--secondary);
    background: rgba(14, 165, 233, 0.15);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.2);
}

.project-card.horizontal:hover {
    border-color: var(--secondary);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(14, 165, 233, 0.2),
        inset 0 0 20px rgba(14, 165, 233, 0.05);
}

.project-card.horizontal .icon-ring {
    border-color: var(--secondary);
}

/* Project Number */
.project-number {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 72px;
    font-weight: 900;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.02) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    pointer-events: none;
}

.project-card.featured .project-number {
    font-size: 120px;
}

/* Status Badge */
.project-status {
    position: absolute;
    top: 20px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
}

.project-status.development {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-status 2s ease-in-out infinite;
}

@keyframes pulse-status {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Icon Wrapper with Ring Animation */
.project-icon-wrapper {
    position: relative;
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    margin-top: 40px;
}

.project-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.02) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}

.project-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
    stroke-width: 2;
}

.icon-ring {
    position: absolute;
    inset: -6px;
    border-radius: 22px;
    border: 2px solid var(--primary);
    opacity: 0;
    transition: var(--transition-base);
}

.project-card:hover .icon-ring {
    opacity: 1;
    animation: pulse-ring 2s ease-out infinite;
}

.project-card:hover .project-icon {
    transform: translateY(-4px);
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.15);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.project-card:hover .project-icon svg {
    color: var(--primary);
}

/* Category Badges with Colors */
.project-category {
    display: inline-block;
    width: fit-content;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--secondary);
}

.project-category.security {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
}

.project-category.training {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.project-category.government {
    background: rgba(14, 165, 233, 0.1);
    color: var(--secondary);
}

/* Horizontal card category - properly sized */
.project-card.horizontal .project-category {
    display: inline-block;
    width: fit-content;
    max-width: fit-content;
    border-left: none;
    position: relative;
}

.project-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.project-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Metrics Section */
.project-metrics {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.metric-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Tech Stack Tags */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tech-item {
    font-size: 11px;
    color: var(--text-secondary);
    padding: 4px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: var(--transition-fast);
}



/* Project Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tags span {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    padding: 6px 14px;
    background: var(--primary-glow);
    border-radius: 6px;
    transition: var(--transition-base);
}

.project-card:hover .project-tags span {
    background: rgba(16, 185, 129, 0.2);
}

/* Action Buttons */
.project-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: var(--transition-base);
}

.project-btn.primary {
    background: var(--primary);
    color: var(--bg-dark);
}

.project-btn.primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.project-btn.secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

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

/* Testimonial */
.project-testimonial {
    margin-top: 24px;
    padding: 20px;
    background: rgba(16, 185, 129, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 0 10px 10px 0;
}

.project-testimonial p {
    font-size: 14px;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.6;
}

.testimonial-author {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ============================================
   INSIGHTS SECTION - ENTERPRISE ENHANCED
   ============================================ */

.insights-section {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Background Pattern */
.insights-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Category Filter Tabs */
.insights-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-base);
    font-family: var(--font-main);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

/* Insights Grid */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Base Insight Card */
.insight-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
}



.insight-card:hover {
    transform: translateY(-10px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(16, 185, 129, 0.1);
}

/* Featured Card */
.insight-card.featured {
    grid-column: span 1;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid rgba(16, 185, 129, 0.2);
}

/* Badge Styles (Popular/New) */
.insight-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
}

.insight-badge.popular {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.insight-badge.new {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
}

/* Bookmark Button */
.bookmark-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    z-index: 5;
    color: var(--text-secondary);
}

.bookmark-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: scale(1.1);
}

.bookmark-btn.saved {
    background: var(--primary);
    color: var(--bg-dark);
}

.bookmark-btn.saved svg {
    fill: currentColor;
}

/* Image Container */
.insight-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.insight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
    pointer-events: none;
}


/* Content Area */
.insight-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Header with Category and Date */
.insight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.insight-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Category Badges */
.insight-category {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    width: fit-content;
}

.insight-category.threat {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.insight-category.innovation {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.insight-category.architecture {
    background: rgba(14, 165, 233, 0.15);
    color: var(--secondary);
}

/* Title */
.insight-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.insight-card:hover .insight-title {
    color: var(--primary);
}

/* Excerpt */
.insight-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Author Section */
.insight-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
}

.author-avatar svg {
    width: 24px;
    height: 24px;
}

.author-avatar.nist {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    font-size: 10px;
    font-weight: 700;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.author-role {
    font-size: 11px;
    color: var(--text-muted);
}

/* Meta Information */
.insight-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.insight-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.insight-meta .read-time svg,
.insight-meta .views svg {
    color: var(--primary);
}

.insight-meta .source.external {
    color: var(--secondary);
}

.insight-meta .source.pdf {
    color: #ef4444;
}

/* Share Buttons */
.insight-share {
    display: flex;
    gap: 8px;
    margin-top: auto;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-base);
}

.insight-card:hover .insight-share {
    opacity: 1;
    transform: translateY(0);
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    color: var(--text-muted);
}

.share-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
}

.share-btn.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: white;
}

/* View All Button */
.insights-cta {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
}

.view-all-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.view-all-btn svg {
    transition: transform 0.3s ease;
}

.view-all-btn:hover svg {
    transform: translateX(4px);
}


/* ============================================
   CONTACT SECTION
   ============================================ */

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 60px;
    max-width: var(--container-max);
    margin: 0 auto;
    align-items: stretch;
}

.contact-divider {
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent,
            var(--border-hover) 20%,
            var(--border-hover) 80%,
            transparent);
}

.contact-form {
    width: 100%;
}

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

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-main);
    transition: var(--transition-base);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group textarea {
    min-height: 220px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 18px 32px;
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.35);
}

.contact-info-section {
    padding: 20px 0;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    justify-content: space-between;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: var(--transition-base);
    flex: 1;
}

.contact-info-item:hover {
    border-color: var(--primary);
    transform: translateX(8px);
}

.info-icon-wrapper {
    width: 52px;
    height: 52px;
    background: var(--primary-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-base);
}

.contact-info-item:hover .info-icon-wrapper {
    background: var(--primary);
}

.info-icon {
    width: 22px;
    height: 22px;
    color: var(--primary);
    transition: var(--transition-base);
}

.contact-info-item:hover .info-icon {
    color: var(--bg-dark);
}

.info-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-content p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================
   ENHANCED CONTACT FORM - ENTERPRISE LEVEL
   ============================================ */

/* Response Promise */
.response-promise {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    font-size: 13px;
    color: var(--primary);
}

.response-promise svg {
    color: var(--primary);
}

/* Contact Form Card with Glassmorphism */
.contact-form-card {
    background: rgba(22, 33, 46, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* Floating Labels */
.form-group.floating-label {
    position: relative;
    margin-bottom: 24px;
}

.form-group.floating-label input,
.form-group.floating-label textarea {
    width: 100%;
    padding: 18px 16px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-main);
    transition: var(--transition-base);
}

.form-group.floating-label label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-base);
    background: transparent;
}

.form-group.floating-label textarea~label {
    top: 18px;
    transform: none;
}

.form-group.floating-label input:focus,
.form-group.floating-label textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
    outline: none;
}

.form-group.floating-label input:focus~label,
.form-group.floating-label input:not(:placeholder-shown)~label,
.form-group.floating-label textarea:focus~label,
.form-group.floating-label textarea:not(:placeholder-shown)~label {
    top: 8px;
    transform: none;
    font-size: 11px;
    color: var(--primary);
    background: var(--bg-card);
    padding: 0 4px;
}

/* Validation States */
.validation-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0;
    transition: var(--transition-base);
}

.form-group.valid .validation-icon::after {
    content: '\2713';
    /* Checkmark */
    color: var(--primary);
    font-weight: bold;
    opacity: 1;
}

.form-group.invalid .validation-icon::after {
    content: '\2715';
    /* Cross */
    color: #ef4444;
    font-weight: bold;
    opacity: 1;
}

.form-group.valid .validation-icon,
.form-group.invalid .validation-icon {
    opacity: 1;
}

.form-group.valid input,
.form-group.valid textarea {
    border-color: var(--primary);
}

.form-group.invalid input,
.form-group.invalid textarea {
    border-color: #ef4444;
}

.error-message {
    display: none;
    font-size: 12px;
    color: #ef4444;
    margin-top: 6px;
    padding-left: 4px;
}

.form-group.invalid .error-message {
    display: block;
}

/* Select Dropdowns */
.form-group.select-group {
    position: relative;
    margin-bottom: 24px;
}

.form-group.select-group label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group.select-group select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-main);
    cursor: pointer;
    appearance: none;
    transition: var(--transition-base);
}

.form-group.select-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
    outline: none;
}

.form-group.select-group select option {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 12px;
}

.select-arrow {
    position: absolute;
    right: 16px;
    bottom: 18px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--text-muted);
    pointer-events: none;
}

/* Character Counter */
.char-counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    font-size: 11px;
    color: var(--text-muted);
}

/* Security Notice */
.security-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 10px;
    margin-bottom: 24px;
}

.security-notice svg {
    color: var(--primary);
    flex-shrink: 0;
}

.security-notice span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Submit Button Enhanced */
.submit-btn {
    position: relative;
    overflow: hidden;
}

.submit-btn .btn-text,
.submit-btn .btn-icon {
    transition: var(--transition-base);
}

.submit-btn .btn-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.submit-btn.loading .btn-text,
.submit-btn.loading .btn-icon {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: flex;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Submit Button Glow Effect */
.submit-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3), transparent 70%);
    opacity: 0;
    transition: var(--transition-base);
}

.submit-btn:hover::before {
    opacity: 1;
}

/* Contact Info Interactive Enhancements */
.contact-info-item {
    cursor: pointer;
    position: relative;
}

.contact-info-item::after {
    content: 'Click to copy';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0;
    transition: var(--transition-base);
}

.contact-info-item:hover::after {
    opacity: 1;
}

.contact-info-item.copied::after {
    content: 'Copied!';
    color: var(--primary);
}

/* Animated Icons on Contact Info */
.info-icon-wrapper {
    position: relative;
}

.info-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    border: 2px solid var(--primary);
    opacity: 0;
    animation: none;
}

.contact-info-item:hover .info-icon-wrapper::before {
    opacity: 0.5;
    animation: pulse-ring 1.5s ease-out infinite;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.stagger>*:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger>*:nth-child(2) {
    transition-delay: 0.15s;
}

.stagger>*:nth-child(3) {
    transition-delay: 0.2s;
}

.stagger>*:nth-child(4) {
    transition-delay: 0.25s;
}

.stagger>*:nth-child(5) {
    transition-delay: 0.3s;
}

.stagger>*:nth-child(6) {
    transition-delay: 0.35s;
}

.stagger>*:nth-child(7) {
    transition-delay: 0.4s;
}

.stagger>*:nth-child(8) {
    transition-delay: 0.45s;
}

/* ============================================
   ENTERPRISE ENHANCEMENTS
   ============================================ */

/* Scroll Progress Bar */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 1001;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.1s ease-out;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px var(--primary);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition-base);
    animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-indicator:hover {
    color: var(--primary);
}

.scroll-indicator span {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid currentColor;
    border-radius: 14px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: currentColor;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {

    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(12px);
    }
}

@keyframes scroll-bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* Trusted By Section - Marquee Style */
.trusted-section {
    padding: 40px 0;
    margin-bottom: 90px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.trusted-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 32px;
}

.trusted-marquee {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
}

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

.trusted-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark) 0%, transparent 100%);
}

.trusted-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark) 0%, transparent 100%);
}

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

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

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

    100% {
        transform: translateX(-50%);
    }
}

.trusted-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    opacity: 0.6;
    transition: var(--transition-base);
    flex-shrink: 0;
    cursor: default;
}

.trusted-logo:hover {
    opacity: 1;
    color: var(--text-primary);
}

.trusted-logo svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.trusted-logo span {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* Footer Certifications */
.footer-certifications {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
    margin-top: 40px;
}

.cert-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.cert-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
}

.cert-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition-base);
}

.cert-badge:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

.cert-badge svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.cert-badge span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Glassmorphism Cards */
.service-card,
.project-card,
.insight-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.service-card:hover,
.project-card:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: transparent;
    box-shadow:
        var(--shadow-lg),
        0 0 0 1px var(--primary),
        0 0 40px rgba(16, 185, 129, 0.1);
}

/* Gradient Border Hover Effect for Cards */
.service-card::after,
.project-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition-base);
    pointer-events: none;
}

.service-card:hover::after,
.project-card:hover::after {
    opacity: 1;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */

.newsletter-section {
    background: linear-gradient(135deg,
            rgba(16, 185, 129, 0.1) 0%,
            rgba(14, 165, 233, 0.05) 100%);
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(16, 185, 129, 0.5),
            transparent);
}

.newsletter-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-text h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.newsletter-text p {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 400px;
}

.newsletter-form {
    flex: 1;
    max-width: 500px;
}

.newsletter-input-group {
    display: flex;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    transition: var(--transition-base);
}

.newsletter-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.newsletter-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-main);
}

.newsletter-input-group input::placeholder {
    color: var(--text-muted);
}

.newsletter-input-group input:focus {
    outline: none;
}

.newsletter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: var(--primary-light);
    transform: translateX(4px);
}

.newsletter-disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
    text-align: right;
}

/* Quick Contact Links - Fix for massive icons */
.footer-contact-quick {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
}

.quick-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition-base);
}

.quick-contact:hover {
    color: var(--primary);
}

.quick-contact svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-primary);
    padding: 0 40px 40px;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-top: 60px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 100px;
    /* Increase this for more space between all columns */
    margin-bottom: 60px;
}

.footer-brand {
    flex: 0 0 300px;
}

.footer-links {
    flex: 1;
    max-width: 160px;
    margin-left: auto;
    /* This pushes each column to have equal spacing */
}

/* Align the last column (Resources) to the right */
.footer-main>.footer-links:last-child {
    text-align: left;
}

/* Even out spacing between Company and Resources */
.footer-main>.footer-links:nth-of-type(2) {
    margin-right: 40px;
}

.footer-brand h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* Align last footer column (Resources) to the right */
.footer-links:last-child {
    text-align: left;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-4px);
}

.social-icon {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.copyright {
    font-size: 14px;
    color: var(--text-muted);
}

.copyright .brand {
    color: var(--primary);
    font-weight: 600;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--text-primary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 40px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-title {
        font-size: 44px;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .project-card.featured {
        grid-row: span 1;
        grid-column: span 2;
    }

    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-divider {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 20px;
    }

    /* ==========================================
       GLOBAL MOBILE OVERFLOW PREVENTION
       ========================================== */

    *,
    *::before,
    *::after {
        max-width: 100%;
    }

    body,
    html {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    section,
    footer,
    main,
    .container,
    .hero-section,
    .hero-container,
    .hero-content,
    .about-section,
    .about-container,
    .services-section,
    .projects-section,
    .insights-section,
    .contact-section {
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* Header needs overflow visible for dropdown menu */
    header {
        overflow: visible !important;
    }

    nav {
        position: relative;
        overflow: visible !important;
    }

    /* Fix nav container width */
    nav {
        width: 100%;
        max-width: 100vw;
    }

    /* Prevent stats grid from overflowing */
    .stats-grid {
        max-width: 100%;
        overflow: hidden;
    }

    /* Prevent trusted marquee from causing overflow */
    .trusted-section,
    .trusted-marquee {
        max-width: 100vw;
        overflow: hidden;
    }

    /* ==========================================
       PHASE 1: ENHANCED MOBILE NAVBAR
       ========================================== */

    header {
        padding: 12px 0;
    }

    header.scrolled {
        padding: 10px 0;
    }

    nav {
        padding: 0 20px;
    }

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

    .logo-text {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        background: transparent;
        border: 1px solid var(--border);
        border-radius: 10px;
        color: var(--text-primary);
        cursor: pointer;
        transition: var(--transition-base);
        position: relative;
        z-index: 1001;
        /* Above other nav elements */
        touch-action: manipulation;
        /* Improve touch responsiveness */
        -webkit-tap-highlight-color: rgba(16, 185, 129, 0.2);
    }

    .mobile-menu-btn:hover,
    .mobile-menu-btn:active {
        background: var(--bg-card);
        border-color: var(--primary);
    }

    /* Hide hamburger menu when scrolled for cleaner look */
    header.scrolled .mobile-menu-btn {
        opacity: 0;
        pointer-events: none;
        transform: scale(0.8);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    /* Enhanced Mobile Menu - Full Screen Overlay */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 100vh;
        background: rgba(10, 15, 26, 0.7);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border);
        border-bottom: none;
        padding: 20px;
        padding-bottom: 150px; /* Offset for vertical centering */
        gap: 15px;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links.active li {
        width: 100%;
    }

    .nav-links.active a {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 16px 20px;
        font-size: 20px;
        font-weight: 600;
        border-radius: 10px;
        transition: var(--transition-base);
    }

    .nav-links.active a:hover,
    .nav-links.active a.active {
        background: var(--bg-card);
        color: var(--primary);
    }

    .nav-links.active a::after {
        display: none;
    }



    /* ==========================================
       PHASE 1: ENHANCED MOBILE HERO SECTION
       ========================================== */

    .hero-section {
        min-height: auto;
        /* Remove full-screen height constraint */
        height: auto;
        padding: 80px 16px 40px;
        /* Reduced padding */
        align-items: center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 24px;
        /* Reduced from 40px */
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        order: 1;
    }

    .hero-visual {
        order: 0;
        margin-bottom: 8px;
        /* Reduced from 20px */
    }

    .hero-badge {
        font-size: 11px;
        padding: 5px 12px;
        margin-bottom: 12px;
    }

    .hero-title {
        font-size: 28px;
        /* Reduced from 32px */
        line-height: 1.2;
        margin-bottom: 12px;
        /* Reduced from 16px */
    }

    .hero-title br {
        display: none;
    }

    .hero-subtitle {
        font-size: 14px;
        /* Reduced from 15px */
        line-height: 1.5;
        margin-bottom: 20px;
        /* Reduced from 28px */
        padding: 0 8px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 10px;
        /* Reduced from 12px */
        padding: 0;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        /* Reduced from 18px 28px */
        font-size: 15px;
        min-height: 48px;
        /* Reduced from 56px */
    }

    .logo-container {
        width: 140px;
        /* Reduced from 200px */
        height: 140px;
    }

    .logo-image {
        width: 110px;
        /* Reduced from 160px */
        height: 110px;
        animation: none;
    }

    /* Hide hero video on mobile/tablet for performance */
    .hero-video-container {
        display: none;
    }

    /* Show solid background instead of video on mobile */
    .hero-video-overlay {
        display: block;
        background: linear-gradient(135deg,
                rgba(10, 15, 26, 1) 0%,
                rgba(13, 19, 33, 1) 50%,
                rgba(10, 15, 26, 1) 100%);
    }

    /* Scroll Progress Bar */
    .scroll-progress {
        height: 2px;
    }

    /* Back to Top Button - Mobile Friendly */
    .back-to-top {
        width: 44px;
        height: 44px;
        right: 12px;
        bottom: 12px;
    }

    /* ==========================================
       PHASE 1: ABOUT SECTION MOBILE FIXES
       ========================================== */

    .about-section {
        padding: 40px 16px;
        /* Reduced from 100px */
    }

    .about-container {
        gap: 32px;
        /* Reduced from 60px */
    }

    .about-title {
        font-size: 24px;
        /* Reduced from 36px */
        margin-bottom: 16px;
    }

    .about-text {
        font-size: 14px;
        line-height: 1.6;
    }

    /* ==========================================
       PHASE 2: SERVICES BENTO GRID - MOBILE
       ========================================== */

    .services-section {
        padding: 48px 16px;
    }

    .services-bento {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .bento-card {
        padding: 20px;
        border-radius: 16px;
    }

    .bento-card.bento-featured,
    .bento-card.bento-medium,
    .bento-card.bento-standard,
    .services-bento>.bento-card:nth-child(7),
    .services-bento>.bento-card:nth-child(8) {
        grid-column: span 1;
        min-height: auto;
    }

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

    .bento-icon svg {
        width: 22px;
        height: 22px;
    }

    .bento-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .bento-featured .bento-title {
        font-size: 18px;
    }

    .bento-description {
        font-size: 13px;
        line-height: 1.5;
    }

    .bento-label {
        font-size: 10px;
    }

    .bento-features,
    .bento-features-compact {
        gap: 6px;
        margin-top: 12px;
    }

    .bento-features li,
    .bento-features-compact li {
        font-size: 12px;
    }

    /* ==========================================
       PHASE 2: PROJECTS GRID - MOBILE
       ========================================== */

    .projects-section {
        padding: 48px 16px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 16px;
    }

    .project-card {
        padding: 24px;
        border-radius: 16px;
    }

    .project-card.featured,
    .project-card.vertical,
    .project-card.horizontal {
        grid-column: 1;
        grid-row: auto;
        padding: 24px;
    }

    /* Fix horizontal card - override 2-column grid to single column */
    .project-card.horizontal {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .project-card.horizontal .project-icon-wrapper {
        order: 0;
    }

    .project-card.horizontal .project-category {
        order: 1;
    }

    .project-card.horizontal h3 {
        order: 2;
    }

    .project-card.horizontal .project-description {
        order: 3;
    }

    .project-card.horizontal .project-tech {
        order: 4;
    }

    .project-card.horizontal .project-actions {
        order: 5;
    }

    .project-card.horizontal .project-number {
        font-size: 48px;
    }

    .project-card.horizontal .project-status {
        top: 16px;
        left: 24px;
    }

    .project-card h3 {
        font-size: 18px;
    }

    .project-card.featured h3 {
        font-size: 20px;
    }

    .project-description {
        font-size: 13px;
        line-height: 1.5;
    }

    .project-metrics {
        gap: 16px;
        flex-wrap: wrap;
    }

    .metric-value {
        font-size: 18px;
    }

    .metric-label {
        font-size: 11px;
    }

    .tech-stack {
        gap: 6px;
        flex-wrap: wrap;
    }

    .tech-tag {
        font-size: 10px;
        padding: 4px 8px;
    }

    .project-status {
        font-size: 11px;
        padding: 4px 10px;
    }

    /* ==========================================
       PHASE 2: INSIGHTS TERMINAL CARDS - MOBILE
       ========================================== */

    .insights-section {
        padding: 48px 16px;
    }

    .insights-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .insight-entry {
        padding: 16px;
    }

    .insight-entry h3 {
        font-size: 16px;
    }

    .insight-entry p {
        font-size: 13px;
        line-height: 1.5;
    }

    .insight-meta {
        font-size: 11px;
    }

    .insight-tag {
        font-size: 10px;
        padding: 3px 8px;
    }

    .archive-toggle {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* ==========================================
       PHASE 2: CONTACT FORM - MOBILE
       ========================================== */

    .contact-section {
        padding: 48px 16px;
    }

    .contact-container {
        gap: 32px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 14px 16px;
        font-size: 15px;
    }

    .form-group label {
        font-size: 13px;
    }

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

    .submit-btn {
        padding: 16px 24px;
        font-size: 15px;
        min-height: 52px;
    }

    .contact-info-item {
        padding: 16px;
    }

    .contact-info-item h4 {
        font-size: 14px;
    }

    .contact-info-item p {
        font-size: 13px;
    }

    .contact-divider {
        display: none;
    }

    /* ==========================================
       PHASE 2: FOOTER - MOBILE (ENHANCED)
       ========================================== */

    .footer {
        padding: 40px 20px 24px;
    }

    .footer-content {
        padding-top: 40px;
    }

    .footer-main {
        display: flex;
        flex-direction: column;
        gap: 40px;
        margin-bottom: 40px;
    }

    /* Brand Section - Full Width, Centered */
    .footer-brand {
        flex: none;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 32px;
        border-bottom: 1px solid var(--border);
    }

    .footer-brand h3 {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-size: 20px;
        margin-bottom: 16px;
    }

    .footer-brand p {
        font-size: 14px;
        line-height: 1.6;
        text-align: center;
        max-width: 300px;
        margin-bottom: 20px;
    }

    .footer-contact-quick {
        margin-bottom: 20px;
    }

    .footer-contact-quick a {
        font-size: 13px;
    }

    .social-links {
        display: flex;
        justify-content: center;
        gap: 12px;
    }

    .social-links a {
        width: 44px;
        height: 44px;
    }

    /* Link Columns - Display as 3-column grid on mobile */
    .footer-links {
        flex: none;
        width: 100%;
        max-width: none;
        margin-left: 0;
        text-align: center;
    }

    .footer-links h4 {
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 16px;
        color: var(--text-primary);
        text-align: center;
    }

    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .footer-links a {
        font-size: 14px;
        color: var(--text-secondary);
    }

    /* Bottom Legal Section */
    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding-top: 24px;
        border-top: 1px solid var(--border);
    }

    .footer-bottom p,
    .footer-bottom .copyright {
        font-size: 12px;
        text-align: center;
        color: var(--text-muted);
    }

    .footer-legal {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
    }

    .footer-legal a {
        font-size: 12px;
        color: var(--text-muted);
    }

    /* Stats Grid - already exists but enhancing */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 20px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 10px;
    }

    .stat-suffix {
        font-size: 16px;
    }

    /* Section common styles */
    .section-header {
        margin-bottom: 32px;
    }

    .section-badge {
        font-size: 10px;
        padding: 5px 12px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 14px;
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    /* ==========================================
       PHASE 1: EXTRA SMALL SCREEN OPTIMIZATIONS
       ========================================== */

    /* Navbar - Even more compact */
    .logo-text {
        font-size: 14px;
    }

    .mobile-menu-btn {
        width: 44px;
        height: 44px;
    }

    /* Hero - Maximum compression */
    .hero-section {
        padding: 90px 16px 40px;
    }

    .hero-title {
        font-size: 26px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 14px;
        padding: 0;
    }

    .hero-cta {
        padding: 0;
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 16px 20px;
        font-size: 15px;
        min-height: 52px;
    }

    .logo-container {
        width: 160px;
        height: 160px;
    }

    .logo-image {
        width: 130px;
        height: 130px;
    }

    /* ==========================================
       EXISTING SECTION RULES (Other Phases)
       ========================================== */

    .stats-section {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 14px;
    }
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
    background: linear-gradient(135deg,
            rgba(16, 185, 129, 0.1) 0%,
            rgba(14, 165, 233, 0.05) 100%);
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(16, 185, 129, 0.5),
            transparent);
}

.newsletter-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-text h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.newsletter-text p {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 400px;
}

.newsletter-form {
    flex: 1;
    max-width: 500px;
}

.newsletter-input-group {
    display: flex;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    transition: var(--transition-base);
}

.newsletter-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.newsletter-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-main);
}

.newsletter-input-group input::placeholder {
    color: var(--text-muted);
}

.newsletter-input-group input:focus {
    outline: none;
}

.newsletter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: var(--primary-light);
    transform: translateX(4px);
}

.newsletter-disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
    text-align: right;
}

/* Footer Separator Line */
.footer-gradient-border {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg,
            transparent,
            var(--primary),
            transparent);
    opacity: 0.8;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
    margin-bottom: 60px;
}
/* ============================================
   INSIGHTS TERMINAL LIST (merged from inline)
   ============================================ */

.insights-terminal-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.terminal-card {
    display: block;
    background: rgba(10, 15, 26, 0.8);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-left: 2px solid var(--primary);
    padding: 24px 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
}

.terminal-card:hover {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.03);
    transform: translateX(5px);
    box-shadow: -5px 0 15px -5px rgba(16, 185, 129, 0.2);
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.terminal-title {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 500;
    margin: 0;
    letter-spacing: -0.5px;
}

.terminal-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.terminal-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 90%;
    line-clamp: 2;
}

.terminal-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.terminal-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
    transition: color 0.2s;
}

.terminal-card:hover .terminal-tag {
    color: var(--text-primary);
    background: rgba(16, 185, 129, 0.1);
}

.terminal-title::before {
    content: '> ';
    color: var(--text-muted);
    opacity: 0.5;
    transition: all 0.3s;
}

.terminal-card:hover .terminal-title::before {
    color: var(--primary);
    opacity: 1;
    padding-right: 5px;
}

/* Blog Post Overlay */
.blog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 26, 0.98);
    z-index: 2000;
    overflow-y: auto;
    display: none;
    animation: fadeIn 0.3s ease;
}

.blog-overlay.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    font-family: 'JetBrains Mono', monospace;
    color: #f8fafc;
    position: relative;
}

.blog-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.blog-close-btn:hover {
    color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
}

/* Custom Dark Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.blog-post-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.2;
}

.blog-post-subtitle {
    color: #d946ef;
    font-size: 1.1rem;
    margin-bottom: 30px;
    display: block;
}

.blog-meta-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.blog-meta-tag {
    background: #2a102a;
    color: #ff99ff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid #4a1a4a;
}

.blog-post-date {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 60px;
    display: block;
}

.blog-content h2,
.blog-content h3 {
    color: #fff;
    margin-top: 50px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.blog-content p {
    margin-bottom: 24px;
    color: #fca5a5;
}

.blog-content ul {
    margin-bottom: 24px;
    padding-left: 20px;
    color: #fca5a5;
}

.blog-content code {
    background: #331010;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
}

.blog-content pre {
    background: #1a0505;
    border: 1px solid #441111;
    padding: 20px;
    overflow-x: auto;
    margin: 30px 0;
    color: #ffcccc;
}



/* Insights loading state */
.insights-loading {
    text-align: center;
    padding: 40px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
}

.insights-loading .pulse {
    animation: pulse-blink 1s ease-in-out infinite;
}

@keyframes pulse-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@media (max-width: 768px) {
    .terminal-card {
        padding: 16px 20px;
    }
    .terminal-title {
        font-size: 1rem;
    }
    .terminal-header {
        flex-direction: column;
        gap: 4px;
    }
    .blog-post-title {
        font-size: 1.5rem;
    }
    .blog-container {
        padding: 20px 16px;
    }
}

/* ============================================
   CHATBOT WIDGET STYLES
   ============================================ */

.chat-toggle-btn {
  position: fixed; 
  bottom: 24px; 
  right: 24px; 
  z-index: 9999;
  width: 64px; 
  height: 64px; 
  border-radius: 50%; 
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); 
  color: white; 
  cursor: pointer;
  display: flex; 
  align-items: center; 
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease;
  animation: chatPulseGlow 2.5s infinite;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.chat-toggle-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 28px rgba(16, 185, 129, 0.6);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  animation: none;
}

.chat-toggle-btn:active {
  transform: translateY(2px) scale(0.95);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.chat-toggle-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: chatFloat 3s ease-in-out infinite;
}

.chat-icon-svg {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.chat-toggle-btn:hover .chat-icon-svg {
  transform: scale(1.05) rotate(-3deg);
}

#chat-container {
  display: none; 
  position: fixed; 
  bottom: 96px; 
  right: 24px; 
  z-index: 9998;
  width: 400px; 
  height: 600px; 
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15); 
  overflow: hidden;
  max-width: calc(100vw - 48px); 
  max-height: calc(100vh - 120px);
}

openai-chatkit {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes chatPulseGlow {
  0% { box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4), 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4), 0 0 0 18px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4), 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes chatFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}
