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


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

:root {

    --bg: #070b14;

    --surface: #0d1422;

    --surface-light: #121c2e;

    --card-bg: rgba(13, 20, 34, 0.72);

    --card-inner: rgba(255, 255, 255, 0.025);

    --icon-bg: rgba(103, 232, 249, 0.08);

    --text: #f4f7fb;

    --muted: #9ba8bb;

    --accent: #67e8f9;

    --accent-2: #a78bfa;

    --border: rgba(255, 255, 255, 0.10);

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


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

body.light-mode {

    --bg: #f4f7fb;

    --surface: #ffffff;

    --surface-light: #eef3f8;

    --card-bg: rgba(255, 255, 255, 0.94);

    --card-inner: rgba(15, 23, 42, 0.035);

    --icon-bg: rgba(8, 145, 178, 0.08);

    --text: #101828;

    --muted: #667085;

    --accent: #0891b2;

    --accent-2: #7c3aed;

    --border: rgba(15, 23, 42, 0.12);

    --shadow:
        0 20px 60px rgba(15, 23, 42, 0.10);
}


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

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

    scroll-behavior: smooth;

}


body {

    background:
        radial-gradient(circle at 15% 10%,
            rgba(103, 232, 249, 0.07),
            transparent 25%),
        radial-gradient(circle at 85% 50%,
            rgba(167, 139, 250, 0.07),
            transparent 25%),
        var(--bg);

    color: var(--text);

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

    line-height: 1.7;

    overflow-x: hidden;

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

}


h1,
h2,
h3,
.logo {

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

}


a {

    color: inherit;

    text-decoration: none;

}


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

.background-glow {

    position: fixed;

    width: 350px;

    height: 350px;

    border-radius: 50%;

    filter: blur(100px);

    opacity: 0.12;

    pointer-events: none;

    z-index: -1;

    animation:
        floatGlow 8s ease-in-out infinite alternate;

}


.glow-one {

    background: var(--accent);

    top: 5%;

    left: -180px;

}


.glow-two {

    background: var(--accent-2);

    bottom: 0;

    right: -180px;

    animation-delay: 2s;

}


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

.navbar {

    width: min(1120px, 90%);

    margin: auto;

    padding: 25px 0;

    display: flex;

    justify-content: space-between;

    align-items: center;

    position: sticky;

    top: 0;

    z-index: 20;

    backdrop-filter: blur(14px);

}


.logo {

    font-size: 28px;

    font-weight: 800;

    letter-spacing: -2px;

}


.logo span,
h1 span,
h2 span {

    color: var(--accent);

}


nav {

    display: flex;

    gap: 25px;

}


nav a {

    color: var(--muted);

    font-size: 14px;

    transition: 0.3s;

}


nav a:hover {

    color: var(--accent);

}


/* Theme button */

.theme-toggle {

    width: 46px;

    height: 46px;

    display: grid;

    place-items: center;

    border-radius: 50%;

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

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

    color: var(--text);

    cursor: pointer;

    font-size: 19px;

    transition: 0.3s;

}


.theme-toggle:hover {

    transform: rotate(15deg) scale(1.05);

    border-color: var(--accent);

}


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

.section {

    width: min(1120px, 90%);

    margin: auto;

    padding: 110px 0;

}


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

.hero {

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

    display: grid;

    grid-template-columns: 1.15fr 0.85fr;

    align-items: center;

    gap: 50px;

}


.eyebrow {

    color: var(--accent);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 10px;

}


.hero h1 {

    font-size: clamp(50px, 7vw, 82px);

    line-height: 1;

    letter-spacing: -4px;

    margin-bottom: 20px;

}


.hero h2 {

    font-size: clamp(20px, 3vw, 30px);

    font-weight: 500;

    color: var(--text);

    margin-bottom: 20px;

}


.hero-description {

    color: var(--muted);

    max-width: 650px;

    font-size: 17px;

}


.hero-buttons {

    display: flex;

    gap: 14px;

    margin: 32px 0;

    flex-wrap: wrap;

}


.btn {

    padding: 13px 22px;

    border-radius: 10px;

    font-weight: 600;

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

    transition: 0.3s;

}


.btn:hover {

    transform: translateY(-4px);

}


.primary {

    background: var(--accent);

    color: #061016;

}


.secondary {

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

}


