/* ===================================
   Harold Halibut Website
   =================================== */

/* Variables */
:root {
    --color-blue: #122a5f;
    --color-blue-dark: #0d1f45;
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.85);
    --color-accent: #fff119;
    --font-main: "Courier New", Courier, "Lucida Console", Monaco, monospace;
    --transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    background: #000;
    font-size: 18px;
}

/* ===================================
   Fixed Background
   =================================== */
.fixed-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -10;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* ===================================
   Header
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 1.5rem;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1800px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-right {
    display: flex;
    align-items: flex-start;
}

.social-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: var(--transition);
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.press-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    padding: 0.4rem 0.8rem;
    transition: var(--transition);
}

.press-link:hover {
    opacity: 0.8;
}

.studio-link img {
    height: 55px;
    width: auto;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 2rem;
}

.hero-content {
    position: fixed;
    left: 4rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.hero-logo {
    max-width: 450px;
    width: 100%;
    height: auto;
    animation: gentle-float 3s ease-in-out infinite;
}

@keyframes gentle-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ===================================
   Wave Transition
   =================================== */
.wave-transition {
    position: relative;
    z-index: 5;
    margin-top: -1px;
    line-height: 0;
}

.wave-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   Main Content
   =================================== */
.main-content {
    position: relative;
    background: var(--color-blue);
    z-index: 2;
}

.content-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: -1;
    background: var(--color-blue);
}

.content-bg-gif {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.content-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 42, 95, 0.5);
    z-index: 1;
}

/* Particles overlay - covers entire page */
.particles-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    pointer-events: none;
    overflow: hidden;
}

.particles-gif {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

/* ===================================
   Sections
   =================================== */
.section {
    position: relative;
}

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

.container-wide {
    max-width: 1300px;
}

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

/* ===================================
   Trailer Section
   =================================== */
.section-trailer {
    padding: 4rem 0 5rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    z-index: 60;
}

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

/* ===================================
   About Section
   =================================== */
.section-about {
    padding: 4rem 0 5rem;
}

.about-tagline {
    font-size: 1.5rem;
    line-height: 1.9;
    color: var(--color-accent);
    margin-bottom: 3rem;
    text-align: left;
    font-weight: bold;
}

.about-tagline strong {
    color: var(--color-text);
    font-weight: bold;
}

.about-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.about-col p {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.35rem;
}

.about-col p:last-child {
    margin-bottom: 0;
}

/* ===================================
   Gallery Section
   =================================== */
.section-gallery {
    padding: 4rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 4px;
    z-index: 60;
}

.gallery-item-large {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* ===================================
   Making Of Section
   =================================== */
.section-making-of {
    padding: 5rem 0;
}

.making-of-intro {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--color-accent);
    margin-bottom: 2rem;
    font-weight: bold;
}

.making-of-intro strong {
    color: var(--color-text);
}

.making-of-text {
    font-size: 1.5rem;
    color: var(--color-accent);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-weight: bold;
}

.making-of-result {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin: 7rem 0 2rem;
    line-height: 1.8;
    font-weight: bold;
}

/* ===================================
   Making Of Gallery (Slideshow)
   =================================== */
.section-making-of-gallery {
    padding: 2rem 0 5rem;
}

.slideshow-gallery {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slideshow-gallery:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.slideshow-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateX(100%);
    animation: slideshow 18s infinite;
}

.slideshow-img:nth-child(1) { animation-delay: 0s; }
.slideshow-img:nth-child(2) { animation-delay: 3s; }
.slideshow-img:nth-child(3) { animation-delay: 6s; }
.slideshow-img:nth-child(4) { animation-delay: 9s; }
.slideshow-img:nth-child(5) { animation-delay: 12s; }
.slideshow-img:nth-child(6) { animation-delay: 15s; }

@keyframes slideshow {
    0% { transform: translateX(100%); }
    2% { transform: translateX(0); }
    16.67% { transform: translateX(0); }
    18.67% { transform: translateX(-100%); }
    100% { transform: translateX(-100%); }
}

/* ===================================
   Release Section
   =================================== */
.section-release {
    padding: 5rem 0;
}

.release-text {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-weight: bold;
}

.release-platforms {
    font-size: 1.25rem;
    color: var(--color-accent);
    font-weight: bold;
}

/* ===================================
   Team Section
   =================================== */
.section-team {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 3rem;
    font-weight: bold;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
}

.team-member {
    text-align: center;
}

.team-photo-placeholder {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.team-member img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.team-name {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.4;
    font-weight: bold;
}

/* ===================================
   Sponsors Section
   =================================== */
.section-sponsors {
    padding: 5rem 0;
}

.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem 3rem;
}

.sponsors-grid img {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: var(--transition);
}

.sponsors-grid img:hover {
    opacity: 1;
}

.sponsor-placeholder {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: 3rem 0 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.copyright {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

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

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .about-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bg-image {
        object-position: right top;
    }

    .hero {
        align-items: flex-end;
        padding-bottom: 15vh;
    }

    .hero-content {
        left: 50%;
        top: auto;
        bottom: 12vh;
        transform: translateX(-50%);
    }

    .hero-logo {
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.75rem 1rem;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .header-left {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .social-nav {
        gap: 0.25rem;
    }

    .social-icon {
        width: 28px;
        height: 28px;
    }

    .social-icon img {
        width: 24px;
        height: 24px;
    }

    .studio-link img {
        height: 45px;
    }

    .hero-logo {
        max-width: 280px;
    }

    .container {
        padding: 0 2.5rem;
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .about-tagline,
    .making-of-intro,
    .making-of-result,
    .making-of-text {
        font-size: 1.25rem;
    }

    .about-col p {
        font-size: 1.2rem;
    }

    .slideshow-gallery {
        width: 300px;
        height: 300px;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-left {
        width: 100%;
        justify-content: flex-start;
    }

    .header-right {
        position: absolute;
        top: 0.75rem;
        right: 1rem;
    }

    .bg-image {
        object-position: 85% top;
    }

    .hero-content {
        left: 50%;
        transform: translateX(-50%);
        bottom: 10vh;
    }

    .hero-logo {
        max-width: 300px;
        width: 80vw;
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem 1rem;
        justify-items: center;
    }

    .team-member {
        width: 100%;
        max-width: 100px;
    }

    .team-member img {
        width: 100%;
        max-width: 100px;
    }

    .team-name {
        font-size: 0.85rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ===================================
   Lightbox
   =================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 2001;
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem 1.25rem;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
    border-radius: 4px;
}

.lightbox-nav:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===================================
   Utilities
   =================================== */
::selection {
    background: var(--color-accent);
    color: var(--color-blue);
}

a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

strong {
    font-weight: bold;
}

em {
    font-style: italic;
}
