/* =========================================
   GLOBAL
========================================= */

:root {
    --background: #080c14;
    --background-light: #0d1320;

    --card: rgba(16, 24, 39, 0.72);
    --card-solid: #101827;

    --text: #f4f7fb;
    --text-secondary: #9ca9bc;
    --text-muted: #69778c;

    --blue: #4da8ff;
    --blue-light: #7bc0ff;
    --purple: #8b7cff;

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(77, 168, 255, 0.35);

    --max-width: 1180px;
}


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


html {
    scroll-behavior: smooth;
}


body {
    background:
        radial-gradient(
            circle at 75% 15%,
            rgba(58, 116, 255, 0.09),
            transparent 28%
        ),
        var(--background);

    color: var(--text);

    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;
    overflow-x: hidden;
}


a {
    color: inherit;
}


.container {
    width: min(90%, var(--max-width));
    margin: 0 auto;
}


/* =========================================
   BACKGROUND
========================================= */

.background-grid {
    position: fixed;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 75%
        );

    pointer-events: none;
    z-index: -3;
}


.glow {
    position: fixed;

    width: 550px;
    height: 550px;

    border-radius: 50%;

    filter: blur(140px);

    opacity: 0.10;

    pointer-events: none;
    z-index: -2;
}


.glow-one {
    background: var(--blue);

    right: -200px;
    top: 100px;
}


.glow-two {
    background: var(--purple);

    left: -250px;
    top: 700px;
}


/* =========================================
   NAVIGATION
========================================= */

.header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background: rgba(8, 12, 20, 0.72);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid transparent;

    transition:
        border-color 0.3s ease,
        background 0.3s ease;
}


.header.scrolled {
    border-color: var(--border);

    background: rgba(8, 12, 20, 0.9);
}


.navbar {
    height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.logo {
    text-decoration: none;

    font-size: 22px;
    font-weight: 800;

    letter-spacing: -1px;
}


.logo span {
    color: var(--blue);
}


.nav-links {
    display: flex;
    align-items: center;

    gap: 34px;
}


.nav-links a {
    color: var(--text-secondary);

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    transition: color 0.2s ease;
}


.nav-links a:hover {
    color: white;
}


.resume-button {
    padding: 9px 17px;

    border: 1px solid var(--border);

    border-radius: 8px;

    color: var(--text);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    background: rgba(255, 255, 255, 0.025);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.resume-button:hover {
    background: rgba(255, 255, 255, 0.06);

    border-color: var(--border-hover);

    transform: translateY(-1px);
}


/* =========================================
   HERO
========================================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    position: relative;

    padding-top: 80px;
}


.hero-content {
    max-width: 900px;
}


.status {
    width: fit-content;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 7px 12px;

    margin-bottom: 30px;

    border: 1px solid rgba(77, 168, 255, 0.17);

    border-radius: 100px;

    background: rgba(77, 168, 255, 0.055);

    color: #a8ccec;

    font-size: 12px;
    font-weight: 500;

    letter-spacing: 0.02em;
}


.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #55d98b;

    box-shadow:
        0 0 0 4px rgba(85, 217, 139, 0.1);
}


.eyebrow {
    color: var(--blue);

    font-size: 17px;
    font-weight: 600;

    margin-bottom: 15px;
}


.hero h1 {
    max-width: 920px;

    font-size: clamp(54px, 7vw, 92px);

    line-height: 0.99;

    letter-spacing: -0.055em;

    font-weight: 800;
}


.hero h1 span {
    display: block;

    background:
        linear-gradient(
            90deg,
            #f5f7fb 0%,
            #7abfff 55%,
            #8d82ff 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


.hero-description {
    max-width: 670px;

    margin-top: 30px;

    color: var(--text-secondary);

    font-size: 18px;
    line-height: 1.8;
}


.hero-actions {
    margin-top: 38px;

    display: flex;
    align-items: center;

    gap: 28px;
}


.primary-button {
    display: inline-flex;
    align-items: center;

    gap: 12px;

    padding: 13px 21px;

    border-radius: 8px;

    background: var(--text);

    color: #080c14;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.primary-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 35px rgba(255, 255, 255, 0.10);
}


.text-link {
    color: var(--text-secondary);

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: color 0.2s ease;
}


.text-link:hover {
    color: white;
}


.scroll-indicator {
    position: absolute;

    bottom: 35px;
    right: 0;

    display: flex;
    align-items: center;

    gap: 12px;

    color: var(--text-muted);

    font-size: 11px;

    text-transform: uppercase;
    letter-spacing: 0.15em;
}


.scroll-line {
    width: 55px;
    height: 1px;

    background: var(--text-muted);
}


/* =========================================
   GENERAL SECTIONS
========================================= */

.section {
    padding: 130px 0;
}


.section-heading {
    display: flex;

    gap: 18px;

    margin-bottom: 55px;
}


.section-number {
    color: var(--blue);

    font-family: monospace;

    font-size: 13px;

    padding-top: 6px;
}


.section-label {
    color: var(--blue);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.2em;

    margin-bottom: 7px;
}


.section-heading h2 {
    font-size: clamp(32px, 4vw, 48px);

    line-height: 1.15;

    letter-spacing: -0.035em;
}


/* =========================================
   ABOUT
========================================= */

.about-grid {
    display: grid;

    grid-template-columns: 1.3fr 0.7fr;

    gap: 80px;

    align-items: start;
}


.about-main {
    max-width: 690px;
}


.about-main p {
    color: var(--text-secondary);

    font-size: 16px;

    margin-bottom: 20px;
}


.about-main .large-text {
    color: var(--text);

    font-size: 25px;

    line-height: 1.55;

    letter-spacing: -0.025em;

    margin-bottom: 28px;
}


.about-card {
    padding: 8px 26px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.02);
}


.info-row {
    padding: 19px 0;

    border-bottom: 1px solid var(--border);
}


.info-row:last-child {
    border-bottom: none;
}


.info-row span {
    display: block;

    color: var(--text-muted);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.11em;

    margin-bottom: 4px;
}


.info-row strong {
    font-size: 14px;

    font-weight: 500;
}


/* =========================================
   PROJECTS
========================================= */

.projects {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 24px;
}


.project {
    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.015)
        );

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.project:hover {
    transform: translateY(-5px);

    border-color: var(--border-hover);

    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.22);
}


