:root {
    --bg: #fffaf7;
    --surface: #ffffff;
    --text: #17151a;
    --muted: #77727b;

    --pink: #ff4f9a;
    --purple: #8b5cf6;
    --yellow: #ffd166;
    --blue: #38bdf8;
    --green: #52d273;

    --border: #eee8e5;

    --shadow: 0 20px 60px rgba(30, 20, 40, 0.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Be Vietnam Pro", sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: 0.3s;
}

body.dark {
    --bg: #111016;
    --surface: #1a1820;
    --text: #f7f5f8;
    --muted: #aaa5af;
    --border: #2b2731;
    --shadow: 0 20px 60px rgba(0,0,0,0.3);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, 92%);
    margin: auto;
}


/* HEADER */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255,250,247,0.85);
    backdrop-filter: blur(15px);

    border-bottom: 1px solid var(--border);
}

.dark .header {
    background: rgba(17,16,22,0.85);
}

.nav {
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--pink);
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    transition: 0.2s;
}

nav a:hover {
    color: var(--pink);
}

.nav-actions {
    display: flex;
    gap: 10px;
}

.icon-btn,
.menu-btn {
    border: 1px solid var(--border);
    background: var(--surface);

    width: 42px;
    height: 42px;

    border-radius: 50%;

    cursor: pointer;
}

.menu-btn {
    display: none;
}


/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;

    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    align-items: center;
    gap: 50px;

    position: relative;
    z-index: 2;
}

.hello {
    display: inline-block;

    padding: 8px 15px;

    border-radius: 100px;

    background: #ffe2ef;

    color: #d82c75;

    font-size: 13px;
    font-weight: 700;

    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(55px, 8vw, 92px);
    line-height: 0.95;
    letter-spacing: -5px;
}

.hero h1 span {
    background: linear-gradient(
        90deg,
        var(--pink),
        var(--purple)
    );

    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    max-width: 570px;

    margin-top: 25px;

    font-size: 18px;
    line-height: 1.8;

    color: var(--muted);
}

.hero-subtitle strong {
    color: var(--text);
}

.hero-buttons {
    display: flex;
    gap: 12px;

    margin-top: 35px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 22px;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 700;

    transition: 0.25s;
}

.btn:hover {
    transform: translateY(-3px);
}

.primary {
    background: var(--text);
    color: var(--bg);

    box-shadow: var(--shadow);
}

.secondary {
    border: 1px solid var(--border);
    background: var(--surface);
}

.socials {
    display: flex;
    gap: 10px;

    margin-top: 30px;
}

.socials a {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--surface);

    border: 1px solid var(--border);

    font-weight: 700;

    transition: 0.2s;
}

.socials a:hover {
    transform: translateY(-3px);
    background: var(--pink);
    color: white;
}


/* HERO ART */

.hero-card {
    position: relative;

    width: 390px;
    height: 390px;

    margin: auto;

    border-radius: 40px;

    background:
        linear-gradient(
            135deg,
            #ffd166,
            #ff6fae,
            #8b5cf6
        );

    transform: rotate(4deg);

    box-shadow: var(--shadow);
}

.avatar {
    position: absolute;

    inset: 50% auto auto 50%;

    transform: translate(-50%, -50%) rotate(-4deg);

    width: 170px;
    height: 170px;

    border-radius: 50%;

    background: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 100px;
    font-weight: 800;

    color: var(--purple);

    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.floating-card {
    position: absolute;

    background: white;

    color: #17151a;

    padding: 12px 18px;

    border-radius: 14px;

    font-weight: 700;

    box-shadow: 0 15px 40px rgba(0,0,0,0.15);

    transform: rotate(-4deg);
}

.card-one {
    top: 30px;
    right: -20px;
}

.card-two {
    bottom: 50px;
    left: -30px;
}

.card-three {
    bottom: 20px;
    right: 30px;
}


/* BACKGROUND */

.hero-bg {
    position: absolute;

    border-radius: 50%;

    filter: blur(1px);

    opacity: 0.3;
}

.bg-one {
    width: 300px;
    height: 300px;

    background: var(--pink);

    top: -100px;
    left: -100px;
}

.bg-two {
    width: 250px;
    height: 250px;

    background: var(--blue);

    right: -100px;
    bottom: -80px;
}


/* SECTION */

section {
    padding: 100px 0;
}

.section-title span,
.section-label {
    color: var(--pink);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2px;
}

.section-title h2 {
    margin-top: 8px;

    font-size: 38px;

    letter-spacing: -1.5px;
}


/* CATEGORIES */

.categories {
    background: var(--surface);
}

.category-grid {
    margin-top: 45px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.category {
    padding: 30px;

    border: 1px solid var(--border);

    border-radius: 22px;

    background: var(--bg);

    transition: 0.25s;
}

.category:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.category-icon {
    font-size: 35px;
    margin-bottom: 20px;
}

.category h3 {
    font-size: 18px;
}

.category p {
    margin-top: 8px;

    color: var(--muted);

    font-size: 13px;
}


/* BLOG */

.blog-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 30px;
}

.search-box {
    width: 270px;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 13px 16px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 12px;
}

.search-box input {
    width: 100%;

    border: none;
    outline: none;

    background: transparent;

    color: var(--text);

    font-family: inherit;
}

.post-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;

    margin-top: 45px;
}

