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

:root {
    /* Graphite Gray Theme (only color variables changed) */
    --neon-blue: #40A8FF;
    --neon-blue-bright: #69D1FF;
    --neon-purple: #7C3AED;
    --neon-purple-bright: #B687FF;
    --neon-silver: #2F3438;
    --neon-silver-bright: #40444A;
    --electric-blue: #2EA1FF;
    --cosmic-purple: #5B21B6;
    --metallic-silver: #3E4448;

    /* Gradient Combinations (graphite-friendly) */
    --gradient-primary: linear-gradient(135deg, rgba(64,166,255,1), rgba(46,161,255,1));
    --gradient-secondary: linear-gradient(135deg, rgba(124,58,237,1), rgba(91,33,182,1));
    --gradient-accent: linear-gradient(135deg, var(--neon-blue-bright), var(--neon-purple-bright));
    --gradient-hero: radial-gradient(ellipse at center,
        rgba(2,6,23,0.55) 0%,
        rgba(0,153,255,0.12) 25%,
        rgba(107,33,168,0.12) 55%,
        rgba(0,0,0,0) 90%
    );
    --gradient-silver: linear-gradient(135deg, var(--neon-silver), var(--metallic-silver));

    /* subtle overlay specifically for the hero canvas so Three.js remains visible on graphite */
    --hero-canvas-overlay: radial-gradient(ellipse at center,
        rgba(6,18,40,0.7) 0%,
        rgba(6,18,40,0.45) 30%,
        rgba(0,0,0,0) 65%
    );

    /* Background Colors (graphite) */
    --bg-primary: #1F2326;               /* main graphite background */
    --bg-secondary: rgba(31,35,38,0.95); /* slightly translucent graphite */
    --bg-overlay: rgba(31,35,38,0.88);
    --bg-card: rgba(40,44,48,0.75);
    --bg-glass: rgba(40,44,48,0.45);

    /* Text Colors (light on graphite) */
    --text-primary: #E6EEF3;
    --text-secondary: rgba(230,238,243,0.9);
    --text-muted: rgba(230,238,243,0.65);
    --text-accent: var(--neon-blue-bright);

    /* Borders and Glows (stronger on dark) */
    --border-neon: rgba(64,166,255,0.18);
    --border-purple: rgba(124,58,237,0.16);
    --glow-blue: 0 0 30px rgba(64,166,255,0.22);
    --glow-purple: 0 0 30px rgba(124,58,237,0.14);
    --glow-silver: 0 0 12px rgba(62,68,72,0.6);
    --glow-intense: 0 0 40px rgba(64,166,255,0.32), 0 0 80px rgba(124,58,237,0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navigation Header */
.neon-header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-neon);
    padding: 16px 7.6923%;
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 212, 255, 0.2);
}

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

.neon-logo-text {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: var(--glow-blue);
}

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

.neon-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.neon-nav-link:hover {
    color: var(--neon-blue-bright);
    text-shadow: var(--glow-blue);
}

.neon-nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.neon-nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    color: var(--neon-blue);
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-neon);
    padding: 20px;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--neon-blue-bright);
    text-shadow: var(--glow-blue);
}

/* Hero Canvas Container */
.hero-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;                /* keep canvas behind sections */
    pointer-events: none;
    /* add subtle darker radial overlay behind canvas so network shows on white pages */
    background: var(--hero-canvas-overlay);
}

/* Put hero canvas behind sections */
.hero-canvas-container {
    position: fixed;
    inset: 0;
    z-index: 0;                 /* behind everything */
    pointer-events: none;
}

#hero-canvas {
    width: 100%;
    height: 100%;
}

/* Fix stacking and accidental clipping for sections */
.section-overlap,
.solutions-section,
.about-section,
.portfolio-section,
.contact-section {
    position: relative;
    z-index: 2;                /* make sure section content sits above canvas/glows */
}

/* Ensure glow backgrounds stay behind section content */
.section-bg-glow {
    position: absolute;
    inset: 0;                  /* top:0; right:0; bottom:0; left:0; */
    z-index: 1;
    pointer-events: none;      /* allow clicks through */
}

/* Make sure section background glows stay behind content */
.section-bg-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Container content should be above the glow */
.neon-container {
    position: relative;
    z-index: 3;
    overflow: visible;         /* avoid accidental clipping */
}

