:root {
    --color-bg: #020617;
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-primary: #22c55e;
    --color-secondary: #0ea5e9;
    --color-accent: #8b5cf6;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 16px;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg) !important;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(3rem, 5vw, 6rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.lead {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    font-weight: 300;
    max-width: 60ch;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.875rem;
    transition: var(--transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--color-primary);
    color: #000;
}

.btn-primary:hover {
    background: #4ade80;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(34, 197, 94, 0.4);
}

.btn-outline {
    background: transparent;
    border-color: var(--glass-border);
    color: var(--color-text);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-text);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

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

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

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
    color: var(--color-text) !important;
}

.nav-link:hover {
    opacity: 1;
    color: var(--color-primary) !important;
}

/* Mobile Nav Fixes */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(20px);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 1rem;
        border: 1px solid var(--glass-border);
    }
    
    .nav-links {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    /* offset navbar */
}

.hero-content {
    position: relative;
    z-index: 2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

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

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: var(--color-secondary);
    bottom: -200px;
    left: -200px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--color-accent);
    top: 50%;
    right: 30%;
    opacity: 0.2;
    animation-delay: -10s;
}

@keyframes float {

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

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

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

/* Grid Layout for Magazine Feel */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.bento-item {
    position: relative;
    overflow: hidden;
}

.bento-item-lg {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .bento-item-lg {
        grid-column: span 1;
    }
}

.card-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    opacity: 0.1;
    position: absolute;
    top: 0;
    right: 1rem;
    line-height: 1;
}

/* Decorative lines */
.line-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin: 4rem 0;
}

/* Ticker/Marquee */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-text-muted);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    h1 {
        font-size: 3.5rem;
    }

    .hero-content>div {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-content>div>div:first-child {
        order: 2;
        margin: 0 auto;
    }

    .hero-content>div>div:last-child {
        order: 1;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero {
        padding-top: 120px;
    }

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

    .section>.container>div:first-child {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    /* Work header */

    #about>.container>div {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Hide nav links on mobile for prototype */
    h1 {
        font-size: 2.5rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item-lg {
        grid-column: span 1;
    }
}
