/* ═══════════════════════════════════════════════════════════════
   QuantumX Technologies — Premium Futuristic CSS
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables / Design Tokens ───────────────────────────── */
:root {
    /* Background */
    --bg-primary: #050B18;
    --bg-secondary: #0A1A2F;
    --bg-card: rgba(10, 26, 47, 0.6);
    --bg-glass: rgba(10, 26, 47, 0.4);

    /* Primary Colors */
    --cyan: #00D4FF;
    --cyan-dim: #0099CC;
    --cyan-glow: rgba(0, 212, 255, 0.15);
    --cyan-glow-strong: rgba(0, 212, 255, 0.35);

    /* Accent */
    --purple: #7B61FF;
    --purple-dim: #5A3FD6;
    --purple-glow: rgba(123, 97, 255, 0.15);

    /* Metallic */
    --silver: #C0C8D8;
    --chrome: #E0E4EC;
    --chrome-dim: #8892A4;

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.45);

    /* Borders */
    --border: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(0, 212, 255, 0.2);

    /* Gradients */
    --gradient-bg: linear-gradient(135deg, #0A1A2F 0%, #050B18 100%);
    --gradient-cyan: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
    --gradient-text: linear-gradient(135deg, #00D4FF 0%, #7B61FF 100%);
    --gradient-card: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(123, 97, 255, 0.05) 100%);
    --gradient-border: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(123, 97, 255, 0.3), rgba(0, 212, 255, 0.1));

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.15);
    --shadow-glow-strong: 0 0 80px rgba(0, 212, 255, 0.25);

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

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--cyan-dim) var(--bg-primary);
}

html::-webkit-scrollbar {
    width: 6px;
}

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

html::-webkit-scrollbar-thumb {
    background: var(--cyan-dim);
    border-radius: 3px;
}

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

/* Noise texture overlay for premium feel */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ── Particle Canvas ─────────────────────────────────────────── */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ── Custom Cursor Glow ──────────────────────────────────────── */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    will-change: transform;
}

/* ── Section Utilities ───────────────────────────────────────── */
.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--cyan);
    padding: 8px 20px;
    border: 1px solid var(--border-glow);
    border-radius: 100px;
    margin-bottom: 24px;
    background: var(--cyan-glow);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

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

/* ── Scroll Animations ───────────────────────────────────────── */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(5, 11, 24, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.logo-img {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3));
    transition: filter var(--transition-smooth);
}

.logo-img:hover {
    filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.5));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 8px;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(0, 212, 255, 0.08);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--cyan);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--cyan);
}

.nav-cta {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(123, 97, 255, 0.2));
    border: 1px solid rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-smooth);
    z-index: 10;
}

.nav-cta:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.35), rgba(123, 97, 255, 0.35));
    border-color: var(--cyan);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3), transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s;
    border-radius: inherit;
}

.nav-cta:hover .cta-glow {
    transform: translate(-50%, -50%) scale(2);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 100px 0 60px;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float-slow 15s ease-in-out infinite;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: float-slow 18s ease-in-out infinite reverse;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-glow 5s ease-in-out infinite;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, transparent 70%);
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--cyan);
    padding: 8px 18px;
    border: 1px solid var(--border-glow);
    border-radius: 100px;
    margin-bottom: 32px;
    background: rgba(0, 212, 255, 0.06);
    letter-spacing: 0.05em;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--cyan);
}

.hero-title {
    font-family: var(--font-display);
    margin-bottom: 20px;
    line-height: 1.1;
}

.title-line {
    display: block;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 900;
    color: var(--chrome);
    letter-spacing: 0.02em;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.15);
}

.title-x {
    color: var(--cyan);
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5), 0 0 60px rgba(0, 212, 255, 0.2);
    position: relative;
}

.title-sub {
    font-size: clamp(1.2rem, 2.5vw, 2rem) !important;
    font-weight: 600;
    color: var(--silver);
    letter-spacing: 0.35em;
    margin-top: 4px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-tertiary);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 36px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 14px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: none;
    outline: none;
}

