/* =========================================================
   SAHIL JIRAPURE PORTFOLIO
   ========================================================= */

:root {
    --primary: #2a6ef3;
    --primary-dark: #1954c7;
    --primary-light: #eaf1ff;

    --sand: #fbe8d3;

    --text: #101c38;
    --text-soft: #4d5c78;
    --text-muted: #71809b;

    --white: #ffffff;

    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --border: rgba(42, 110, 243, 0.13);

    --shadow:
        0 18px 50px rgba(31, 58, 105, 0.10);

    --shadow-hover:
        0 25px 60px rgba(31, 58, 105, 0.17);

    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 12px;

    --container: 1320px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 115px;
}

body {
    min-height: 100vh;

    font-family:
        "Inter",
        "Segoe UI",
        sans-serif;

    color: var(--text);

    line-height: 1.65;

    overflow-x: hidden;

    background:
        radial-gradient(circle at 0% 0%,
            rgba(42, 110, 243, 0.22),
            transparent 32%),
        radial-gradient(circle at 100% 40%,
            rgba(251, 232, 211, 0.85),
            transparent 27%),
        linear-gradient(160deg,
            #f7f9ff 0%,
            #ffffff 48%,
            #fffaf4 100%);

    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button,
input,
textarea {
    font: inherit;
}

img {
    max-width: 100%;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: min(var(--container),
            calc(100% - 40px));

    margin-inline: auto;
}


/* =========================================================
   BACKGROUND
   ========================================================= */

.bg-orb {
    position: fixed;

    border-radius: 50%;

    pointer-events: none;

    z-index: -5;

    filter: blur(25px);
}

.orb-one {
    width: 400px;
    height: 400px;

    top: -140px;
    left: -130px;

    background:
        rgba(42, 110, 243, 0.13);
}

.orb-two {
    width: 420px;
    height: 420px;

    right: -170px;
    bottom: 40px;

    background:
        rgba(251, 232, 211, 0.65);
}


/* =========================================================
   GLASS
   ========================================================= */

.glass {
    background: var(--surface);

    border:
        1px solid rgba(255, 255, 255, 0.7);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}


/* =========================================================
   PAGE LOADER
   ========================================================= */

.page-loader {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: grid;
    place-items: center;

    background: #f8faff;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.loader-ring {
    width: 50px;
    height: 50px;

    border-radius: 50%;

    border:
        4px solid rgba(42, 110, 243, 0.15);

    border-top-color: var(--primary);

    animation: spin 0.8s linear infinite;
}

body.is-loaded .page-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   SCROLL PROGRESS
   ========================================================= */

.scroll-progress {
    position: fixed;

    top: 0;
    left: 0;

    width: 0;
    height: 3px;

    z-index: 999;

    background:
        linear-gradient(90deg,
            var(--primary),
            #70a1ff);
}


/* =========================================================
   NAVBAR
   ========================================================= */

.site-header {
    position: sticky;

    top: 0;

    z-index: 100;

    padding-top: 14px;
}

.nav-wrap {
    min-height: 76px;

    padding:
        12px 20px;

    display: flex;

    align-items: center;
    justify-content: space-between;
}

.brand {
    font-family:
        "Poppins",
        sans-serif;

    font-size: 1.3rem;

    font-weight: 800;

    color: var(--primary);
}

.brand span {
    color: var(--text);
}

.nav-menu {
    display: flex;

    align-items: center;

    gap: 5px;

    padding: 5px;

    background:
        rgba(255, 255, 255, 0.52);

    border-radius: 18px;
}

.nav-link {
    display: block;

    padding:
        10px 15px;

    border-radius: 12px;

    color: var(--text-soft);

    font-weight: 600;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.nav-link:hover {
    color: var(--primary);

    background:
        rgba(42, 110, 243, 0.07);
}

.nav-link.active {
    color: var(--primary);

    background:
        rgba(42, 110, 243, 0.11);

    box-shadow:
        inset 0 -2px rgba(42, 110, 243, 0.55);
}


/* MOBILE MENU BUTTON */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    border:
        1px solid var(--border);

    background: white;

    border-radius: 12px;

    cursor: pointer;

    place-content: center;

    gap: 5px;
}

.menu-toggle span {
    display: block;

    width: 20px;
    height: 2px;

    background: var(--text);

    border-radius: 10px;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform:
        translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform:
        translateY(-7px) rotate(-45deg);
}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.section {
    padding: 90px 0;
}

.section-head {
    max-width: 780px;

    margin-bottom: 38px;
}

.kicker,
.eyebrow {
    color: var(--primary);

    font-size: 0.84rem;

    font-weight: 800;

    letter-spacing: 0.16em;

    text-transform: uppercase;

    margin-bottom: 10px;
}

.section-head h2 {
    font-family:
        "Poppins",
        sans-serif;

    font-size:
        clamp(2rem,
            4vw,
            3rem);

    line-height: 1.15;

    letter-spacing: -0.03em;

    margin-bottom: 12px;
}

.section-description,
.project-section-intro {
    color: var(--text-soft);

    max-width: 700px;

    font-size: 1rem;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    padding-top: 55px;
    padding-bottom: 80px;
}

.hero-grid {
    display: grid;

    grid-template-columns:
        300px minmax(0, 1fr) 250px;

    gap: 28px;

    align-items: center;
}


/* =========================================================
   PROFILE CARD
   ========================================================= */

.profile-card {
    padding: 30px 25px;

    text-align: center;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-height: 470px;
}

.profile-avatar-wrap {
    width: 205px;
    height: 205px;

    padding: 5px;

    margin-bottom: 20px;

    border-radius: 50%;

    background:
        linear-gradient(145deg,
            var(--primary),
            #8ab0ff);

    box-shadow:
        0 15px 35px rgba(42, 110, 243, 0.2);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.profile-card:hover .profile-avatar-wrap {
    transform: translateY(-4px);

    box-shadow:
        0 22px 45px rgba(42, 110, 243, 0.28);
}

.profile-avatar {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center 28%;

    border-radius: 50%;

    border: 4px solid white;
}

.profile-meta {
    display: grid;

    gap: 7px;
}

.profile-name {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    font-weight: 800;

    font-size: 1.03rem;
}

.profile-name i {
    color: var(--primary);
}

.profile-role {
    color: var(--text-soft);

    font-weight: 600;
}

.profile-location {
    color: var(--text-soft);

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;
}

.profile-location i {
    color: var(--primary);
}


/* AVAILABILITY */

.availability-badge {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 18px;

    padding:
        8px 13px;

    border-radius: 999px;

    background:
        rgba(39, 174, 96, 0.09);

    color: #177441;

    font-size: 0.84rem;

    font-weight: 700;
}

.availability-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #27ae60;

    box-shadow:
        0 0 0 4px rgba(39, 174, 96, 0.12);
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.hero-content {
    padding: 10px 0;
}

.hero-content h1 {
    font-family:
        "Poppins",
        sans-serif;

    font-size:
        clamp(2.5rem,
            4.2vw,
            4.2rem);

    line-height: 1.08;

    letter-spacing: -0.045em;

    margin-bottom: 22px;
}

.name-highlight {
    display: inline;

    color: var(--text);
}

.hero-highlight {
    display: block;

    color: var(--text);

    margin-top: 3px;
}

.value-statement {
    max-width: 760px;

    color: var(--text-soft);

    font-size: 1.04rem;

    line-height: 1.75;

    margin-bottom: 25px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.hero-cta {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 20px;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 47px;

    padding:
        11px 20px;

    border-radius: 999px;

    border:
        1px solid transparent;

    cursor: pointer;

    font-weight: 700;

    font-size: 0.93rem;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    color: white;

    background: var(--primary);

    box-shadow:
        0 12px 24px rgba(42, 110, 243, 0.24);
}

.btn-primary:hover {
    background: var(--primary-dark);

    box-shadow:
        0 16px 30px rgba(42, 110, 243, 0.32);
}

.btn-ghost {
    background:
        rgba(255, 255, 255, 0.82);

    color: var(--primary-dark);

    border-color:
        rgba(42, 110, 243, 0.2);
}

.btn-ghost:hover {
    box-shadow:
        0 12px 25px rgba(31, 58, 105, 0.12);
}

.btn-resume {
    background:
        rgba(42, 110, 243, 0.08);

    color: var(--text);

    border-color:
        rgba(42, 110, 243, 0.12);
}

.btn-resume i {
    color: var(--primary);
}


/* =========================================================
   HERO TECH
   ========================================================= */

.hero-tech {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.hero-tech span {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding:
        7px 11px;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.72);

    border:
        1px solid rgba(42, 110, 243, 0.1);

    color: var(--text-soft);

    font-size: 0.82rem;

    font-weight: 600;
}

.hero-tech i {
    color: var(--primary);
}


/* =========================================================
   ENGINEERING HIGHLIGHTS
   ========================================================= */

.hero-panel {
    padding: 25px 22px;

    display: grid;

    gap: 13px;
}

.panel-label {
    color: var(--text-muted);

    font-size: 0.73rem;

    font-weight: 800;

    letter-spacing: 0.12em;

    margin-bottom: 3px;
}

.hero-stat {
    padding: 14px;

    border-radius: 16px;

    background:
        rgba(42, 110, 243, 0.055);

    border:
        1px solid rgba(42, 110, 243, 0.08);

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.hero-stat:hover {
    transform: translateX(3px);

    background:
        rgba(42, 110, 243, 0.09);
}

.hero-stat strong {
    display: block;

    color: var(--primary);

    font-family:
        "Poppins",
        sans-serif;

    font-size: 1.35rem;
}

.hero-stat span {
    color: var(--text-soft);

    font-size: 0.8rem;

    font-weight: 600;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about-layout {
    display: grid;

    grid-template-columns:
        1.6fr 0.8fr;

    gap: 24px;
}

.about-card {
    padding: 30px;

    display: grid;

    gap: 15px;
}

.about-card p {
    color: var(--text-soft);

    font-size: 1rem;
}

.about-card strong {
    color: var(--text);
}


/* PROFILE INFORMATION */

.education-card {
    padding: 28px;

    display: grid;

    gap: 13px;

    align-content: start;
}

.education-kicker {
    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--primary);

    font-weight: 800;

    margin-bottom: 5px;
}

.profile-fact {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    padding-bottom: 11px;

    border-bottom:
        1px solid rgba(42, 110, 243, 0.08);
}

.profile-fact:last-child {
    border-bottom: 0;
}

.profile-fact span {
    color: var(--text-muted);

    font-size: 0.84rem;
}

.profile-fact strong {
    text-align: right;

    font-size: 0.86rem;
}


/* =========================================================
   SKILLS
   ========================================================= */

.skills-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}

.skill-card {
    padding: 25px;

    min-height: 175px;

    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease;
}

.skill-card:hover {
    transform: translateY(-6px);

    box-shadow: var(--shadow-hover);
}

.skill-card h3 {
    display: flex;

    align-items: center;

    gap: 9px;

    font-family:
        "Poppins",
        sans-serif;

    font-size: 1.05rem;

    margin-bottom: 18px;
}

.skill-card h3 i {
    color: var(--primary);
}


/* SKILL CHIPS */

.chip-list {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.chip-list li {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding:
        7px 10px;

    border-radius: 10px;

    background:
        rgba(42, 110, 243, 0.07);

    border:
        1px solid rgba(42, 110, 243, 0.08);

    color: var(--text-soft);

    font-size: 0.8rem;

    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.chip-list li:hover {
    color: var(--primary-dark);

    background:
        rgba(42, 110, 243, 0.12);

    transform: translateY(-2px);
}

.chip-list i {
    color: var(--primary);
}


/* =========================================================
   PROJECTS
   ========================================================= */

.project-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;
}

.project-card {
    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-7px);

    box-shadow: var(--shadow-hover);
}


/* PROJECT IMAGE */

.project-media {
    position: relative;

    height: 230px;

    overflow: hidden;

    background:
        linear-gradient(145deg,
            var(--primary-light),
            #f7f9ff);
}

.project-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.45s ease;
}

.project-card:hover .project-image {
    transform: scale(1.045);
}

.project-media>span {
    position: absolute;

    left: 18px;
    bottom: 17px;

    padding:
        7px 11px;

    border-radius: 999px;

    background:
        rgba(15, 28, 56, 0.78);

    color: white;

    font-size: 0.72rem;

    font-weight: 700;

    backdrop-filter: blur(8px);
}


/* OLD PREVIEW FRAME - HIDE */

.project-preview-frame {
    display: none;
}


/* PROJECT BODY */

.project-body {
    padding: 26px;

    display: flex;

    flex-direction: column;

    min-height: 420px;
}

.project-body h3 {
    font-family:
        "Poppins",
        sans-serif;

    font-size: 1.25rem;

    line-height: 1.3;

    margin-bottom: 10px;
}

.project-problem {
    color: var(--text-soft);

    font-size: 0.9rem;

    margin-bottom: 16px;
}


/* PROJECT STACK */

.stack-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 17px;
}

.stack-tags li {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding:
        6px 9px;

    border-radius: 8px;

    color: var(--primary-dark);

    background:
        rgba(42, 110, 243, 0.075);

    font-size: 0.73rem;

    font-weight: 700;
}


/* FEATURES */

.project-features {
    display: grid;

    gap: 9px;

    margin-bottom: 22px;
}

.project-features li {
    position: relative;

    padding-left: 18px;

    color: var(--text-soft);

    font-size: 0.85rem;
}

.project-features li::before {
    content: "✓";

    position: absolute;

    left: 0;

    color: var(--primary);

    font-weight: 800;
}


/* PROJECT BUTTONS */

.project-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: auto;
}

.project-actions .btn {
    font-size: 0.8rem;

    min-height: 40px;

    padding:
        8px 14px;
}

.btn.is-disabled {
    opacity: 0.55;

    pointer-events: none;
}

.all-projects-action {
    text-align: center;

    margin-top: 35px;
}


/* =========================================================
   EDUCATION
   ========================================================= */

.education-main-card {
    display: grid;

    grid-template-columns:
        75px 1fr;

    gap: 25px;

    align-items: start;

    padding: 32px;

    max-width: 1000px;
}

.education-icon {
    width: 62px;
    height: 62px;

    display: grid;

    place-items: center;

    border-radius: 18px;

    color: var(--primary);

    background:
        rgba(42, 110, 243, 0.1);

    font-size: 1.55rem;
}

.education-date {
    color: var(--primary);

    font-size: 0.82rem;

    font-weight: 800;

    letter-spacing: 0.08em;

    margin-bottom: 6px;
}

.education-main-content h3 {
    font-family:
        "Poppins",
        sans-serif;

    font-size: 1.35rem;

    margin-bottom: 4px;
}

.education-university {
    color: var(--text-soft);

    font-weight: 600;

    margin-bottom: 14px;
}

.education-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 15px;
}

.education-meta span {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding:
        6px 10px;

    border-radius: 9px;

    background:
        rgba(42, 110, 243, 0.07);

    color: var(--text-soft);

    font-size: 0.8rem;

    font-weight: 600;
}

.education-meta i {
    color: var(--primary);
}

.education-description {
    max-width: 760px;

    color: var(--text-soft);

    font-size: 0.9rem;
}


/* =========================================================
   CERTIFICATIONS
   ========================================================= */

.cert-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}

.cert-card {
    padding: 24px;

    display: flex;

    flex-direction: column;

    min-height: 230px;

    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease;
}

.cert-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow-hover);
}

