/* =========================================================
   PORTFOLIO WEBSITE
   STYLE.CSS
   ========================================================= */


/* =========================================================
   1. ROOT VARIABLES
   ========================================================= */

:root {

    --bg: #03141f;

    --bg-secondary: #061d2c;

    --card: rgba(7, 30, 45, 0.72);

    --card-hover: rgba(8, 38, 56, 0.9);

    --text: #f5fbff;

    --muted: #9fb8c5;

    --primary: #00c8ff;

    --primary-dark: #0098d4;

    --cyan: #19dcff;

    --border: rgba(0, 198, 255, 0.45);

    --border-light: rgba(130, 210, 235, 0.18);

    --pink: #ff3d9a;

    --shadow:
        0 0 35px rgba(0, 190, 255, 0.14);

    --radius: 22px;

    --transition: 0.3s ease;
}


/* LIGHT MODE VARIABLES */

body.light {

    --bg: #eaf8fd;

    --bg-secondary: #d9f1f9;

    --card: rgba(255, 255, 255, 0.72);

    --card-hover: rgba(255, 255, 255, 0.95);

    --text: #092330;

    --muted: #526d79;

    --border: rgba(0, 145, 210, 0.35);

    --border-light: rgba(20, 100, 130, 0.15);

    --shadow:
        0 0 35px rgba(0, 150, 220, 0.13);
}


/* =========================================================
   2. RESET
   ========================================================= */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

    scroll-behavior: smooth;
}


html {

    overflow-x: hidden;

    scroll-behavior: smooth;
}


body {

    min-height: 100vh;

    overflow-x: hidden;

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

    color: var(--text);

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(0, 200, 255, 0.15),
            transparent 30%
        ),

        radial-gradient(
            circle at 90% 70%,
            rgba(0, 80, 255, 0.15),
            transparent 32%
        ),

        linear-gradient(
            135deg,
            var(--bg),
            var(--bg-secondary)
        );

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


body.light {

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(0, 190, 255, 0.12),
            transparent 30%
        ),

        linear-gradient(
            135deg,
            var(--bg),
            var(--bg-secondary)
        );
}


a {

    color: inherit;

    text-decoration: none;
}


button,
input,
textarea {

    font-family: inherit;
}


button {

    border: none;

    outline: none;
}


img {

    max-width: 100%;

    display: block;
}


section {

    scroll-margin-top: 100px;
}


/* =========================================================
   3. ANIMATED BACKGROUND
   ========================================================= */

.background {

    position: fixed;

    inset: 0;

    z-index: -10;

    overflow: hidden;

    pointer-events: none;
}


.blob {

    position: absolute;

    border-radius: 50%;

    filter: blur(80px);

    opacity: 0.3;

    animation:
        floating 12s ease-in-out infinite alternate;
}


.blob-1 {

    width: 350px;

    height: 350px;

    left: -100px;

    top: 5%;

    background: #008cff;
}


.blob-2 {

    width: 450px;

    height: 450px;

    right: -150px;

    top: 35%;

    background: #00d9ff;

    animation-delay: -4s;
}


.blob-3 {

    width: 320px;

    height: 320px;

    bottom: -100px;

    left: 35%;

    background: #004cff;

    animation-delay: -8s;
}


@keyframes floating {

    0% {

        transform:
            translate3d(0, 0, 0)
            scale(1);
    }

    100% {

        transform:
            translate3d(40px, -40px, 0)
            scale(1.12);
    }
}


/* GRID BACKGROUND */