.featured-project {
    grid-column: 1 / -1;

    display: grid;

    grid-template-columns: 1.25fr 0.75fr;
}


.project-visual {
    min-height: 430px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px;

    border-right: 1px solid var(--border);
}


.studysync-visual {
    background:
        radial-gradient(
            circle at 30% 30%,
            rgba(77, 168, 255, 0.19),
            transparent 38%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(139, 124, 255, 0.15),
            transparent 40%
        ),
        #0b111d;
}


/* Fake application preview */

.browser {
    width: 100%;

    border: 1px solid rgba(255, 255, 255, 0.13);

    border-radius: 10px;

    overflow: hidden;

    background: #0c1422;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.38);

    transform: perspective(1000px) rotateY(2deg) rotateX(1deg);
}


.browser-bar {
    height: 39px;

    display: flex;
    align-items: center;

    padding: 0 13px;

    border-bottom: 1px solid var(--border);

    background: #111a29;
}


.browser-dots {
    display: flex;

    gap: 6px;
}


.browser-dots span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #344156;
}


.browser-address {
    margin: 0 auto;

    padding: 3px 45px;

    border-radius: 4px;

    background: #182234;

    color: #66758b;

    font-size: 8px;
}


.mock-app {
    height: 280px;

    display: flex;
}


.mock-sidebar {
    width: 18%;

    padding: 20px 14px;

    border-right: 1px solid var(--border);

    background: #0d1523;
}


.mock-sidebar div {
    height: 8px;

    margin-bottom: 16px;

    border-radius: 3px;

    background: #1e2a3c;
}


.mock-sidebar .mock-logo {
    width: 70%;

    height: 12px;

    margin-bottom: 30px;

    background: #4da8ff;
}


.mock-content {
    flex: 1;

    padding: 27px;
}


.mock-title {
    width: 35%;
    height: 13px;

    margin-bottom: 28px;

    border-radius: 4px;

    background: #334158;
}


.mock-cards {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 13px;
}


.mock-cards div {
    height: 70px;

    border: 1px solid #26354b;

    border-radius: 6px;

    background:
        linear-gradient(
            145deg,
            #152238,
            #111b2c
        );
}


.mock-panel {
    height: 85px;

    margin-top: 16px;

    border: 1px solid #26354b;

    border-radius: 6px;

    background: #111b2c;
}


/* Project information */

.project-info {
    padding: 35px;
}


.featured-project .project-info {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 45px;
}


.project-top {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 22px;
}


.project-type {
    color: var(--blue);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.17em;
}


.project-number {
    color: var(--text-muted);

    font-family: monospace;

    font-size: 12px;
}


.project h3 {
    margin-bottom: 14px;

    font-size: 28px;

    letter-spacing: -0.035em;
}


.project-info > p {
    color: var(--text-secondary);

    font-size: 14px;

    line-height: 1.75;
}


.tech-stack {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 25px;
}


.tech-stack span {
    padding: 5px 9px;

    border: 1px solid var(--border);

    border-radius: 5px;

    color: #a9b5c6;

    background: rgba(255, 255, 255, 0.025);

    font-size: 10px;
}


.project-links {
    margin-top: 28px;
}


.project-links a {
    color: var(--text);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}


.project-links a:hover {
    color: var(--blue-light);
}


/* Small project visual */

.project-small-visual {
    height: 250px;

    overflow: hidden;

    border-bottom: 1px solid var(--border);

    background:
        radial-gradient(
            circle at 70% 20%,
            rgba(139, 124, 255, 0.15),
            transparent 35%
        ),
        #0b111c;

    position: relative;
}


.game-scene {
    width: 100%;
    height: 100%;

    position: relative;
}


