html,
body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    min-width: 0;
}

main {
    width: 100%;
    max-width: 100%;
}


:root {
    --navy: #071827;
    --navy-light: #0d263b;
    --cream: #f5f1e8;
    --white: #fffefa;
    --lime: #c9f558;
    --blue: #4bb8ff;
    --purple: #9b87f5;
    --coral: #ff7d6c;
    --text: #13202a;
    --muted: #66737c;
    --line: rgba(19, 32, 42, 0.15);
    --shadow: 0 24px 60px rgba(7, 24, 39, 0.14);
}

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

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

body {
    overflow-x: hidden;
    color: var(--text);
    background: var(--cream);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

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

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


header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    background: rgba(7, 24, 39, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
}

.navbar {
    width: min(1180px, 90%);
    height: 76px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.nav-logo h1 {
    color: var(--white);
    font-size: 20px;
    letter-spacing: 0.12em;
}

.nav-logo h1::after {
    content: ".";
    color: var(--lime);
}

nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.3vw, 34px);
}

nav a {
    position: relative;
    color: #b8c4ca;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.25s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -7px;
    height: 2px;
    background: var(--lime);
    transition: right 0.3s ease;
}

nav a:hover,
nav a:focus-visible {
    color: var(--white);
}

nav a:hover::after,
nav a:focus-visible::after {
    right: 0;
}


#menu-toggle,
.hamburger {
    display: none;
}


.home {
    min-height: 100vh;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 150px max(6vw, 28px) 90px;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    align-items: center;
    gap: 60px;
    color: var(--white);
    background: var(--navy);
}

.home::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.25;
    background-image:
        linear-gradient(rgba(201, 245, 88, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 245, 88, 0.12) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.home::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 360px;
    height: 360px;
    right: -100px;
    top: 130px;
    border-radius: 50%;
    background: var(--lime);
    filter: blur(2px);
    opacity: 0.12;
}

.home-content {
    max-width: 760px;
}

.greetings {
    margin-bottom: 24px;
    color: var(--lime);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fade-up 0.7s both;
}

.home-content h2 {
    margin-bottom: 2px;
    color: #aebbc2;
    font-size: clamp(28px, 3vw, 46px);
    font-weight: 500;
    letter-spacing: -0.04em;
    animation: fade-up 0.7s 0.1s both;
}

.home-content h1 {
    margin-bottom: 28px;
    color: var(--white);
    font-size: clamp(58px, 8.5vw, 124px);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.075em;
    animation: fade-up 0.7s 0.2s both;
}

.home-content h1::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 10px;
    border-radius: 50%;
    background: var(--lime);
}

.description {
    max-width: 620px;
    color: #aebbc2;
    font-size: clamp(16px, 1.5vw, 20px);
    animation: fade-up 0.7s 0.3s both;
}

.description b {
    color: var(--white);
}

.home-image {
    position: relative;
    justify-self: center;
    width: min(380px, 100%);
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: var(--navy-light);
    box-shadow: 18px 18px 0 var(--lime);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
    animation: fade-up 0.8s 0.2s both;
}

.home-image:hover {
   transform: rotate(0deg) translate(-8px, -8px);
    box-shadow: 27px 27px 0 var(--purple);
}

.home-image img{
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.05);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
             filter 0.5s ease;  
}
.home-image:hover img {
    transform: scale(1.05);
    filter: saturate(1.2) contrast(1.08);
}

/* Shared sections */
.about,
.skills,
.education {
    padding: 110px 30px;
}

.about h2,
.skills > h2,
.projects > h2,
.education > h2,
.contact h2 {
    margin-bottom: 55px;
    font-size: clamp(44px, 6vw, 76px);
    line-height: 1;
    letter-spacing: -0.055em;
}


.about {
    background: var(--cream);
}

.about-content {
    width: 100%;
    max-width: 768px;
    margin: auto;
}


.about-content  p {
    max-width: 940px;
    margin-bottom: 28px;
    color: #4f5c64;
    font-size: clamp(17px, 1.65vw, 22px);
    line-height: 1.85;
}

.about h2 {
    text-align:  left;
}


.about b {
    color: #654dd3;
}