.grid {

    position: absolute;

    inset: 0;

    opacity: 0.055;

    background-image:

        linear-gradient(
            rgba(0, 210, 255, 0.5) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(0, 210, 255, 0.5) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

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


/* =========================================================
   4. HEADER
   ========================================================= */

.header {

    position: fixed;

    top: 18px;

    left: 50%;

    transform: translateX(-50%);

    width: min(
        1180px,
        calc(100% - 32px)
    );

    height: 68px;

    z-index: 1000;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        0 22px
        0 28px;

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

    border-radius: 18px;

    background:
        rgba(3, 20, 31, 0.72);

    backdrop-filter: blur(20px);

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

    box-shadow: var(--shadow);
}


body.light .header {

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


/* LOGO */

.logo {

    font-size: 1.2rem;

    font-weight: 800;

    letter-spacing: -0.5px;
}


.logo span {

    color: var(--primary);
}


/* NAVBAR */

.navbar {

    display: flex;

    align-items: center;

    gap: 26px;
}


.navbar a {

    position: relative;

    color: var(--muted);

    font-size: 0.72rem;

    font-weight: 500;

    transition: var(--transition);
}


.navbar a:hover {

    color: var(--text);
}


.navbar a.active {

    color: var(--text);
}


.navbar a.active::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -9px;

    width: 100%;

    height: 2px;

    border-radius: 10px;

    background: var(--primary);

    box-shadow:
        0 0 10px var(--primary);
}


/* HEADER ACTIONS */

.header-actions {

    display: flex;

    align-items: center;

    gap: 8px;
}


/* THEME BUTTON */

.theme-btn {

    width: 36px;

    height: 36px;

    display: grid;

    place-items: center;

    cursor: pointer;

    color: var(--primary);

    background: transparent;

    transition: var(--transition);
}


.theme-btn:hover {

    transform:
        rotate(15deg)
        scale(1.1);
}


/* CV BUTTON */

.cv-btn {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding:
        10px
        15px;

    border-radius: 8px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #ff4f9a,
            #c72b7c
        );

    font-size: 0.67rem;

    font-weight: 700;

    box-shadow:
        0 8px 25px
        rgba(255, 50, 145, 0.2);

    transition: var(--transition);
}


.cv-btn:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 30px
        rgba(255, 50, 145, 0.4);
}


/* MOBILE MENU */

.menu-btn {

    display: none;

    width: 36px;

    height: 36px;

    place-items: center;

    color: var(--primary);

    background: transparent;

    cursor: pointer;

    font-size: 1rem;
}


/* =========================================================
   5. GENERAL SECTION
   ========================================================= */

.section {

    width:
        min(
            1180px,
            calc(100% - 32px)
        );

    margin:
        0 auto;
}


/* =========================================================
   6. HERO
   ========================================================= */

.hero {

    min-height: 100vh;

    padding:
        150px
        55px
        35px;

    display: flex;

    flex-direction: column;

    justify-content: center;

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

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

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

    border-radius:
        0
        0
        28px
        28px;

    background:
        linear-gradient(
            180deg,
            rgba(2, 19, 30, 0.18),
            rgba(3, 25, 39, 0.72)
        );

    box-shadow:
        0 25px 80px
        rgba(0, 0, 0, 0.25);
}