.post {
    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 25px;

    transition: 0.25s;
}

.post:hover {
    transform: translateY(-6px);

    box-shadow: var(--shadow);
}

.post-image {
    height: 230px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 80px;
}

.gradient-ai {
    background: linear-gradient(135deg,#ffb6d9,#a78bfa);
}

.gradient-pc {
    background: linear-gradient(135deg,#7dd3fc,#818cf8);
}

.gradient-game {
    background: linear-gradient(135deg,#86efac,#67e8f9);
}

.gradient-study {
    background: linear-gradient(135deg,#fde68a,#fdba74);
}

.post-content {
    padding: 27px;
}

.post-meta {
    display: flex;
    justify-content: space-between;

    font-size: 12px;

    color: var(--muted);
}

.post-meta span {
    color: var(--pink);
    font-weight: 800;
}

.post h3 {
    margin-top: 13px;

    font-size: 21px;

    line-height: 1.4;
}

.post p {
    margin-top: 12px;

    font-size: 14px;
    line-height: 1.7;

    color: var(--muted);
}

.read-more {
    display: inline-block;

    margin-top: 20px;

    font-size: 13px;
    font-weight: 800;

    color: var(--pink);
}

.no-result {
    display: none;

    text-align: center;

    margin-top: 50px;

    color: var(--muted);
}


/* ABOUT */

.about {
    background: var(--surface);
}

.about-grid {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 80px;

    align-items: center;
}

.about-image {
    height: 450px;

    border-radius: 35px;

    background:
        linear-gradient(
            135deg,
            #ffd166,
            #ff6b9d,
            #8b5cf6
        );

    display: flex;

    align-items: center;
    justify-content: center;

    box-shadow: var(--shadow);
}

.big-letter {
    width: 200px;
    height: 200px;

    background: white;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 120px;
    font-weight: 800;

    color: var(--purple);

    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

.about-content h2 {
    font-size: 48px;

    margin-top: 12px;

    letter-spacing: -2px;
}

.about-content h2 span {
    color: var(--pink);
}

.about-content p {
    margin-top: 20px;

    color: var(--muted);

    line-height: 1.8;
}

.stats {
    display: flex;

    gap: 50px;

    margin-top: 35px;
}

.stats div {
    display: flex;
    flex-direction: column;
}

.stats strong {
    font-size: 30px;
}

.stats span {
    color: var(--muted);

    font-size: 12px;
}


/* CONTACT */

.contact-box {
    padding: 55px;

    border-radius: 30px;

    background:
        linear-gradient(
            120deg,
            #ffd166,
            #ff8abb,
            #a78bfa
        );

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.contact-box h2 {
    margin-top: 10px;

    font-size: 36px;

    color: #17151a;
}

.contact-box p {
    margin-top: 10px;

    color: #3d3540;
}

.contact-box .btn {
    background: #17151a;
    color: white;
    flex-shrink: 0;
}


/* FOOTER */

footer {
    background: #111016;
    color: white;
}

.footer {
    padding: 55px 0;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.footer p {
    margin-top: 8px;

    color: #aaa5af;

    font-size: 13px;
}

.footer-links {
    display: flex;

    gap: 25px;

    font-size: 13px;

    color: #aaa5af;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    border-top: 1px solid #29262f;

    padding: 20px;

    text-align: center;

    color: #77727b;

    font-size: 12px;
}


/* MOBILE */

@media (max-width: 800px) {

    nav {
        position: absolute;

        top: 75px;
        left: 0;
        right: 0;

        background: var(--surface);

        border-bottom: 1px solid var(--border);

        padding: 20px;

        display: none;

        flex-direction: column;

        gap: 20px;
    }

    nav.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        min-height: auto;

        padding: 80px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-card {
        width: min(330px, 90vw);
        height: 330px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .blog-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .about-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .about-image {
        height: 350px;
    }

    .contact-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}


@media (max-width: 500px) {

    .hero h1 {
        font-size: 55px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        width: 280px;
        height: 280px;
    }

    .avatar {
        width: 130px;
        height: 130px;

        font-size: 75px;
    }

    .floating-card {
        padding: 9px 13px;
        font-size: 12px;
    }

    .contact-box {
        padding: 35px 25px;
    }

    .contact-box h2 {
        font-size: 28px;
    }

    .about-content h2 {
        font-size: 38px;
    }
}