/* Self-hosted fonts — served from same domain, zero FOUT */
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('assets/fonts/Quicksand-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 500;
    font-display: block;
    src: url('assets/fonts/Quicksand-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 700;
    font-display: block;
    src: url('assets/fonts/Quicksand-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('assets/fonts/JetBrainsMono-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 500;
    font-display: block;
    src: url('assets/fonts/JetBrainsMono-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 300;
    font-display: block;
    src: url('assets/fonts/BarlowCondensed-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('assets/fonts/BarlowCondensed-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 500;
    font-display: block;
    src: url('assets/fonts/BarlowCondensed-Medium.ttf') format('truetype');
}

:root {
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent: #ffffff;
    --accent-glow: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-blur: 20px;
    --font-main: 'Quicksand', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-wordmark: 'Barlow Condensed', sans-serif;
    --max-width: 1200px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Glow Effect - Subtle White/Grey */
.background-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1 {
    font-size: 4rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #fff;
    max-width: 900px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    color: #fff;
}

.subsection-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #fff;
}

p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Utility Classes */
.glass {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}

.glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.08),
            transparent 40%);
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.glass.glow-active::before {
    opacity: 1;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-size: 0.9rem;
}

.btn-primary {
    background: #fff;
    color: #000;
    border: 1px solid #fff;
}

.btn-primary:hover {
    background: #000;
    color: #fff;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    z-index: 100;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    height: 34px;
    width: auto;
    filter: grayscale(100%) brightness(200%);
    /* Make logo white */
}

.logo-text {
    font-family: var(--font-wordmark);
    font-weight: 400;
    font-size: 1.625rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a:not(.btn) {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

nav a:not(.btn):hover {
    color: #fff;
}

/* Main Layout */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 0;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero Section */
#hero {
    padding-top: 10rem;
    padding-bottom: 2rem;
    min-height: 60vh;
    text-align: left;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.subtitle {
    font-size: 1.25rem;
    color: #888;
    max-width: 600px;
    margin-bottom: 2rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Work Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: default;
    /* Not clickable if links removed */
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.project-badge {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

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

.tech-tags li {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #ccc;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.service-item {
    padding: 1.5rem;
}

.service-item h3 {
    color: #fff;
    font-size: 1.1rem;
}

/* About */
.about-container {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.text-link {
    color: #fff;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
}

.text-link:hover {
    text-decoration-color: #fff;
}

/* Contact */
.contact-box {
    max-width: 800px;
    margin: 4rem auto;
    padding: 4rem;
    text-align: center;
    border-radius: 20px;
}

.small-print {
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Footer */
footer {
    padding: 2rem 0;
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: flex-end;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Mobile Responsive */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 102;
    padding: 0.5rem;
}

.menu-toggle:hover {
    color: #fff;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    header {
        padding: 1rem 1.5rem;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        background: #000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: none;
        padding: 2rem;
        z-index: 99;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    nav a {
        font-size: 1.5rem !important;
        margin: 1rem 0;
    }

    section {
        padding: 3rem 0;
    }

    .projects-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FEATURE 1: Scroll Reveal Animations
   ============================================ */
.reveal-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0s),
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0s);
}

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

/* ============================================
   FEATURE 2: H1 Character Reveal
   ============================================ */
#hero-headline .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(28px);
    animation: charReveal 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* ============================================
   FEATURE 3: Scrolling Marquee
   ============================================ */
.marquee-strip {
    overflow: hidden;
    width: 100%;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin: 2rem 0 3rem;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: max-content;
    animation: marqueeScroll 50s linear infinite;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    white-space: nowrap;
}

.marquee-strip:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-dot {
    color: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }

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

@media (max-width: 768px) {
    .marquee-track {
        animation-duration: 25s;
    }
}