/* =========================================
   ROOT
========================================= */

:root {

    --bg: #070b14;
    --bg-soft: #0b1020;
    --card: #0d1424;
    --card-hover: #111b30;

    --text: #f5f7fb;
    --text-soft: #a8b1c3;
    --text-muted: #737e93;

    --primary: #4da3ff;
    --primary-bright: #35c8ff;

    --border: rgba(255,255,255,0.09);
    --border-bright: rgba(77,163,255,0.35);

    --shadow: 0 25px 70px rgba(0,0,0,0.35);

    --radius: 18px;

}


/* =========================================
   LIGHT MODE
========================================= */

body.light-mode {

    --bg: #f6f8fc;
    --bg-soft: #ffffff;
    --card: #ffffff;
    --card-hover: #f0f5fc;

    --text: #101522;
    --text-soft: #566174;
    --text-muted: #788398;

    --border: rgba(15,25,45,0.10);
    --border-bright: rgba(35,130,220,0.30);

    --shadow: 0 20px 50px rgba(30,60,100,0.10);

}


/* =========================================
   RESET
========================================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {

    font-family: "Inter", sans-serif;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(24,75,160,0.16),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 70%,
            rgba(0,180,255,0.08),
            transparent 28%
        ),
        var(--bg);

    color: var(--text);

    line-height: 1.6;

    overflow-x: hidden;

    transition:
        background 0.3s ease,
        color 0.3s ease;

}

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

img {
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
}


/* =========================================
   NAVBAR
========================================= */

.navbar {

    position: sticky;

    top: 0;

    z-index: 1000;

    width: 100%;

    background: rgba(7,11,20,0.82);

    backdrop-filter: blur(18px);

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

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

}

body.light-mode .navbar {
    background: rgba(246,248,252,0.86);
}

.nav-container {

    width: min(1200px, 92%);

    min-height: 68px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 24px;

}

.nav-links {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 25px;

    flex-wrap: wrap;

}

.nav-links a {

    color: var(--text-soft);

    font-size: 11px;

    font-weight: 500;

    transition:
        color 0.25s ease,
        transform 0.25s ease;

}

.nav-links a:hover {

    color: var(--primary-bright);

    transform: translateY(-1px);

}


/* =========================================
   THEME BUTTON
========================================= */

.theme-toggle {

    width: 34px;

    height: 34px;

    border-radius: 50%;

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

    background: rgba(30,45,75,0.45);

    color: var(--text);

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}

.theme-icon::before {
    content: "☼";
    font-size: 14px;
}


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

.hero {

    width: min(1200px, 92%);

    min-height: calc(100vh - 68px);

    margin: auto;

    display: grid;

    grid-template-columns: 1.05fr 0.95fr;

    align-items: center;

    gap: 45px;

    padding: 70px 0 80px;

    position: relative;

}


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

.hero-content {

    position: relative;

    z-index: 10;

}

.hero-label {

    color: var(--primary-bright);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 18px;

}

.hero h1 {

    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(48px, 6vw, 78px);

    line-height: 0.98;

    letter-spacing: -3px;

    max-width: 700px;

}

.hero h1 span {

    display: block;

    color: var(--primary);

}

.hero h2 {

    margin-top: 25px;

    font-size: 18px;

    font-weight: 500;

    color: var(--text-soft);

}

.hero-description {

    max-width: 560px;

    margin-top: 22px;

    color: var(--text-muted);

    font-size: 14px;

    line-height: 1.8;

}

.hero-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 30px;

}

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 42px;

    padding: 0 18px;

    border-radius: 9px;

    font-size: 11px;

    font-weight: 700;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

}

.btn:hover {

    transform: translateY(-2px);

}

.primary-btn {

    color: white;

    background:
        linear-gradient(
            135deg,
            #4da3ff,
            #27c6ef
        );

    box-shadow:
        0 10px 30px rgba(35,170,255,0.20);

}

.secondary-btn {

    color: var(--text);

    background: var(--card);

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

}

.social-links {

    display: flex;

    gap: 20px;

    margin-top: 22px;

}

.social-links a {

    color: var(--text-muted);

    font-size: 11px;

    transition: color 0.25s ease;

}

.social-links a:hover {
    color: var(--primary-bright);
}


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

.hero-visual {

    position: relative;

    width: min(480px, 100%);

    height: 480px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: center;

    isolation: isolate;

}


/* =========================================
   PROFILE PHOTO
========================================= */

.profile-wrap {

    position: relative;

    z-index: 10;

    width: 300px;

    height: 300px;

    display: flex;

    align-items: center;

    justify-content: center;

}

.profile-photo {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    border-radius: 50%;

    border: 2px solid rgba(77,163,255,0.85);

    position: relative;

    z-index: 5;

    box-shadow:
        0 0 0 8px rgba(77,163,255,0.04),
        0 0 45px rgba(45,160,255,0.18);

}

