:root {
    /* Colors */
    --color-obsidian: #000000;
    --color-paper: #ffffff;
    --color-inkstone: #181818;
    --color-felt-gray: #6d6d6d;
    --color-slate-pill: #636363;
    --color-ash-mist: #9a9a9a;
    --color-pewter: #808080;
    --gradient-iridescent-fade: linear-gradient(90deg, rgb(160, 224, 171), rgb(255, 172, 46) 50%, rgb(165, 45, 37));
  
    /* Typography — Font Families (using Inter as substitute for Roobert) */
    --font-primary: 'Bebas Neue', 'Inter', ui-sans-serif, system-ui, sans-serif;
  
    /* Spacing */
    --spacing-14: 14px;
    --spacing-46: 46px;
  
    /* Layout */
    --page-max-width: 1078px;
    --section-gap: 46px;
    --element-gap: 14px;
  
    /* Border Radius */
    --radius-cards: 0px;
    --radius-images: 0px;
    --radius-buttons: 75px;
}
  
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-paper);
    color: var(--color-obsidian);
    overflow-x: hidden;
}

/* Font Classes */
.bebas-neue-regular {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.gothic-a1-regular {
  font-family: "Gothic A1", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* Video Background that fades out on scroll */
.hero-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    transition: opacity 0.1s linear;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1; /* above video, below text */
}

/* Dark overlay base behind the fading gradient so we can see white text if we want, or just let paper white show. 
   DESIGN.md says "The hero is full-viewport: centered monumental headline ... floating over iridescent media".
   And "full-bleed dark bands behind iridescent media". So we'll put a dark layer behind the gradient. */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-obsidian);
    z-index: -3;
}

/* We need the rest of the page to have a dark background, so we wrap main content in a dark surface after the hero */
.portfolio {
    background-color: var(--color-inkstone);
    color: var(--color-paper);
    position: relative;
    z-index: 1;
    padding: var(--spacing-46) 0;
}


@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Top Navigation Bar */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 66px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    z-index: 100;
    /* Invisible until scrolled? Or just transparent */
    background: transparent;
    color: var(--color-paper); /* Starts white over dark background */
}

.top-nav a {
    color: inherit;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
}

.logo {
    font-size: 16px;
    font-weight: 400;
}

.menu a {
    margin-left: 16px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    /* Hero text is white over the iridescent/dark background */
    color: var(--color-paper);
}

.hero-headline {
    /* Responsive huge text: 225px on desktop, scaling down to fit mobile */
    font-size: clamp(40px, 15vw, 225px);
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
    letter-spacing: normal;
}

.hero-subheadline {
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 600;
    margin-top: -16px; /* slightly pull up closer to the large headline */
    text-align: center;
    letter-spacing: 1px;
}

/* Centered Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-paper);
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    margin-bottom: 8px;
}

.scroll-indicator span {
    font-size: 14px;
    letter-spacing: 2px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Portfolio Section */
.portfolio {
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: 64px 24px;
    padding-bottom: 80px;
}

.category-section {
    margin-bottom: 80px;
}

.category-title {
    font-size: 54px; /* Heading-sm */
    font-weight: 400;
    margin-bottom: var(--spacing-46);
    line-height: 1.39;
    color: var(--color-paper);
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default mobile single column */
    gap: var(--spacing-46);
}

@media (min-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on desktop */
    }
}

/* Animation classes for scroll reveal */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.video-card {
    cursor: pointer;
    background: transparent;
    border-radius: var(--radius-cards);
}

.video-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius-images);
    /* Transition on transform for gliding effect */
    transition: transform 1.25s cubic-bezier(0.19, 1, 0.22, 1);
}

.video-card:hover .video-thumbnail {
    transform: scale(1.02);
}

.video-info {
    margin-top: var(--element-gap);
}

.video-title {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-paper);
}

.video-meta {
    font-size: 12px;
    color: var(--color-ash-mist);
    margin-top: 4px;
}

/* Contact Section */
.contact-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 24px;
    color: var(--color-paper);
}

.contact-section h2 {
    font-size: 32px;
    margin-bottom: 32px;
    text-align: center;
    letter-spacing: 2px;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--color-paper);
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: var(--color-paper);
}

#contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

#contact-form button {
    padding: 16px;
    background-color: var(--color-paper);
    color: var(--color-obsidian);
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

#contact-form button:hover {
    opacity: 0.9;
}

/* Footer */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: 64px 24px;
    border-top: 1px solid #333;
}

.footer-logo {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-paper);
    letter-spacing: 2px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 90%;
    max-width: 900px;
    background: var(--color-inkstone);
    color: var(--color-paper);
    padding: 24px;
    position: relative;
}

.close-button {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-details {
    margin-top: 24px;
}
.video-details h3 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 8px;
}
.video-details p {
    font-size: 14px;
    color: var(--color-ash-mist);
    margin-bottom: 4px;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-paper);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.scroll-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-to-top svg {
    margin-bottom: 4px;
}

.scroll-to-top span {
    font-size: 14px;
    letter-spacing: 2px;
}
