/* Agentic Innovations - Immersive Website Styles */
/* Featuring: Three.js, GSAP, Custom Animations */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Brand Colors */
    --primary-deep: #0a0e27;
    --primary-dark: #0d1137;
    --primary-blue: #1a237e;
    --primary-indigo: #3949ab;
    --primary-violet: #5e35b1;
    --accent-cyan: #00d4ff;
    --accent-teal: #00acc1;
    --accent-purple: #7c4dff;
    --accent-pink: #ff4081;

    /* Neutrals */
    --white: #ffffff;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #0a0e27 0%, #1a237e 50%, #3949ab 100%);
    --gradient-text: linear-gradient(135deg, #00d4ff 0%, #7c4dff 50%, #ff4081 100%);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-glow: radial-gradient(circle, rgba(0,212,255,0.3) 0%, transparent 70%);

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-300);
    background: var(--primary-deep);
    overflow-x: hidden;
    cursor: none;
}

@media (max-width: 768px) {
    body { cursor: auto; }
}

::selection {
    background: var(--accent-cyan);
    color: var(--primary-deep);
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, opacity 0.3s ease;
    mix-blend-mode: difference;
}

.cursor-outline {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 212, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease;
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    border-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.1);
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-outline { display: none; }
}

/* ============================================
   PARTICLES BACKGROUND
   ============================================ */
#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    color: var(--white);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

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

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 60px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
    cursor: none;
}

.btn-primary {
    background: var(--accent-cyan);
    color: var(--primary-deep);
}

.btn-primary .btn-bg {
    position: absolute;
    inset: 0;
    background: var(--white);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out-expo);
    border-radius: inherit;
}

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

.btn-primary .btn-text,
.btn-primary .btn-icon {
    position: relative;
    z-index: 1;
}

.btn-primary .btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.4s var(--ease-out-expo);
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-out-expo);
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar:not(.scrolled) .logo {
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 8px;
}

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

.nav-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-link span {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover {
    color: var(--accent-cyan);
}

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

.btn-nav {
    padding: 12px 28px;
    background: var(--accent-cyan);
    color: var(--primary-deep) !important;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 28px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links.active { display: flex; }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
}

#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(124, 77, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(255, 64, 129, 0.1) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.hero-noise {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    z-index: 1;
    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");
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 120px 0 80px;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px 8px 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.badge-pulse {
    width: 10px;
    height: 10px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.badge-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.5px;
}

/* Hero Title */
.hero-title {
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

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

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
}

.stat-divider {
    width: 1px;
    background: rgba(255,255,255,0.2);
    align-self: stretch;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    position: relative;
}

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

@keyframes scroll-wheel {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(12px); }
}

/* Floating Elements */
.hero-floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.float-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: float 20s ease-in-out infinite;
}

.float-1 {
    width: 400px;
    height: 400px;
    background: rgba(0, 212, 255, 0.15);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.float-2 {
    width: 300px;
    height: 300px;
    background: rgba(124, 77, 255, 0.15);
    top: 60%;
    right: -5%;
    animation-delay: -7s;
}

.float-3 {
    width: 250px;
    height: 250px;
    background: rgba(255, 64, 129, 0.1);
    bottom: 10%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(20px, 30px) rotate(3deg); }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: var(--section-padding);
    position: relative;
    background: var(--primary-deep);
}

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

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

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

.glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(0, 212, 255, 0.08);
    top: -200px;
    right: -200px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: rgba(124, 77, 255, 0.08);
    bottom: -200px;
    left: -200px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.section-title {
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-400);
    max-width: 500px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .services-grid { grid-template-columns: 1fr; }
}

/* Service Card */
.service-card {
    position: relative;
    padding: 40px;
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
    cursor: none;
}

.card-border {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s var(--ease-out-expo);
    pointer-events: none;
}

.service-card:hover .card-shine {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.05);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--accent-cyan);
    position: relative;
    z-index: 1;
}

.icon-glow {
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--accent-cyan);
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 24px;
}

.card-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-out-expo);
}

.card-arrow svg {
    width: 18px;
    height: 18px;
    color: var(--gray-500);
    transition: all 0.4s var(--ease-out-expo);
}

.service-card:hover .card-arrow {
    background: var(--accent-cyan);
}

.service-card:hover .card-arrow svg {
    color: var(--primary-deep);
    transform: translate(2px, -2px);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--primary-deep) 0%, var(--primary-dark) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

.about-text .section-tag,
.about-text .section-title {
    text-align: left;
}

.about-description p {
    font-size: 1.0625rem;
    color: var(--gray-400);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* About Features */
.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(0, 212, 255, 0.3);
}

.feature-check {
    width: 24px;
    height: 24px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-check svg {
    width: 14px;
    height: 14px;
    color: var(--accent-cyan);
}

.feature-item span {
    font-size: 0.9375rem;
    color: var(--gray-300);
}

/* About Visual */
.about-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border-radius: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.visual-glow {
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--accent-cyan), transparent, var(--accent-purple), transparent);
    animation: rotate-glow 10s linear infinite;
    opacity: 0.3;
}

@keyframes rotate-glow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.visual-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* AI Orb */
.ai-orb {
    width: 180px;
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb-core {
    width: 60px;
    height: 60px;
    background: var(--gradient-text);
    border-radius: 50%;
    animation: orb-pulse 3s ease-in-out infinite;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.5);
}