body.light .hero {

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


/* HERO CONTENT */

.hero-content {

    flex: 1;

    display: grid;

    grid-template-columns:
        0.9fr
        1.1fr;

    align-items: center;

    gap: 75px;
}


/* =========================================================
   7. PROFILE IMAGE
   ========================================================= */

.hero-image {

    position: relative;

    width:
        min(
            360px,
            100%
        );

    aspect-ratio: 1;

    margin: auto;

    display: grid;

    place-items: center;

    transition:
        transform 0.2s ease;
}


/* PROFILE */

.hero-image img {

    position: relative;

    z-index: 4;

    width: 62%;

    height: 76%;

    object-fit: cover;

    object-position: center top;

    border-radius:
        48%
        48%
        42%
        42%;

    filter:
        drop-shadow(
            0 0 22px
            rgba(0, 200, 255, 0.6)
        );

    mask-image:
        linear-gradient(
            to bottom,
            black 88%,
            transparent 100%
        );
}


/* GLOW */

.image-glow {

    position: absolute;

    width: 62%;

    height: 62%;

    border-radius: 50%;

    background:
        rgba(0, 200, 255, 0.3);

    filter:
        blur(38px);

    z-index: 1;
}


/* RINGS */

.image-ring {

    position: absolute;

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

    border-radius: 50%;

    box-shadow:
        0 0 18px
        rgba(0, 200, 255, 0.5);
}


.ring-one {

    width: 67%;

    height: 67%;

    z-index: 2;

    transform:
        rotate(-18deg);
}


.ring-two {

    width: 78%;

    height: 52%;

    z-index: 2;

    transform:
        rotate(35deg);

    border-color:
        rgba(0, 220, 255, 0.55);
}


/* ORBITS */

.orbit {

    position: absolute;

    border:
        1px solid
        rgba(0, 214, 255, 0.8);

    border-radius: 50%;

    z-index: 3;
}


.orbit-one {

    width: 76%;

    height: 30%;

    transform:
        rotate(-30deg);
}


.orbit-two {

    width: 42%;

    height: 85%;

    transform:
        rotate(25deg);
}


/* =========================================================
   8. HERO TEXT
   ========================================================= */

.hero-text {

    max-width: 620px;
}


.hello {

    color: var(--text);

    font-size: 0.78rem;

    font-weight: 500;
}


.hero-text h1 {

    margin:
        4px
        0;

    font-size:
        clamp(
            2.2rem,
            5vw,
            3.8rem
        );

    line-height: 1;

    font-weight: 800;

    letter-spacing: -2px;
}


.hero-text h1 span {

    color: var(--primary);

    text-shadow:
        0 0 20px
        rgba(0, 191, 255, 0.35);
}


.hero-text h2 {

    min-height: 32px;

    font-size:
        clamp(
            1rem,
            2vw,
            1.35rem
        );

    font-weight: 700;
}


.hero-text h2 span {

    color: var(--primary);

    text-shadow:
        0 0 20px
        rgba(0, 191, 255, 0.35);
}


/* DESCRIPTION */

.description {

    max-width: 600px;

    margin:
        20px
        0;

    color: var(--muted);

    font-size: 0.76rem;

    line-height: 1.8;
}


/* =========================================================
   9. SOCIAL ICONS
   ========================================================= */

.socials {

    display: flex;

    gap: 10px;

    margin-bottom: 18px;
}


.socials a {

    width: 30px;

    height: 30px;

    display: grid;

    place-items: center;

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

    border-radius: 7px;

    color: var(--primary);

    background:
        rgba(0, 180, 255, 0.06);

    font-size: 0.75rem;

    transition: var(--transition);
}


.socials a:hover {

    color: white;

    background: var(--primary);

    box-shadow:
        0 0 18px
        rgba(0, 191, 255, 0.45);

    transform:
        translateY(-3px);
}


/* =========================================================
   10. BUTTONS
   ========================================================= */

.hero-buttons {

    display: flex;

    gap: 10px;
}


.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-width: 90px;

    padding:
        10px
        17px;

    border-radius: 6px;

    font-size: 0.7rem;

    font-weight: 700;

    cursor: pointer;

    transition: var(--transition);
}


/* PRIMARY */

.primary-btn {

    color: #00141e;

    background:
        linear-gradient(
            135deg,
            #00d5ff,
            #00a5e8
        );

    box-shadow:
        0 8px 25px
        rgba(0, 191, 255, 0.18);
}


