/* ═══════════════════════════════════════
   TECHNASIA — Mobile-first redesign
   Inspired by: Keinemusik, Factor Innova,
   Drumcode — cinematic / minimal / artsy
═══════════════════════════════════════ */

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

:root {
    --white:      #ffffff;
    --black:      #000000;
    --muted:      rgba(255, 255, 255, 0.45);
    --divider:    rgba(255, 255, 255, 0.12);
    --nav-h:      58px;
    --pad-x:      clamp(20px, 5vw, 64px);
    --ease:       0.38s cubic-bezier(0.4, 0, 0.2, 1);
    --font:       'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    color: var(--white);
    background: #080000;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── VANTA BACKGROUND ─── */

#vanta-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    transform: translateZ(0); /* GPU layer — prevents repaint on scroll */
}

#vanta-bg canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
}

/* Base dark tint — keeps fog visible but text readable */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.5);
}

/* Cinematic radial vignette on top of the tint */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(0, 0, 0, 0.55) 100%);
}

/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--pad-x);
    z-index: 70;
}

/* Nav links — desktop */
.nav-links {
    display: flex;
    gap: clamp(18px, 3vw, 44px);
}

.nav-links a {
    font-size: 10px;
    letter-spacing: 3.5px;
    color: var(--white);
    text-decoration: none;
    opacity: 0.5;
    transition: opacity var(--ease);
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a.active {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}

/* Nav social icons — desktop */
.nav-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-social .icon {
    display: flex;
    color: var(--white);
    opacity: 0.4;
    transition: opacity var(--ease);
    text-decoration: none;
}

.nav-social .icon:hover {
    opacity: 1;
}

.nav-social .icon svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

/* ═══════════════════════════════════════
   HAMBURGER BUTTON
═══════════════════════════════════════ */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 80;
    position: relative;
}

.nav-toggle span {
    display: block;
    height: 1px;
    background: var(--white);
    transition: transform 0.36s ease, opacity 0.36s ease, width 0.36s ease;
    transform-origin: center;
}

.nav-toggle span:first-child { width: 22px; }
.nav-toggle span:last-child  { width: 14px; }

.nav-toggle.open span:first-child {
    width: 22px;
    transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle.open span:last-child {
    width: 22px;
    transform: translateY(-3.5px) rotate(-45deg);
}

/* ═══════════════════════════════════════
   MOBILE FULL-SCREEN OVERLAY
═══════════════════════════════════════ */

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(4, 0, 0, 0.97);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 52px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.nav-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.nav-overlay-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.nav-overlay-links a {
    font-size: clamp(36px, 11vw, 72px);
    letter-spacing: 6px;
    color: var(--white);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity var(--ease);
    line-height: 1.2;
}

.nav-overlay-links a:hover {
    opacity: 0.3;
}

.nav-overlay-social {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-overlay-social .icon {
    display: flex;
    color: var(--white);
    opacity: 0.5;
    transition: opacity var(--ease);
    text-decoration: none;
}

.nav-overlay-social .icon:hover {
    opacity: 1;
}

.nav-overlay-social .icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ═══════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════ */

#main-content {
    position: relative;
    z-index: 2;
    scrollbar-width: none;
}

#main-content::-webkit-scrollbar {
    display: none;
}

/* ─── PAGE TRANSITIONS ─── */

.page {
    display: none;
}

.page.active {
    display: block;
    animation: pageIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════
   HOME — HERO
═══════════════════════════════════════ */

.home-hero {
    height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.home-hero h1 {
    font-size: clamp(52px, 15vw, 200px);
    letter-spacing: clamp(6px, 2.5vw, 28px);
    font-weight: 700;
    line-height: 1;
    text-transform: lowercase;
    text-align: center;
    text-indent: clamp(6px, 2.5vw, 28px); /* compensate trailing letter-spacing */
    text-shadow: 0 0 60px rgba(0, 0, 0, 0.9), 0 2px 20px rgba(0, 0, 0, 0.7);
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: clamp(28px, 5vh, 56px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    opacity: 0.35;
    transition: opacity var(--ease);
    animation: hintBounce 2.2s ease-in-out infinite;
    white-space: nowrap;
}

.scroll-hint:hover {
    opacity: 0.8;
    animation-play-state: paused;
}

.scroll-hint span {
    font-family: var(--font);
    font-size: 8px;
    letter-spacing: 4px;
}

@keyframes hintBounce {
    0%, 100% { transform: translateX(-50%) translateY(0);   }
    50%       { transform: translateX(-50%) translateY(7px); }
}

/* ═══════════════════════════════════════
   HOME — ABOUT SECTION
═══════════════════════════════════════ */

#home-more {
    padding: clamp(64px, 10vw, 130px) var(--pad-x);
    padding-bottom: clamp(80px, 12vw, 160px);
}

.home-more-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 8vw, 110px);
    align-items: center;
}

