﻿/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
    --bg: #07111f;
    --panel: #0d1b2f;
    --text: #f4f7fb;
    --muted: #a7b4c7;
    --line: rgba(255, 255, 255, .11);
    --brand: #29d3c2;
    --brand-2: #ffb454;
    --accent: #7c8cff;
    --shadow: 0 22px 70px rgba(0, 0, 0, .32);
    --radius: 8px;
}


/* ============================================================
   RESET & BASE
   ============================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, Segoe UI, system-ui, -apple-system, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(41, 211, 194, .18), transparent 28rem),
        radial-gradient(circle at 90% 18%, rgba(255, 180, 84, .13), transparent 24rem),
        var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

/* Grid pattern overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

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

ul {
    list-style: none;
}


/* ============================================================
   SKIP LINK (Accessibility)
   ============================================================ */
.skip-link {
    position: fixed;
    left: 1rem;
    top: -4rem;
    background: var(--brand);
    color: #041018;
    padding: .75rem 1rem;
    border-radius: var(--radius);
    z-index: 9999;
}

.skip-link:focus {
    top: 1rem;
}


/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    z-index: 1000;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1120px, calc(100% - 32px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 12px 14px 12px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(7, 17, 31, .74);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 45px rgba(0, 0, 0, .24);
    transition: .25s;
}

.site-header.scrolled {
    top: 10px;
    background: rgba(7, 17, 31, .91);
}

.logo {
    display: grid;
    line-height: 1.05;
}

.logo span {
    font-weight: 800;
    font-size: 1.02rem;
}

.logo strong {
    font-size: .72rem;
    color: var(--brand);
    letter-spacing: .08em;
    text-transform: uppercase;
}


/* ============================================================
   NAVIGATION
   ============================================================ */
.navlist {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.navlist a {
    display: block;
    padding: .55rem .75rem;
    border-radius: var(--radius);
    color: var(--muted);
    font-size: .94rem;
    font-weight: 650;
    transition: .2s;
}

.navlist a:hover,
.navlist a.active {
    color: var(--text);
    background: rgba(255, 255, 255, .07);
}


/* ============================================================
   BUTTONS
   ============================================================ */
.header-cta,
.btn,
.icon-btn,
.contact-links a,
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: var(--radius);
    transition: .22s;
}

.header-cta {
    padding: .62rem .85rem;
    background: rgba(41, 211, 194, .12);
    border: 1px solid rgba(41, 211, 194, .28);
    color: var(--brand);
    font-weight: 750;
}


/* ============================================================
   MOBILE MENU
   ============================================================ */
.menu-icon {
    display: none;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
    color: var(--text);
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    font-size: 1.5rem;
}


/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    position: relative;
    padding: 104px max(24px, calc((100vw - 1120px) / 2));
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
    align-items: center;
    gap: 4rem;
    padding-top: 142px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg::before,
.hero-bg::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 999px;
    animation: float 10s ease-in-out infinite;
}

.hero-bg::before {
    width: 420px;
    height: 420px;
    right: 7%;
    top: 18%;
    background: radial-gradient(circle, rgba(41, 211, 194, .13), transparent 60%);
}

.hero-bg::after {
    width: 210px;
    height: 210px;
    left: 7%;
    bottom: 12%;
    animation-delay: -4s;
    background: radial-gradient(circle, rgba(255, 180, 84, .14), transparent 60%);
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow {
    color: var(--brand);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-bottom: .8rem;
}

.hero h1,
.section-heading h2,
.contact-intro h2 {
    font-size: clamp(2.3rem, 6vw, 5rem);
    line-height: 1.01;
    letter-spacing: 0;
    max-width: 900px;
}

.hero h1 {
    font-size: clamp(3.5rem, 6vw, 4.8rem);
    font-weight: 900;
    text-wrap: balance;
    text-align: left;
    text-shadow: 0 20px 70px rgba(41, 211, 194, .16);
}

.hero-name {
    display: block;
    background: linear-gradient(135deg,
            #ffffff 0%,
            #c8fff7 42%,
            #ffdeaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-heading h2,
.contact-intro h2 {
    font-size: clamp(2rem, 4.2vw, 3.35rem);
}

.animated-role {
    min-height: 2.2rem;
    margin: .65rem 0 .45rem;
    color: var(--brand-2);
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    font-weight: 800;
    text-align: left;
}

.typing-text::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 5px;
    background: var(--brand);
    vertical-align: -.13em;
    animation: blink .8s steps(2, end) infinite;
}

.hero-copy {
    max-width: 580px;
    color: #c4cfdf;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    line-height: 1.5;
    text-align: left;
    border-left: 3px solid rgba(41, 211, 194, .75);
    padding-left: 1rem;
    background: linear-gradient(90deg, rgba(41, 211, 194, .08), transparent 72%);
}


/* ============================================================
   HERO ACTIONS
   ============================================================ */
.hero-actions {
    display: flex;
    align-items: center;
    gap: .8rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.btn {
    min-height: 48px;
    padding: .8rem 1.05rem;
    border: 1px solid transparent;
    font-weight: 850;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), #67f3df);
    color: #041018;
    box-shadow: 0 14px 38px rgba(41, 211, 194, .2);
}

.btn-secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
}

.icon-btn {
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .06);
    font-size: 1.4rem;
}