/* If you added edge-fade pseudo-elements, keep their z-index low */
.solutions-grid::before,
.solutions-grid::after,
.portfolio-showcase::before,
.portfolio-showcase::after,
.about-stats::before,
.about-stats::after {
    z-index: 1;                /* must be below the .neon-container content */
}

/* Button Styles */
.btn-neon-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    min-height: 56px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--glow-blue);
}

.btn-neon-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-neon-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-intense);
}

.btn-neon-primary:hover::before {
    left: 100%;
}

.btn-neon-primary:active {
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* use the stronger hero gradient so Three.js lines and particles contrast */
    background: var(--gradient-hero);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
    transform: translateY(50px);
    opacity: 0;
    animation: heroFadeIn 1.5s ease-out 0.5s forwards;
}

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

.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    text-shadow: var(--glow-blue);
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 40px;
    opacity: 0.9;
}

.highlight-ai {
    background: var(--neon-purple-bright);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    text-shadow: var(--glow-purple);
    position: relative;
}

.highlight-ai::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-secondary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-arrow-neon {
    width: 30px;
    height: 30px;
    border-right: 3px solid var(--neon-blue-bright);
    border-bottom: 3px solid var(--neon-blue-bright);
    transform: rotate(45deg);
    animation: neonBounce 2s infinite;
    box-shadow: var(--glow-blue);
}

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

/* Container System */
.neon-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 7.6923%;
    position: relative;
    z-index: 3;
    overflow: visible; /* ensure child grids can overflow without being cut off */
}

/* Section Overlapping */
.section-overlap {
    position: relative;
    margin-top: -50px;
    z-index: 2;
}

.section-overlap:nth-child(even) {
    z-index: 4;
}

.section-overlap:nth-child(odd) {
    z-index: 3;
}

/* Background Glows */
.section-bg-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    pointer-events: none;
}

.about-bg {
    background: radial-gradient(ellipse at 30% 50%, rgba(0, 212, 255, 0.15), transparent 70%);
}

.solutions-bg {
    background: radial-gradient(ellipse at 70% 50%, rgba(168, 85, 247, 0.15), transparent 70%);
}

.why-choose-bg {
    background: radial-gradient(ellipse at 50% 30%, rgba(0, 212, 255, 0.15), transparent 70%);
}

.portfolio-bg {
    background: radial-gradient(ellipse at 20% 80%, rgba(124, 58, 237, 0.15), transparent 70%);
}

.testimonials-bg {
    background: radial-gradient(ellipse at 80% 20%, rgba(29, 233, 255, 0.15), transparent 70%);
}

.contact-bg {
    background: radial-gradient(ellipse at 60% 40%, rgba(168, 85, 247, 0.15), transparent 70%);
}

/* Typography */
.section-title {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.neon-text {
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--glow-blue);
}

.neon-gradient-text {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Depth Layers */
.depth-layer {
    transform: translateZ(50px);
    transition: transform 0.8s ease-out;
}

/* About Section */
.about-section {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
}

.about-description {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto 80px;
    text-align: center;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.about-stats::-webkit-scrollbar {
    display: none;
}

.about-stats::before,
.about-stats::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 56px;
    pointer-events: none;
    z-index: 5;
}

.about-stats::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-primary) 0%, rgba(0,0,0,0) 60%);
}

.about-stats::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-primary) 0%, rgba(0,0,0,0) 60%);
}

/* === UNIVERSAL FIX for clipping === */

/* Remove ALL right-side fades */
.about-stats::after,
.solutions-grid::after,
.portfolio-showcase::after,
.testimonials-carousel::after {
  display: none !important;
}

/* Keep left fades only (optional, subtle edge glow) */
.about-stats::before,
.solutions-grid::before,
.portfolio-showcase::before,
.testimonials-carousel::before {
  width: 40px; /* reduce width so it never hides cards */
  pointer-events: none;
}


.stat-card {
    background: var(--bg-glass);
    border: 2px solid var(--border-neon);
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.stat-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--glow-intense);
    border-color: var(--neon-purple-bright);
}

.stat-card:hover::before {
    opacity: 0.1;
}