.quick-stats {

    display: flex;

    gap: 35px;

    margin-top: 35px;

}


.quick-stats div {

    display: flex;

    flex-direction: column;

}


.quick-stats strong {

    font-size: 26px;

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

}


.quick-stats span {

    color: var(--muted);

    font-size: 12px;

}


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

.hero-image {

    display: flex;

    justify-content: center;

    position: relative;

}


.image-ring {

    width: min(390px, 75vw);

    height: min(390px, 75vw);

    padding: 8px;

    border-radius: 50%;

    background:
        linear-gradient(135deg,
            var(--accent),
            var(--accent-2),
            transparent);

    animation:
        ringPulse 4s ease-in-out infinite;

    box-shadow:
        0 0 80px rgba(103, 232, 249, 0.13);

}


.image-ring img {

    width: 100%;

    height: 100%;

    border-radius: 50%;

    object-fit: cover;

    object-position: center;

    border: 8px solid var(--bg);

}


.floating-card {

    position: absolute;

    padding: 9px 15px;

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

    border-radius: 12px;

    background: rgba(13, 20, 34, 0.82);

    backdrop-filter: blur(12px);

    box-shadow: var(--shadow);

    font-size: 13px;

    animation:
        floating 4s ease-in-out infinite;

}


.card-one {

    top: 8%;

    left: 2%;

}


.card-two {

    bottom: 15%;

    right: -4%;

    animation-delay: 1s;

}


.card-three {

    bottom: 2%;

    left: 5%;

    animation-delay: 2s;

}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.section-heading {

    margin-bottom: 45px;

}


.section-heading h2 {

    font-size: clamp(36px, 5vw, 54px);

    line-height: 1.1;

}


/* =========================================================
   COMMON CARDS
   ========================================================= */