.home-more-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.home-more-text h2 {
    font-size: 9px;
    letter-spacing: 4px;
    color: var(--muted);
    margin-bottom: 22px;
}

.home-more-text p {
    font-size: clamp(13px, 1.5vw, 16px);
    line-height: 1.9;
    opacity: 0.7;
    margin-bottom: 36px;
}

.home-more-text a {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 3px;
    transition: opacity var(--ease);
}

.home-more-text a:hover {
    opacity: 0.5;
}

/* ═══════════════════════════════════════
   SHARED SECTION WRAPPER (dates / releases)
═══════════════════════════════════════ */

.section-inner {
    max-width: 920px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 48px) var(--pad-x) 130px;
}

.releases-section-inner {
    max-width: 1160px;
}

.section-label {
    display: block;
    font-size: 9px;
    letter-spacing: 4px;
    color: var(--muted);
    margin-bottom: 48px;
}

/* ═══════════════════════════════════════
   DATES
═══════════════════════════════════════ */

.dates-list {}

.date-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--divider);
    transition: opacity var(--ease);
}

.date-row:first-child {
    border-top: 1px solid var(--divider);
}

.date-row:hover {
    opacity: 0.55;
}

.date-date {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--muted);
    flex-shrink: 0;
    min-width: 52px;
    padding-top: 2px;
    font-variant-numeric: tabular-nums;
}

.date-venue {
    display: block;
    font-size: 14px;
    letter-spacing: 1px;
}

.date-location {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--muted);
    margin-top: 5px;
}

/* ═══════════════════════════════════════
   RELEASES GRID
═══════════════════════════════════════ */

.releases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 4vw, 40px);
}

.release-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.release-card-img {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    position: relative;
}

.release-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.release-card:hover .release-card-img img {
    transform: scale(1.06);
}

.release-card-title {
    font-size: 10px;
    letter-spacing: 1px;
    line-height: 1.55;
    color: var(--muted);
    text-transform: uppercase;
}

.release-card-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.release-card-links .icon {
    display: flex;
    color: var(--white);
    opacity: 0.4;
    transition: opacity var(--ease);
    text-decoration: none;
}

.release-card-links .icon:hover {
    opacity: 1;
}

.release-card-links .icon svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */

#contact.active {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100svh;
    animation: pageIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.contact-outer {
    width: 100%;
    padding: calc(var(--nav-h) + 40px) var(--pad-x) 120px;
}

.contact-wrapper {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.contact-block {
    /* spacing comes from .divider */
}

.contact-block h2 {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--muted);
    margin-bottom: 14px;
    text-transform: uppercase;
}

.contact-block a,
.contact-block button {
    font-family: var(--font);
    font-size: clamp(14px, 3.5vw, 18px);
    letter-spacing: 2px;
    color: var(--white);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity var(--ease);
}

.contact-block a:hover,
.contact-block button:hover {
    opacity: 0.5;
}

.divider {
    display: block;
    width: 36px;
    height: 1px;
    background: var(--divider);
    margin: 38px auto;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px var(--pad-x);
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 8px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.28);
    text-decoration: none;
    transition: color var(--ease);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copy {
    font-size: 8px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════
   RESPONSIVE — TABLET
═══════════════════════════════════════ */

@media (min-width: 600px) {
    .releases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .releases-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ═══════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
═══════════════════════════════════════ */

@media (max-width: 768px) {

    /* Swap nav links for hamburger */
    .nav-links  { display: none; }
    .nav-social { display: none; }
    .nav-toggle { display: flex; }

    /* Footer: stack links above copyright */
    .footer {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 14px;
    }

    .footer-copy {
        margin: 0;
    }

    /* Home: stack image above text */
    .home-more-inner {
        grid-template-columns: 1fr;
        gap: clamp(32px, 8vw, 56px);
    }

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

    /* Scroll hint: clear stacked footer */
    .scroll-hint {
        bottom: 90px;
    }

    /* Dates: tighter gap */
    .date-date {
        min-width: 44px;
        font-size: 10px;
    }

    .date-venue {
        font-size: 12px;
    }

    .date-location {
        font-size: 9px;
    }

    .date-row {
        gap: 16px;
        padding: 18px 0;
    }
}

@media (max-width: 420px) {

    .home-hero h1 {
        letter-spacing: clamp(4px, 3vw, 10px);
    }

    .releases-grid {
        gap: 16px;
    }

    .release-card-title {
        font-size: 9px;
    }
}