.profile-glow {

    position: absolute;

    width: 360px;

    height: 360px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(42,157,255,0.26) 0%,
            rgba(42,157,255,0.10) 35%,
            transparent 70%
        );

    filter: blur(15px);

    z-index: 1;

}


/* =========================================
   ORBITS
========================================= */

.hero-orbit {

    position: absolute;

    border-radius: 50%;

    border: 1px solid rgba(77,163,255,0.14);

    pointer-events: none;

}

.orbit-outer {

    width: 440px;

    height: 440px;

    transform: rotate(-20deg);

}

.orbit-middle {

    width: 365px;

    height: 365px;

    transform: rotate(30deg);

    border-color: rgba(77,163,255,0.20);

}

.orbit-inner {

    width: 325px;

    height: 325px;

    border-color: rgba(77,163,255,0.25);

}

.orbit-dot {

    position: absolute;

    width: 10px;

    height: 10px;

    border-radius: 50%;

    background: #31d4ff;

    box-shadow:
        0 0 10px #31d4ff,
        0 0 25px rgba(49,212,255,0.65);

    top: 26px;

    right: 92px;

    z-index: 8;

}


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

.section {

    width: min(1200px, 92%);

    margin: auto;

    padding: 110px 0;

}

.section-heading {

    max-width: 720px;

    margin-bottom: 55px;

}

.section-heading > p:first-child {

    color: var(--primary-bright);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 12px;

}

.section-heading h2 {

    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(32px, 4vw, 52px);

    line-height: 1.05;

    letter-spacing: -1.5px;

}

.contact-intro {

    margin-top: 15px;

    color: var(--text-muted);

}


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

.about-grid {

    display: grid;

    grid-template-columns: 1.45fr 0.75fr;

    gap: 70px;

}

.about-text {

    color: var(--text-soft);

    font-size: 14px;

}

.about-text > p {

    margin-bottom: 20px;

}

.about-intro {

    font-size: 18px;

    color: var(--text);

    font-weight: 500;

}

.about-focus {

    margin-top: 40px;

    display: grid;

    gap: 18px;

}

.focus-item {

    display: grid;

    grid-template-columns: 45px 1fr;

    gap: 15px;

    padding: 20px;

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

    border-radius: var(--radius);

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

}

.focus-item > span {

    color: var(--primary);

    font-size: 12px;

    font-weight: 700;

}

.focus-item h3 {

    font-family: "Space Grotesk", sans-serif;

    font-size: 17px;

    margin-bottom: 5px;

}

.focus-item p {

    color: var(--text-muted);

    font-size: 13px;

}

.about-stats {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 14px;

    align-content: start;

}

.stat-card {

    min-height: 130px;

    padding: 22px;

    display: flex;

    flex-direction: column;

    justify-content: center;

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

    background: var(--card);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

}

.stat-card strong {

    font-family: "Space Grotesk", sans-serif;

    color: var(--primary-bright);

    font-size: 34px;

    line-height: 1;

}

.stat-card span {

    color: var(--text-muted);

    font-size: 11px;

    margin-top: 9px;

}


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

.skills-grid {

    display: grid;

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

    gap: 16px;

}

.skill-card {

    padding: 30px;

    min-height: 190px;

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

    border-radius: var(--radius);

    background: var(--card);

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

}

.skill-card:hover {

    transform: translateY(-5px);

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

    background: var(--card-hover);

}

.skill-card > span {

    color: var(--primary);

    font-size: 11px;

    font-weight: 700;

}

.skill-card h3 {

    margin-top: 30px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 21px;

}

.skill-card p {

    margin-top: 8px;

    color: var(--text-muted);

    font-size: 13px;

}


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

.projects-grid {

    display: grid;

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

    gap: 18px;

}

.project-card {

    position: relative;

    overflow: hidden;

    padding: 30px;

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

    border-radius: var(--radius);

    background: var(--card);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;

}

.project-card:hover {

    transform: translateY(-5px);

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

}

.project-number {

    position: absolute;

    top: 22px;

    right: 25px;

    color: rgba(77,163,255,0.35);

    font-family: "Space Grotesk", sans-serif;

    font-size: 30px;

    font-weight: 700;

}

.project-content {

    position: relative;

    z-index: 2;

}

.project-category {

    color: var(--primary-bright);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.5px;

}

.project-content h3 {

    margin-top: 15px;

    padding-right: 45px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 23px;

    line-height: 1.2;

}

.project-content > p:not(.project-category) {

    margin-top: 14px;

    color: var(--text-muted);

    font-size: 13px;

    line-height: 1.7;

}

.project-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 20px;

}

.project-tags span {

    padding: 5px 9px;

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

    border-radius: 5px;

    color: var(--text-soft);

    font-size: 9px;

}

