/* ===== CSS Variables ===== */
:root {
    --bg-primary: #050510;
    --bg-secondary: #0a0a1a;
    --bg-card: rgba(15, 15, 35, 0.6);
    --accent-cyan: #00f0ff;
    --accent-purple: #a855f7;
    --accent-blue: #3b82f6;
    --accent-pink: #ec4899;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.4);
    --gradient-main: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    --gradient-glow: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(168, 85, 247, 0.3));
    --border-glass: rgba(255, 255, 255, 0.08);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Noto Sans SC', sans-serif;
    --nav-height: 80px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: default;
}

a {
    text-decoration: none;
    color: inherit;
}

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Background Layers ===== */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.scanlines {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 240, 255, 0.015) 2px,
        rgba(0, 240, 255, 0.015) 4px
    );
}

.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    color: var(--accent-cyan);
    animation: logoSpin 10s linear infinite;
}

@keyframes logoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-cyan);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 40px) 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--accent-cyan);
    margin-bottom: 32px;
    background: rgba(0, 240, 255, 0.05);
    animation: badgePulse 3s ease-in-out infinite;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent-cyan);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.1); }
    50% { box-shadow: 0 0 30px rgba(0, 240, 255, 0.2); }
}

.hero-title {
    margin-bottom: 24px;
}

.title-line {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, var(--accent-cyan) 50%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.3)); }
    50% { filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.4)); }
}

.title-sub {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    letter-spacing: 8px;
    color: var(--text-muted);
    margin-top: 12px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.highlight {
    color: var(--accent-cyan);
    font-weight: 500;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--accent-cyan);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-glass);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 4px 30px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 50%;
    animation: orbitSpin linear infinite;
}

.ring-1 {
    width: 300px;
    height: 300px;
    animation-duration: 20s;
}

.ring-2 {
    width: 380px;
    height: 380px;
    animation-duration: 30s;
    animation-direction: reverse;
    border-color: rgba(168, 85, 247, 0.15);
}

.ring-3 {
    width: 460px;
    height: 460px;
    animation-duration: 40s;
    border-style: dashed;
}

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.core-sphere {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 240, 255, 0.3), rgba(168, 85, 247, 0.2));
    border: 2px solid rgba(0, 240, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sphereFloat 6s ease-in-out infinite;
    box-shadow:
        0 0 60px rgba(0, 240, 255, 0.2),
        inset 0 0 60px rgba(168, 85, 247, 0.1);
    position: relative;
    z-index: 2;
}

.sphere-inner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-main);
    animation: innerPulse 3s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.5);
}

@keyframes sphereFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes innerPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.floating-cube {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0, 240, 255, 0.5);
    background: rgba(0, 240, 255, 0.05);
    animation: cubeFloat 8s ease-in-out infinite;
}

.cube-1 { top: 10%; right: 20%; animation-delay: 0s; }
.cube-2 { bottom: 20%; left: 10%; animation-delay: -2s; border-color: rgba(168, 85, 247, 0.5); }
.cube-3 { top: 40%; right: 5%; animation-delay: -4s; width: 20px; height: 20px; }

@keyframes cubeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(90deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
    75% { transform: translateY(-40px) rotate(270deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 3px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-cyan), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 40px; }
    50% { opacity: 1; height: 60px; }
}

/* ===== Sections Common ===== */
.section {
    position: relative;
    z-index: 10;
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--accent-cyan);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== Services ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.1);
}

.service-card.featured {
    border-color: rgba(168, 85, 247, 0.3);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(168, 85, 247, 0.05));
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.service-card:hover .card-glow {
    opacity: 1;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 12px;
    background: var(--gradient-main);
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.card-icon {
    width: 64px;
    height: 64px;
    color: var(--accent-cyan);
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.card-features li {
    padding: 6px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-left: 20px;
    position: relative;
}

.card-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

.card-number {
    position: absolute;
    bottom: 20px;
    right: 24px;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
}

/* ===== Tech Stack ===== */
.tech-stack {
    background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.02), transparent);
}

.tech-marquee {
    overflow: hidden;
    margin-bottom: 64px;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 32px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.tech-item {
    flex-shrink: 0;
    padding: 12px 28px;
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.tech-item:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tech-card {
    perspective: 1000px;
}

.tech-card-inner {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    text-align: center;
    transition: all 0.5s;
    backdrop-filter: blur(10px);
}

.tech-card:hover .tech-card-inner {
    transform: rotateY(5deg) rotateX(-5deg);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tech-visual {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

/* Neural Network Visual */
.neural-node {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-cyan);
    position: absolute;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: nodePulse 2s ease-in-out infinite;
}

.n1 { top: 20%; left: 30%; }
.n2 { top: 20%; right: 30%; animation-delay: 0.5s; }
.n3 { bottom: 20%; left: 40%; animation-delay: 1s; }
.n4 { bottom: 20%; right: 40%; animation-delay: 1.5s; }

.neural-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    animation: lineFlow 3s ease-in-out infinite;
}

.l1 { width: 60px; top: 30%; left: 35%; transform: rotate(30deg); }
.l2 { width: 50px; top: 50%; left: 30%; transform: rotate(-20deg); animation-delay: 1s; }
.l3 { width: 55px; bottom: 30%; right: 30%; transform: rotate(15deg); animation-delay: 2s; }

@keyframes nodePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.6; }
}

