@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');


/* =========================
   VARIABLES
========================= */

:root {

    --bg: #06070d;
    --surface: #0d1019;
    --text: #f8fafc;
    --muted: #8d97ab;

    --line: rgba(255,255,255,.09);

    --primary: #7c5cff;
    --cyan: #25d9ff;
    --green: #39e58c;

    --shadow:
        0 25px 70px rgba(0,0,0,.35);
}


/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}


body {

    min-height: 100vh;

    font-family: "DM Sans", sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at 8% 10%,
            rgba(124,92,255,.15),
            transparent 28%
        ),

        radial-gradient(
            circle at 90% 25%,
            rgba(37,217,255,.08),
            transparent 25%
        ),

        var(--bg);

    overflow-x: hidden;
}


a {
    color: inherit;
    text-decoration: none;
}


button {
    font: inherit;
}


/* =========================
   GRID BACKGROUND
========================= */

body::before {

    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    opacity: .22;

    background-image:

        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );

    background-size: 50px 50px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 85%
        );
}


/* =========================
   CURSOR GLOW
========================= */

.cursor-glow {

    position: fixed;

    width: 260px;
    height: 260px;

    border-radius: 50%;

    pointer-events: none;

    background:
        radial-gradient(
            circle,
            rgba(124,92,255,.08),
            transparent 68%
        );

    transform:
        translate(-50%,-50%);

    z-index: 0;
}


/* =========================
   NAVBAR
========================= */

.navbar {

    position: fixed;

    top: 16px;
    left: 50%;

    transform: translateX(-50%);

    width: min(
        1180px,
        calc(100% - 32px)
    );

    height: 68px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    padding:
        0 20px 0 25px;

    border:
        1px solid var(--line);

    background:
        rgba(7,9,16,.72);

    backdrop-filter:
        blur(18px);

    border-radius: 18px;

    z-index: 1000;

    box-shadow:
        0 12px 35px
        rgba(0,0,0,.18);
}


.brand {

    font-family:
        "Space Grotesk";

    font-size: 23px;

    font-weight: 700;

    white-space: nowrap;
}


.brand span {

    color: var(--cyan);
}


.nav-links {

    display: flex;

    gap: 27px;

    align-items: center;
}


.nav-links a {

    color: #aeb7c9;

    font-size: 14px;

    transition: .25s;
}


.nav-links a:hover {

    color: white;
}


.nav-cta {

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #5f38e9
        );

    padding:
        11px 17px;

    border-radius: 12px;

    font-weight: 700;

    font-size: 13px;

    box-shadow:
        0 10px 25px
        rgba(124,92,255,.2);
}


/* MENU */

.menu-btn {

    display: none;

    background: none;

    border: none;

    cursor: pointer;
}


.menu-btn span {

    display: block;

    width: 25px;

    height: 2px;

    margin: 5px;

    background: white;
}


/* =========================
   GENERAL SECTION
========================= */

.section {

    width:
        min(
            1120px,
            calc(100% - 40px)
        );

    margin: auto;

    padding: 115px 0;

    position: relative;
}


/* =========================
   HERO
========================= */

.hero {

    min-height: 100vh;

    padding-top: 150px;

    display: grid;

    grid-template-columns:
        1.08fr .92fr;

    align-items: center;

    gap: 40px;
}


.eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: #aeb7c9;

    font-size: 11px;

    letter-spacing: 2px;

    font-weight: 700;
}


.pulse {

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background:
        var(--green);

    box-shadow:
        0 0 14px var(--green);
}


.hello {

    color: var(--muted);

    font-size: 20px;

    margin:
        22px 0 4px;
}


.hero h1 {

    font-family:
        "Space Grotesk";

    font-size:
        clamp(
            55px,
            8vw,
            100px
        );

    line-height: .95;

    letter-spacing: -5px;
}


.hero h1 span {

    color: transparent;

    -webkit-text-stroke:
        1px #8791a6;
}


.hero h2 {

    font-size:
        clamp(
            19px,
            2.5vw,
            29px
        );

    margin-top: 25px;

    line-height: 1.3;

    color: #d7dce6;
}


.hero h2 strong {

    color: var(--cyan);
}


.hero-text {

    max-width: 620px;

    margin-top: 18px;

    color: var(--muted);

    line-height: 1.8;

    font-size: 16px;
}


.hero-actions {

    display: flex;

    gap: 12px;

    margin-top: 30px;

    flex-wrap: wrap;
}


.btn {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding:
        13px 18px;

    border-radius: 12px;

    font-weight: 700;

    font-size: 14px;

    transition: .25s;
}