.project-links {

    display: flex;

    gap: 20px;

    margin-top: 25px;

}

.project-links a {

    color: var(--primary-bright);

    font-size: 11px;

    font-weight: 700;

}


/* =========================================
   EDUCATION
========================================= */

.timeline {

    position: relative;

    max-width: 850px;

    margin-left: 20px;

}

.timeline::before {

    content: "";

    position: absolute;

    top: 5px;

    bottom: 5px;

    left: 5px;

    width: 1px;

    background: var(--border-bright);

}

.timeline-item {

    position: relative;

    padding-left: 45px;

    margin-bottom: 45px;

}

.timeline-dot {

    position: absolute;

    left: 0;

    top: 5px;

    width: 11px;

    height: 11px;

    border-radius: 50%;

    background: var(--primary);

    box-shadow:
        0 0 0 6px rgba(77,163,255,0.08);

}

.timeline-content {

    padding: 25px;

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

    border-radius: var(--radius);

    background: var(--card);

}

.timeline-content > span {

    color: var(--primary-bright);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;

}

.timeline-content h3 {

    margin-top: 10px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 20px;

}

.timeline-content p {

    margin-top: 8px;

    color: var(--text-muted);

    font-size: 13px;

}


/* =========================================
   ACTIVITIES
========================================= */

.activity-grid {

    display: grid;

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

    gap: 18px;

}

.activity-card {

    position: relative;

    overflow: hidden;

    padding: 18px;

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

    border-radius: var(--radius);

    background: var(--card);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;

}

.activity-card:hover {

    transform: translateY(-5px);

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

}

.activity-number {

    position: absolute;

    top: 26px;

    right: 25px;

    z-index: 3;

    color: white;

    font-size: 10px;

    font-weight: 700;

    background: rgba(0,0,0,0.55);

    padding: 5px 8px;

    border-radius: 5px;

}

.activity-image {

    width: 100%;

    height: 190px;

    display: block;

    object-fit: cover;

    border-radius: 12px;

}

.activity-card h3 {

    margin-top: 20px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 19px;

    line-height: 1.25;

}

.activity-card p {

    margin-top: 10px;

    color: var(--text-muted);

    font-size: 12px;

    line-height: 1.7;

}

.activity-link {

    display: inline-block;

    margin-top: 15px;

    color: var(--primary-bright);

    font-size: 11px;

    font-weight: 700;

}


/* =========================================
   CERTIFICATIONS
========================================= */

.certificate-grid {

    display: grid;

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

    gap: 16px;

}

.certificate-card {

    display: grid;

    grid-template-columns: 45px 1fr;

    gap: 15px;

    padding: 25px;

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

    border-radius: var(--radius);

    background: var(--card);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;

}

.certificate-card:hover {

    transform: translateY(-4px);

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

}

.certificate-number {

    color: var(--primary);

    font-size: 11px;

    font-weight: 700;

}

.certificate-content h3 {

    font-family: "Space Grotesk", sans-serif;

    font-size: 18px;

    line-height: 1.25;

}

.certificate-provider {

    color: var(--primary-bright) !important;

    font-size: 11px !important;

    font-weight: 600;

    margin-top: 6px !important;

}

.certificate-content > p:last-child {

    color: var(--text-muted);

    font-size: 12px;

    line-height: 1.7;

    margin-top: 8px;

}


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

.contact-form-wrapper {

    max-width: 750px;

}

.contact-form {

    display: grid;

    gap: 20px;

    padding: 35px;

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

    border-radius: var(--radius);

    background: var(--card);

}

.form-group {

    display: grid;

    gap: 8px;

}

.form-group label {

    color: var(--text-soft);

    font-size: 11px;

    font-weight: 600;

}

.form-group input,
.form-group textarea {

    width: 100%;

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

    border-radius: 10px;

    outline: none;

    background: var(--bg-soft);

    color: var(--text);

    padding: 13px 14px;

    font-size: 13px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;

}

.form-group textarea {

    resize: vertical;

    min-height: 160px;

}

.form-group input:focus,
.form-group textarea:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(77,163,255,0.08);

}

.contact-submit {

    border: none;

    border-radius: 9px;

    min-height: 45px;

    padding: 0 20px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #4da3ff,
            #27c6ef
        );

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

}

.contact-submit:hover {

    transform: translateY(-2px);

    box-shadow:
        0 10px 30px rgba(35,170,255,0.20);

}


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

footer {

    width: min(1200px, 92%);

    margin: auto;

    padding: 35px 0;

    display: flex;

    justify-content: space-between;

    gap: 20px;

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

    color: var(--text-muted);

    font-size: 10px;

}


/* =========================================
   MOBILE — TABLET
========================================= */