.btn:hover,
.icon-btn:hover,
.contact-links a:hover,
.footer-social a:hover {
    transform: translateY(-3px);
    border-color: rgba(41, 211, 194, .45);
}


/* ============================================================
   STATS & CARDS
   ============================================================ */
.hero-stats,
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.hero-stats div,
.achievement-card,
.skill-card,
.timeline-card,
.education-card,
.project-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg,
            rgba(255, 255, 255, .075),
            rgba(255, 255, 255, .035));
    box-shadow: var(--shadow);
}

.hero-stats div {
    padding: 1rem;
}

.hero-stats dt,
.achievement-card strong {
    display: block;
    color: var(--text);
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1.1;
}

.hero-stats dd,
.achievement-card span {
    color: var(--muted);
    font-size: .9rem;
}


/* ============================================================
   PROFILE CARD
   ============================================================ */
.profile-card {
    position: relative;
    padding: 12px;
    border: 1px solid rgba(41, 211, 194, .38);
    border-radius: var(--radius);
    background: linear-gradient(145deg,
            rgba(41, 211, 194, .2),
            rgba(124, 140, 255, .12));
    box-shadow:
        0 28px 90px rgba(0, 0, 0, .42),
        0 0 80px rgba(41, 211, 194, .12);
}

.profile-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    background: linear-gradient(135deg,
            rgba(41, 211, 194, .7),
            transparent 34%,
            rgba(255, 180, 84, .55));
    z-index: -1;
    filter: blur(12px);
    opacity: .55;
}

.profile-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    filter: saturate(1.08);
}

.profile-badge {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .75rem;
    border-radius: var(--radius);
    background: rgba(7, 17, 31, .82);
    border: 1px solid var(--line);
    backdrop-filter: blur(14px);
    font-weight: 850;
}

.profile-badge i {
    color: var(--brand);
    font-size: 1.35rem;
}


/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-heading {
    margin-bottom: 2rem;
}

.section-heading.centered {
    text-align: center;
    margin-inline: auto;
}

.section-heading.centered h2 {
    margin-inline: auto;
}


/* ============================================================
   ABOUT
   ============================================================ */
.about {
    background: linear-gradient(180deg, rgba(255, 255, 255, .035), transparent);
}

.about-grid,
.contact-shell {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 2rem;
    align-items: center;
}

.about-media {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    background: rgba(255, 255, 255, .05);
}

.about-media img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    max-height: 460px;
}

.about-copy p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.about-points,
.tech-stack {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.about-points span,
.tech-stack span {
    padding: .4rem .62rem;
    border-radius: var(--radius);
    background: rgba(41, 211, 194, .1);
    border: 1px solid rgba(41, 211, 194, .22);
    color: #bafcf3;
    font-size: .82rem;
    font-weight: 750;
}


/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid,
.projects-grid,
.education-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.skill-card {
    padding: 1.2rem;
    transition: .25s;
}

.skill-card i {
    font-size: 2rem;
    color: var(--brand);
    margin-bottom: 1rem;
}

.skill-card h3,
.project-card h3,
.timeline-card h3,
.education-card h3 {
    font-size: 1.1rem;
    margin-bottom: .75rem;
}

.skill-card li {
    color: var(--muted);
    padding: .38rem 0;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.skill-card:hover,
.project-card:hover,
.education-card:hover {
    transform: translateY(-5px);
    border-color: rgba(41, 211, 194, .34);
}


/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
    grid-template-columns: repeat(3, 1fr);
}

.project-card {
    overflow: hidden;
    transition: .25s;
}

.project-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #0b1628;
}

.project-body {
    padding: 1.1rem;
}

.project-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.project-topline span {
    color: var(--brand-2);
    font-size: .78rem;
    font-weight: 850;
}

.project-body p,
.timeline-card li,
.education-card p {
    color: var(--muted);
}

.project-body h4 {
    margin-top: 1rem;
    color: var(--brand);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.project-body ul {
    margin: .35rem 0 0 1rem;
    list-style: disc;
    color: var(--muted);
}


/* ============================================================
   EXPERIENCE / TIMELINE
   ============================================================ */
.timeline {
    position: relative;
    display: grid;
    gap: 1.2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 164px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(var(--brand), rgba(255, 255, 255, .07));
}

.timeline-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
}

