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

:root {
    --bg: #0d0d0f;
    --bg2: #13131a;
    --bg3: #1a1a24;
    --card: #16161f;
    --border: rgba(255, 255, 255, 0.07);
    --accent: #a855f7;
    --accent2: #7c3aed;
    --accent3: #ec4899;
    --text: #f0f0f5;
    --muted: #888899;
    --glow: rgba(168, 85, 247, 0.25);
}

body.light {
    --bg: #f0eef8;
    --bg2: #e8e5f5;
    --bg3: #ddd9f0;
    --card: #ede9fa;
    --border: rgba(120, 80, 220, 0.12);
    --text: #1a1528;
    --muted: #6b5f8a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

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

body.light .blob-1 {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08), transparent 70%);
}

body.light .blob-2 {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.06), transparent 70%);
}

body,
header,
section,
.card,
.interest-card,
.project-card,
.stat-card,
.contact-card,
nav a {
    transition: background-color 0.4s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ── HEADER ── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    height: 68px;
    background: rgba(13, 13, 15, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.logo a {
    text-decoration: none;
    color: white;
}

.logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.2s;
    border-radius: 99px;
}

nav a:hover {
    color: var(--text);
}

nav a:hover::after {
    transform: scaleX(1);
}

.header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-right a {
    color: var(--muted);
    font-size: 1.1rem;
    transition:
        color 0.2s,
        transform 0.2s;
    text-decoration: none;
}

.header-right a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Minecraft switch made by: csozi | Website: english.csozi.hu*/

/* The switch - the box around the slider */
.switch {
    font-size: 10px;
    position: relative;
    display: inline-block;
    width: 4em;
    height: 2em;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 1;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000000;
    transition: .4s;
    border-radius: 20px;
}

.off {
    position: absolute;
    content: "";
    height: 2em;
    width: 2em;
    background-color: rgb(0, 0, 0);
    transition: .4s;
    image-rendering: pixelated;
    opacity: 1;
    border-radius: 2px;
}

.on {
    position: absolute;
    content: "";
    height: 2em;
    width: 2em;
    background-color: rgb(0, 0, 0);
    transition: .4s;
    image-rendering: pixelated;
    opacity: 0;
    border-radius: 10px;
}

.switch input:checked+.slider {
    background-color: #ccc;
}

.switch input:focus+.slider {
    box-shadow: 0 0 1px #ccc;
}

.switch input:checked~.off {
    transform: translateX(2em);
}

.switch input:checked~.on {
    transform: translateX(2em);
    opacity: 1;
}

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

/* background blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle,
            rgba(168, 85, 247, 0.15),
            transparent 70%);
    top: 10%;
    left: 15%;
    animation: float1 8s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle,
            rgba(236, 72, 153, 0.1),
            transparent 70%);
    bottom: 10%;
    right: 10%;
    animation: float2 10s ease-in-out infinite;
}

@keyframes float1 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -40px);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, 30px);
    }
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 99px;
    margin-bottom: 2rem;
    animation: fadeDown 0.6s ease both;
}

.hero-badge i {
    font-size: 0.7rem;
}

.hero-name {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.2rem;
    animation: fadeDown 0.7s ease both;
}

.hero-name span {
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--muted);
    font-weight: 400;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto 2.5rem;
    animation: fadeDown 0.8s ease both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeDown 0.9s ease both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: white;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ── SCROLL HINT ── */
.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadeIn 1.5s ease both;
}

.scroll-hint i {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

/* ── SECTIONS ── */
section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--muted);
    font-size: 1rem;
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 3rem;
}

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

/* ── PROJECTS ── */
#projects {
    background: var(--bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.8rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(168, 85, 247, 0.05),
            transparent);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 85, 247, 0.3);
}

.project-card:hover::before {
    opacity: 1;
}

.project-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
}

.project-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-desc {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 99px;
}

/* ── INTERESTS ── */
#interests {
    background: var(--bg2);
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.interests-row {
    display: contents;
}

.interest-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.interest-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
}

.interest-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    user-select: none;
}

.interest-left {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.interest-emoji {
    font-size: 1.5rem;
    width: 42px;
    height: 42px;
    background: var(--bg3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interest-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.interest-chevron {
    color: var(--muted);
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.interest-card.open .interest-chevron {
    transform: rotate(180deg);
}

.interest-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.interest-card.open .interest-body {
    max-height: 300px;
}

.interest-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.7;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 0;
}

/* ── ABOUT / STATS ── */
#about {
    background: var(--bg2);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.about-text p strong {
    color: var(--text);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition:
        transform 0.2s,
        border-color 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.3);
}

.stat-num {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 500;
    margin-top: 0.3rem;
}

/* ── CONTACT ── */
#contact {
    background: var(--bg);
    text-align: center;
}

.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: "";
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle,
            rgba(168, 85, 247, 0.15),
            transparent 70%);
    pointer-events: none;
}

.contact-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.contact-card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
}

footer span {
    color: var(--accent);
}

/* ── ANIMATIONS ── */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    header {
        padding: 0 1.2rem;
    }

    nav {
        display: none;
    }

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

    .hero-name {
        font-size: 3rem;
    }
}