/* Global Reset & Base variables */
:root {
    --bg-color: #030712;
    /* Very dark blue/black (Solana style) */
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --accent-primary: #14f195;
    /* Solana Green */
    --accent-secondary: #9945ff;
    /* Solana Purple */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 16px;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

html {
    scroll-behavior: smooth;
    /* Custom Scrollbar for Chrome/Safari */
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Nav Active State */
.nav-links a.active {
    color: var(--accent-primary);
}

/* Hero Cinematic Entry */
.hero-content,
.hero-visual {
    opacity: 0;
    transform: scale(0.98) translateY(10px);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: blur(5px);
}

.hero-content.entry-active,
.hero-visual.entry-active {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
}

/* Background Effects */
.background-gradient {
    position: fixed;
    top: -10vh;
    left: -10vw;
    width: 120vw;
    height: 120vh;
    z-index: -2;
    background:
        radial-gradient(circle at 15% 50%, rgba(20, 241, 149, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(153, 69, 255, 0.08), transparent 25%);
    will-change: transform;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    pointer-events: none;
    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");
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 100;
    border-radius: 9999px;
    background: rgba(10, 10, 20, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-left: 2rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links .cta-button {
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-links .cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
    color: var(--bg-color);
}

/* Typography Utils */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary) 20%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.pill-label {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 99px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.hero-section h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.primary-btn {
    background: linear-gradient(90deg, var(--accent-primary), #0fa);
    color: #000;
    box-shadow: 0 0 20px rgba(20, 241, 149, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(20, 241, 149, 0.5);
}

.secondary-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Visual Animation */
.hero-visual {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    display: flex;
    /* Fallback */
    pointer-events: none;
}

@media (max-width: 900px) {
    .hero-visual {
        display: none;
    }

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

    .hero-content {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-section h1 {
        font-size: 3rem;
    }
}

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

.orb-1 {
    width: 250px;
    height: 250px;
    background: var(--accent-primary);
    top: 0;
    right: 0;
    opacity: 0.4;
    animation: float 10s infinite alternate ease-in-out;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    bottom: 0;
    left: 0;
    opacity: 0.3;
    animation: float 14s infinite alternate-reverse ease-in-out;
}

.glass-card {
    position: relative;
    overflow: hidden;
}

.float-card {
    position: absolute;
    top: 20%;
    left: 10%;
    padding: 1rem 1.5rem;
    background: rgba(20, 20, 30, 0.7);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: levitate 6s infinite ease-in-out;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.float-card-2 {
    position: absolute;
    bottom: 20%;
    right: 10%;
    padding: 1rem 1.5rem;
    background: rgba(20, 20, 30, 0.7);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: levitate 8s infinite ease-in-out 1s;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.float-card i,
.float-card-2 i,
.float-card-3 i,
.float-card-4 i {
    color: var(--accent-primary);
    font-size: 1.5rem;
}

.float-card-3 {
    position: absolute;
    top: 60%;
    left: -5%;
    padding: 1rem 1.5rem;
    background: rgba(20, 20, 30, 0.7);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: levitate 7s infinite ease-in-out 0.5s;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.float-card-4 {
    position: absolute;
    top: 10%;
    right: -5%;
    padding: 1rem 1.5rem;
    background: rgba(20, 20, 30, 0.7);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: levitate 9s infinite ease-in-out 1.5s;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* Sections General */
section {
    padding: 6rem 1rem;
    position: relative;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 2px;
}

/* Panels */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
    /* For glare sweep */
}

/* Glass Glare Sweep Effect */
.glass-panel::after,
.glass-card::after {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 400%;
    height: 400%;
    background: linear-gradient(45deg,
            transparent 45%,
            rgba(255, 255, 255, 0.05) 48%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 52%,
            transparent 55%);
    transform: rotate(-45deg);
    pointer-events: none;
    transition: opacity 0.3s;
    opacity: 0;
}

.glass-panel:hover::after,
.glass-card:hover::after {
    opacity: 1;
    animation: glare-sweep 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes glare-sweep {
    0% {
        transform: translate(-20%, -20%) rotate(-45deg);
    }

    100% {
        transform: translate(20%, 20%) rotate(-45deg);
    }
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.highlight {
    color: var(--accent-primary);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--glass-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -2.05rem;
    /* center on line */
    top: 2rem;
    width: 16px;
    height: 16px;
    background: var(--bg-color);
    border: 4px solid var(--accent-primary);
    border-radius: 50%;
    z-index: 10;
}

.timeline-content {
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
}

.timeline-content .date {
    font-family: var(--font-heading);
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.tags span {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

/* Contact */
.centered-container {
    text-align: center;
    display: flex;
    justify-content: center;
}

.large-panel {
    width: 100%;
    max-width: 600px;
}

.email-reveal-container {
    margin: 2rem 0;
    height: 3rem;
    /* reserved space */
}

.hidden-email {
    display: none;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    animation: fadeIn 0.5s ease;
}

.hidden-email a {
    color: var(--text-primary);
    text-decoration-color: var(--accent-primary);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
}

.text-link {
    color: var(--accent-primary);
    text-decoration: none;
}

/* Animations */
@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, -30px);
    }
}

@keyframes levitate {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.2s;
    animation-fill-mode: forwards;
}

.fade-in-delayed {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
    animation-delay: 0.5s;
    animation-fill-mode: forwards;
}

/* Responsive adjustments */
/* Responsive adjustments */
@media(max-width: 900px) {
    .glass-nav {
        width: 95%;
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        display: flex;
        /* Show links on mobile */
        gap: 1rem;
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .nav-links a {
        margin-left: 0;
        font-size: 0.9rem;
    }

    .hero-section h1 {
        font-size: 2.8rem;
    }

    .carousel-container {
        height: 550px;
        /* More vertical space for stacked content if needed */
    }

    .slide-content {
        flex-direction: column;
    }

    .slide-image {
        flex: 1;
        /* evenly split */
    }

    .slide-info {
        flex: 1;
        padding: 1.5rem;
    }
}

@media(max-width: 600px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }

    .nav-links a {
        padding: 0.5rem;
        /* touch targets */
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .glass-nav {
        justify-content: center;
    }

    /* Carousel adjustments for phone */
    .carousel-button {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        background: rgba(0, 0, 0, 0.8);
        /* increased contrast */
    }

    .carousel-button--left {
        left: 5px;
    }

    .carousel-button--right {
        right: 5px;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 10% auto;
        /* visual centering */
    }

    .timeline {
        padding-left: 1rem;
    }

    .timeline-marker {
        left: -1.45rem;
        width: 12px;
        height: 12px;
        border-width: 3px;
    }
}