@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg: #0b0f14;
    --bg-2: #101820;
    --text: #f4f7f5;
    --muted: #aab7b1;
    --accent: #14b8a6;
    --accent-2: #a3e635;
    --gold: #f4c430;
    --line: rgba(255, 255, 255, 0.13);
    --soft: rgba(20, 184, 166, 0.10);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 15%, rgba(20, 184, 166, 0.18), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(163, 230, 53, 0.10), transparent 28%),
        linear-gradient(135deg, var(--bg), var(--bg-2) 55%, #11130f);
    line-height: 1.7;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 80%);
    pointer-events: none;
    z-index: -1;
}

.container {
    width: min(1120px, calc(100% - 34px));
    margin: 0 auto;
    padding: 36px 0 22px;
}

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

img {
    max-width: 100%;
    display: block;
}

/* SCROLL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(42px);
    filter: blur(5px);
    transition: opacity 0.75s ease, transform 0.75s ease, filter 0.75s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* HERO */
.hero {
    min-height: 560px;
    display: grid;
    grid-template-columns: 1.35fr 0.8fr;
    align-items: center;
    gap: 44px;
    padding: 54px 0 78px;
    border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-heading p,
.project-tag {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.78rem;
}

.hero h1 {
    margin: 12px 0 18px;
    font-size: clamp(2.35rem, 6vw, 4.75rem);
    line-height: 1.06;
    letter-spacing: -2px;
}

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

.hero-text {
    max-width: 650px;
    color: var(--muted);
    font-size: 1.06rem;
}

.hero-buttons,
.project-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

.primary-btn,
.live-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #06110f;
    box-shadow: 0 14px 30px rgba(20, 184, 166, 0.24);
}

.secondary-btn,
.code-btn {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
}

.secondary-btn:hover,
.code-btn:hover {
    border-color: var(--accent);
    background: var(--soft);
}

/* PROFILE - no container box */
.profile-card {
    justify-self: center;
    width: min(100%, 320px);
    text-align: center;
}

.profile-img-wrap {
    width: 188px;
    height: 188px;
    margin: 0 auto 20px;
    padding: 6px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, var(--accent), var(--accent-2), var(--gold), var(--accent));
    box-shadow: 0 0 45px rgba(20, 184, 166, 0.20);
}

.profile-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--bg-2);
}

.profile-card h2 {
    font-size: 1.45rem;
    margin-bottom: 4px;
}

.profile-card p {
    color: var(--muted);
    font-size: 0.94rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    transition: 0.25s ease;
}

.social-links a:hover {
    transform: translateY(-4px) scale(1.04);
    border-color: var(--accent);
    background: var(--soft);
}

.social-links img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* SECTIONS - no big boxed containers */
.section-card {
    padding: 72px 0;
    border-bottom: 1px solid var(--line);
}

.section-heading {
    margin-bottom: 26px;
}

.section-heading h2 {
    font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.info-grid,
.projects-grid,
.achievement-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.info-box,
.project-card,
.achievement-card {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 20px;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.info-box:hover,
.project-card:hover,
.achievement-card:hover {
    transform: translateY(-7px);
    border-color: rgba(20, 184, 166, 0.55);
    background: rgba(255, 255, 255, 0.035);
}

.info-box {
    padding: 22px;
}

.info-box h3 {
    color: var(--gold);
    font-size: 1.2rem;
}

.info-box p,
.project-card p,
.achievement-card p {
    color: var(--muted);
}

.skills,
.hobbies {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skills li,
.hobbies li {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
    color: #eefcf8;
    font-weight: 600;
    transition: 0.25s ease;
}

.skills li:hover,
.hobbies li:hover {
    transform: translateY(-4px);
    color: var(--accent-2);
    border-color: var(--accent);
    background: var(--soft);
}

.projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
    padding: 24px;
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.project-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--soft);
    font-size: 1.45rem;
}

.project-card h3 {
    font-size: 1.22rem;
    margin-bottom: 10px;
}

.project-buttons {
    margin-top: 22px;
}

.project-buttons .btn {
    min-height: 42px;
    padding: 10px 15px;
    font-size: 0.88rem;
}

.achievement-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.achievement-card span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(163, 230, 53, 0.12);
}

.footer {
    text-align: center;
    padding: 58px 0 20px;
}

.footer h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.footer p {
    color: var(--muted);
}

.footer a {
    color: var(--accent-2);
    font-weight: 600;
}

.footer-socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 18px 0;
}

.credit {
    margin-top: 10px;
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 42px 0 58px;
        min-height: auto;
    }

    .hero-text {
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

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

@media (max-width: 640px) {
    .container {
        width: min(100% - 22px, 1120px);
        padding: 18px 0 14px;
    }

    .hero {
        padding: 34px 0 48px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .profile-img-wrap {
        width: 158px;
        height: 158px;
    }

    .section-card {
        padding: 52px 0;
    }

    .info-grid,
    .projects-grid,
    .achievement-list {
        grid-template-columns: 1fr;
    }

    .skills,
    .hobbies,
    .project-buttons {
        gap: 10px;
    }

    .btn,
    .project-buttons .btn {
        width: 100%;
    }

    .footer-socials {
        flex-direction: column;
        gap: 8px;
    }
}
