
/* ======================================
   1. GLOBAL STYLES
====================================== */

:root {
    --navy: #102944;
    --navy-dark: #091a2e;
    --blue: #24527a;
    --blue-light: #a9c7e5;
    --yellow: #ffd85d;
    --cream: #f0f5fb;
    --white: #ffffff;
    --text: #172d49;
    --muted: #657b94;
    --serif: "Playfair Display", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
}

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

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

body {
    font-family: var(--sans);
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
}

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

img {
    display: block;
    max-width: 100%;
}

::selection {
    color: var(--navy-dark);
    background: var(--yellow);
}


/* ======================================
   2. FIXED SIDEBAR
====================================== */

.side-panel {
    position: fixed;
    z-index: 50;
    inset: 0 auto 0 0;

    width: 160px;

    padding: 28px 20px;

    background: linear-gradient(
        180deg,
        #102944,
        #08182b
    );

    border-right: 1px solid rgba(255,255,255,.08);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand {
    width: fit-content;

    color: var(--white);

    font-family: var(--serif);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.05;

    letter-spacing: -1px;

    transition: color .3s ease;
}

.brand span,
.footer-brand span {
    color: var(--yellow);
}

.brand:hover {
    color: var(--yellow);
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 5px;

    color: #8caecc;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.3px;
}


/* ======================================
   3. MAIN CONTENT
====================================== */

.main-content {
    margin-left: 160px;
    min-width: 0;
}


/* ======================================
   4. HERO SECTION
====================================== */

.hero-section {
    min-height: 510px;

    position: relative;
    isolation: isolate;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 45px 7% 30px;

    color: var(--white);

    background:
       radial-gradient(circle at 86% 30%, rgb(9 170 219 / 65%), transparent 22%), radial-gradient(circle at 15% 95%, rgb(63 70 73 / 80%), transparent 36%), linear-gradient(120deg, #4b8296, #1a5368 60%, #205173)
}


/* Subtle technical grid */

.hero-grid {
    position: absolute;
    z-index: -1;
    inset: 0;

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

    background-size: 42px 42px;

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

    pointer-events: none;
}


/* Hero inner layout */

.hero-container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(250px, .9fr);

    align-items: center;
    gap: 65px;

    animation: heroEntrance .9s ease-out both;
}

.hero-text {
    min-width: 0;
}


/* Small eyebrow */

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 54px;

    color: #d0deed;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: .4px;
}

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

    flex-shrink: 0;

    border-radius: 50%;

    background: #7dd3fc;

    box-shadow: 0 0 0 7px rgba(125,211,252,.13);

    animation: dotPulse 2.5s ease-in-out infinite;
}


/* Introduction */

.hero-greeting {
    margin-bottom: 2px;

    font-family: var(--serif);
    font-size: 30px;
    font-weight: 600;

    color: var(--blue-light);
}

.hero-text h1 {
    margin-bottom: 20px;

    font-family: var(--serif);
    font-size: clamp(45px, 5vw, 76px);
    font-weight: 700;
    line-height: 1.12;

    letter-spacing: -3px;
}

.hero-text h1 span {
    color: #fff;
}

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

    color: #d0dceb;

    font-size: 17px;
    font-weight: 500;
    line-height: 2;

    margin-bottom: 25px;
}


/* Hero buttons */

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;

    margin-bottom: 25px;
}

.resume-button {
    min-height: 57px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    padding: 0 25px;

    border-radius: 50px;

    background: var(--yellow);
    color: var(--navy-dark);

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

    box-shadow: 0 8px 25px rgba(255,216,93,.18);

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        background .35s ease;
}

.resume-button:hover {
    background: #ffe78f;

    transform: translateY(-4px);

    box-shadow: 0 14px 35px rgba(255,216,93,.3);
}

.resume-icon {
    display: inline-block;
    font-size: 21px;

    transition: transform .35s ease;
}

.resume-button:hover .resume-icon {
    transform: translate(3px,-3px);
}

.explore-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding-bottom: 5px;

    border-bottom: 1px solid rgba(255,255,255,.45);

    color: #edf4fc;

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

    transition:
        color .3s ease,
        border-color .3s ease;
}

.explore-link span {
    transition: transform .3s ease;
}

.explore-link:hover {
    color: var(--yellow);
    border-color: var(--yellow);
}