.primary-btn:hover {

    transform:
        translateY(-3px);

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


/* OUTLINE */

.outline-btn {

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

    color: var(--text);

    background:
        rgba(0, 191, 255, 0.04);
}


.outline-btn:hover {

    border-color:
        var(--primary);

    color:
        var(--primary);

    transform:
        translateY(-3px);
}


/* =========================================================
   11. STATISTICS
   ========================================================= */

.stats {

    display: grid;

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

    margin-top: 35px;

    padding-top: 22px;

    border-top:
        1px solid
        rgba(130, 190, 210, 0.2);
}


.stat {

    position: relative;

    min-height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 3px;
}


.stat:not(:last-child)::after {

    content: "";

    position: absolute;

    right: 0;

    height: 38px;

    width: 1px;

    background:
        rgba(130, 190, 210, 0.3);
}


.stat strong {

    font-size: 1.7rem;

    line-height: 1;
}


.stat > span {

    align-self: flex-start;

    color: var(--primary);

    font-size: 1rem;

    font-weight: 700;
}


.stat p {

    margin-left: 8px;

    color: var(--muted);

    font-size: 0.52rem;

    line-height: 1.35;
}


/* =========================================================
   12. SECTION HEADINGS
   ========================================================= */

.content-section {

    padding:
        120px
        0
        30px;
}


.section-heading {

    text-align: center;

    margin-bottom: 45px;
}


.section-heading p {

    color: var(--primary);

    font-size: 0.7rem;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 2px;
}


.section-heading h2 {

    margin-top: 5px;

    font-size:
        clamp(
            2rem,
            5vw,
            2.7rem
        );
}


.section-heading h2 span {

    color: var(--primary);
}


/* =========================================================
   13. GLASS CARD
   ========================================================= */

.glass {

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

    background:
        var(--card);

    backdrop-filter:
        blur(18px);

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

    box-shadow:
        var(--shadow);
}


/* =========================================================
   14. ABOUT
   ========================================================= */

.about-grid {

    display: grid;

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

    gap: 18px;
}


.about-card {

    padding: 30px;

    border-radius:
        var(--radius);

    transition:
        var(--transition);
}


.about-card:hover {

    transform:
        translateY(-7px);

    border-color:
        rgba(0, 204, 255, 0.8);

    box-shadow:
        0 15px 45px
        rgba(0, 191, 255, 0.13);
}


.about-icon {

    width: 48px;

    height: 48px;

    display: grid;

    place-items: center;

    margin-bottom: 20px;

    border-radius: 13px;

    color: var(--primary);

    background:
        rgba(0, 191, 255, 0.1);

    font-size: 1.2rem;
}


.about-card h3 {

    margin-bottom: 10px;

    font-size: 1.05rem;
}


.about-card p {

    color: var(--muted);

    font-size: 0.74rem;

    line-height: 1.8;
}


/* =========================================================
   15. SKILLS
   ========================================================= */

.skills-grid {

    display: grid;

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

    gap: 18px;
}


.skill-card {

    padding: 25px;

    border-radius:
        var(--radius);

    transition:
        var(--transition);
}


.skill-card:hover {

    transform:
        translateY(-7px);

    border-color:
        rgba(0, 204, 255, 0.8);

    box-shadow:
        0 15px 45px
        rgba(0, 191, 255, 0.13);
}


.skill-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 15px;
}


.skill-top > div {

    display: flex;

    align-items: center;

    gap: 12px;
}


.skill-top i {

    color: var(--primary);

    font-size: 1.5rem;
}


.skill-top h3 {

    font-size: 0.9rem;
}


.skill-top > span {

    color: var(--primary);

    font-size: 0.75rem;

    font-weight: 700;
}


/* PROGRESS BAR */

.progress {

    height: 6px;

    overflow: hidden;

    border-radius: 20px;

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


.progress span {

    display: block;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #007eff,
            #00d9ff
        );

    box-shadow:
        0 0 12px
        rgba(0, 207, 255, 0.65);

    transform-origin:
        left;

    animation:
        progressIn
        1.2s
        ease
        both;
}


@keyframes progressIn {

    from {

        transform:
            scaleX(0);
    }

    to {

        transform:
            scaleX(1);
    }
}


/* =========================================================
   16. SERVICES
   ========================================================= */

.services-grid {

    display: grid;

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

    gap: 18px;
}


.service-card {

    padding: 30px;

    border-radius:
        var(--radius);

    transition:
        var(--transition);
}


.service-card:hover {

    transform:
        translateY(-7px);

    border-color:
        rgba(0, 204, 255, 0.8);

    box-shadow:
        0 15px 45px
        rgba(0, 191, 255, 0.13);
}


.service-icon {

    width: 48px;

    height: 48px;

    display: grid;

    place-items: center;

    margin-bottom: 20px;

    border-radius: 13px;

    color: var(--primary);

    background:
        rgba(0, 191, 255, 0.1);

    font-size: 1.2rem;
}


.service-card h3 {

    margin-bottom: 10px;

    font-size: 1.05rem;
}


.service-card p {

    color: var(--muted);

    font-size: 0.74rem;

    line-height: 1.8;
}


.service-card a {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-top: 22px;

    color: var(--primary);

    font-size: 0.68rem;

    font-weight: 700;
}


.service-card a i {

    transition:
        var(--transition);
}


.service-card a:hover i {

    transform:
        translateX(5px);
}


