/* ============================================================
   HYPEOL — Hero Section Styles
   Dark theme | Premium particle hero
   ============================================================ */

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

:root {
    --accent:      #6a8fff;
    --accent-alt:  #9b6aff;
    --text-dim:    rgba(255, 255, 255, 0.38);
    --nav-h:       72px;
}

html, body {
    width: 100%;
    height: 100%;
    background: #000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ── Navigation ────────────────────────────────────────────── */
.hy-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 48px;
    height: var(--nav-h);
    /* Glass blur border */
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.4s, background 0.4s;
}

/* Scrolled state added via JS */
.hy-nav.scrolled {
    backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.6);
}

.hy-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hy-nav__brand {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 5px;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    animation: hy-fadeDown 0.7s 2.6s cubic-bezier(.22,.61,.36,1) forwards;
}

.hy-nav__links {
    display: flex;
    list-style: none;
    gap: 44px;
    opacity: 0;
    animation: hy-fadeDown 0.7s 2.75s cubic-bezier(.22,.61,.36,1) forwards;
}

.hy-nav__links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: color 0.25s;
    position: relative;
}

.hy-nav__links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}

.hy-nav__links a:hover { color: #fff; }
.hy-nav__links a:hover::after { width: 100%; }

.hy-nav__cta {
    border: 1px solid rgba(106, 143, 255, 0.35) !important;
    padding: 7px 20px !important;
    border-radius: 2px;
    color: var(--accent) !important;
    transition: background 0.25s, color 0.25s !important;
}
.hy-nav__cta:hover {
    background: rgba(106, 143, 255, 0.12);
    color: #fff !important;
}
.hy-nav__cta::after { display: none !important; }

/* Burger (mobile) */
.hy-nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    opacity: 0;
    animation: hy-fadeDown 0.7s 2.75s cubic-bezier(.22,.61,.36,1) forwards;
}
.hy-nav__burger span {
    display: block;
    width: 24px;
    height: 1px;
    background: #fff;
    transition: transform 0.3s, opacity 0.3s;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hy-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    /* Layered radial gradient background: deep space feel */
    background:
        radial-gradient(ellipse 80% 60% at 50% 45%,
            rgba(18, 8, 55, 0.75) 0%,
            rgba(4, 0, 22, 0.90) 50%,
            #000 78%);
}

/* Subtle vignette */
.hy-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center,
        transparent 50%,
        rgba(0,0,0,0.55) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Three.js canvas container */
.hy-hero__canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hy-hero__canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* ── Tagline ───────────────────────────────────────────────── */
.hy-hero__text {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    animation: hy-fadeUp 1s 2.2s cubic-bezier(.22,.61,.36,1) forwards;
}

.hy-hero__tagline {
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 7px;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* ── Scroll Indicator ──────────────────────────────────────── */
.hy-hero__scroll {
    position: absolute;
    bottom: 38px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: hy-fadeUp 0.8s 3.1s ease forwards;
    pointer-events: none;
}

.hy-hero__scroll-line {
    width: 1px;
    height: 52px;
    background: linear-gradient(to bottom,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.35) 50%,
        rgba(255,255,255,0) 100%);
    animation: hy-scrollPulse 2.2s 3.5s ease-in-out infinite;
}

.hy-hero__scroll-label {
    font-size: 8px;
    letter-spacing: 5px;
    color: var(--text-dim);
    font-weight: 300;
}

/* ── Keyframes ─────────────────────────────────────────────── */
@keyframes hy-fadeDown {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0);     }
}

@keyframes hy-fadeUp {
    from { opacity: 0; transform: translateX(-50%) translateY(14px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0);    }
}

@keyframes hy-scrollPulse {
    0%, 100% { opacity: 0.6; transform: scaleY(1);   }
    50%       { opacity: 0.15; transform: scaleY(0.5); }
}

/* ══════════════════════════════════════════════════════════════
   PROJECTS SECTION
   ══════════════════════════════════════════════════════════════ */

.hy-works {
    background: #000;
    position: relative;
    overflow: hidden;
}

/* ── Section Header ────────────────────────────────────────── */
.hy-works__header {
    text-align: center;
    padding: 120px 40px 80px;
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.hy-works__header.in-view {
    opacity: 1;
    transform: translateY(0);
}

.hy-works__eyebrow {
    display: block;
    font-size: 10px;
    letter-spacing: 7px;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 400;
}

.hy-works__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(52px, 7vw, 96px);
    letter-spacing: 6px;
    color: #fff;
    line-height: 1;
    margin-bottom: 28px;
}