@media (max-width: 900px) {

    .nav-container {

        min-height: auto;

        padding: 14px 0;

        flex-direction: column;

        gap: 12px;

    }

    .nav-links {

        gap: 15px;

    }

    .hero {

        grid-template-columns: 1fr;

        min-height: auto;

        padding: 75px 0 80px;

        gap: 60px;

    }

    .hero-content {

        text-align: center;

    }

    .hero-description {

        margin-left: auto;

        margin-right: auto;

    }

    .hero-buttons {

        justify-content: center;

    }

    .social-links {

        justify-content: center;

    }

    .hero-visual {

        width: 400px;

        height: 400px;

    }

    .profile-wrap {

        width: 250px;

        height: 250px;

    }

    .profile-glow {

        width: 310px;

        height: 310px;

    }

    .orbit-outer {

        width: 370px;

        height: 370px;

    }

    .orbit-middle {

        width: 315px;

        height: 315px;

    }

    .orbit-inner {

        width: 275px;

        height: 275px;

    }

    .about-grid {

        grid-template-columns: 1fr;

    }

    .skills-grid {

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

    }

    .activity-grid {

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

    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    html {
        scroll-padding-top: 115px;
    }


    .navbar {
        position: sticky;
    }


    .nav-container {

        width: 94%;

        padding: 12px 0;

    }


    .nav-links {

        width: 100%;

        gap: 10px 15px;

    }


    .nav-links a {

        font-size: 9px;

    }


    .theme-toggle {

        position: absolute;

        right: 12px;

        top: 12px;

    }


    .hero {

        width: 90%;

        display: flex;

        flex-direction: column;

        align-items: center;

        min-height: auto;

        height: auto;

        padding: 70px 0 80px;

        gap: 55px;

        overflow: visible;

    }


    .hero-content {

        width: 100%;

        text-align: left;

    }


    .hero-label {

        font-size: 9px;

        letter-spacing: 2.5px;

        margin-bottom: 16px;

    }


    .hero h1 {

        font-size: clamp(43px, 13vw, 58px);

        line-height: 0.98;

        letter-spacing: -2px;

    }


    .hero h2 {

        font-size: 14px;

        line-height: 1.5;

        margin-top: 20px;

    }


    .hero-description {

        font-size: 12px;

        line-height: 1.7;

        margin-top: 18px;

    }


    .hero-buttons {

        justify-content: flex-start;

        margin-top: 24px;

    }


    .btn {

        min-height: 40px;

        padding: 0 14px;

        font-size: 10px;

    }


    .social-links {

        justify-content: flex-start;

        gap: 17px;

        margin-top: 18px;

    }


    .social-links a {

        font-size: 10px;

    }


    /* PHOTO */

    .hero-visual {

        width: 300px;

        height: 300px;

        margin: 0 auto;

        flex-shrink: 0;

    }


    .profile-wrap {

        width: 190px;

        height: 190px;

    }


    .profile-glow {

        width: 240px;

        height: 240px;

    }


    .orbit-outer {

        width: 285px;

        height: 285px;

    }


    .orbit-middle {

        width: 245px;

        height: 245px;

    }


    .orbit-inner {

        width: 215px;

        height: 215px;

    }


    .orbit-dot {

        width: 8px;

        height: 8px;

        top: 20px;

        right: 50px;

    }


    .section {

        width: 90%;

        padding: 80px 0;

    }


    .section-heading {

        margin-bottom: 40px;

    }


    .section-heading h2 {

        font-size: 32px;

    }


    .about-stats {

        grid-template-columns: 1fr 1fr;

    }


    .skills-grid {

        grid-template-columns: 1fr;

    }


    .projects-grid {

        grid-template-columns: 1fr;

    }


    .activity-grid {

        grid-template-columns: 1fr;

    }


    .certificate-grid {

        grid-template-columns: 1fr;

    }


    .timeline {

        margin-left: 5px;

    }


    .timeline-item {

        padding-left: 35px;

    }


    .timeline-content {

        padding: 20px;

    }


    .contact-form {

        padding: 22px;

    }


    footer {

        width: 90%;

        flex-direction: column;

        text-align: center;

        align-items: center;

    }

}


/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 380px) {

    .hero {

        width: 88%;

        padding-top: 55px;

    }


    .hero h1 {

        font-size: 42px;

    }


    .hero-visual {

        width: 275px;

        height: 275px;

    }


    .profile-wrap {

        width: 175px;

        height: 175px;

    }


    .profile-glow {

        width: 220px;

        height: 220px;

    }


    .orbit-outer {

        width: 260px;

        height: 260px;

    }


    .orbit-middle {

        width: 225px;

        height: 225px;

    }


    .orbit-inner {

        width: 200px;

        height: 200px;

    }


    .about-stats {

        grid-template-columns: 1fr;

    }

}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior: auto !important;

        transition: none !important;

        animation: none !important;

    }

}