@keyframes orb-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 60px rgba(0, 212, 255, 0.5); }
    50% { transform: scale(1.1); box-shadow: 0 0 80px rgba(0, 212, 255, 0.7); }
}

.orb-ring {
    position: absolute;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    animation: ring-rotate 20s linear infinite;
}

.ring-1 { width: 100px; height: 100px; animation-direction: normal; }
.ring-2 { width: 140px; height: 140px; animation-direction: reverse; animation-duration: 25s; }
.ring-3 { width: 180px; height: 180px; animation-duration: 30s; }

@keyframes ring-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orb-particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: orbit 8s linear infinite;
}

.orb-particles span:nth-child(1) { animation-delay: 0s; }
.orb-particles span:nth-child(2) { animation-delay: -1.3s; }
.orb-particles span:nth-child(3) { animation-delay: -2.6s; }
.orb-particles span:nth-child(4) { animation-delay: -4s; }
.orb-particles span:nth-child(5) { animation-delay: -5.3s; }
.orb-particles span:nth-child(6) { animation-delay: -6.6s; }

@keyframes orbit {
    from { transform: rotate(0deg) translateX(90px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(90px) rotate(-360deg); }
}

.visual-label {
    text-align: center;
}

.label-tag {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.label-text {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 4px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: 160px 0;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

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

.contact-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 50%, var(--primary-violet) 100%);
}

.contact-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Floating Orbs */
.contact-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 8s ease-in-out infinite;
}

.contact-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.4) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.contact-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.4) 0%, transparent 70%);
    bottom: -50px;
    right: -50px;
    animation-delay: -3s;
}

.contact-orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 64, 129, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(30px, 10px) scale(1.05); }
}

.contact-orb-3 {
    animation-name: orbFloatCenter;
}

@keyframes orbFloatCenter {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    25% { transform: translate(-40%, -60%) scale(1.2); }
    50% { transform: translate(-60%, -40%) scale(0.9); }
    75% { transform: translate(-45%, -55%) scale(1.1); }
}

/* Contact Hero */
.contact-hero {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero .section-tag {
    color: var(--accent-cyan);
}

.contact-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    margin-top: 16px;
    margin-bottom: 24px;
    line-height: 1.1;
}

.contact-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

/* Email Button */
.contact-cta {
    margin-bottom: 48px;
}

.contact-email-btn {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 24px 40px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 100px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
    backdrop-filter: blur(20px);
}

.email-btn-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(124, 77, 255, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
}

.email-btn-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
    border-radius: 100px;
    opacity: 0;
    z-index: -1;
    filter: blur(20px);
    transition: opacity 0.5s var(--ease-out-expo);
}

.contact-email-btn:hover {
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

.contact-email-btn:hover .email-btn-bg {
    opacity: 1;
}

.contact-email-btn:hover .email-btn-glow {
    opacity: 0.5;
}

.email-btn-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.email-icon-wrap {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(0, 212, 255, 0); }
}

.email-icon-wrap svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.email-text {
    text-align: left;
}

.email-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 4px;
}

.email-address {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    transition: color 0.3s ease;
}

.contact-email-btn:hover .email-address {
    color: var(--accent-cyan);
}

.email-arrow {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-out-expo);
}

.email-arrow svg {
    width: 20px;
    height: 20px;
    color: var(--white);
    transition: transform 0.3s var(--ease-out-expo);
}

.contact-email-btn:hover .email-arrow {
    background: var(--accent-cyan);
}

.contact-email-btn:hover .email-arrow svg {
    transform: translateX(4px);
    color: var(--primary-deep);
}

/* Contact Features */
.contact-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.contact-feature svg {
    width: 20px;
    height: 20px;
    color: var(--accent-cyan);
}

@media (max-width: 768px) {
    .contact {
        padding: 100px 0;
        min-height: auto;
    }

    .contact-email-btn {
        flex-direction: column;
        padding: 32px;
        border-radius: 24px;
        width: 100%;
        max-width: 320px;
    }

    .email-btn-content {
        flex-direction: column;
        text-align: center;
    }

    .email-text {
        text-align: center;
    }

    .email-arrow {
        display: none;
    }

    .contact-features {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gray-900);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.footer-brand .logo-img {
    height: 45px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--gray-500);
    max-width: 300px;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 20px;
}

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

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

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.875rem;
    color: var(--gray-600);
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ============================================
   ANIMATIONS & REVEALS
   ============================================ */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo);
    transition-delay: var(--delay, 0s);
}

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

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s var(--ease-out-expo);
    transition-delay: var(--delay, 0s);
}

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

/* ============================================
   MAGNETIC EFFECT
   ============================================ */
.magnetic-wrap {
    display: inline-block;
    transition: transform 0.3s var(--ease-out-expo);
}

/* ============================================
   LOADING ANIMATION
   ============================================ */
body.loading {
    overflow: hidden;
}

body.loading::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--primary-deep);
    z-index: 10000;
    animation: fade-out 0.5s ease 0.5s forwards;
}

@keyframes fade-out {
    to { opacity: 0; pointer-events: none; }
}

/* ============================================
   SMOOTH SCROLL
   ============================================ */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
