/* Global & Reset */
body {
    background-color: #F8FAFC;
    color: #0F172A;
    overflow-x: hidden;
    cursor: none; /* Hide default cursor for custom cursor */
}

/* Global Noise Texture */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
}
.cursor-dot {
    width: 8px; height: 8px;
    background-color: #10b981;
}
.cursor-outline {
    width: 40px; height: 40px;
    border: 1px solid rgba(16, 185, 129, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}
.cursor-hover .cursor-outline {
    width: 60px; height: 60px;
    background-color: rgba(16, 185, 129, 0.1);
    border-color: transparent;
}

/* Grid Reference Lines */
.grid-lines {
    position: fixed;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%; max-width: 80rem; /* 7xl */
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    display: flex;
    justify-content: space-between;
}
.grid-line {
    width: 1px; height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.05), transparent);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Text Reveal for Hero */
.text-reveal {
    overflow: hidden;
    display: inline-block;
}
.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
}
.text-reveal.active span {
    transform: translateY(0);
    opacity: 1;
}

/* 3D Hover Tilt */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}
.tilt-card-content {
    transform: translateZ(30px);
}

/* Border Beam */
.border-beam-card {
    position: relative;
    overflow: hidden;
}
.border-beam-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 90deg at 50% 50%, transparent 0%, #10b981 50%, transparent 100%);
    animation: border-beam 4s infinite linear;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}
.border-beam-card:hover::before {
    opacity: 1;
}
.border-beam-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: white;
    border-radius: inherit;
    z-index: -1;
}

/* Glassmorphism Navbar */
.glass-nav {
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

/* Three.js Container */
#hero-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Utility for hiding scrollbar but allowing scroll */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Data Running Animations */
@keyframes data-scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

.data-run-glow {
    position: absolute;
    top: 0; left: 0; height: 100%; width: 30%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: data-scan 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes data-flicker {
    0%, 100% { opacity: 1; transform: scaleX(1); }
    50% { opacity: 0.85; transform: scaleX(0.98); }
}

.animate-data-flicker {
    animation: data-flicker 3s infinite ease-in-out;
    transform-origin: left;
}

/* Parallax Background */
.parallax-bg {
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.2)),
        url('../img/about-mission.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* We'll handle the parallax movement via JS for better control */
}