.stat-number {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Solutions Section */
.solutions-section {
    background: var(--bg-primary);
}

/* === FIX: prevent clipping on grid edges === */

/* Solutions Grid → keep left fade only */
.solutions-grid::after {
  display: none !important;
}
.solutions-grid::before {
  width: 40px; /* smaller, subtle fade */
  pointer-events: none;
}

/* Portfolio Showcase → keep right fade only */
.portfolio-showcase::before {
  display: none !important;
}
.portfolio-showcase::after {
  width: 40px; /* smaller, subtle fade */
  pointer-events: none;
}

/* About stats → no fades (clean look) */
.about-stats::before,
.about-stats::after {
  display: none !important;
}

/* Testimonials carousel → no fades (clean look) */
.testimonials-carousel::before,
.testimonials-carousel::after {
  display: none !important;
}


.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Exactly 4 columns in one row */
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    box-sizing: border-box;
}

.solutions-grid::-webkit-scrollbar {
    display: none;
}

.solutions-grid::before,
.solutions-grid::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 56px;
    pointer-events: none;
    z-index: 5;
}

.solutions-grid::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-primary) 0%, rgba(0,0,0,0) 60%);
}

.solutions-grid::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-primary) 0%, rgba(0,0,0,0) 60%);
}

.solution-card {
    background: var(--bg-glass);
    border: 2px solid var(--border-neon);
    border-radius: 24px;
    padding: 30px 20px; /* Reduced padding to fit 4 cards */
    position: relative;
    overflow: hidden;
    text-align: center;
    transition: all 0.6s ease;
    backdrop-filter: blur(15px);
    transform-style: preserve-3d;
    min-height: 320px; /* Ensure consistent height */
}

.floating-3d {
    transform: translateY(20px) rotateX(2deg);
}

.solution-card:hover {
    transform: translateY(-15px) rotateX(-2deg) rotateY(2deg);
    box-shadow: var(--glow-intense);
    border-color: var(--neon-purple-bright);
}

.card-glow-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, var(--neon-blue), var(--neon-purple), var(--neon-silver), var(--neon-blue));
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: rotate 4s linear infinite;
    z-index: -1;
}

.solution-card:hover .card-glow-effect {
    opacity: 0.15;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.neon-icon {
    filter: drop-shadow(var(--glow-blue));
}

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

.card-description {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Why Choose Section */
.why-choose-section {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
}

.why-choose-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: var(--bg-glass);
    border-radius: 20px;
    border: 1px solid var(--border-neon);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.feature-item:hover {
    transform: translateX(10px);
    border-color: var(--neon-purple-bright);
    box-shadow: var(--glow-blue);
}

.feature-icon {
    font-size: 32px;
    color: var(--neon-blue-bright);
    filter: drop-shadow(var(--glow-blue));
}

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

.feature-content p {
    color: var(--text-muted);
    line-height: 1.6;
}

.floating-neon-elements {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-element {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.neon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    top: 20%;
    left: 30%;
    animation-delay: 0s;
    box-shadow: var(--glow-blue);
}

.neon-square {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    transform: rotate(45deg);
    top: 60%;
    right: 20%;
    animation-delay: 2s;
    box-shadow: var(--glow-purple);
}

.neon-triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid var(--neon-silver);
    top: 40%;
    left: 60%;
    animation-delay: 4s;
    filter: drop-shadow(var(--glow-silver));
}

.neon-hexagon {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    transform: rotate(45deg);
    top: 80%;
    left: 20%;
    animation-delay: 1s;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: var(--glow-blue);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

/* Portfolio Section */
.portfolio-section {
    background: var(--bg-primary);
}

.portfolio-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.portfolio-showcase::-webkit-scrollbar {
    display: none;
}

.portfolio-showcase::before,
.portfolio-showcase::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 56px;
    pointer-events: none;
    z-index: 5;
}

.portfolio-showcase::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-primary) 0%, rgba(0,0,0,0) 60%);
}

.portfolio-showcase::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-primary) 0%, rgba(0,0,0,0) 60%);
}

.portfolio-item {
    background: var(--bg-glass);
    border: 2px solid var(--border-purple);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.6s ease;
    backdrop-filter: blur(15px);
    transform-style: preserve-3d;
}

.portfolio-item:hover {
    transform: translateY(-15px) rotateX(-5deg) rotateY(5deg);
    box-shadow: var(--glow-intense);
    border-color: var(--neon-blue-bright);
}