.game-platform {
    position: absolute;

    height: 9px;

    border-radius: 3px;

    background: #26364e;
}


.platform-one {
    width: 42%;

    left: 5%;
    bottom: 45px;
}


.platform-two {
    width: 25%;

    left: 43%;
    bottom: 105px;
}


.platform-three {
    width: 28%;

    right: 4%;
    bottom: 165px;
}


.game-player {
    position: absolute;

    width: 20px;
    height: 28px;

    left: 24%;
    bottom: 54px;

    border-radius: 3px;

    background: var(--blue);

    box-shadow:
        0 0 25px rgba(77, 168, 255, 0.4);
}


.coin {
    position: absolute;

    width: 11px;
    height: 11px;

    border: 2px solid #ffd56a;

    border-radius: 50%;

    box-shadow:
        0 0 12px rgba(255, 213, 106, 0.35);
}


.coin-one {
    left: 50%;
    bottom: 130px;
}


.coin-two {
    right: 21%;
    bottom: 192px;
}


.coin-three {
    left: 34%;
    bottom: 75px;
}


.obstacle {
    position: absolute;

    width: 22px;
    height: 25px;

    right: 15%;
    bottom: 174px;

    background: #e35f6c;

    box-shadow:
        0 0 20px rgba(227, 95, 108, 0.3);
}


/* Coming soon */

.coming-soon-content {
    height: 250px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 14px;

    border-bottom: 1px solid var(--border);

    background:
        radial-gradient(
            circle,
            rgba(77, 168, 255, 0.07),
            transparent 45%
        );
}


.plus {
    color: var(--blue);

    font-size: 40px;

    font-weight: 200;
}


.coming-soon-content p {
    color: var(--text-muted);

    font-size: 13px;
}


/* =========================================
   SKILLS
========================================= */

.skills-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}


.skill-category {
    padding: 32px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.018);

    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}


.skill-category:hover {
    background: rgba(255, 255, 255, 0.03);

    border-color: var(--border-hover);
}


.skill-icon {
    display: block;

    margin-bottom: 25px;

    color: var(--blue);

    font-family: monospace;

    font-size: 17px;
}


.skill-category h3 {
    margin-bottom: 20px;

    font-size: 17px;
}


.skill-list {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}


.skill-list span {
    padding: 6px 9px;

    border-radius: 5px;

    background: rgba(255, 255, 255, 0.035);

    color: var(--text-secondary);

    font-size: 11px;
}


/* =========================================
   CONTACT
========================================= */

.contact-section {
    padding: 130px 0 160px;
}


.contact-box {
    padding: 90px 40px;

    text-align: center;

    border: 1px solid var(--border);

    border-radius: 16px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(77, 168, 255, 0.09),
            transparent 42%
        ),
        rgba(255, 255, 255, 0.015);
}


.contact-box h2 {
    max-width: 700px;

    margin: 0 auto;

    font-size: clamp(44px, 6vw, 70px);

    line-height: 1.05;

    letter-spacing: -0.05em;
}


.contact-box h2 span {
    color: var(--blue);
}


.contact-box > p:not(.section-label) {
    max-width: 530px;

    margin: 24px auto 30px;

    color: var(--text-secondary);
}


/* =========================================
   FOOTER
========================================= */

footer {
    border-top: 1px solid var(--border);
}


.footer-content {
    min-height: 95px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: var(--text-muted);

    font-size: 12px;
}


.footer-links {
    display: flex;

    gap: 25px;
}


.footer-links a {
    color: var(--text-muted);

    text-decoration: none;

    transition: color 0.2s ease;
}


.footer-links a:hover {
    color: var(--text);
}


/* =========================================
   SCROLL ANIMATIONS
========================================= */

.reveal {
    opacity: 0;

    transform: translateY(20px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}


.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .nav-links {
        display: none;
    }


    .hero h1 {
        font-size: clamp(50px, 11vw, 75px);
    }


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

        gap: 40px;
    }


    .featured-project {
        grid-template-columns: 1fr;
    }


    .project-visual {
        min-height: 350px;

        border-right: none;
        border-bottom: 1px solid var(--border);
    }


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

}


@media (max-width: 650px) {

    .section {
        padding: 95px 0;
    }


    .navbar {
        height: 68px;
    }


    .hero {
        padding-top: 100px;
    }


    .hero h1 {
        font-size: 48px;
    }


    .hero-description {
        font-size: 16px;
    }


    .hero-actions {
        align-items: flex-start;
        flex-wrap: wrap;

        gap: 20px;
    }


    .scroll-indicator {
        display: none;
    }


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


    .project-visual {
        min-height: 260px;

        padding: 22px;
    }


    .mock-app {
        height: 210px;
    }


    .project-info,
    .featured-project .project-info {
        padding: 27px;
    }


    .about-main .large-text {
        font-size: 21px;
    }


    .contact-box {
        padding: 70px 20px;
    }


    .footer-content {
        padding: 28px 0;

        flex-direction: column;

        gap: 17px;
    }

}