.btn:hover {

    transform:
        translateY(-3px);
}


.btn.primary {

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #5f38e9
        );

    box-shadow:
        0 10px 25px
        rgba(124,92,255,.2);
}


.btn.secondary {

    border:
        1px solid var(--line);

    background:
        rgba(255,255,255,.035);
}


.quick-stats {

    display: flex;

    gap: 35px;

    margin-top: 45px;
}


.quick-stats div {

    display: flex;

    flex-direction: column;

    gap: 4px;
}


.quick-stats strong {

    font-family:
        "Space Grotesk";

    font-size: 22px;
}


.quick-stats span {

    font-size: 11px;

    color: var(--muted);
}


/* =========================
   PROFILE
========================= */

.hero-visual {

    min-height: 570px;

    display: grid;

    place-items: center;

    position: relative;
}


.profile-wrap {

    width:
        min(
            390px,
            75vw
        );

    aspect-ratio: 1 / 1;

    position: relative;
}


.profile-img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center top;

    border-radius:
        48% 48% 42% 42%;

    position: relative;

    z-index: 2;

    filter:
        saturate(.9)
        contrast(1.04);
}


.profile-ring {

    position: absolute;

    inset: -15px;

    border-radius: 50%;

    border:
        1px solid
        rgba(37,217,255,.45);

    box-shadow:
        0 0 60px
        rgba(37,217,255,.12);

    animation:
        spin 15s linear infinite;
}


.profile-ring::after {

    content: "";

    position: absolute;

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background:
        var(--cyan);

    box-shadow:
        0 0 20px
        var(--cyan);

    top: 9%;
    left: 8%;
}


@keyframes spin {

    to {
        transform: rotate(360deg);
    }
}


.orbit {

    position: absolute;

    border:
        1px dashed
        rgba(255,255,255,.1);

    border-radius: 50%;
}


.orbit-one {

    width: 520px;
    height: 300px;

    transform:
        rotate(-25deg);
}


.orbit-two {

    width: 580px;
    height: 390px;

    transform:
        rotate(35deg);
}


/* Floating cards */

.floating-card {

    position: absolute;

    z-index: 4;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 13px;

    border:
        1px solid var(--line);

    background:
        rgba(13,16,25,.82);

    backdrop-filter:
        blur(15px);

    border-radius: 15px;

    box-shadow: var(--shadow);
}


.floating-card span {

    display: grid;

    place-items: center;

    width: 38px;
    height: 38px;

    border-radius: 10px;

    background:
        rgba(124,92,255,.15);

    color:
        var(--cyan);

    font-weight: bold;
}


.floating-card b,
.floating-card small {

    display: block;
}


.floating-card b {

    font-size: 12px;
}


.floating-card small {

    color: var(--muted);

    font-size: 10px;

    margin-top: 3px;
}


.code-card {

    top: 15%;
    right: 0;
}


.uni-card {

    bottom: 12%;
    left: 0;
}


/* =========================
   HEADINGS
========================= */

.section-heading > span {

    color: var(--cyan);

    font-size: 11px;

    letter-spacing: 2px;

    font-weight: 700;
}


.section-heading h2 {

    font-family:
        "Space Grotesk";

    font-size:
        clamp(
            38px,
            5vw,
            60px
        );

    margin-top: 12px;

    letter-spacing: -2px;
}


.section-heading h2 em {

    color: var(--primary);

    font-style: normal;
}


.section-heading.center {

    text-align: center;
}


.section-heading.center p {

    color: var(--muted);

    margin-top: 10px;
}


/* =========================
   ABOUT
========================= */

.about-grid {

    display: grid;

    grid-template-columns:
        1.2fr .8fr;

    gap: 70px;

    margin-top: 50px;
}


.about-text p {

    color: var(--muted);

    line-height: 1.9;

    margin-bottom: 18px;
}


.about-text .lead {

    color: #dfe5ee;

    font-size: 20px;
}


.about-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 9px;

    margin-top: 25px;
}


.about-tags span {

    border:
        1px solid var(--line);

    padding:
        8px 12px;

    border-radius: 50px;

    font-size: 11px;

    color: #b7c0d0;
}


.about-panel {

    border:
        1px solid var(--line);

    border-radius: 20px;

    padding: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.01)
        );
}


.mini-stat {

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 16px 0;

    border-bottom:
        1px solid var(--line);
}


.mini-stat:last-child {

    border-bottom: 0;
}


.mini-stat > span {

    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    background: #151a29;

    border-radius: 12px;
}


.mini-stat b,
.mini-stat small {

    display: block;
}


.mini-stat b {

    font-size: 13px;
}


