:root {
    --secondary-color: #05867f;
    --accent: #0ef0c4;
    --bg-dark: #0d1117;
    --bg-card: rgba(255, 255, 255, 0.04);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    min-width: 320px;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(13, 17, 23, 0.82), rgba(13, 17, 23, 0.92)), url(../images/bg.jpg);
    background-size: cover;
    background-position: center;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 2rem;
    transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--border);
}

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

.nav-brand {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.05em;
}

.nav-brand span {
    color: var(--accent);
}

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

.nav-links a {
    color: var(--text-secondary);
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: white;
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
}

.hero-content {
    max-width: 680px;
}

.hero h1 {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(2.4rem, 7vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--accent);
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    border: 1px solid var(--border);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(14, 240, 196, 0.07);
    color: white;
    transform: translateY(-2px);
}

/* ── Stats Strip ── */
.stats-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
}

.stats-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-number {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.stats-source {
    margin-top: 1.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.6;
    font-style: italic;
    font-weight: 300;
}

/* ── Sections ── */
.section {
    padding: 5rem 2rem;
}

.section-dark {
    background: rgba(0, 0, 0, 0.25);
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.section-sub {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 3rem;
}

/* ── Projects Grid ── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: block;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 32px rgba(5, 134, 127, 0.2);
    color: inherit;
}

.project-card-image {
    height: 190px;
    background-size: cover;
    background-position: top;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
}

.project-tag {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.project-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.project-card-body h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-card-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    font-weight: 300;
}

.project-link {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ── Recommenders Grid ── */
.recommenders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 1rem;
}

.rec-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem 1rem 1.5rem;
    text-align: center;
    display: block;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.rec-card:hover {
    transform: translateY(-4px);
    color: white;
}

.rec-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.rec-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.rec-card p {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Game accent colors */
.rec-card.lol  { border-color: rgba(200, 155, 60, 0.25); }
.rec-card.lol:hover  { border-color: #C89B3C; box-shadow: 0 4px 20px rgba(200, 155, 60, 0.18); }

.rec-card.dota { border-color: rgba(194, 60, 42, 0.25); }
.rec-card.dota:hover { border-color: #c23c2a; box-shadow: 0 4px 20px rgba(194, 60, 42, 0.18); }

.rec-card.ow   { border-color: rgba(249, 158, 26, 0.25); }
.rec-card.ow:hover   { border-color: #F99E1A; box-shadow: 0 4px 20px rgba(249, 158, 26, 0.18); }

.rec-card.rivals { border-color: rgba(226, 54, 54, 0.25); }
.rec-card.rivals:hover { border-color: #E23636; box-shadow: 0 4px 20px rgba(226, 54, 54, 0.18); }

.rec-card.valo { border-color: rgba(255, 70, 85, 0.25); }
.rec-card.valo:hover { border-color: #FF4655; box-shadow: 0 4px 20px rgba(255, 70, 85, 0.18); }

.rec-card.deadlock { border-color: rgba(79, 195, 247, 0.25); }
.rec-card.deadlock:hover { border-color: #4FC3F7; box-shadow: 0 4px 20px rgba(79, 195, 247, 0.18); }

/* ── Contact ── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.contact-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-card > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.services-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.services-list li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 300;
    padding-left: 1.4rem;
    position: relative;
}

.services-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 400;
}

/* ── Footer ── */
footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.25rem;
    }

    .nav-brand {
        font-size: 1.1rem;
    }

    .hero {
        padding-top: 6rem;
    }

    .hero-sub {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .recommenders-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .navbar {
        display: none;
    }

    .hero {
        padding-top: 0;
    }

    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3.5rem 1.25rem;
    }

    .hero {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .recommenders-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