/* Skills */
.skills {
    color: var(--white);
    background: var(--navy);
}

.skills-container {
    width: min(1180px, 100%);
    margin: auto;
    gap: 50px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);

}

.skill {
    min-height: 300px;
    position: relative;
    overflow: hidden;
    padding: 30px 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    transition: color 0.35s ease, transform 0.35s ease;
}

.skill::before {
    content: "";
    position: absolute;
    inset: 100% 0 0;
    background: var(--lime);
    transition: inset 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
     border: 1px solid #4bb8ff;
}

.skill:nth-child(2)::before { background: var(--purple); }
.skill:nth-child(3)::before { background: var(--coral); }
.skill:nth-child(4)::before { background: var(--blue); } 

.skill:hover {
    color: var(--navy);
    transform: translateY(-8px);
}

.skill:hover::before {
 top: 0;
right: 0;
bottom: 0;
left: 0;
}

.skill > * {
    position: relative;
    z-index: 1;
}

.skill .icon {
    font-size: 45px;
    margin-bottom: 20px;
}

.skill .icon i {
    font-size: 45px;
}

.skill h3 {
    margin: 75px 0 18px;
    font-size: 50px;
    letter-spacing: -0.05em;
}

.skill p {
    color: #93a1a9;
    font-size: 14px;
    line-height: 1.7;
    transition: color 0.35s ease;
}

.skill:hover p {
    color: #26343c;
}


.skill:hover p {
    color: #26343c;
}

/* Project */
.projects {
    margin: 110px;
    padding: 110px max(7vw, 28px);
    color: var(--text);
    background: var(--lime);
}