.portfolio-glow {
    position: absolute;
    inset: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.portfolio-item:hover .portfolio-glow {
    opacity: 0.1;
}

.portfolio-image {
    text-align: center;
    margin-bottom: 30px;
}

.portfolio-icon {
    font-size: 64px;
    color: var(--neon-blue-bright);
    filter: drop-shadow(var(--glow-blue));
}

.portfolio-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.portfolio-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.portfolio-metrics {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
    overflow: hidden;
}

.testimonial-item {
    width: 100%;
    flex-shrink: 0;
    background: var(--bg-glass);
    border: 2px solid var(--border-neon);
    border-radius: 24px;
    padding: 50px;
    text-align: center;
    backdrop-filter: blur(15px);
    position: relative;
}

.testimonial-glow {
    position: absolute;
    inset: 0;
    background: var(--gradient-secondary);
    opacity: 0.05;
    border-radius: 24px;
    z-index: -1;
}

.testimonial-quote-icon {
    font-size: 32px;
    color: var(--neon-blue-bright);
    margin-bottom: 20px;
    opacity: 0.7;
}

.testimonial-quote {
    font-size: 20px;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.testimonial-author h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.testimonial-author p {
    color: var(--text-muted);
    margin-bottom: 5px;
}

.testimonial-author .company {
    color: var(--neon-purple-bright);
    font-weight: 500;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--glow-blue);
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--glow-intense);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: var(--neon-blue-bright);
    box-shadow: var(--glow-blue);
}

/* Contact Section */
.contact-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(46,161,255,0.02), rgba(124,58,237,0.02));
    overflow: visible;
    z-index: 2;
}

.contact-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.contact-heading {
    text-align: center;
    margin-bottom: 48px;
}

.contact-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.contact-description {
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid: form and info side-by-side */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 28px;
    align-items: start;
    max-width: 1400px; /* Add max-width constraint */
    margin: 0 auto; /* Center the grid */
}

/* Card base */
.contact-card {
    background: var(--bg-glass);
    border: 1px solid rgba(64,166,255,0.06);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(2,6,23,0.5);
}

/* Toggle header (keeps same markup for both cards) */
.contact-card-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-bottom: 1px solid rgba(255,255,255,0.02);
    cursor: pointer;
    border: none; /* Remove default button border */
    color: inherit; /* Inherit text color */
}

.contact-card-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 20px;
}

.contact-toggle-icon {
    color: var(--text-primary);
    opacity: 0.95;
}

/* Card body (form or info) */
.contact-card-body {
    padding: 26px;
}

/* Form layout */
.contact-form .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 8px;
    margin-bottom: 12px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 600;
}

.input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--text-primary);
    box-sizing: border-box;
}

/* Remove boxed appearance on labels (clean, inline labels) */
.contact-form label,
.form-group label {
    background: transparent;
    padding: 0;
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    box-shadow: none;
    border: none;
}

/* Slightly lift inputs so label doesn't visually overlap input background */
.contact-form .input {
    margin-top: 6px;
}

/* Submit button */
.btn-contact-send {
    display: inline-block;
    width: 100%;
    background: var(--neon-blue);
    color: white;
    padding: 14px 20px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    margin-bottom: 28px;
    box-shadow: var(--glow-intense);
}

.btn-contact-send:hover {
    transform: translateY(-2px);
    transition: transform 180ms ease;
}

/* Contact info methods */
.contact-info-body .contact-method {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.03);
}

.contact-info-body .contact-method:last-child {
    border-bottom: none;
}

.method-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

/* Ensure revealed by JS/animations */
.contact-section [data-scroll-trigger] {
    opacity: 1 !important;
    transform: none !important;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-neon);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--neon-blue-bright);
    text-shadow: var(--glow-blue);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 13px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--glow-blue);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-intense);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-neon);
    color: var(--text-muted);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--bg-glass);
    border: 2px solid var(--border-neon);
    border-radius: 24px;
    margin: 10% auto;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    position: relative;
    backdrop-filter: blur(20px);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--neon-blue-bright);
}

.success-icon {
    font-size: 48px;
    color: var(--neon-blue-bright);
    margin-bottom: 20px;
    filter: drop-shadow(var(--glow-blue));
}

.modal-body h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.modal-body p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Mobile Responsive Optimizations - Add these styles to your existing CSS */

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
    .neon-header {
        padding: 12px 20px;
        height: 70px;
    }
    
    .neon-logo-text {
        font-size: 24px;
    }
    
    .mobile-menu {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-nav-link {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-neon);
    }
    
    .mobile-nav-link:last-child {
        border-bottom: none;
    }
}