.hy-works__title-line {
    width: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), var(--accent-alt), transparent);
    margin: 0 auto;
    transition: width 1.2s 0.4s ease;
}

.hy-works__header.in-view .hy-works__title-line {
    width: 280px;
}

/* ── Project Card ──────────────────────────────────────────── */
.hy-proj {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.hy-proj--flip {
    flex-direction: row-reverse;
}

/* ── Canvas Side ───────────────────────────────────────────── */
.hy-proj__canvas-wrap {
    flex: 0 0 55%;
    position: relative;
    background: #020208;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1.1s 0.15s ease;
}

.hy-proj__canvas-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%,
        transparent 40%,
        rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}

.hy-proj.in-view .hy-proj__canvas-wrap {
    opacity: 1;
}

.hy-proj__canvas-wrap canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* ── Info Side ─────────────────────────────────────────────── */
.hy-proj__info {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 72px;
    position: relative;
    opacity: 0;
    transform: translateX(48px);
    transition: opacity 0.9s 0.3s ease, transform 0.9s 0.3s ease;
}

.hy-proj--flip .hy-proj__info {
    transform: translateX(-48px);
}

.hy-proj.in-view .hy-proj__info {
    opacity: 1;
    transform: translateX(0);
}

/* Ghost background number */
.hy-proj__ghost-num {
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(140px, 18vw, 240px);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.04);
    pointer-events: none;
    user-select: none;
    letter-spacing: -4px;
}

.hy-proj--flip .hy-proj__ghost-num {
    right: auto;
    left: -10px;
}

.hy-proj__tag {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
    font-weight: 400;
}

.hy-proj__name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(42px, 5vw, 72px);
    letter-spacing: 3px;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hy-proj__desc {
    font-size: 14px;
    line-height: 1.85;
    color: rgba(255,255,255,0.45);
    font-weight: 300;
    max-width: 400px;
    margin-bottom: 40px;
}

.hy-proj__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 6px;
    width: fit-content;
    transition: color 0.3s, border-color 0.3s, gap 0.3s;
}

.hy-proj__link:hover {
    color: var(--accent);
    border-color: var(--accent);
    gap: 16px;
}

.hy-contact__info a,
.hy-contact__info a:visited,
.hy-contact__info a:active {
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.hy-contact__info a::before {
    content: '\260E';
    color: var(--accent);
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
    font-family: 'Segoe UI Symbol', Arial, sans-serif;
    font-size: 1.05em;
    line-height: 1;
}

.hy-contact__info a:hover {
    color: #fff;
}

.hy-contact__info a:hover::before {
    color: var(--accent);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hy-proj,
    .hy-proj--flip {
        flex-direction: column;
        min-height: auto;
    }

    .hy-proj__canvas-wrap {
        flex: none;
        height: 55vw;
        min-height: 300px;
    }

    .hy-proj__info {
        flex: none;
        padding: 48px 32px 56px;
        transform: translateY(32px) !important;
    }

    .hy-proj.in-view .hy-proj__info {
        transform: translateY(0) !important;
    }

    .hy-proj__ghost-num {
        font-size: 100px;
    }
}

@media (max-width: 768px) {
    .hy-nav { padding: 0 20px; }

    .hy-nav__links { display: none; }
    .hy-nav__burger { display: flex; }

    .hy-hero__tagline {
        font-size: 8px;
        letter-spacing: 5px;
    }

    .hy-hero__text { bottom: 26%; }

    .hy-works__header { padding: 80px 24px 60px; }
    .hy-proj__info { padding: 36px 24px 48px; }
    .hy-proj__desc { font-size: 13px; }
}

/* ── Mobile Nav — Open State ───────────────────────────────── */
.hy-nav--open .hy-nav__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    animation: hy-menuSlide 0.25s cubic-bezier(.22,.61,.36,1) forwards;
}

.hy-nav--open .hy-nav__links li {
    width: 100%;
    text-align: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hy-nav--open .hy-nav__links li:last-child {
    border-bottom: none;
}

.hy-nav--open .hy-nav__links a {
    font-size: 13px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.7);
}

/* Burger → X animasyonu */
.hy-nav--open .hy-nav__burger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hy-nav--open .hy-nav__burger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hy-nav--open .hy-nav__burger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@keyframes hy-menuSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0);    }
}

@media (max-width: 480px) {
    .hy-hero__tagline {
        font-size: 7px;
        letter-spacing: 4px;
    }
}
