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

:root {
    --bg: #0a0806;
    --bg-subtle: #110e0a;
    --coffee-dark: #2a1f14;
    --coffee: #5a3e28;
    --coffee-light: #8b6f52;
    --coffee-pale: #c4a882;
    --cream: #e8dcc8;
    --text: #d4c8b8;
    --text-muted: #8a7e6e;
    --accent: #c8956c;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
}

body.page-home {
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 40%, rgba(60, 40, 20, 0.08) 0%, transparent 70%);
}

::selection {
    background: var(--coffee);
    color: var(--cream);
}

/* NAV */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.2rem 2rem;
    transition: background 0.4s, box-shadow 0.4s;
}

#navbar.scrolled {
    background: rgba(10, 8, 6, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(90, 62, 40, 0.15);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--coffee-pale);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.3s;
}

.logo:hover { color: var(--accent); }

.nav-links { display: flex; gap: 2.5rem; }

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-link:hover, .nav-link.active { color: var(--cream); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--coffee-pale);
    transition: all 0.3s;
}

/* MAIN */
main { min-height: 100vh; padding-top: 70px; position: relative; z-index: 1; }

/* HERO */
.hero-section {
    height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(90, 62, 40, 0.08) 0%, transparent 70%);
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#handCanvas {
    cursor: pointer;
    z-index: 2;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hands-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 680px;
    z-index: 2;
    cursor: pointer;
}

.hands-container svg {
    width: 100%;
    height: auto;
    display: block;
}

.hero-hint {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.6;
    z-index: 5;
    animation: pulse-hint 2.5s ease-in-out infinite;
    transition: opacity 0.5s;
}

.hero-hint.hidden { opacity: 0; pointer-events: none; }

@keyframes pulse-hint {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* "hiç" text overlay on canvas */
.hic-text {
    position: absolute;
    z-index: 10;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-style: italic;
    color: var(--cream);
    cursor: pointer;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    text-shadow: 0 0 30px rgba(200, 149, 108, 0.3);
    user-select: none;
}

.hic-text.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.hic-text:hover {
    color: var(--accent);
    text-shadow: 0 0 40px rgba(200, 149, 108, 0.5);
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(5, 3, 2, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: background 0.5s;
}

.modal-overlay.active {
    background: rgba(5, 3, 2, 0.88);
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-subtle);
    border: 1px solid rgba(90, 62, 40, 0.25);
    border-radius: 2px;
    max-width: 560px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 3rem 2.5rem;
    position: relative;
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover { color: var(--cream); }

.story-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--coffee-pale);
}

/* ABOUT */
.about-section {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 6rem 2rem 4rem;
}

@media (min-width: 769px) {
    .about-section { align-items: center; padding: 4rem 2rem; }
}

.about-container {
    max-width: 960px;
    width: 100%;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 4rem;
    align-items: start;
}

.about-photo-wrapper { position: relative; }

.about-photo-frame {
    position: relative;
    border: 1px solid rgba(90, 62, 40, 0.3);
    overflow: hidden;
    background: var(--coffee-dark);
}

.photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    padding: 2rem;
}

.photo-placeholder svg { width: 100%; height: auto; opacity: 0.6; }

.about-photo-shadow {
    position: absolute;
    bottom: -8px;
    left: 10%;
    right: 10%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(90, 62, 40, 0.15) 0%, transparent 80%);
}

.about-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--cream);
    letter-spacing: 0.02em;
}

.about-divider {
    width: 40px;
    height: 1px;
    background: var(--coffee);
    margin: 1.2rem 0 1.5rem;
}

.about-body p {
    margin-bottom: 1.1rem;
    line-height: 1.85;
    color: var(--text);
    font-size: 0.92rem;
}

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

.about-body strong { color: var(--cream); font-weight: 500; }
.about-body em { color: var(--coffee-pale); font-style: italic; }

/* LINKS */
.links-section {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.links-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.links-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--cream);
    letter-spacing: 0.02em;
}

.links-divider {
    width: 40px;
    height: 1px;
    background: var(--coffee);
    margin: 1.2rem auto 3rem;
}

.links-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.1rem 1.5rem;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid rgba(90, 62, 40, 0.15);
    transition: background 0.3s, color 0.3s, padding-left 0.3s;
}

.link-card:first-child { border-top: 1px solid rgba(90, 62, 40, 0.15); }

.link-card:hover {
    background: rgba(90, 62, 40, 0.08);
    color: var(--cream);
    padding-left: 2rem;
}

.link-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coffee-light);
    transition: color 0.3s;
}

.link-card:hover .link-icon { color: var(--accent); }

.link-icon svg { width: 100%; height: 100%; }

.link-label {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.03em;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 8, 6, 0.96);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1.2rem;
        border-bottom: 1px solid rgba(90, 62, 40, 0.15);
    }

    .nav-links.open { display: flex; }

    .mobile-toggle { display: flex; }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-photo-wrapper {
        max-width: 220px;
        margin: 0 auto;
    }

    .about-name { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    #navbar { padding: 1rem 1.2rem; }

    .about-section, .links-section { padding: 3rem 1.2rem; }

    .modal-content { padding: 2rem 1.5rem; }

    .about-body p { font-size: 0.88rem; }
}