/* Hero Section Mobile Optimizations */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    
    .hero-content {
        padding: 0 20px;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 42px;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 30px;
        line-height: 1.5;
    }
    
    .btn-neon-primary {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
}

/* Container and Section Mobile Improvements */
@media (max-width: 768px) {
    .neon-container {
        padding: 60px 20px;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
        line-height: 1.3;
    }
    
    .about-description {
        font-size: 18px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .neon-container {
        padding: 40px 16px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .about-description {
        font-size: 16px;
    }
}

/* About Stats Mobile Layout */
@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0;
        margin: 0;
    }
    
    .stat-card {
        padding: 30px 20px;
        margin: 0 auto;
        max-width: 400px;
        width: 100%;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 14px;
    }
}

/* Solutions Grid Mobile Optimization */
@media (max-width: 768px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0;
        margin: 0;
    }
    
    .solution-card {
        padding: 30px 20px;
        min-height: 300px;
        margin: 0 auto;
        max-width: 400px;
        width: 100%;
    }
    
    .card-icon {
        font-size: 40px;
        margin-bottom: 16px;
    }
    
    .card-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .card-description {
        font-size: 14px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .solutions-grid {
        gap: 16px;
    }
    
    .solution-card {
        padding: 24px 16px;
        min-height: 280px;
    }
}