.explore-link:hover span {
    transform: translateY(4px);
}


/* Contact details */

.hero-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 38px;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 7px;

    color: #f2f6fb;

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

    transition: color .3s ease;
}

.contact-detail:hover {
    color: var(--yellow);
}

.contact-label {
    color: #91b5d8;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
}


/* ======================================
   5. PROFILE IMAGE
====================================== */

.hero-visual {
    min-width: 0;

    position: relative;

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

    padding: 15px 0 30px;
}

.profile-frame {
    width: min(100%, 305px);
    height: 380px;

    position: relative;
    z-index: 2;

    overflow: hidden;

    border-radius: 27px;

    background: #08111c;

    border: 1px solid rgba(255,255,255,.22);

    box-shadow:
        0 30px 70px rgba(0,0,0,.24),
        0 0 0 8px rgba(255,255,255,.025);

    transition:
        transform .5s ease,
        box-shadow .5s ease;
}

.profile-frame:hover {
    transform: translateY(-7px) rotate(1deg);

    box-shadow:
        0 35px 80px rgba(0,0,0,.32),
        0 0 0 8px rgba(255,216,93,.1);
}

.profile-image {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform .7s ease;
}

.profile-frame:hover .profile-image {
    transform: scale(1.05);
}


/* Image caption */

.image-caption {
    position: absolute;
    inset: auto 0 0 0;

    padding: 18px 14px;

    display: flex;
    align-items: center;
    gap: 9px;

    background: linear-gradient(
        transparent,
        rgba(0,0,0,.8)
    );

    color: #fff;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;

    opacity: 0;

    transform: translateY(8px);

    transition:
        opacity .35s ease,
        transform .35s ease;
}

.profile-frame:hover .image-caption {
    opacity: 1;
    transform: translateY(0);
}

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

    border-radius: 50%;
    background: var(--yellow);
}


/* Orbit rings */

.orbit {
    position: absolute;

    border: 1px dashed rgba(192,221,246,.23);
    border-radius: 50%;

    pointer-events: none;
}

.orbit-one {
    width: 340px;
    height: 340px;

    animation: orbitSpin 35s linear infinite;
}

.orbit-two {
    width: 390px;
    height: 390px;

    border-color: rgba(192,221,246,.09);

    animation: orbitSpin 45s linear infinite reverse;
}


/* Floating labels */

.floating-note {
    position: absolute;
    z-index: 4;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 12px 15px;

    background: rgba(11,31,53,.84);

    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;

    color: #e8f1fa;

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

    backdrop-filter: blur(12px);

    box-shadow: 0 10px 25px rgba(0,0,0,.12);

    animation: noteFloat 4s ease-in-out infinite;
}

.floating-note span {
    color: var(--yellow);
    font-size: 17px;
}

.note-top {
    top: 36px;
    right: -8px;
}

.note-bottom {
    bottom: 45px;
    left: -20px;
    animation-delay: -2s;
}


/* ======================================
   6. HERO BOTTOM LINE
====================================== */

.hero-bottom-line {
    width: 100%;
    max-width: 1250px;

    margin: 28px auto 0;
    padding-top: 18px;

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

    border-top: 1px solid rgba(255,255,255,.12);

    color: #91b5d8;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.hero-bottom-line a {
    transition: color .3s ease;
}

.hero-bottom-line a:hover {
    color: var(--yellow);
}


/* ======================================
   7. BACKGROUND LIGHT PARTICLES
====================================== */

.light {
    position: absolute;
    z-index: -1;

    border-radius: 50%;

    background: radial-gradient(
        circle at 35% 30%,
        rgba(222,241,255,.8),
        rgba(153,199,237,.23) 45%,
        rgba(153,199,237,.03) 75%
    );

    box-shadow: inset 0 0 8px rgba(255,255,255,.08);

    animation: lightFloat 8s ease-in-out infinite;
}

.light-one {
    width: 26px;
    height: 26px;
    top: 8%;
    right: 29%;
}

.light-two {
    width: 13px;
    height: 13px;
    top: 13%;
    left: 38%;
    animation-delay: -2s;
}

.light-three {
    width: 20px;
    height: 20px;
    top: 55%;
    left: 8%;
    animation-delay: -4s;
}

.light-four {
    width: 14px;
    height: 14px;
    bottom: 13%;
    left: 46%;
    animation-delay: -1s;
}

