/* =====================
   EMRAH KAHRAMAN V4 (Restored)
   ===================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

:root {
    --red: #ff003c;
    --blue: #00f0ff;
    --bg: #000;
    --surf: #0a0a0a;
    --text: #fff;
    --fh: 'Syncopate', sans-serif;
    --fb: 'Inter', sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--fb);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* CUSTOM CURSOR */
#cursor {
    width: 6px;
    height: 6px;
    background: var(--red);
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
}

#cursorFollower {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease-out, background 0.3s, border-color 0.3s;
}

#cursorFollower.hRed {
    width: 56px;
    height: 56px;
    background: rgba(255, 0, 60, .1);
    border-color: var(--red);
}

#cursorFollower.hBlue {
    width: 56px;
    height: 56px;
    background: rgba(0, 240, 255, .1);
    border-color: var(--blue);
}

/* ---- HEADER ---- */
#siteHeader {
    text-align: center;
    padding: 6rem 1rem 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#headerSocial {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.igLink {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    color: #777;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color .3s;
}

.igLink:hover {
    color: var(--red);
}

.igLink svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* EK Logo - Image Based */
#ekLogo {
    max-width: 260px;
    margin: 2rem auto 0.5rem;
    opacity: 0.95;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
    display: block;
    position: relative;
}

#ekLogo img {
    width: 100%;
    height: auto;
    display: block;
}

#ekLogo::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--red);
    margin: 0.8rem auto 0;
    opacity: 0.4;
}

#brandName {
    font-family: var(--fb);
    font-size: clamp(.65rem, 1.5vw, .9rem);
    font-weight: 800;
    letter-spacing: clamp(4px, 1.5vw, 10px);
    color: #aaa;
    margin-bottom: 2.5rem;
}

/* Triggers - Moved to Bottom & Stacked */
#catalogTriggers {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin-top: 4rem;
}

.megaBtn {
    background: none;
    border: 1px solid var(--red);
    color: var(--red);
    padding: 1.2rem 3rem;
    min-width: 280px;
    font-family: var(--fh);
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    letter-spacing: 3px;
    cursor: none;
    transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.megaBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.4s;
}

.megaBtn:hover::before {
    left: 0;
}

.megaBtn:hover {
    background: var(--red);
    color: #000;
    box-shadow: 0 0 40px rgba(255, 0, 60, .5);
    transform: translateY(-8px) scale(1.05);
}

.megaBtnBlue {
    border-color: var(--blue);
    color: var(--blue);
}

.megaBtnBlue:hover {
    background: var(--blue);
    color: #000;
    box-shadow: 0 0 40px rgba(0, 240, 255, .5);
}

/* ---- HERO SECTION ---- */
#heroWrap {
    width: 100%;
    max-width: 400px;
    height: 520px;
    margin: 0 auto 12rem;
    /* Buffer to prevent bio overlap */
    position: relative;
}

#heroBorderWrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .05);
}

#heroImg {
    width: 100%;
    height: 130%;
    object-fit: cover;
    object-position: center top;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
}

/* ---- BIO ---- */
#bioSection {
    max-width: 700px;
    margin: 0 auto;
    padding: 6rem 1.5rem 8rem;
    /* Added padding to clear the sliding hero image */
    text-align: center;
}

.secTitle {
    font-family: var(--fh);
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: var(--red);
    letter-spacing: 3px;
    margin-bottom: 2rem;
}

.bioText p {
    font-size: 1rem;
    color: #aaa;
    line-height: 1.9;
    margin-bottom: 1.4rem;
    font-weight: 300;
}

/* FOOTER */
#siteFooter {
    text-align: center;
    padding: 4rem 1rem;
    color: #333;
    font-family: var(--fh);
    font-size: .6rem;
    letter-spacing: 4px;
}

/* DRAWERS (Glassmorphism) */
.drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 600px;
    /* Slightly wider for better grid */
    max-width: 95vw;
    height: 100%;
    background: rgba(10, 10, 10, 0.75);
    /* Semi-transparent */
    backdrop-filter: blur(25px);
    /* Premium Blur */
    -webkit-backdrop-filter: blur(25px);
    z-index: 2000;
    transition: right 0.7s cubic-bezier(0.77, 0, 0.175, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    /* Sophisticated border */
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
}

.drawer.active {
    right: 0;
}

.drawerBlue {
    border-left-color: rgba(0, 240, 255, .2);
}

.dHeader {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1a1a1a;
}

.dHeader h3 {
    font-family: var(--fh);
    font-size: .9rem;
    letter-spacing: 3px;
    color: var(--red);
}

.drawerBlue .dHeader h3 {
    color: var(--blue);
}

.closeBtn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: none;
    opacity: 0.5;
    transition: .3s;
}

.closeBtn:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.dBody {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.dGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.dItem {
    position: relative;
    background: #111;
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #222;
}

.dItem img,
.dItem video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .8);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: .4s;
}

#overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* LIGHTBOX EXPERIENCE */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 5000;
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#lightbox.active {
    display: flex;
    opacity: 1;
}

#lightboxImg,
#lightboxVideo {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    display: none;
}

#closeLightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: 200;
    cursor: none;
    z-index: 5100;
    transition: transform 0.3s;
}

#closeLightbox:hover {
    transform: rotate(90deg) scale(1.2);
    color: var(--red);
}

.lbNav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 50px;
    padding: 20px;
    cursor: none;
    opacity: 0.3;
    transition: 0.3s;
    user-select: none;
    z-index: 5100;
}

.lbNav:hover {
    opacity: 1;
    color: var(--blue);
}

#lightboxPrev {
    left: 20px;
}

#lightboxNext {
    right: 20px;
}

/* REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* ---- MOBILE OPTIMIZATION ---- */
@media (max-width: 768px) {

    *,
    *::before,
    *::after {
        cursor: auto !important;
    }

    #cursor,
    #cursorFollower {
        display: none !important;
    }

    #siteHeader {
        padding: 4rem 1rem 0;
        min-height: auto;
        margin-bottom: 2rem;
        /* Buffer between header and bio */
    }

    #ekLogo {
        max-width: 180px;
    }

    #brandName {
        letter-spacing: 5px;
        margin-bottom: 1.5rem;
    }

    #heroWrap {
        max-width: 90%;
        height: 350px;
        margin-bottom: 8rem;
        /* Balanced margin for mobile */
    }

    #catalogTriggers {
        margin-top: 1rem;
        gap: 1rem;
    }

    .megaBtn {
        padding: 1rem 2rem;
        min-width: 240px;
    }

    #bioSection {
        padding: 2rem 1.5rem 4rem;
        /* Balanced top padding */
        margin-top: 0;
        position: relative;
        background: var(--bg);
        z-index: 10;
    }

    .secTitle {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .bioText p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    .drawer {
        width: 100%;
        max-width: 100%;
    }

    .dHeader {
        padding: 1.5rem;
    }

    .dBody {
        padding: 1rem;
    }

    .dGrid {
        grid-template-columns: 1fr;
        /* Single column for better visibility on mobile */
        gap: 0.8rem;
    }

    .dItem {
        border-radius: 8px;
    }

    #siteFooter {
        padding: 2rem 1rem;
        font-size: 0.55rem;
        letter-spacing: 2px;
    }
}

/* Extra Small Devices */
@media (max-width: 400px) {
    #ekLogo {
        max-width: 150px;
    }

    .megaBtn {
        min-width: 100%;
    }
}