.mini-stat small {

    color: var(--muted);

    margin-top: 3px;
}


/* =========================
   SKILLS
========================= */

.skills-grid {

    margin-top: 45px;

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 15px;
}


.skill-card {

    padding: 24px;

    background:
        rgba(255,255,255,.025);

    border:
        1px solid var(--line);

    border-radius: 18px;

    transition: .3s;
}


.skill-card:hover {

    transform:
        translateY(-7px);

    border-color:
        rgba(124,92,255,.45);

    background:
        rgba(124,92,255,.055);
}


.skill-icon {

    width: 42px;
    height: 42px;

    border-radius: 12px;

    display: grid;

    place-items: center;

    margin-bottom: 18px;

    font-size: 11px;

    font-weight: 800;

    background:
        rgba(124,92,255,.14);

    color:
        #b7a9ff;
}


.skill-card h3 {

    font-family:
        "Space Grotesk";

    font-size: 20px;
}


.skill-card p {

    color: var(--muted);

    font-size: 13px;

    line-height: 1.6;

    margin:
        8px 0 18px;
}


.bar {

    height: 4px;

    background: #1b2130;

    border-radius: 10px;

    overflow: hidden;
}


.bar i {

    display: block;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--cyan)
        );

    border-radius: 10px;
}


/* =========================
   PROJECTS
========================= */

.project-grid {

    margin-top: 50px;

    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 20px;
}


.project-card {

    background:
        rgba(255,255,255,.025);

    border:
        1px solid var(--line);

    border-radius: 20px;

    overflow: hidden;

    transition: .35s;
}


.project-card:hover {

    transform:
        translateY(-7px);

    box-shadow:
        var(--shadow);

    border-color:
        rgba(124,92,255,.35);
}


.project-image {

    height: 280px;

    position: relative;

    overflow: hidden;

    background: #111522;
}


.project-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: .5s;
}


.project-card:hover
.project-image img {

    transform:
        scale(1.04);
}


.project-number {

    position: absolute;

    top: 14px;
    left: 14px;

    background:
        rgba(5,7,13,.75);

    border:
        1px solid var(--line);

    padding:
        7px 9px;

    border-radius: 8px;

    font-size: 10px;
}


.project-info {

    padding: 22px;
}


.project-top {

    display: flex;

    justify-content:
        space-between;

    color: #7f8aa0;

    font-size: 9px;

    letter-spacing: 1.5px;
}


.project-info h3 {

    font-family:
        "Space Grotesk";

    font-size: 25px;

    margin:
        12px 0 8px;
}


.project-info p {

    color: var(--muted);

    line-height: 1.7;

    font-size: 13px;
}


.project-links {

    display: flex;

    gap: 18px;

    margin-top: 18px;
}


.project-links a {

    font-size: 12px;

    color: #b7a9ff;

    font-weight: 700;
}


/* =========================
   EDUCATION
========================= */

.timeline {

    max-width: 750px;

    margin:
        55px auto 0;

    position: relative;
}


.timeline-line {

    position: absolute;

    left: 9px;

    top: 7px;
    bottom: 7px;

    width: 1px;

    background:
        linear-gradient(
            var(--primary),
            transparent
        );
}


.timeline-item {

    position: relative;

    padding-left: 45px;

    margin-bottom: 40px;
}


.timeline-dot {

    position: absolute;

    left: 3px;
    top: 4px;

    width: 13px;
    height: 13px;

    border-radius: 50%;

    background:
        var(--primary);

    box-shadow:
        0 0 15px
        rgba(124,92,255,.7);
}


.timeline-content {

    padding: 20px;

    border:
        1px solid var(--line);

    border-radius: 16px;

    background:
        rgba(255,255,255,.025);
}


.timeline-content > span {

    color:
        var(--cyan);

    font-size: 9px;

    letter-spacing: 1.5px;

    font-weight: 700;
}


.timeline-content h3 {

    margin:
        8px 0 5px;

    font-family:
        "Space Grotesk";

    font-size: 21px;
}


.timeline-content p {

    color:
        #c6cedc;
}


.timeline-content small {

    display: block;

    color: var(--muted);

    margin-top: 7px;
}


/* =========================
   CONTACT
========================= */

.contact-box {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 40px;

    padding: 55px;

    border:
        1px solid
        rgba(124,92,255,.25);

    border-radius: 28px;

    background:
        radial-gradient(
            circle at 0 0,
            rgba(124,92,255,.16),
            transparent 40%
        ),

        rgba(255,255,255,.025);
}


.contact-box h2 {

    font-family:
        "Space Grotesk";

    font-size:
        clamp(
            38px,
            5vw,
            60px
        );

    line-height: 1;

    margin:
        13px 0;

    letter-spacing: -2px;
}