/* =========================================================
   17. PORTFOLIO
   ========================================================= */

.portfolio-grid {

    display: grid;

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

    gap: 18px;
}


.project-card {

    overflow: hidden;

    border-radius:
        var(--radius);

    transition:
        var(--transition);
}


.project-card:hover {

    transform:
        translateY(-7px);

    box-shadow:
        0 15px 45px
        rgba(0, 191, 255, 0.15);
}


/* PROJECT IMAGE */

.project-image {

    position: relative;

    height: 210px;

    overflow: hidden;
}


.project-placeholder {

    width: 100%;

    height: 100%;

    display: grid;

    place-items: center;

    font-size: 3rem;

    color: var(--primary);

    background:

        radial-gradient(
            circle,
            rgba(0, 190, 255, 0.18),
            transparent 50%
        ),

        linear-gradient(
            135deg,
            #062c43,
            #041a29
        );
}


/* PROJECT OVERLAY */

.project-overlay {

    position: absolute;

    inset: 0;

    display: grid;

    place-items: center;

    opacity: 0;

    background:
        rgba(0, 15, 25, 0.68);

    transition:
        var(--transition);
}


.project-card:hover
.project-overlay {

    opacity: 1;
}


.project-overlay a {

    width: 48px;

    height: 48px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    color: #00141e;

    background:
        var(--primary);

    transition:
        var(--transition);
}


.project-overlay a:hover {

    transform:
        scale(1.1);

    box-shadow:
        0 0 25px
        rgba(0, 200, 255, 0.5);
}


/* PROJECT INFO */

.project-info {

    padding: 20px;
}


.project-info p {

    color: var(--primary);

    font-size: 0.62rem;

    margin-bottom: 5px;
}


.project-info h3 {

    font-size: 1rem;

    margin-bottom: 7px;
}


.project-info span {

    color: var(--muted);

    font-size: 0.62rem;
}


/* =========================================================
   18. CONTACT
   ========================================================= */

.contact-wrapper {

    display: grid;

    grid-template-columns:
        0.8fr
        1.2fr;

    gap: 20px;
}


.contact-info,
.contact-form {

    padding: 32px;

    border-radius:
        var(--radius);
}


.contact-info h3 {

    font-size: 1.4rem;

    margin-bottom: 12px;
}


.contact-info > p {

    color: var(--muted);

    font-size: 0.74rem;

    line-height: 1.8;

    margin-bottom: 25px;
}


/* CONTACT ITEM */

.contact-item {

    display: flex;

    align-items: center;

    gap: 13px;

    margin: 17px 0;

    color: var(--muted);

    font-size: 0.72rem;
}


.contact-item div {

    width: 38px;

    height: 38px;

    display: grid;

    place-items: center;

    border-radius: 9px;

    color: var(--primary);

    background:
        rgba(0, 191, 255, 0.1);
}


/* FORM */

.contact-form {

    display: flex;

    flex-direction: column;

    gap: 13px;
}


.input-row {

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 13px;
}


.input-box input,
.input-box textarea {

    width: 100%;

    border:
        1px solid
        rgba(110, 180, 205, 0.2);

    outline: none;

    border-radius: 9px;

    padding:
        13px
        15px;

    color: var(--text);

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

    font-size: 0.72rem;

    transition:
        var(--transition);

    resize: vertical;
}


.input-box input::placeholder,
.input-box textarea::placeholder {

    color: var(--muted);
}


.input-box input:focus,
.input-box textarea:focus {

    border-color:
        var(--primary);

    box-shadow:
        0 0 15px
        rgba(0, 191, 255, 0.1);
}


/* FORM MESSAGE */

.form-message {

    display: none;

    color: var(--primary);

    font-size: 0.7rem;
}


.form-message.show {

    display: block;
}


/* =========================================================
   19. FOOTER
   ========================================================= */

.footer {

    position: relative;

    width:
        min(
            1180px,
            calc(100% - 32px)
        );

    margin:
        90px
        auto
        0;

    padding:
        30px
        0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-top:
        1px solid
        rgba(120, 190, 210, 0.15);

    color: var(--muted);

    font-size: 0.65rem;
}