.btn-primary {
    color: var(--bg-primary);
    background: var(--gradient-cyan);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary .btn-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0, 212, 255, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-primary:hover .btn-bg {
    opacity: 1;
}

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

.btn-secondary {
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(10px);
}

.btn-secondary .btn-border {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: var(--gradient-border);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: -1;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    padding: 1px;
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: var(--cyan);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary:hover .btn-border {
    opacity: 1;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
    border-radius: 16px;
}

.btn-icon {
    flex-shrink: 0;
}

/* ── Hero Stats ──────────────────────────────────────────────── */
.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cyan);
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--cyan);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 4px;
    letter-spacing: 0.02em;
}

/* ── Hero Visual (3D Atom) ───────────────────────────────────── */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.5s both;
}

#atomCanvas {
    width: 100%;
    height: 550px;
    position: relative;
    z-index: 2;
}

.atom-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(40px);
    animation: pulse-glow 4s ease-in-out infinite;
    z-index: 1;
}

/* ── Scroll Indicator ────────────────────────────────────────── */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.hero-scroll-indicator span {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES SECTION
   ═══════════════════════════════════════════════════════════════ */
.services {
    padding: var(--section-padding);
    position: relative;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.service-card .card-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--transition-smooth);
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(0, 212, 255, 0.08), transparent 40%);
    z-index: 0;
}

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

.card-inner {
    position: relative;
    z-index: 1;
    padding: 36px 28px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(10, 26, 47, 0.8), rgba(5, 11, 24, 0.9));
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    height: 100%;
    transition: all var(--transition-smooth);
}

.service-card:hover .card-inner {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: var(--shadow-glow), 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-8px);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 97, 255, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all var(--transition-smooth);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--cyan);
    transition: all var(--transition-smooth);
}

.service-card:hover .card-icon {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(123, 97, 255, 0.2));
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.service-card:hover .card-icon svg {
    filter: drop-shadow(0 0 8px var(--cyan));
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card-desc {
    font-size: 0.88rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    margin-bottom: 18px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card-tags span {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(0, 212, 255, 0.06);
    color: var(--cyan-dim);
    border: 1px solid rgba(0, 212, 255, 0.08);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   QUANTUM NETWORK SECTION
   ═══════════════════════════════════════════════════════════════ */
.quantum-network {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.network-visual {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 700px;
    margin: 0 auto;
}

#networkCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.network-center-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.center-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    animation: pulse-glow 3s ease-in-out infinite;
    z-index: -1;
}

.network-nodes {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.network-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 50%;
    background: rgba(10, 26, 47, 0.8);
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(10px);
    transition: all var(--transition-smooth);
    cursor: pointer;
    transform: translate(-50%, -50%) 
               translate(
                   calc(cos(var(--angle)) * 240px), 
                   calc(sin(var(--angle)) * 240px)
               );
}

.network-node:hover {
    border-color: var(--cyan);
    box-shadow: var(--shadow-glow-strong);
    transform: translate(-50%, -50%) 
               translate(
                   calc(cos(var(--angle)) * 240px), 
                   calc(sin(var(--angle)) * 240px)
               ) scale(1.15);
}

.node-icon {
    width: 28px;
    height: 28px;
    color: var(--cyan);
}

.node-icon svg {
    width: 100%;
    height: 100%;
}

.network-node span {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════
   PROJECTS SECTION
   ═══════════════════════════════════════════════════════════════ */
.projects {
    padding: var(--section-padding);
    position: relative;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.project-card {
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(10, 26, 47, 0.8), rgba(5, 11, 24, 0.9));
    border: 1px solid var(--border);
    transition: all var(--transition-smooth);
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: var(--shadow-glow), 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-8px);
}

.project-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(123, 97, 255, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(5, 11, 24, 0.8) 0%, transparent 50%);
}

.project-placeholder {
    width: 80px;
    height: 80px;
    color: var(--cyan);
    opacity: 0.5;
}

.project-placeholder svg {
    width: 100%;
    height: 100%;
}

.project-info {
    padding: 28px;
}

.project-category {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--cyan);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-desc {
    font-size: 0.88rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    margin-bottom: 16px;
}

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

.project-tech span {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(123, 97, 255, 0.08);
    color: var(--purple);
    border: 1px solid rgba(123, 97, 255, 0.12);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════════ */
.cta-section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.cta-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.cta-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation: float-slow 12s ease-in-out infinite;
}

.cta-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.08) 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.cta-panel {
    position: relative;
    padding: 80px 60px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(10, 26, 47, 0.6), rgba(5, 11, 24, 0.8));
    border: 1px solid rgba(0, 212, 255, 0.15);
    backdrop-filter: blur(30px);
    text-align: center;
    overflow: hidden;
}