/* Why Choose Section Mobile */
@media (max-width: 768px) {
    .why-choose-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features-list {
        gap: 20px;
    }
    
    .feature-item {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .feature-icon {
        font-size: 28px;
    }
    
    .feature-content h3 {
        font-size: 18px;
    }
    
    .feature-content p {
        font-size: 14px;
    }
    
    .floating-neon-elements {
        height: 200px;
    }
    
    .neon-circle,
    .neon-square,
    .neon-triangle,
    .neon-hexagon {
        transform: scale(0.7);
    }
}

@media (max-width: 480px) {
    .feature-item {
        padding: 16px;
        gap: 10px;
    }
    
    .floating-neon-elements {
        display: none;
    }
}

/* Portfolio Section Mobile */
@media (max-width: 768px) {
    .portfolio-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
        margin: 0;
    }
    
    .portfolio-item {
        padding: 30px 20px;
        margin: 0 auto;
        max-width: 400px;
        width: 100%;
    }
    
    .portfolio-icon {
        font-size: 48px;
    }
    
    .portfolio-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .portfolio-description {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .portfolio-metrics {
        gap: 20px;
        margin-top: 16px;
    }
    
    .metric-value {
        font-size: 18px;
    }
    
    .metric-label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .portfolio-item {
        padding: 24px 16px;
    }
    
    .portfolio-metrics {
        flex-direction: column;
        gap: 12px;
    }
}

/* Testimonials Mobile */
@media (max-width: 768px) {
    .testimonials-carousel {
        max-width: 100%;
    }
    
    .testimonial-item {
        padding: 30px 20px;
    }
    
    .testimonial-quote {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .testimonial-author h4 {
        font-size: 18px;
    }
    
    .testimonial-author p,
    .testimonial-author .company {
        font-size: 14px;
    }
    
    .carousel-controls {
        gap: 15px;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .testimonial-item {
        padding: 24px 16px;
    }
    
    .testimonial-quote {
        font-size: 16px;
    }
}

/* Contact Section Mobile Optimization */
@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-container {
        padding: 0 20px;
    }
    
    .contact-title {
        font-size: 32px;
        margin-bottom: 16px;
    }
    
    .contact-description {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-form .grid-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .contact-card-body {
        padding: 20px;
    }
    
    .contact-card-toggle {
        padding: 16px 20px;
    }
    
    .contact-card-title {
        font-size: 18px;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .input {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn-contact-send {
        padding: 14px;
        font-size: 16px;
    }
    
    .contact-method {
        padding: 12px 0;
    }
    
    .method-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .contact-container {
        padding: 0 16px;
    }
    
    .contact-title {
        font-size: 28px;
    }
    
    .contact-card-body {
        padding: 16px;
    }
    
    .contact-card-toggle {
        padding: 14px 16px;
    }
}

/* Footer Mobile */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-brand h3 {
        font-size: 20px;
    }
    
    .footer-brand p {
        font-size: 14px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .footer-links h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .footer-links ul {
        gap: 8px;
    }
    
    .footer-links a {
        font-size: 14px;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 16px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .footer-bottom {
        font-size: 14px;
        padding: 0 20px;
    }
}

/* Modal Mobile */
@media (max-width: 768px) {
    .modal-content {
        margin: 20% auto;
        width: 95%;
        max-width: 400px;
        padding: 30px 20px;
    }
    
    .modal-body h3 {
        font-size: 20px;
    }
    
    .modal-body p {
        font-size: 14px;
    }
    
    .success-icon {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 15% auto;
        padding: 24px 16px;
    }
}

/* Touch-friendly Improvements */
@media (max-width: 768px) {
    /* Larger touch targets */
    .btn-neon-primary {
        min-height: 48px;
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .carousel-btn {
        min-height: 48px;
        min-width: 48px;
    }
    
    .social-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better text readability */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
    }
    
    /* Better form experience on mobile */
    .input, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
    }
    
    /* Improved hover states for touch */
    .stat-card:hover,
    .solution-card:hover,
    .portfolio-item:hover,
    .feature-item:hover {
        transform: translateY(-5px);
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .neon-container {
        padding: 30px 12px;
    }
    
    .hero-content {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .contact-container {
        padding: 0 12px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 60px 0 20px;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .neon-container {
        padding: 40px 20px;
    }
}

/* High DPI screens - better text rendering */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
}
/* Animations */
@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.animate-slide-up {
    animation: slideInUp 0.8s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Hide elements initially for animation */
[data-scroll-trigger] {
    opacity: 0;
    transform: translateY(30px);
}

[data-scroll-trigger].animate-slide-up,
[data-scroll-trigger].animate-fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading .btn-neon-primary {
    background: var(--gradient-silver);
    cursor: not-allowed;
}

/* Fix: reveal contact-section children that are hidden by the data-scroll-trigger default state,
   and ensure the neon-container / form sits above the glow/canvas. */
.contact-section .neon-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto; /* Ensure all containers are centered */
    padding: 100px 7.6923%;
    position: relative;
    z-index: 3;
    overflow: visible;
}

/* Override the generic [data-scroll-trigger] hide for elements inside contact section */
.contact-section [data-scroll-trigger] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Make sure form and contact blocks are on top and clearly visible */
.contact-info,
.contact-form-container {
    position: relative;
    z-index: 7;
}

/* If the glow background reduces contrast, slightly darken the form background for readability */
.contact-form-container {
    background: rgba(40,44,48,0.85); /* preserves glass look but improves contrast */
    border-color: var(--border-neon);
}

/* Ensure contact section and form are above glows/canvas and clearly visible */
.contact-section {
    position: relative;
    z-index: 4;
}

.contact-section .neon-container {
    position: relative;
    z-index: 5;
    overflow: visible;
}

/* Ensure contact section content is on top and not clipped */
.contact-section {
    position: relative;
    z-index: 5;                 /* above canvas and glows */
    overflow: visible;
}

/* Ensure neon-container content is above the glow */
.contact-section .neon-container {
    position: relative;
    z-index: 6;
    overflow: visible;
}

/* Reveal any scroll-triggered children in the contact section (GSAP may set opacity/transform) */
.contact-section [data-scroll-trigger] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Visible, contrasted form */
.contact-form-container {
    position: relative;
    z-index: 7;
    background: rgba(18,22,26,0.8);   /* semi-opaque so form stands out */
    border: 1px solid rgba(64,166,255,0.08);
    padding: 28px;
    border-radius: 12px;
    max-width: 640px;
    color: var(--text-primary);
}


/* If you previously added masks/negative margins for grids, ensure they don't affect contact */
.neon-container,
.solutions-grid,
.about-stats,
.portfolio-showcase {
    -webkit-mask-image: none;
    mask-image: none;
}

.contact-card-toggle .contact-toggle-icon { transition: transform 220ms ease; }
.contact-card.open .contact-toggle-icon { transform: rotate(180deg); }

.solutions-grid::before { left: 0; background: linear-gradient(90deg, var(--bg-primary) 0%, rgba(0,0,0,0) 60%); }
.solutions-grid::after  { right: 0; background: linear-gradient(270deg, var(--bg-primary) 0%, rgba(0,0,0,0) 60%); }

.portfolio-showcase::before { left: 0; background: linear-gradient(90deg, var(--bg-primary) 0%, rgba(0,0,0,0) 60%); }
.portfolio-showcase::after  { right: 0; background: linear-gradient(270deg, var(--bg-primary) 0%, rgba(0,0,0,0) 60%); }