.light-five {
    width: 31px;
    height: 31px;
    top: 34%;
    right: 7%;
    animation-delay: -5s;
}

.light-six {
    width: 11px;
    height: 11px;
    bottom: 25%;
    right: 42%;
    animation-delay: -3s;
}


/* ======================================
   8. HIGHLIGHTS SECTION
====================================== */

.highlights-section {
    padding: 30px 7% 45px;

    background:
        radial-gradient(
            circle at 95% 5%,
            rgba(193,216,241,.3),
            transparent 25%
        ),
        linear-gradient(
            140deg,
            #f4f8fc,
            #e8f0f9
        );
}

.section-container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
}


/* Section heading */

.section-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;

    margin-bottom: 30px;
}

.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 12px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.section-eyebrow span {
    width: 23px;
    height: 2px;

    background: #3478b8;
}

.section-top h2 {
    width: auto;

    margin-bottom: 12px;

    font-family: "DM Sans", sans-serif;
    font-size: clamp(39px, 4.2vw, 40px);
    font-weight: 700;

    letter-spacing: -1.8px;
    line-height: 1.15;
}

.section-top h2 span {
    color: #387ab5;
}

.section-description {
    max-width: 540px;

    color: #5d738c;

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


/* Section count */

.section-count {
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    gap: 7px;

    padding-bottom: 5px;

    color: #8093a9;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.section-count span {
    color: #2d5b85;
    font-family: var(--serif);
    font-size: 23px;
    letter-spacing: 0;
}


/* ======================================
   9. PORTFOLIO GRID
====================================== */

.portfolio-grid {
    display: grid;

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

    gap: 25px;
}


/* Individual card */

.portfolio-card {
    min-width: 0;

    overflow: hidden;
cursor: pointer;
    background: rgba(255,255,255,.8);

    border: 1px solid rgba(31,64,101,.08);
    border-radius: 19px;

    box-shadow: 0 7px 20px rgba(21,54,89,.05);

    transition:
        transform .4s ease,
        box-shadow .4s ease,
        border-color .4s ease;

    animation: cardEntrance .8s ease both;
}

.portfolio-card:nth-child(2) {
    animation-delay: .08s;
}

.portfolio-card:nth-child(3) {
    animation-delay: .16s;
}

.portfolio-card:nth-child(4) {
    animation-delay: .24s;
}

.portfolio-card:nth-child(5) {
    animation-delay: .32s;
}

.portfolio-card:nth-child(6) {
    animation-delay: .4s;
}

.portfolio-card:hover {
    transform: translateY(-9px);

    border-color: rgba(52,120,184,.3);

    box-shadow: 0 20px 40px rgba(21,54,89,.14);
}


/* Image wrapper */

.card-image {
    height: 205px;

    position: relative;
    overflow: hidden;

    background: #d7e1ed;
}

.card-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        180deg,
        rgba(8,25,43,.15),
        transparent 40%,
        rgba(8,25,43,.48)
    );

    opacity: .8;

    transition: opacity .4s ease;
}

.portfolio-card:hover .card-image::after {
    opacity: 1;
}

.card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .7s cubic-bezier(.2,.7,.2,1),
        filter .5s ease;
}

.portfolio-card:hover .card-image img {
    transform: scale(1.09);
    filter: saturate(1.12);
}


/* Card number */

.card-number {
    position: absolute;
    z-index: 2;

    top: 14px;
    left: 14px;

    width: 33px;
    height: 33px;

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

    border: 1px solid rgba(255,255,255,.6);
    border-radius: 50%;

    background: rgba(12,36,61,.55);
    color: #fff;

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

    backdrop-filter: blur(8px);

    transition:
        background .35s ease,
        color .35s ease,
        transform .35s ease;
}

.portfolio-card:hover .card-number {
    background: var(--yellow);
    color: var(--navy-dark);
    transform: rotate(12deg);
}


/* Category pill */

.card-category {
    position: absolute;
    z-index: 2;

    bottom: 13px;
    left: 14px;

    padding: 8px 11px;

    border: 1px solid rgba(255,255,255,.55);
    border-radius: 5px;

    background: var(--yellow);
    color: #172a41;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;

    transition: transform .35s ease;
}

.portfolio-card:hover .card-category {
    transform: translateY(-4px);
}


/* Image arrow */