@keyframes lineFlow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* Code Visual */
.code-block {
    text-align: left;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid var(--border-glass);
}

.code-line { display: block; margin: 4px 0; }
.kw { color: var(--accent-purple); }
.fn { color: var(--accent-cyan); }

/* Data Visual */
.data-visual {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
}

.data-bar {
    width: 16px;
    background: var(--gradient-main);
    border-radius: 4px 4px 0 0;
    animation: barGrow 2s ease-in-out infinite;
}

.b1 { height: 40%; animation-delay: 0s; }
.b2 { height: 70%; animation-delay: 0.2s; }
.b3 { height: 50%; animation-delay: 0.4s; }
.b4 { height: 90%; animation-delay: 0.6s; }
.b5 { height: 60%; animation-delay: 0.8s; }

@keyframes barGrow {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.7); }
}

.tech-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
    color: var(--accent-cyan);
}

.tech-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== About ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hologram-container {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hologram-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    animation: holoSpin linear infinite;
}

.hr1 {
    width: 200px;
    height: 200px;
    border-color: rgba(0, 240, 255, 0.4);
    animation-duration: 8s;
}

.hr2 {
    width: 280px;
    height: 280px;
    border-color: rgba(168, 85, 247, 0.3);
    animation-duration: 12s;
    animation-direction: reverse;
    border-style: dashed;
}

.hr3 {
    width: 350px;
    height: 350px;
    border-color: rgba(0, 240, 255, 0.15);
    animation-duration: 20s;
}

@keyframes holoSpin {
    from { transform: rotateX(60deg) rotateZ(0deg); }
    to { transform: rotateX(60deg) rotateZ(360deg); }
}

.hologram-core {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.4);
    animation: holoCore 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes holoCore {
    0%, 100% { transform: scale(1); box-shadow: 0 0 60px rgba(0, 240, 255, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 80px rgba(168, 85, 247, 0.5); }
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    transition: all 0.3s;
}

.feature-item:hover {
    border-color: rgba(0, 240, 255, 0.2);
    transform: translateX(8px);
}

.feature-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 12px;
}

.feature-item strong {
    display: block;
    margin-bottom: 2px;
}

.feature-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== Contact ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    backdrop-filter: blur(20px);
}

.form-group {
    position: relative;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.3s;
    pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 12px;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    background: var(--bg-secondary);
    padding: 0 8px;
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.form-group input:focus ~ .input-border,
.form-group textarea:focus ~ .input-border {
    width: 100%;
}

.btn-submit {
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 8px;
}

.form-success {
    grid-column: 1 / -1;
    padding: 16px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 10px;
    color: var(--accent-cyan);
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.info-card:hover {
    border-color: rgba(0, 240, 255, 0.2);
    transform: translateX(-4px);
}

.info-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.info-card h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-card p {
    font-size: 1rem;
}

/* ===== Footer ===== */
.footer {
    position: relative;
    z-index: 10;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-glass);
    background: rgba(5, 5, 16, 0.9);
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 1px;
    background: var(--gradient-main);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand .logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.icp-link {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: all 0.3s;
    padding: 4px 12px;
    border-radius: 4px;
}

.icp-link:hover {
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.05);
}

/* ===== Scroll Progress ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gradient-main);
    z-index: 9999;
    box-shadow: 0 0 20px var(--accent-cyan), 0 0 40px var(--accent-purple);
    transition: width 0.1s linear;
}

.scroll-burst {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    box-shadow: 0 0 20px var(--accent-cyan);
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--accent-cyan);
    transition: transform 0.15s ease;
    mix-blend-mode: screen;
}

/* ===== Section Reveal Base ===== */
.section-reveal {
    position: relative;
    overflow: hidden;
}

.section-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
    z-index: 0;
}

.section-reveal.in-view .section-bg-glow {
    opacity: 0.15;
}

.glow-cyan { background: var(--accent-cyan); top: -200px; right: -200px; }
.glow-purple { background: var(--accent-purple); bottom: -200px; left: -200px; }
.glow-blue { background: var(--accent-blue); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.glow-pink { background: var(--accent-pink); top: -100px; left: 30%; }

[data-reveal] {
    opacity: 0;
    transition: none;
}

[data-reveal].revealed {
    opacity: 1;
}

.email-link {
    color: var(--accent-cyan);
    transition: all 0.3s;
}

.email-link:hover {
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* ===== Enhanced Section Transitions ===== */
.section {
    transition: transform 0.1s linear;
}

.section-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) rotateX(-90deg);
}

.section.in-view .section-title .char {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

@keyframes titleShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-3px); }
    40% { transform: translateX(3px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}

.scroll-ripple {
    animation: rippleExpand 1.5s ease-out forwards;
}

@keyframes rippleExpand {
    from { width: 0; height: 0; opacity: 0.6; }
    to { width: 200vmax; height: 200vmax; opacity: 0; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: calc(var(--nav-height) + 60px);
    }

    .hero-visual {
        height: 350px;
        width: 100%;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .services-grid,
    .tech-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(5, 5, 16, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        transform: translateY(-120%);
        transition: transform 0.4s;
        border-bottom: 1px solid var(--border-glass);
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .contact-form {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .hologram-container {
        width: 250px;
        height: 250px;
    }

    .hr3 {
        width: 250px;
        height: 250px;
    }
}