.projects-container {
    width: min(1180px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    grid-template-rows: auto auto auto;
    gap: 22px 60px;
    align-items: start;
}

.projects-container img {
    grid-row: 1 / 5;
    width: 100%;
    border: 1px solid rgba(7, 24, 39, 0.35);
    box-shadow: 16px 16px 0 var(--navy);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.projects-container:hover img {
    transform: translate(-5px, -5px);
    box-shadow: 24px 24px 0 var(--purple);
}

.projects-container h3 {
    margin-top: 24px;
    font-size: 50px;
    line-height: 1;
    letter-spacing: -0.055em;
}

.projects-container p {
    color: #39463f;
    font-size: 16px;
    line-height: 1.75;
}

.projects-container a {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
    color: var(--white);
    background: var(--navy);
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.3s ease, background 0.3s ease;
}

.projects-container a::after {
    content: "↗";
    font-size: 20px;
}

.projects-container a:hover {
    background: #654dd3;
    transform: translateY(-4px);
}


.education {
    background: var(--cream);
    color: var(--text);
}

.education-container {
    width: min(1080px, 100%);
    margin: auto;
    border-top: 1px solid var(--line);
}

.education-item {
    position: relative;
    padding: 35px 180px 35px 30px;
    border-bottom: 1px solid var(--line);
    transition: padding 0.3s ease, background 0.3s ease;
}

.education-item:hover {
    padding-left: 48px;
    background: var(--white);
}

.education-item h3 {
    margin: 18px 0 8px;
    font-size: clamp(24px, 3vw, 38px);
    letter-spacing: -0.04em;
}

.education-item h3:first-child {
    margin-top: 0;
    
}

.education-item p {
    margin: 4px 0;
    color: var(--muted);
}

.education-item p:last-child {
    color: #654dd3;
    font-weight: 700;
}

.contact {
    margin: 110px ;
    padding: 110px max(7vw, 28px);
    color: var(--white);
    background: var(--navy);
}

.contact-container {
    width: min(1180px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-item {
    min-height: 180px;
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.contact-item:hover {
    color: var(--navy);
    background: var(--lime);
    transform: translateY(-7px);
}

.contact-item h3 {
    margin-bottom: 40px;
    font-size: 18px;
}

.contact-item a {
    display: inline-block;
    color: var(--lime);
    font-size: 13px;
    border-bottom: 1px solid currentColor;
}

.contact-item:hover a,
.contact-item:hover p {
    color: var(--navy);
}

.contact-item p {
    color: #9eabb2;
}

hr {
    display: none;
}

footer {
    padding: 38px max(7vw, 28px);
    color: #8b99a1;
    background: #040e17;
    text-align: center;
    font-size: 16px;
}

footer p  {
    margin-top: 5px;
}



@keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}


@media (max-width: 1000px) {

    .home {
        grid-template-columns: 1fr;
        padding: 135px 40px 90px;
    }

    .home-content {
        width: 100%;
        max-width: 760px;
    }

    .home-image {
        width: min(430px, 100%);
        justify-self: start;
    }

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

    .projects-container {
        grid-template-columns: 1fr;
    }

    .projects-container img {
        grid-row: auto;
    }

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




@media (max-width: 760px) {



    .navbar {
        width: 100%;
        height: 68px;
        padding: 0 24px;
    }

    .hamburger {
        width: 38px;
        height: 38px;
        display: grid;
        place-content: center;
        gap: 5px;
        cursor: pointer;
        border: 1px solid rgba(255, 255, 255, 0.18);
    }

    .hamburger span {
        display: block;
        width: 19px;
        height: 2px;
        background: var(--white);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    nav {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;

        width: 100%;
        max-height: 0;

        overflow: hidden;

        display: grid;
        gap: 0;

        padding: 0 24px;

        background: var(--navy);

        transition: max-height 0.4s ease,
                    padding 0.4s ease;
    }

    nav a {
        padding: 13px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav a::after {
        display: none;
    }

    #menu-toggle:checked ~ nav {
        max-height: 390px;
        padding-top: 10px;
        padding-bottom: 18px;
    }

    #menu-toggle:checked + .hamburger span:first-child {
        transform: translateY(7px) rotate(45deg);
    }

    #menu-toggle:checked + .hamburger span:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked + .hamburger span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }



    .home {
        width: 100%;
        min-height: auto;

        padding: 120px 24px 80px;

        display: grid;
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .home-content {
        width: 100%;
        max-width: 100%;
    }

    .home-content h1 {
        font-size: clamp(52px, 16vw, 82px);
        overflow-wrap: break-word;
    }

    .description {
        max-width: 100%;
    }

    .home-image {
        width: 100%;
        max-width: 350px;
        margin: auto;
        justify-self: center;
    }



    .about,
    .skills,
    .education {
        width: 100%;
        padding: 80px 24px;
    }

    .about-content {
        width: 100%;
        max-width: 100%;
    }




    .skills-container {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .skill {
        min-height: 240px;
        width: 100%;
    }

    .skill h3 {
        margin-top: 45px;
        font-size: 42px;
    }



    .projects {
        width: 100%;
        margin: 0;
        padding: 80px 24px;
    }

    .projects-container {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .projects-container img {
        width: 100%;
        box-shadow: 8px 8px 0 var(--navy);
    }

    .projects-container h3 {
        font-size: 42px;
    }



    .education-container {
        width: 100%;
    }

    .education-item {
        width: 100%;
        padding: 28px 10px;
    }

    .education-item:hover {
        padding-left: 20px;
    }



    .contact {
        width: 100%;
        margin: 0;
        padding: 80px 24px;
    }

    .contact-container {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .contact-item {
        width: 100%;
        min-height: 140px;
    }

    .contact-item h3 {
        margin-bottom: 25px;
    }



    footer {
        width: 100%;
        padding: 35px 24px;
    }
}




@media (max-width: 480px) {

    .navbar {
        padding: 0 18px;
    }

    .home {
        padding: 110px 18px 70px;
    }

    .home-content h1 {
        font-size: 52px;
    }

    .home-content h2 {
        font-size: 28px;
    }

    .description {
        font-size: 16px;
    }

    .home-image {
        max-width: 300px;
    }

    .about,
    .skills,
    .education {
        padding: 70px 18px;
    }

    .projects,
    .contact {
        padding: 70px 18px;
    }

    .about h2,
    .skills > h2,
    .projects > h2,
    .education > h2,
    .contact h2 {
        font-size: 48px;
        margin-bottom: 40px;
    }

    .skill h3,
    .projects-container h3 {
        font-size: 38px;
    }
}



@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;
    }
}