.card-image-arrow {
    position: absolute;
    z-index: 2;

    right: 14px;
    bottom: 13px;

    width: 35px;
    height: 35px;

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

    border-radius: 50%;

    background: rgba(255,255,255,.95);
    color: var(--navy);

    font-size: 20px;

    opacity: 0;
    transform: translate(-5px, 5px);

    transition:
        opacity .35s ease,
        transform .35s ease;
}

.portfolio-card:hover .card-image-arrow {
    opacity: 1;
    transform: translate(0,0);
}


/* Card title area */

.card-content {
    min-height: 91px;

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

    padding: 17px 17px 18px;
}

.card-content h3 {
    margin-bottom: 6px;

    font-family: "DM Sans", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;

    color: var(--navy);

    transition: color .3s ease;
}

.portfolio-card:hover .card-content h3 {
    color: #3478b8;
}

.card-content p {
    color: #74859a;

    font-size: 11px;
    line-height: 1.5;
}

.card-arrow {
    flex-shrink: 0;

    width: 35px;
    height: 35px;

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

    border: 1px solid #dbe4ef;
    border-radius: 50%;

    background: #f5f8fc;
    color: #254a71;

    font-size: 20px;

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

.portfolio-card:hover .card-arrow {
    color: var(--navy-dark);
    background: var(--yellow);
    border-color: var(--yellow);
    transform: rotate(45deg);
}


/* ======================================
   10. SECTION FOOTER
====================================== */

.section-footer {
    margin-top: 36px;
    padding-top: 23px;

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

    border-top: 1px solid #d7e2ee;
}

.section-footer p {
    color: #657b94;
    font-size: 13px;
}

.section-footer a {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: #214b74;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;

    transition: color .3s ease;
}

.section-footer a span {
    font-size: 20px;
    transition: transform .3s ease;
}

.section-footer a:hover {
    color: #397fbb;
}

.section-footer a:hover span {
    transform: translate(3px,-3px);
}


/* ======================================
   11. BOTTOM FOOTER
====================================== */

.site-footer {
    padding: 28px 7%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;

    background: var(--navy-dark);
    color: #d7e4f1;
}

.footer-brand {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
}

.site-footer p,
.site-footer > a {
    font-size: 12px;
    margin-bottom: 0px;
}

.site-footer > a {
    transition: color .3s ease;
}

.site-footer > a:hover {
    color: var(--yellow);
}

.copyright {
    color: #8ea5bc;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}


/* ======================================
   12. FIXED CONTACT BUTTONS
====================================== */

.floating-contact {
    position: fixed;
    z-index: 100;

    right: 22px;
    bottom: 28px;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-circle {
    position: relative;

    width: 49px;
    height: 49px;

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

    border-radius: 50%;

    background: var(--yellow);
    color: var(--navy-dark);

    border: 1px solid rgba(255,255,255,.7);

    box-shadow: 0 8px 22px rgba(12,36,61,.16);

    font-size: 22px;

    transition:
        transform .3s ease,
        background .3s ease,
        box-shadow .3s ease;
}

.contact-circle:hover {
    transform: scale(1.09);

    background: #ffe998;

    box-shadow: 0 12px 30px rgba(12,36,61,.24);
}


/* Hover tooltip */

.contact-tooltip {
    position: absolute;

    right: 60px;
    top: 50%;

    width: max-content;

    padding: 10px 13px;

    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;

    background: var(--navy-dark);
    color: #fff;

    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;

    opacity: 0;
    visibility: hidden;

    transform: translate(8px,-50%);

    transition:
        opacity .3s ease,
        visibility .3s ease,
        transform .3s ease;

    pointer-events: none;
}

.contact-circle:hover .contact-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(0,-50%);
}


/* ======================================
   13. ANIMATIONS
====================================== */

@keyframes heroEntrance {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lightFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-18px);
    }
}

@keyframes noteFloat {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -9px;
    }
}

@keyframes dotPulse {
    0%, 100% {
        box-shadow: 0 0 0 5px rgba(125,211,252,.10);
    }

    50% {
        box-shadow: 0 0 0 9px rgba(125,211,252,.17);
    }
}

@keyframes orbitSpin {
    from {
        rotate: 0deg;
    }

    to {
        rotate: 360deg;
    }
}


/* ======================================
   14. TABLET RESPONSIVE
====================================== */