.about-card,
.info-card,
.skill-card,
.project-card,
.learning-box,
.contact-box {

    background: var(--card-bg);

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

    border-radius: 20px;

    box-shadow: var(--shadow);

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


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

.about-grid {

    display: grid;

    grid-template-columns: 1.3fr 0.7fr;

    gap: 25px;

}


.about-card {

    padding: 35px;

}


.about-card h3 {

    font-size: 26px;

    margin-bottom: 15px;

}


.about-card p {

    color: var(--muted);

    margin-bottom: 15px;

}


.info-card {

    padding: 25px;

}


.info-row {

    display: flex;

    justify-content: space-between;

    gap: 15px;

    padding: 14px 0;

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

    font-size: 13px;

}


.info-row:last-child {

    border-bottom: 0;

}


.info-row span {

    color: var(--muted);

}


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

.skills-grid {

    display: grid;

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

    gap: 20px;

}


.skill-card {

    padding: 28px;

    transition: 0.35s;

}


.skill-card:hover {

    transform: translateY(-8px);

    border-color:
        rgba(103, 232, 249, 0.35);

}


.skill-icon {

    font-size: 28px;

    margin-bottom: 15px;

}


.skill-card h3 {

    margin-bottom: 8px;

}


.skill-card p {

    color: var(--muted);

    font-size: 14px;

}


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

.projects-grid {

    display: grid;

    grid-template-columns: 1fr;

    gap: 20px;

}


.project-card {

    width: 100%;

    min-height: 320px;

    padding: 35px;

    position: relative;

    transition: 0.35s;

    overflow: hidden;

}


.project-card.featured {

    width: 100%;

    background:
        linear-gradient(120deg,
            rgba(103, 232, 249, 0.08),
            transparent 50%),
        var(--card-bg);
}


.project-card:hover {

    transform: translateY(-8px);

    border-color:
        rgba(103, 232, 249, 0.35);

}


.project-number {

    position: absolute;

    top: 20px;

    right: 25px;

    font-family: 'Space Grotesk';

    font-size: 45px;

    font-weight: 700;

    color: rgba(255, 255, 255, 0.04);

}


.project-type {

    color: var(--accent) !important;

    font-size: 11px !important;

    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 8px;

}


.project-card h3 {

    font-size: 30px;

    margin-bottom: 12px;

}


.project-card p {

    color: var(--muted);

    font-size: 15px;

}


.project-card ul {

    margin: 20px 0 20px 20px;

    color: var(--muted);

    font-size: 14px;

}


.tags {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 20px;

}


.tags span {

    padding: 7px 12px;

    border-radius: 20px;

    background:
        rgba(103, 232, 249, 0.07);

    border:
        1px solid rgba(103, 232, 249, 0.13);

    color: #b9f4fb;

    font-size: 11px;

}


.project-github {

    display: inline-block;

    margin-top: 25px;

    padding: 11px 16px;

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

    border-radius: 9px;

    font-size: 13px;

    font-weight: 600;

    transition: 0.3s;

}


.project-github:hover {

    color: var(--accent);

    border-color: var(--accent);

    transform: translateY(-3px);

}


/* =========================================================
   ACHIEVEMENTS
   ========================================================= */

.timeline {

    position: relative;

    margin-left: 10px;

    padding-left: 35px;

}


.timeline::before {

    content: "";

    position: absolute;

    left: 5px;

    top: 0;

    width: 1px;

    height: 100%;

    background:
        linear-gradient(var(--accent),
            transparent);

}


.timeline-item {

    position: relative;

    padding: 0 0 40px;

}


.timeline-dot {

    position: absolute;

    left: -35px;

    top: 5px;

    width: 12px;

    height: 12px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 0 18px rgba(103, 232, 249, 0.7);

}


.timeline-date {

    color: var(--accent);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;

}


.timeline-item h3 {

    margin: 5px 0;

    font-size: 21px;

}


.timeline-item p {

    color: var(--muted);

    max-width: 750px;

}


/* =========================================================
   ALWAYS LEARNING
   ========================================================= */

.learning-box {

    width: 100%;

    min-height: 450px;

    padding: 50px;

    display: grid;

    grid-template-columns: 1.05fr 0.95fr;

    gap: 60px;

    align-items: center;

    background:
        linear-gradient(120deg,
            rgba(103, 232, 249, 0.06),
            transparent 55%),
        var(--card-bg);

    transition: 0.35s;

}


.learning-box:hover {

    border-color:
        rgba(103, 232, 249, 0.35);

    transform: translateY(-4px);

}


.learning-box h2 {

    font-size: clamp(48px, 5vw, 68px);

    line-height: 1;

    letter-spacing: -2px;

    margin-bottom: 25px;

}


.learning-box p:not(.eyebrow) {

    max-width: 650px;

    color: var(--muted);

    font-size: 17px;

    line-height: 1.8;

}


.learning-list {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    align-content: center;

}


.learning-list span {

    padding: 13px 18px;

    border-radius: 30px;

    background:
        rgba(103, 232, 249, 0.05);

    border:
        1px solid rgba(103, 232, 249, 0.13);

    color: #b9eaf2;

    font-size: 14px;

    font-weight: 600;

    transition: 0.3s;

}


.learning-list span:hover {

    transform: translateY(-4px);

    border-color: var(--accent);

    color: var(--accent);

}


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

.contact-section {

    padding-bottom: 80px;

}


.contact-box {

    width: 100%;

    min-height: 450px;

    padding: 65px 55px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    background:
        radial-gradient(circle at center,
            rgba(103, 232, 249, 0.10),
            transparent 45%),
        var(--card-bg);

    transition: 0.35s;

}


.contact-box:hover {

    border-color:
        rgba(103, 232, 249, 0.35);

    transform: translateY(-4px);

}


.contact-box h2 {

    font-size: clamp(42px, 5vw, 64px);

    line-height: 1.08;

    letter-spacing: -2px;

    margin-bottom: 25px;

}


.contact-intro {

    max-width: 850px;

    color: var(--muted);

    font-size: 17px;

    line-height: 1.8;

    margin-bottom: 35px;

}


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

/* =========================================================
   CONTACT DETAILS - CENTERED
   ========================================================= */

.contact-details {
    width: 100%;
    max-width: 900px;

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

    gap: 18px;

    margin: 0 auto;
}


.contact-detail {
    width: 360px;
    min-height: 75px;

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

    gap: 15px;

    padding: 18px 22px;

    text-align: left;

    background: var(--card-inner);

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

    border-radius: 15px;

    transition: 0.3s;
}


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

    border-color: rgba(103, 232, 249, 0.45);
}


.contact-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: var(--icon-bg);

    font-size: 20px;
}


.contact-detail small {
    display: block;

    color: var(--muted);

    font-size: 12px;

    margin-bottom: 4px;
}