.timeline-date {
    color: var(--brand-2);
    font-weight: 850;
    padding-top: 1.2rem;
}

.timeline-card {
    padding: 1.2rem;
    position: relative;
}

.timeline-card::before {
    content: "";
    position: absolute;
    left: -2.42rem;
    top: 1.55rem;
    width: 12px;
    height: 12px;
    border-radius: 99px;
    background: var(--brand);
    box-shadow: 0 0 0 7px rgba(41, 211, 194, .12);
}

.company {
    color: var(--brand);
    margin-bottom: .7rem;
}

.timeline-card ul {
    list-style: disc;
    margin-left: 1rem;
}


/* ============================================================
   EDUCATION
   ============================================================ */
.education-grid {
    grid-template-columns: repeat(3, 1fr);
}

.education-card {
    padding: 1.1rem;
}

.education-card img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.education-card span {
    color: var(--brand-2);
    font-weight: 850;
}

.education-card strong {
    display: block;
    color: var(--text);
    margin-top: .7rem;
}


/* ============================================================
   ACHIEVEMENTS
   ============================================================ */
.achievements {
    padding-top: 70px;
}

.achievement-card {
    padding: 1.2rem;
    text-align: center;
}


/* ============================================================
   CONTACT
   ============================================================ */
.contact-shell {
    padding: 2rem;
    border: 1px solid rgba(41, 211, 194, .22);
    border-radius: var(--radius);
    background: linear-gradient(145deg,
            rgba(41, 211, 194, .12),
            rgba(124, 140, 255, .08));
    box-shadow: var(--shadow);
}

.contact-intro p:not(.eyebrow) {
    color: var(--muted);
    max-width: 580px;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1.5rem;
}

.contact-links a {
    padding: .8rem;
    border: 1px solid var(--line);
    background: rgba(7, 17, 31, .38);
    font-weight: 800;
}

.contact-form {
    display: grid;
    gap: .85rem;
}

.contact-form label {
    display: grid;
    gap: .35rem;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 750;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(7, 17, 31, .72);
    color: var(--text);
    padding: .85rem 1rem;
    font: inherit;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(41, 211, 194, .11);
}

.contact-form button {
    width: 100%;
    border: 0;
    cursor: pointer;
}

.form-status {
    min-height: 1.4rem;
    color: var(--brand);
    font-size: .9rem;
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 28px max(24px, calc((100vw - 1120px) / 2));
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-logo {
    color: var(--text);
    font-weight: 900;
}

.footer-social {
    display: flex;
    gap: .55rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .05);
    font-size: 1.2rem;
}


/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

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


/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes float {
    50% {
        transform: translateY(-18px) scale(1.03);
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}


/* ============================================================
   RESPONSIVE: TABLET (max-width: 980px)
   ============================================================ */
@media (max-width: 980px) {
    .site-nav {
        order: 4;
    }

    .menu-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .navlist {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 10px);
        display: grid;
        padding: .7rem;
        background: rgba(7, 17, 31, .96);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: .2s;
    }

    .navlist.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navlist a {
        padding: .85rem;
    }

    .hero,
    .about-grid,
    .contact-shell {
        grid-template-columns: 1fr;
    }

    .hero {
        gap: 2rem;
        min-height: auto;
    }

    .hero-visual {
        max-width: 460px;
    }

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

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: .5rem;
        padding-left: 1.3rem;
    }

    .timeline-card::before {
        left: -1.66rem;
    }

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


/* ============================================================
   RESPONSIVE: MOBILE (max-width: 640px)
   ============================================================ */
@media (max-width: 640px) {
    .site-header {
        width: calc(100% - 22px);
        top: 10px;
    }

    .header-cta {
        display: none;
    }

    .section {
        padding: 82px 18px;
    }

    .hero {
        padding-top: 118px;
    }

    .hero h1 {
        font-size: clamp(3.5rem, 6vw, 4.8rem);
    }

    .hero-actions .btn {
        width: 100%;
    }

    .icon-btn {
        flex: 1;
    }

    .hero-stats,
    .skills-grid,
    .projects-grid,
    .education-grid,
    .achievement-grid,
    .contact-links {
        grid-template-columns: 1fr;
    }

    .contact-shell {
        padding: 1.1rem;
    }

    .site-footer {
        display: grid;
        text-align: center;
        justify-items: center;
    }

    .profile-badge {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

    .timeline-date {
        padding-top: 0;
    }
}
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    color: #041018;
    background: linear-gradient(135deg, var(--brand), #67f3df);
    border-radius: var(--radius);
    padding: 0.72rem 0.9rem;
    font-weight: 850;
    transition: 0.22s ease;
}

.project-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(41, 211, 194, 0.18);
}