@media (max-width: 1150px) {

    .side-panel {
        width: 120px;
        padding: 25px 16px;
    }

    .main-content {
        margin-left: 120px;
    }

    .hero-section {
        padding-right: 5%;
        padding-left: 5%;
    }

    .hero-container {
        grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr);
        gap: 30px;
    }

    .profile-frame {
        height: 330px;
    }

    .hero-text h1 {
        font-size: clamp(42px, 5vw, 62px);
    }

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

    .highlights-section {
        padding-right: 5%;
        padding-left: 5%;
    }

    .portfolio-grid {
        gap: 18px;
    }

    .card-image {
        height: 180px;
    }

    .card-content {
        padding: 15px 12px;
    }

    .card-content h3 {
        font-size: 18px;
    }
}


/* ======================================
   15. MOBILE RESPONSIVE
====================================== */

@media (max-width: 760px) {

    .side-panel {
        position: relative;
        inset: auto;

        width: 100%;
        height: 66px;

        padding: 0 22px;

        flex-direction: row;
        align-items: center;

        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.1);
    }

    .brand {
        font-size: 21px;
        line-height: 1;
    }

    .sidebar-bottom {
        flex-direction: row;
        align-items: center;
        gap: 8px;

        font-size: 10px;
    }

    .main-content {
        margin-left: 0;
    }

    .hero-section {
        padding: 40px 24px 25px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .eyebrow {
        margin-bottom: 32px;
        font-size: 12px;
    }

    .hero-greeting {
        font-size: 27px;
    }

    .hero-text h1 {
        font-size: clamp(43px, 10vw, 64px);
        letter-spacing: -2px;
    }

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

    .hero-actions {
        gap: 18px;
    }

    .resume-button {
        min-height: 52px;
        padding: 0 21px;
    }

    .hero-contact {
        gap: 22px;
    }

    .contact-detail {
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    .hero-visual {
        padding: 15px 0 25px;
    }

    .profile-frame {
        width: min(76%, 300px);
        height: 350px;
    }

    .orbit-one {
        width: 300px;
        height: 300px;
    }

    .orbit-two {
        width: 345px;
        height: 345px;
    }

    .note-top {
        right: 0;
    }

    .note-bottom {
        left: 0;
    }

    .hero-bottom-line {
        font-size: 8px;
        letter-spacing: .8px;
    }

    .highlights-section {
        padding: 45px 22px 35px;
    }

    .section-top {
        align-items: flex-start;
        margin-bottom: 25px;
    }

    .section-count {
        display: none;
    }

    .section-top h2 {
        font-size: 43px;
    }

    .section-description {
        font-size: 13px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .card-image {
        height: 165px;
    }

    .card-content {
        min-height: 85px;
        padding: 13px 11px;
    }

    .card-content h3 {
        font-size: 16px;
    }

    .card-content p {
        font-size: 10px;
    }

    .card-arrow {
        width: 29px;
        height: 29px;
        font-size: 17px;
    }

    .card-category {
        left: 9px;
        bottom: 10px;
        font-size: 8px;
        padding: 7px 8px;
    }

    .card-number {
        left: 9px;
        top: 9px;
        width: 29px;
        height: 29px;
    }

    .card-image-arrow {
        right: 9px;
        bottom: 10px;
    }

    .section-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .site-footer {
        padding: 25px 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .floating-contact {
        right: 12px;
        bottom: 15px;
        gap: 8px;
    }

    .contact-circle {
        width: 43px;
        height: 43px;
        font-size: 19px;
    }

    .contact-tooltip {
        display: none;
    }
}


/* ======================================
   16. SMALL MOBILE
====================================== */

@media (max-width: 430px) {

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-image {
        height: 215px;
    }

    .card-content {
        min-height: 85px;
        padding: 15px;
    }

    .card-content h3 {
        font-size: 20px;
    }

    .hero-contact {
        flex-direction: column;
        gap: 16px;
    }

    .hero-bottom-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .profile-frame {
        height: 320px;
    }

    .note-top {
        right: -5px;
    }

    .note-bottom {
        left: -5px;
    }

    .floating-note {
        font-size: 10px;
        padding: 10px;
    }
}


/* ======================================
   17. ACCESSIBILITY
====================================== */

a:focus-visible {
    outline: 3px solid #397fbb;
    outline-offset: 4px;
}

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

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
