:root {
    --primary-color: #0c1a32;
    /* Rich Night Blue */
    --secondary-color: #d4af37;
    /* Metallic Gold */
    --accent-color: #1e3a5f;
    /* Deep Ocean Blue */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --bg-dark: #050b16;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --gold-glow: rgba(212, 175, 55, 0.15);
    --blob-1: rgba(12, 26, 50, 0.6);
    --blob-2: rgba(212, 175, 55, 0.05);
    --ctf-hex: rgba(212, 175, 55, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--secondary-color);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor */
}

/* Spotlight Effect Background */
#spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle 800px at var(--x, 50%) var(--y, 50%), rgba(212, 175, 55, 0.04), transparent 80%);
    z-index: 1;
}

/* Floating Blobs Background */
.blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--blob-1);
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.5;
    animation: floatingBlob 25s infinite alternate ease-in-out;
}

.blob-gold {
    width: 400px;
    height: 400px;
    background: var(--blob-2);
    right: -100px;
    top: 20%;
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes floatingBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(100px, 150px) scale(1.1);
    }

    66% {
        transform: translate(-50px, 200px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Scientific Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.loader-atom {
    position: relative;
    width: 80px;
    height: 80px;
}

.loader-atom::before,
.loader-atom::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    animation: atomOrbit 2s linear infinite;
}

.loader-atom::after {
    animation-direction: reverse;
    border-color: var(--text-secondary);
}

/* Battery Style Scroll Progress */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), #fff);
    z-index: 10000;
    box-shadow: 0 0 15px var(--secondary-color);
}

/* CTF Hexagonal Pattern Overlay */
.ctf-overlay {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill-rule='evenodd' stroke='%23d4af37' stroke-width='0.5' fill='none' opacity='0.05'/%3E%3C/svg%3E");
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

/* Ion Flow Particles Area */
#ion-flow-container {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.ion-flow {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--secondary-color), transparent);
    opacity: 0.2;
    filter: blur(1px);
}

@keyframes atomOrbit {
    from {
        transform: rotate3d(1, 1, 1, 0deg) scale(1);
        opacity: 1;
    }

    to {
        transform: rotate3d(1, 1, 1, 360deg) scale(1.2);
        opacity: 0;
    }
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.07);
}

/* Scroll Reveal Base */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Luxury Gradient Background */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgba(12, 26, 50, 1) 0%, rgba(5, 11, 22, 1) 90.2%);
}

/* Navbar Style */
header {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(5, 11, 22, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

nav,
.nav-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    color: var(--secondary-color);
    text-decoration: none;
    letter-spacing: 3px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 2.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    position: relative;
    cursor: none !important;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

a,
button {
    cursor: none !important;
}

/* Sections */
section {
    padding: 10rem 0;
    position: relative;
    z-index: 2;
}

.section-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    fill: var(--bg-dark);
    transform: translateY(100%);
    z-index: 3;
}

/* Hexagonal Grid (Expertsie) */
.hex-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 4rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

.hex-item {
    width: 250px;
    height: 280px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(10px);
}

.hex-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, var(--gold-glow));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hex-item:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(212, 175, 55, 0.08);
    border-color: var(--secondary-color);
}

.hex-item:hover::before {
    opacity: 1;
}

.hex-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--secondary-color));
}

.hex-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 700;
}

.hex-desc {
    font-size: 0.75rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .hex-item {
        width: 180px;
        height: 210px;
        padding: 1rem;
    }

    .hex-icon {
        font-size: 2rem;
    }

    .hex-title {
        font-size: 1rem;
    }
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
}

.hero-content {
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 1rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 30%, var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.cta-button:hover {
    background: var(--secondary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Grid Sections */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-secondary);
}