.cta-border-glow {
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(from 0deg, var(--cyan), var(--purple), var(--cyan), transparent, var(--cyan));
    z-index: -1;
    animation: border-rotate 6s linear infinite;
    opacity: 0.3;
}

.cta-border-glow::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(10, 26, 47, 0.95), rgba(5, 11, 24, 0.98));
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.cta-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
    position: relative;
    padding: 80px 0 40px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, #030810 100%);
    border-top: 1px solid var(--border);
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    filter: blur(1px);
}

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

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.2));
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 280px;
}

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-smooth);
}

.social-link svg {
    width: 18px;
    height: 18px;
    color: var(--text-tertiary);
    transition: color var(--transition-fast);
}

.social-link:hover {
    background: rgba(0, 212, 255, 0.12);
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.social-link:hover svg {
    color: var(--cyan);
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.footer-links a {
    display: block;
    font-size: 0.88rem;
    color: var(--text-tertiary);
    padding: 6px 0;
    transition: color var(--transition-fast);
}

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

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

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, -30px); }
    50% { transform: translate(-10px, 20px); }
    75% { transform: translate(15px, 10px); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--cyan); }
    50% { opacity: 0.5; box-shadow: 0 0 16px var(--cyan); }
}

@keyframes scroll-pulse {
    0%, 100% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
    50% {
        opacity: 0.3;
        transform: scaleY(0.5);
        transform-origin: top;
    }
}

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

@keyframes node-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.2); }
    50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.4); }
}

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

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 0;
    }

    #atomCanvas {
        height: 350px;
    }

    .hero-description {
        margin: 0 auto 36px;
    }

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

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

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

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

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

    .network-visual {
        height: 500px;
        max-width: 500px;
    }

    .network-node {
        width: 70px;
        height: 70px;
        transform: translate(-50%, -50%) 
                   translate(
                       calc(cos(var(--angle)) * 170px), 
                       calc(sin(var(--angle)) * 170px)
                   );
    }

    .network-node:hover {
        transform: translate(-50%, -50%) 
                   translate(
                       calc(cos(var(--angle)) * 170px), 
                       calc(sin(var(--angle)) * 170px)
                   ) scale(1.15);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: rgba(5, 11, 24, 0.98);
        backdrop-filter: blur(30px);
        padding: 100px 32px 32px;
        gap: 4px;
        transition: right var(--transition-smooth);
        border-left: 1px solid var(--border);
    }

    .nav-menu.open {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-cta {
        display: none;
    }
}

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

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

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

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .cta-panel {
        padding: 48px 24px;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .network-visual {
        height: 400px;
        max-width: 400px;
    }

    .network-node {
        width: 60px;
        height: 60px;
        transform: translate(-50%, -50%) 
                   translate(
                       calc(cos(var(--angle)) * 130px), 
                       calc(sin(var(--angle)) * 130px)
                   );
    }

    .network-node:hover {
        transform: translate(-50%, -50%) 
                   translate(
                       calc(cos(var(--angle)) * 130px), 
                       calc(sin(var(--angle)) * 130px)
                   ) scale(1.15);
    }

    .node-icon {
        width: 22px;
        height: 22px;
    }

    .network-node span {
        font-size: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title .title-line {
        font-size: 2.2rem;
    }

    .title-sub {
        font-size: 1rem !important;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.88rem;
    }
}
