/* ========================================
   MERT KILICARSLAN — Portfolio v2
   Ultra-minimal, professional
   ======================================== */

:root {
    --bg: #090909;
    --bg-alt: #0f0f0f;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;

    --text: #e8e8e8;
    --text-secondary: #888;
    --text-muted: #555;

    --accent: #5b5bf7;
    --accent-dim: rgba(91, 91, 247, 0.1);
    --green: #34d399;
    --green-dim: rgba(52, 211, 153, 0.1);

    --border: #1e1e1e;
    --border-hover: #2a2a2a;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', 'Consolas', monospace;

    --max-w: 860px;
    --header-h: 64px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 32px);
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent);
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 100;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(9, 9, 9, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.logo-dot {
    color: var(--accent);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.2s;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text);
}

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-btn span {
    width: 20px;
    height: 1.5px;
    background: var(--text);
    transition: all 0.3s;
}

.menu-btn.active span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-btn.active span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* --- Hero --- */
.hero {
    padding: 180px 0 120px;
    border-bottom: 1px solid var(--border);
}

.hero-label {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 540px;
    margin-bottom: 36px;
}

.hero-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 8px 0;
    transition: color 0.2s;
    font-weight: 500;
}

.hero-link:hover {
    color: var(--text);
}

.hero-link svg {
    opacity: 0.7;
}

/* --- Sections --- */
.section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border);
}

.section-alt {
    background: var(--bg-alt);
}

.section-label {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 56px;
}

/* --- Project --- */
.project {
    margin-bottom: 80px;
    padding-bottom: 80px;
    border-bottom: 1px solid var(--border);
}

.project:last-of-type {
    border-bottom: none;
    margin-bottom: 64px;
    padding-bottom: 0;
}

.project-header {
    margin-bottom: 36px;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.project-year {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-status {
    font-family: var(--mono);
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.project-status.live {
    color: var(--green);
    background: var(--green-dim);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.project-role {
    font-family: var(--mono);
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(91, 91, 247, 0.2);
}

.project-name {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.project-tagline {
    color: var(--text-secondary);
    font-size: 1rem;
}

.project-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.project-description p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.project-description p:last-of-type {
    margin-bottom: 24px;
}

.project-links {
    display: flex;
    gap: 12px;
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    padding: 8px 16px;
    border: 1px solid rgba(91, 91, 247, 0.25);
    border-radius: 6px;
    background: var(--accent-dim);
    transition: all 0.2s;
}

.project-link-btn:hover {
    background: rgba(91, 91, 247, 0.18);
    border-color: rgba(91, 91, 247, 0.4);
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.detail-block {
    /* keep clean */
}

.detail-title {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.detail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}

.detail-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
}

.detail-list.mono li {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-list span {
    font-family: var(--mono);
    font-size: 0.72rem;
    padding: 4px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
}

/* Project Code Block */
.project-code {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.code-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.code-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
}

.code-file {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.project-code pre {
    padding: 20px;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.hl-kw { color: #c084fc; }
.hl-str { color: var(--green); }
.hl-comment { color: var(--text-muted); font-style: italic; }

/* --- Other Projects --- */
.other-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.other-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.other-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.25s ease;
    display: block;
}

.other-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.other-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.other-year {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.other-card-top svg {
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.2s;
}

.other-card:hover .other-card-top svg {
    opacity: 1;
}

.other-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.other-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}

.other-tech {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* --- About --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.about-text p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 18px;
}

.about-stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.stack-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.stack-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stack-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.stack-name {
    font-size: 0.85rem;
    font-weight: 500;
}

.stack-level {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 2px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 3px;
}

/* --- Contact --- */
.contact-text {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 40px;
    margin-top: -24px;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.contact-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.contact-card svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
    font-weight: 500;
}

.contact-value {
    font-size: 0.88rem;
    color: var(--text);
    font-weight: 500;
}

/* --- Footer --- */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--mono);
}

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero {
        padding: 140px 0 80px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .menu-btn {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 240px;
        height: 100vh;
        flex-direction: column;
        background: var(--bg-alt);
        border-left: 1px solid var(--border);
        padding: 100px 32px;
        gap: 24px;
        transition: right 0.3s ease;
        z-index: 99;
    }

    .nav.open {
        right: 0;
    }

    .nav-link {
        font-size: 1rem;
    }

    .project-body,
    .about-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .other-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 72px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-links {
        flex-direction: column;
        gap: 8px;
    }
}