.contact-detail strong {
    display: block;

    color: var(--text);

    font-size: 16px;
}


/* =========================================================
   SOCIAL LINKS
   ========================================================= */

.contact-links {

    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 25px;

}


.contact-links a {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 13px 23px;

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

    border-radius: 10px;

    font-size: 15px;

    font-weight: 600;

    transition: 0.3s;

}


.contact-links a:hover {

    color: var(--accent);

    border-color: var(--accent);

    transform: translateY(-4px);

}


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

footer {

    width: min(1120px, 90%);

    margin: auto;

    padding: 25px 0 35px;

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

    display: flex;

    justify-content: space-between;

    align-items: center;

    color: var(--muted);

    font-size: 12px;

}


footer .logo {

    font-size: 22px;

}


footer p {

    margin-top: 4px;

}


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

.reveal {

    animation:
        revealUp 0.9s ease both;

}


.delay-one {

    animation-delay: 0.15s;

}


.delay-two {

    animation-delay: 0.3s;

}


@keyframes revealUp {

    from {

        opacity: 0;

        transform:
            translateY(35px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


@keyframes floating {

    0%,
    100% {

        transform:
            translateY(0);

    }

    50% {

        transform:
            translateY(-12px);

    }

}


@keyframes ringPulse {

    0%,
    100% {

        transform:
            scale(1);

    }

    50% {

        transform:
            scale(1.025);

    }

}


@keyframes floatGlow {

    from {

        transform:
            translate(0, 0) scale(1);

    }

    to {

        transform:
            translate(80px, -40px) scale(1.2);

    }

}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 850px) {


    .navbar {

        position: relative;

        flex-direction: column;

        gap: 15px;

    }


    nav {

        gap: 12px;

        flex-wrap: wrap;

        justify-content: center;

    }


    .hero,
    .about-grid,
    .learning-box {

        grid-template-columns: 1fr;

    }


    .hero {

        text-align: center;

        padding-top: 60px;

    }


    .hero-description {

        margin: auto;

    }


    .hero-buttons,
    .quick-stats {

        justify-content: center;

    }


    .hero-image {

        order: -1;

    }


    .skills-grid {

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

    }


    .project-card {

        min-height: auto;

    }


    .learning-box {

        gap: 35px;

        min-height: auto;

    }


    .contact-box {

        min-height: auto;

        padding: 50px 35px;

    }


    .contact-details {
        flex-direction: column;
        width: 100%;
    }

    .contact-detail {
        width: min(100%, 400px);
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 560px) {


    .section {

        padding: 75px 0;

    }


    .hero h1 {

        letter-spacing: -2px;

    }


    .skills-grid {

        grid-template-columns: 1fr;

    }


    .quick-stats {

        gap: 18px;

    }


    .quick-stats strong {

        font-size: 21px;

    }


    .floating-card {

        font-size: 10px;

        padding: 6px 9px;

    }


    .card-two {

        right: 0;

    }


    .learning-box {

        padding: 30px 25px;

    }


    .learning-box h2 {

        font-size: 45px;

    }


    .learning-box p:not(.eyebrow) {

        font-size: 15px;

    }


    .contact-box {

        padding: 40px 22px;

    }


    .contact-box h2 {

        font-size: 38px;

        letter-spacing: -1px;

    }


    .contact-intro {

        font-size: 15px;

    }


    .contact-detail {

        padding: 16px;

    }


    .contact-detail strong {

        font-size: 14px;

    }


    .contact-links {

        width: 100%;

    }


    .contact-links a {

        width: 100%;

    }


    footer {

        flex-direction: column;

        gap: 10px;

        text-align: center;

    }

}


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

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

    * {

        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

    }

}

/* =========================================================
   FINAL THEME + CONTACT FIX
   ========================================================= */

body.light-mode .about-card,
body.light-mode .info-card,
body.light-mode .skill-card,
body.light-mode .project-card,
body.light-mode .learning-box,
body.light-mode .contact-box {
    background-color: var(--card-bg);
    color: var(--text);
}

body.light-mode .project-card.featured,
body.light-mode .learning-box,
body.light-mode .contact-box {
    background:
        linear-gradient(120deg,
            rgba(8, 145, 178, 0.07),
            transparent 55%),
        var(--card-bg);
}

.contact-details {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 18px;
}

.contact-detail {
    width: 360px;
    min-height: 78px;
    flex: 0 1 360px;
    background: var(--card-inner);
}

body.light-mode .contact-detail {
    background: rgba(15, 23, 42, 0.035);
    border-color: rgba(15, 23, 42, 0.12);
}

body.light-mode .contact-icon {
    background: var(--icon-bg);
}

body.light-mode .floating-card {
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
}

body.light-mode .secondary {
    background: rgba(15, 23, 42, 0.04);
    color: var(--text);
}

body.light-mode .project-number {
    color: rgba(15, 23, 42, 0.05);
}

body.light-mode .tags span,
body.light-mode .learning-list span {
    background: rgba(8, 145, 178, 0.06);
    border-color: rgba(8, 145, 178, 0.15);
    color: #0e7490;
}

@media (max-width: 850px) {
    .contact-details {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .contact-detail {
        width: min(100%, 400px);
        flex-basis: auto;
    }
}

@media (max-width: 560px) {
    .contact-detail {
        width: 100%;
    }
}

/* update for mobile view */
/* =========================================================
   MOBILE RESPONSIVE FIX
   Desktop design remains unchanged
   ========================================================= */

@media (max-width: 850px) {

    /* ---------- NAVBAR ---------- */

    .navbar {
        width: min(100% - 32px, 1120px);
        padding: 18px 0 12px;

        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo theme"
            "nav nav";

        gap: 14px;

        position: sticky;
        top: 0;

        background: rgba(7, 11, 20, 0.75);
        backdrop-filter: blur(14px);
    }

    .logo {
        grid-area: logo;
        align-self: center;
    }

    .theme-toggle {
        grid-area: theme;

        width: 42px;
        height: 42px;

        justify-self: end;
    }

    nav {
        grid-area: nav;

        width: 100%;

        display: flex;
        flex-wrap: nowrap;

        gap: 20px;

        justify-content: flex-start;

        overflow-x: auto;
        overflow-y: hidden;

        padding: 4px 2px 8px;

        scrollbar-width: none;
    }

    nav::-webkit-scrollbar {
        display: none;
    }

    nav a {
        flex: 0 0 auto;

        font-size: 13px;
        white-space: nowrap;
    }


    /* ---------- HERO ---------- */

    .hero {
        width: min(100% - 32px, 1120px);

        min-height: auto;

        grid-template-columns: 1fr;

        gap: 45px;

        padding-top: 55px;
        padding-bottom: 80px;

        text-align: center;
    }

    /*
       IMPORTANT:
       Text comes first.
       Image comes after the text.
    */

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 2;

        width: 100%;

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

        margin: 0 auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;

        max-width: 620px;
    }


    /* ---------- HERO HEADING ---------- */

    .hero h1 {
        font-size: clamp(48px, 12vw, 72px);

        line-height: 0.98;

        letter-spacing: -3px;

        margin-bottom: 18px;
    }

    .hero h2 {
        font-size: clamp(20px, 5vw, 27px);

        line-height: 1.35;

        margin-bottom: 20px;
    }

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

        line-height: 1.75;
    }


    /* ---------- BUTTONS ---------- */

    .hero-buttons {
        justify-content: center;

        gap: 12px;

        margin: 28px 0;
    }

    .btn {
        padding: 13px 20px;

        font-size: 14px;
    }


    /* ---------- STATS ---------- */

    .quick-stats {
        justify-content: center;

        gap: 40px;

        margin-top: 30px;
    }

    .quick-stats strong {
        font-size: 25px;
    }

    .quick-stats span {
        font-size: 11px;
    }


    /* ---------- PROFILE IMAGE ---------- */

    .image-ring {
        width: min(300px, 72vw);
        height: min(300px, 72vw);

        padding: 7px;
    }

    .image-ring img {
        border-width: 7px;
    }


    /* ---------- FLOATING CARDS ---------- */

    .floating-card {
        font-size: 11px;

        padding: 7px 11px;

        border-radius: 10px;
    }

    .card-one {
        top: 8%;
        left: max(0px, calc(50% - 190px));
    }

    .card-two {
        right: max(0px, calc(50% - 190px));
        bottom: 15%;
    }

    .card-three {
        left: max(0px, calc(50% - 170px));
        bottom: 2%;
    }


    /* ---------- OTHER SECTIONS ---------- */

    .about-grid,
    .learning-box {
        grid-template-columns: 1fr;
    }

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

    .project-card {
        min-height: auto;
    }

    .learning-box {
        gap: 35px;
        min-height: auto;
    }

    .contact-box {
        min-height: auto;
        padding: 50px 35px;
    }

    .contact-details {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .contact-detail {
        width: min(100%, 400px);
    }
}


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

@media (max-width: 560px) {

    /* ---------- PAGE WIDTH ---------- */

    .section {
        width: min(100% - 32px, 1120px);

        padding: 65px 0;
    }


    /* ---------- NAVBAR ---------- */

    .navbar {
        width: calc(100% - 28px);

        padding-top: 15px;
    }

    nav {
        gap: 17px;
    }

    nav a {
        font-size: 12px;
    }


    /* ---------- HERO ---------- */

    .hero {
        width: calc(100% - 32px);

        gap: 35px;

        padding-top: 42px;
        padding-bottom: 65px;
    }


    /* ---------- HELLO I'M ---------- */

    .hero .eyebrow {
        font-size: 11px;

        letter-spacing: 3px;

        margin-bottom: 12px;
    }


    /* ---------- NAME ---------- */

    .hero h1 {
        font-size: clamp(46px, 14vw, 62px);

        line-height: 0.98;

        letter-spacing: -2.5px;

        margin-bottom: 18px;
    }


    /* ---------- STUDENT TITLE ---------- */

    .hero h2 {
        font-size: 21px;

        line-height: 1.35;

        margin-bottom: 18px;
    }


    /* ---------- DESCRIPTION ---------- */

    .hero-description {
        font-size: 15px;

        line-height: 1.7;
    }


    /* ---------- BUTTONS ---------- */

    .hero-buttons {
        width: 100%;

        flex-direction: column;

        align-items: center;

        gap: 12px;

        margin: 26px 0;
    }

    .btn {
        width: min(100%, 320px);

        padding: 14px 20px;

        text-align: center;

        font-size: 15px;
    }


    /* ---------- PROFILE IMAGE ---------- */

    .hero-image {
        margin-top: 5px;
    }

    .image-ring {
        width: min(285px, 74vw);
        height: min(285px, 74vw);

        padding: 6px;
    }

    .image-ring img {
        border-width: 6px;
    }


    /* ---------- FLOATING CARDS ---------- */

    .floating-card {
        font-size: 10px;

        padding: 6px 9px;

        border-radius: 9px;
    }

    .card-one {
        top: 8%;

        left: max(0px, calc(50% - 180px));
    }

    .card-two {
        right: max(0px, calc(50% - 180px));

        bottom: 15%;
    }

    .card-three {
        left: max(0px, calc(50% - 160px));

        bottom: 2%;
    }


    /* ---------- STATS ---------- */

    .quick-stats {
        width: 100%;

        justify-content: center;

        gap: 45px;

        margin-top: 28px;
    }

    .quick-stats strong {
        font-size: 23px;
    }

    .quick-stats span {
        font-size: 10px;

        white-space: nowrap;
    }


    /* ---------- SKILLS ---------- */

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


    /* ---------- LEARNING ---------- */

    .learning-box {
        padding: 30px 25px;
    }

    .learning-box h2 {
        font-size: 42px;
    }

    .learning-box p:not(.eyebrow) {
        font-size: 15px;
    }


    /* ---------- CONTACT ---------- */

    .contact-box {
        padding: 40px 22px;
    }

    .contact-box h2 {
        font-size: 38px;

        letter-spacing: -1px;
    }

    .contact-intro {
        font-size: 15px;
    }

    .contact-detail {
        width: 100%;

        padding: 16px;
    }

    .contact-detail strong {
        font-size: 14px;
    }

    .contact-links {
        width: 100%;
    }

    .contact-links a {
        width: 100%;
    }


    /* ---------- FOOTER ---------- */

    footer {
        flex-direction: column;

        gap: 10px;

        text-align: center;
    }
}


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

@media (max-width: 380px) {

    .hero {
        width: calc(100% - 24px);
    }

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

    .hero h2 {
        font-size: 19px;
    }

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

    .image-ring {
        width: 250px;
        height: 250px;
    }

    .quick-stats {
        gap: 28px;
    }

    .quick-stats strong {
        font-size: 21px;
    }

    .quick-stats span {
        font-size: 9px;
    }
}