/* TOP BUTTON */

.top-btn {

    width: 38px;

    height: 38px;

    display: grid;

    place-items: center;

    border-radius: 9px;

    color: #00141e;

    background:
        var(--primary);

    transition:
        var(--transition);
}


.top-btn:hover {

    transform:
        translateY(-4px);

    box-shadow:
        0 0 20px
        rgba(0, 191, 255, 0.4);
}


/* =========================================================
   20. SCROLL REVEAL
   ========================================================= */

.reveal {

    opacity: 0;

    transform:
        translateY(35px);

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


.reveal.show {

    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   21. RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .hero {

        padding-left: 35px;

        padding-right: 35px;
    }


    .hero-content {

        gap: 35px;
    }


    .navbar {

        gap: 16px;
    }


    .navbar a {

        font-size: 0.66rem;
    }

}


/* =========================================================
   22. RESPONSIVE - MOBILE NAV
   ========================================================= */

@media (max-width: 800px) {


    /* HEADER */

    .header {

        padding:
            0 16px;
    }


    /* NAVBAR */

    .navbar {

        position: absolute;

        top: 78px;

        left: 0;

        right: 0;

        padding: 18px;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

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

        border-radius: 15px;

        background:
            rgba(3, 20, 31, 0.95);

        backdrop-filter:
            blur(20px);
    }


    body.light .navbar {

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


    .navbar.open {

        display: flex;
    }


    .navbar a {

        padding:
            13px
            8px;

        font-size: 0.75rem;
    }


    .navbar a.active::after {

        display: none;
    }


    /* MOBILE BUTTON */

    .menu-btn {

        display: grid;
    }


    .cv-btn {

        display: none;
    }


    /* HERO */

    .hero {

        padding:
            130px
            25px
            30px;
    }


    .hero-content {

        grid-template-columns:
            1fr;

        text-align: center;
    }


    .hero-image {

        width: 280px;
    }


    .hero-text {

        margin:
            auto;
    }


    .description {

        margin-left: auto;

        margin-right: auto;
    }


    .socials,
    .hero-buttons {

        justify-content: center;
    }


    /* STATS */

    .stats {

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

        row-gap: 20px;
    }


    .stat:nth-child(2)::after {

        display: none;
    }


    /* CARDS */

    .about-grid,
    .services-grid,
    .portfolio-grid {

        grid-template-columns:
            1fr;
    }


    .skills-grid {

        grid-template-columns:
            1fr;
    }


    /* CONTACT */

    .contact-wrapper {

        grid-template-columns:
            1fr;
    }

}


/* =========================================================
   23. RESPONSIVE - SMALL PHONE
   ========================================================= */

@media (max-width: 500px) {


    .section {

        width:
            min(
                calc(100% - 22px),
                1180px
            );
    }


    .hero {

        width:
            calc(100% - 22px);

        padding:
            115px
            18px
            25px;

        border-radius:
            0
            0
            20px
            20px;
    }


    .hero-image {

        width: 240px;
    }


    .hero-text h1 {

        font-size: 2.2rem;
    }


    .hero-text h2 {

        font-size: 0.95rem;
    }


    .description {

        font-size: 0.7rem;
    }


    /* STATISTICS */

    .stat strong {

        font-size: 1.35rem;
    }


    .stat p {

        font-size: 0.47rem;
    }


    /* FORM */

    .input-row {

        grid-template-columns:
            1fr;
    }


    /* CARDS */

    .contact-info,
    .contact-form,
    .about-card,
    .service-card,
    .skill-card {

        padding: 22px;
    }


    /* FOOTER */

    .footer {

        margin-top: 60px;

        padding-left: 10px;

        padding-right: 10px;
    }

}
.image-wrap {
  position: relative;
  width: 230px;          /* ទំហំរូប Profile */
  height: 230px;
}

.image-wrap img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-image {
  position: relative;
  width: 340px;
  height: 400px;
  flex-shrink: 0;
}

/* មនុស្សនៅកណ្តាល ជាប់បាតប្រអប់ */
.hero-image img {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 8%;                    /* រុញឡើងលើ (ពីមុន 0) */
  transform: translateX(-50%);
  width: 85%;
  height: auto;
  max-width: none;
  border-radius: 0;
}

/* blob នៅកណ្តាលដែរ ធំជាងរូបបន្តិច */
.image-glow {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%) rotate(-8deg);
  width: 96%;
  height: 80%;
  background: linear-gradient(160deg, #1ad0ff 0%, #0a7cff 100%);
  border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%;
  box-shadow:
    0 0 30px rgba(0, 191, 255, 0.8),
    0 0 80px rgba(0, 191, 255, 0.45);
}

/* បន្ទាត់សស្តើង ជុំវិញ blob */
.image-ring {
  display: none;
}

.ring-one {
  display: block;
  position: absolute;
  z-index: 0;                 /* នៅក្រោយទាំងអស់ */
  left: 50%;
  bottom: 12%;                /* លើកឡើងលើ កុំឱ្យជាប់ខ្លួន */
  transform: translateX(-50%) rotate(15deg);
  width: 100%;
  height: 80%;
  border: 2px solid transparent;
  border-right-color: #fff;   /* បន្ទាត់តែផ្នែកស្តាំ */
  border-top-color: #fff;     /* និងផ្នែកលើ */
  border-radius: 50%;
  pointer-events: none;
}

/* HERO PANEL LAYOUT */
.hero {
    width: min(1180px, calc(100% - 36px));
    min-height: max(600px, calc(100svh - 36px));
    margin: 18px auto 40px;
    padding: 96px 54px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(77, 213, 246, 0.62);
    border-radius: 27px;
    background: linear-gradient(115deg, rgba(2, 18, 28, 0.94), rgba(4, 28, 41, 0.86));
    box-shadow: 0 24px 80px rgba(0, 8, 16, 0.42), 0 0 28px rgba(0, 185, 228, 0.12);
}

body.light .hero {
    background: rgba(7, 34, 47, 0.88);
    color: #f5fbff;
}

.header {
    width: min(1180px, calc(100% - 36px));
    height: 64px;
    padding: 0 28px;
    border-color: rgba(77, 213, 246, 0.28);
    border-radius: 23px 23px 10px 10px;
    background: rgba(2, 18, 28, 0.48);
    box-shadow: none;
}

.hero-content {
    flex: 1;
    grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 5vw, 70px);
}

.hero-image {
    width: min(340px, 100%);
    height: min(390px, 48svh);
    min-height: 300px;
}

.hero-text {
    max-width: 560px;
}

.hero-text h1 {
    font-size: clamp(2.1rem, 4vw, 3.35rem);
}

.hero-text h2 {
    font-size: clamp(0.95rem, 1.7vw, 1.2rem);
}

.description {
    max-width: 560px;
    margin: 14px 0;
    font-size: 0.7rem;
    line-height: 1.75;
}

.stats {
    margin-top: 20px;
    padding-top: 17px;
}

@media (max-width: 800px) {
    .header {
        width: calc(100% - 28px);
        padding: 0 18px;
    }

    .hero {
        width: calc(100% - 28px);
        min-height: 0;
        padding: 102px 24px 25px;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        text-align: center;
    }

    .hero-image {
        width: min(270px, 80%);
        height: 300px;
        min-height: 250px;
    }

    .hero-text {
        margin: 0 auto;
    }

    .stats {
        margin-top: 26px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 14px;
    }

    .stat:not(:last-child)::after {
        display: none;
    }

    .stat:nth-child(odd)::after {
        display: block;
    }
}

@media (max-width: 500px) {
    .header {
        width: calc(100% - 22px);
        padding: 0 14px;
    }

    .hero {
        width: calc(100% - 22px);
        padding: 96px 18px 22px;
        border-radius: 22px;
    }

    .hero-image {
        width: min(245px, 82%);
        height: 280px;
        min-height: 240px;
    }

    .hero-text h1 {
        font-size: 2.05rem;
    }

    .hero-text h2 {
        font-size: 0.9rem;
    }

    .description {
        font-size: 0.66rem;
    }

    .stat strong {
        font-size: 1.35rem;
    }

    .stat p {
        font-size: 0.5rem;
    }
}