.contact-box h2 em {

    color: var(--cyan);

    font-style: normal;
}


.contact-box p {

    color: var(--muted);

    line-height: 1.7;

    max-width: 500px;
}


.contact-actions {

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 12px;
}


.contact-link {

    display: flex;

    align-items: center;

    gap: 12px;

    padding:
        15px 17px;

    border:
        1px solid var(--line);

    border-radius: 12px;

    color: #c9d0dc;

    transition: .25s;
}


.contact-link:hover {

    background:
        rgba(255,255,255,.04);

    transform:
        translateX(5px);
}


.contact-link span {

    display: grid;

    place-items: center;

    width: 30px;
    height: 30px;

    border-radius: 8px;

    background:
        rgba(124,92,255,.14);

    color: #b7a9ff;

    font-size: 12px;
}


/* =========================
   FOOTER
========================= */

footer {

    width:
        min(
            1120px,
            calc(100% - 40px)
        );

    margin: auto;

    padding:
        25px 0 40px;

    border-top:
        1px solid var(--line);

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 20px;

    color: var(--muted);

    font-size: 11px;
}


.footer-brand {

    color: white;

    font-family:
        "Space Grotesk";

    font-weight: 700;

    font-size: 18px;
}


.footer-brand span {

    color: var(--cyan);
}


footer a {

    color: #b7a9ff;
}


/* =========================
   ANIMATION
========================= */

.reveal {

    opacity: 0;

    transform:
        translateY(25px);

    transition:
        opacity .7s ease,
        transform .7s ease;
}


.reveal.visible {

    opacity: 1;

    transform: none;
}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    .nav-links {

        position: absolute;

        top: 76px;

        left: 0;
        right: 0;

        padding: 18px;

        flex-direction: column;

        align-items: stretch;

        gap: 3px;

        border:
            1px solid var(--line);

        border-radius: 16px;

        background:
            rgba(7,9,16,.95);

        backdrop-filter:
            blur(20px);

        display: none;
    }


    .nav-links.open {

        display: flex;
    }


    .nav-links a {

        padding: 12px;
    }


    .nav-cta {

        display: none;
    }


    .menu-btn {

        display: block;
    }


    .hero {

        grid-template-columns: 1fr;

        padding-top: 130px;

        text-align: center;
    }


    .hero-copy {

        display: flex;

        flex-direction: column;

        align-items: center;
    }


    .hero-text {

        max-width: 650px;
    }


    .quick-stats {

        justify-content: center;
    }


    .hero-visual {

        min-height: 500px;
    }


    .about-grid {

        grid-template-columns: 1fr;

        gap: 30px;
    }


    .skills-grid {

        grid-template-columns:
            repeat(2,1fr);
    }


    .contact-box {

        grid-template-columns: 1fr;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 620px) {

    .section {

        width:
            min(
                calc(100% - 28px),
                1120px
            );

        padding: 80px 0;
    }


    .navbar {

        width:
            calc(100% - 20px);

        top: 10px;
    }


    .hero {

        padding-top: 115px;

        min-height: auto;
    }


    .hero h1 {

        font-size: 58px;

        letter-spacing: -3px;
    }


    .hero h2 {

        font-size: 19px;
    }


    .hero-text {

        font-size: 14px;
    }


    .quick-stats {

        gap: 18px;
    }


    .quick-stats strong {

        font-size: 18px;
    }


    .quick-stats span {

        font-size: 9px;
    }


    .hero-visual {

        min-height: 390px;

        margin-top: 20px;
    }


    .profile-wrap {

        width: 280px;
    }


    .orbit-one {

        width: 330px;

        height: 220px;
    }


    .orbit-two {

        width: 350px;

        height: 260px;
    }


    .floating-card {

        transform: scale(.82);
    }


    .code-card {

        top: 4%;

        right: -5px;
    }


    .uni-card {

        bottom: 4%;

        left: -8px;
    }


    .skills-grid,
    .project-grid {

        grid-template-columns: 1fr;
    }


    .project-image {

        height: 230px;
    }


    .contact-box {

        padding:
            30px 22px;

        border-radius: 20px;
    }


    footer {

        flex-direction: column;

        text-align: center;
    }

}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 380px) {

    .hero h1 {

        font-size: 48px;
    }


    .profile-wrap {

        width: 240px;
    }


    .hero-visual {

        min-height: 340px;
    }


    .floating-card {

        display: none;
    }


    .quick-stats {

        gap: 12px;
    }


    .quick-stats strong {

        font-size: 16px;
    }

}