.cert-issuer {
    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--primary);

    font-size: 0.78rem;

    font-weight: 700;

    margin-bottom: 14px;
}

.cert-card h3 {
    font-family:
        "Poppins",
        sans-serif;

    font-size: 1rem;

    line-height: 1.4;

    margin-bottom: 12px;
}

.cert-date {
    display: flex;

    align-items: center;

    gap: 6px;

    color: var(--text-muted);

    font-size: 0.78rem;

    margin-bottom: 18px;
}

.cert-btn {
    margin-top: auto;

    width: fit-content;

    font-size: 0.78rem;

    min-height: 39px;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-layout {
    display: grid;

    grid-template-columns:
        0.9fr 1.1fr;

    gap: 40px;

    align-items: start;
}

.contact-intro {
    padding-top: 20px;
}

.contact-intro h2 {
    font-family:
        "Poppins",
        sans-serif;

    font-size:
        clamp(2rem,
            4vw,
            2.8rem);

    line-height: 1.15;

    margin-bottom: 15px;
}

.contact-intro>p:not(.kicker) {
    color: var(--text-soft);

    max-width: 520px;

    margin-bottom: 24px;
}

.social-links {
    display: grid;

    gap: 10px;
}

.social-links a {
    display: flex;

    align-items: center;

    gap: 10px;

    width: fit-content;

    color: var(--text-soft);

    font-weight: 600;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.social-links a:hover {
    color: var(--primary);

    transform: translateX(3px);
}

.social-links i {
    width: 20px;

    color: var(--primary);
}


/* =========================================================
   CONTACT FORM
   ========================================================= */

.contact-form {
    padding: 30px;

    display: grid;

    gap: 9px;
}

.form-heading {
    margin-bottom: 10px;
}

.form-heading h3 {
    font-family:
        "Poppins",
        sans-serif;

    font-size: 1.25rem;

    margin-bottom: 4px;
}

.form-heading p {
    color: var(--text-muted);

    font-size: 0.85rem;
}

.contact-form label {
    font-size: 0.8rem;

    font-weight: 700;

    margin-top: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    border:
        1px solid rgba(42, 110, 243, 0.13);

    border-radius: 12px;

    padding:
        12px 14px;

    outline: none;

    color: var(--text);

    background:
        rgba(255, 255, 255, 0.75);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-form textarea {
    resize: vertical;

    min-height: 130px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color:
        rgba(42, 110, 243, 0.55);

    box-shadow:
        0 0 0 4px rgba(42, 110, 243, 0.08);
}

.contact-form button {
    margin-top: 10px;

    width: fit-content;
}

.form-feedback {
    min-height: 20px;

    color: var(--text-soft);

    font-size: 0.8rem;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding:
        30px 0 35px;

    border-top:
        1px solid rgba(42, 110, 243, 0.08);
}

.footer-content {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    color: var(--text-muted);

    font-size: 0.82rem;
}

.footer-content strong {
    color: var(--text);

    font-family:
        "Poppins",
        sans-serif;
}

.footer-socials {
    display: flex;

    gap: 10px;
}

.footer-socials a {
    width: 38px;
    height: 38px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        rgba(42, 110, 243, 0.08);

    color: var(--primary);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.footer-socials a:hover {
    transform: translateY(-3px);

    background:
        rgba(42, 110, 243, 0.14);
}


/* =========================================================
   SCROLL REVEAL
   ========================================================= */

.reveal {
    opacity: 0;

    transform:
        translateY(22px);

    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;

    transform:
        translateY(0);
}

.delay-1 {
    transition-delay: 0.08s;
}

.delay-2 {
    transition-delay: 0.16s;
}

.delay-3 {
    transition-delay: 0.24s;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline:
        3px solid rgba(42, 110, 243, 0.35);

    outline-offset: 3px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .hero-grid {
        grid-template-columns:
            260px 1fr;
    }

    .hero-panel {
        grid-column:
            1 / -1;

        grid-template-columns:
            repeat(4, 1fr);
    }

    .panel-label {
        grid-column:
            1 / -1;
    }

    .skills-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .cert-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


/* =========================================================
   MOBILE NAV / TABLET
   ========================================================= */

@media (max-width: 850px) {

    .section {
        padding: 70px 0;
    }

    .menu-toggle {
        display: grid;
    }

    .nav-menu {
        position: absolute;

        top: 82px;

        left: 20px;
        right: 20px;

        display: none;

        padding: 10px;

        background:
            rgba(255, 255, 255, 0.97);

        border:
            1px solid var(--border);

        border-radius: 18px;

        box-shadow: var(--shadow);
    }

    .nav-menu.open {
        display: grid;

        gap: 3px;
    }

    .nav-link {
        padding:
            11px 12px;
    }


    /* HERO */

    .hero-grid {
        grid-template-columns:
            1fr;
    }

    .profile-card {
        min-height: auto;

        padding: 28px;
    }

    .profile-avatar-wrap {
        width: 180px;
        height: 180px;
    }

    .hero-content {
        text-align: center;
    }

    .value-statement {
        margin-inline: auto;
    }

    .hero-cta,
    .hero-tech {
        justify-content: center;
    }

    .hero-panel {
        grid-column: auto;

        grid-template-columns:
            repeat(2, 1fr);
    }


    /* ABOUT */

    .about-layout {
        grid-template-columns:
            1fr;
    }


    /* PROJECTS */

    .project-grid {
        grid-template-columns:
            1fr;
    }


    /* CONTACT */

    .contact-layout {
        grid-template-columns:
            1fr;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .container {
        width:
            min(100% - 28px,
                var(--container));
    }

    .site-header {
        padding-top: 8px;
    }

    .nav-wrap {
        min-height: 65px;

        padding:
            9px 13px;

        border-radius: 18px;
    }

    .hero {
        padding-top: 35px;
    }

    .hero-content h1 {
        font-size:
            clamp(2.2rem,
                11vw,
                3.1rem);
    }

    .value-statement {
        font-size: 0.95rem;
    }

    .hero-cta {
        display: grid;

        grid-template-columns:
            1fr;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-panel {
        grid-template-columns:
            1fr 1fr;
    }

    .skills-grid {
        grid-template-columns:
            1fr;
    }

    .cert-grid {
        grid-template-columns:
            1fr;
    }

    .education-main-card {
        grid-template-columns:
            1fr;

        padding: 24px;
    }

    .education-icon {
        width: 55px;
        height: 55px;
    }

    .project-media {
        height: 200px;
    }

    .project-body {
        padding: 22px;

        min-height: auto;
    }

    .profile-fact {
        flex-direction: column;

        gap: 2px;
    }

    .profile-fact strong {
        text-align: left;
    }

    .footer-content {
        flex-direction: column;

        text-align: center;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }

    .reveal {
        opacity: 1;

        transform: none;
    }
}

/* =========================================================
   PROJECT PLACEHOLDER
   ========================================================= */

.project-placeholder {
    min-height: 210px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 14px;

    background:
        linear-gradient(135deg,
            rgba(42, 110, 243, 0.12),
            rgba(255, 255, 255, 0.9),
            rgba(251, 232, 211, 0.7));

    border-bottom:
        1px solid rgba(42, 110, 243, 0.08);
}


.project-placeholder-icon {
    width: 65px;
    height: 65px;

    display: grid;
    place-items: center;

    border-radius: 18px;

    background:
        rgba(42, 110, 243, 0.12);

    color: var(--primary);

    font-size: 1.7rem;
}


.project-placeholder span {
    color: var(--text-soft);

    font-size: 0.82rem;

    font-weight: 700;

    letter-spacing: 0.05em;

    text-transform: uppercase;
}

/* =========================================================
   CODING PROFILES
   ========================================================= */

.coding-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}


.coding-card {
    padding: 25px;

    display: flex;

    gap: 18px;

    min-height: 220px;

    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}


.coding-card:hover {
    transform: translateY(-7px);

    box-shadow: var(--shadow-hover);

    border-color:
        rgba(42, 110, 243, 0.2);
}


.coding-icon {
    flex-shrink: 0;

    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    background:
        rgba(42, 110, 243, 0.1);

    color: var(--primary);

    font-size: 1.45rem;
}


.coding-content {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
}


.coding-platform {
    color: var(--primary);

    font-size: 0.76rem;

    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    margin-bottom: 5px;
}


.coding-content strong {
    font-family:
        "Poppins",
        sans-serif;

    color: var(--text);

    font-size: 1.15rem;

    margin-bottom: 8px;
}


.coding-content p {
    color: var(--text-soft);

    font-size: 0.84rem;

    line-height: 1.6;

    margin-bottom: 18px;
}


.profile-link {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: var(--primary);

    font-size: 0.8rem;

    font-weight: 700;

    margin-top: auto;
}


.profile-link i {
    font-size: 0.7rem;
}


@media (max-width: 950px) {

    .coding-grid {
        grid-template-columns:
            1fr;
    }

}


@media (max-width: 500px) {

    .coding-card {
        flex-direction: column;
    }

}