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

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


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


body {
    font-family: "Inter", sans-serif;
    background: #0E1117;
    color: #F8FAFC;
    line-height: 1.6;
    overflow-x: hidden;
}


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


a {
    color: inherit;
}


section {
    position: relative;
}


/* =========================
   NAVIGATION
========================= */

header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    padding: 0 20px;
}


nav {
    width: min(90%, 1100px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;

    background: rgba(22, 27, 34, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.18);
}


.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    line-height: 1.2;
}


.logo-main {
    color: #FFFFFF;
    font-size: 1rem;
}


.logo span:last-child {
    font-family: "Inter", sans-serif;
    font-size: 0.65rem;
    color: #94A3B8;
    margin-top: 3px;
}


nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
}


nav li {
    position: relative;
}


nav ul a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}


nav ul a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: #3B82F6;
    transition: width 0.3s ease;
}


nav ul a:hover {
    color: #FFFFFF;
}


nav ul a:hover::after {
    width: 100%;
}


/* =========================
   SHARED
========================= */

.section-label {
    color: #3B82F6;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 30px;

    border-radius: 50px;

    text-decoration: none;

    font-weight: 600;

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


.btn:hover {
    transform: translateY(-3px);
}


.primary-btn {
    background: #3B82F6;
    color: #FFFFFF;
}


.primary-btn:hover {
    background: #60A5FA;
}


.secondary-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.03);
}


.secondary-btn:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
}


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

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    position: relative;

    background:
        linear-gradient(
            90deg,
            rgba(14, 17, 23, 0.94) 0%,
            rgba(14, 17, 23, 0.76) 50%,
            rgba(14, 17, 23, 0.55) 100%
        ),
        url("https://images.unsplash.com/photo-1497366811353-6870744d04b2");

    background-size: cover;
    background-position: center;
}


.hero::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            0deg,
            #0E1117 0%,
            transparent 18%
        );

    pointer-events: none;
}


.hero-content {
    position: relative;
    z-index: 2;

    max-width: 850px;

    padding: 120px 50px 80px;
}


.hero h1 {
    font-family: "Poppins", sans-serif;

    font-size: clamp(3.2rem, 7vw, 6.5rem);

    line-height: 1.02;

    letter-spacing: -3px;

    max-width: 900px;

    margin-top: 15px;
}


.hero-description {
    margin-top: 28px;

    max-width: 650px;

    color: #B6C0CE;

    font-size: 1.08rem;
}


.hero-buttons {
    display: flex;

    gap: 16px;

    margin-top: 38px;
}


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

#about {
    padding: 140px 50px;
}


.about-content {
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

    align-items: start;
}


.about-heading h2 {
    font-family: "Poppins", sans-serif;

    font-size: clamp(2.4rem, 5vw, 4.3rem);

    line-height: 1.08;

    letter-spacing: -2px;

    margin-top: 18px;
}


.about-text {
    padding-top: 45px;
}


.about-text p {
    color: #94A3B8;

    font-size: 1.05rem;

    margin-bottom: 20px;

    max-width: 600px;
}


/* About image */

.about-visual {
    max-width: 1000px;

    margin: 90px auto 0;

    position: relative;
}


.about-visual img {
    height: 520px;

    object-fit: cover;

    border-radius: 28px;

    filter: saturate(0.85);
}


.visual-caption {
    position: absolute;

    right: 25px;
    bottom: 25px;

    display: flex;
    gap: 15px;

    padding: 13px 18px;

    background: rgba(14, 17, 23, 0.72);

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

    border: 1px solid rgba(255,255,255,0.12);

    border-radius: 50px;

    font-size: 0.8rem;
}


.visual-caption span:last-child {
    color: #94A3B8;
}


/* About cards */

.about-cards {
    max-width: 1200px;

    margin: 70px auto 0;

    display: grid;

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

    gap: 20px;
}


.about-card {
    padding: 32px;

    background: #161B22;

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 20px;

    transition:
        transform 0.35s ease,
        border-color 0.35s ease;
}


.about-card:hover {
    transform: translateY(-7px);

    border-color: rgba(59,130,246,0.7);
}


.card-number {
    color: #3B82F6;

    font-size: 0.8rem;

    font-weight: 600;
}


.about-card h3 {
    font-family: "Poppins", sans-serif;

    margin: 18px 0 10px;
}


.about-card p {
    color: #94A3B8;
}


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

#skills {
    padding: 140px 50px;
}


.skills-header {
    max-width: 850px;

    margin: 0 auto 70px;

    text-align: center;
}


.skills-header h2 {
    font-family: "Poppins", sans-serif;

    font-size: clamp(2.4rem, 5vw, 4rem);

    line-height: 1.1;

    letter-spacing: -2px;

    margin-top: 18px;
}


.skills-grid {
    max-width: 1200px;

    margin: auto;

    display: grid;

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

    gap: 20px;
}


.skill-card {
    padding: 40px 35px;

    background:
        linear-gradient(
            145deg,
            rgba(22,27,34,1),
            rgba(22,27,34,0.65)
        );

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 24px;

    transition:
        transform 0.35s ease,
        border-color 0.35s ease;
}


.skill-card:hover {
    transform: translateY(-8px);

    border-color: rgba(59,130,246,0.65);
}


.skill-icon {
    color: #3B82F6;

    font-size: 0.8rem;

    font-weight: 600;
}


.skill-card h3 {
    font-family: "Poppins", sans-serif;

    font-size: 1.6rem;

    margin: 18px 0 12px;
}


.skill-card p {
    color: #94A3B8;
}


/* =========================
   WORK
========================= */

#work {
    padding: 140px 50px;
}


.work-header {
    max-width: 850px;

    margin: 0 auto 80px;

    text-align: center;
}


.work-header h2 {
    font-family: "Poppins", sans-serif;

    font-size: clamp(2.4rem, 5vw, 4rem);

    line-height: 1.1;

    letter-spacing: -2px;

    margin-top: 18px;
}


.work-grid {
    max-width: 1200px;

    margin: auto;

    display: grid;

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

    gap: 28px;
}


.project-card {
    position: relative;

    background: #161B22;

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 26px;

    overflow: visible;

    transition:
        transform 0.4s ease,
        border-color 0.4s ease;
}


.project-card:hover {
    transform: translateY(-8px);

    border-color: rgba(59,130,246,0.55);
}


/* Featured project */

.project-featured {
    grid-column: 1 / -1;

    display: grid;

    grid-template-columns: 1.2fr 0.8fr;

    min-height: 560px;

    overflow: visible;
}


.project-image {
    position: relative;

    min-height: 280px;

    overflow: hidden;

    border-radius: 26px 0 0 26px;

    background: #0E1117;
}


.project-image img {
    height: 100%;

    object-fit: cover;

    transition: transform 0.6s ease;
}


.project-card:hover .project-image img {
    transform: scale(1.04);
}


.image-label {
    position: absolute;

    top: 20px;
    left: 20px;

    padding: 8px 13px;

    border-radius: 50px;

    background: rgba(14,17,23,0.72);

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

    border: 1px solid rgba(255,255,255,0.12);

    font-size: 0.75rem;

    color: #FFFFFF;
}


.project-content {
    padding: 48px;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.project-type {
    color: #3B82F6;

    font-size: 0.75rem;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}


.project-content h3 {
    font-family: "Poppins", sans-serif;

    font-size: clamp(1.8rem, 3vw, 2.5rem);

    margin: 13px 0 18px;
}


.project-content p:not(.project-type) {
    color: #94A3B8;
}


.project-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 25px;
}


.project-tags span {
    padding: 6px 12px;

    border-radius: 50px;

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

    color: #DCE3EC;

    font-size: 0.75rem;
}


/* Floating image */

.project-float-image {
    position: absolute;

    width: 210px;

    height: 145px;

    right: 25px;

    bottom: -55px;

    padding: 7px;

    background: #0E1117;

    border-radius: 18px;

    box-shadow: 0 20px 50px rgba(0,0,0,0.45);

    transform: rotate(3deg);

    transition:
        transform 0.4s ease;
}


.project-float-image img {
    height: 100%;

    object-fit: cover;

    border-radius: 13px;
}


.project-featured:hover .project-float-image {
    transform: rotate(0deg) translateY(-5px);
}


/* Other project cards */

.project-offset {
    margin-top: 30px;
}


.project-offset .project-image {
    border-radius: 26px 26px 0 0;

    min-height: 240px;
}


.project-image-placeholder {
    height: 100%;

    min-height: 240px;

    display: flex;

    align-items: center;

    justify-content: center;

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

    font-size: 4rem;

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


.project-offset .project-content {
    padding: 35px;
}


.project-visual .project-image {
    min-height: 360px;

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


.project-visual .project-content {
    padding: 35px;
}


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

#personal-projects {
    padding: 150px 50px;
}


.personal-header {
    max-width: 800px;

    margin: 0 auto 75px;

    text-align: center;
}


.personal-header h2 {
    font-family: "Poppins", sans-serif;

    font-size: clamp(2.4rem, 5vw, 4rem);

    line-height: 1.1;

    letter-spacing: -2px;

    margin-top: 18px;
}


.personal-grid {
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 28px;
}


.personal-card {
    background: #161B22;

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 26px;

    overflow: hidden;

    transition:
        transform 0.4s ease,
        border-color 0.4s ease;
}


.personal-card:hover {
    transform: translateY(-8px);

    border-color: rgba(59,130,246,0.55);
}


.personal-image {
    height: 340px;

    overflow: hidden;

    background: #0E1117;
}


.personal-image img {
    height: 100%;

    object-fit: cover;

    transition: transform 0.6s ease;
}


.personal-card:hover .personal-image img {
    transform: scale(1.04);
}


.personal-card-content {
    padding: 35px;
}


.personal-card-content h3 {
    font-family: "Poppins", sans-serif;

    font-size: 2rem;

    margin: 12px 0 15px;
}


.personal-card-content p:not(.project-type) {
    color: #94A3B8;
}


.personal-secondary-visual {
    width: 280px;

    margin: 70px auto 0;

    transform: rotate(-4deg);

    padding: 8px;

    background: #161B22;

    border: 1px solid rgba(255,255,255,0.1);

    border-radius: 18px;

    box-shadow: 0 20px 50px rgba(0,0,0,0.35);

    transition: transform 0.4s ease;
}


.personal-secondary-visual:hover {
    transform: rotate(0deg) translateY(-5px);
}


.personal-secondary-visual img {
    border-radius: 11px;
}


/* =========================
   EXPERIENCE
========================= */

#experience {
    padding: 140px 50px;
}


.experience-header {
    max-width: 850px;

    margin: 0 auto 75px;

    text-align: center;
}


.experience-header h2 {
    font-family: "Poppins", sans-serif;

    font-size: clamp(2.4rem, 5vw, 4rem);

    line-height: 1.1;

    letter-spacing: -2px;

    margin-top: 18px;
}


.timeline {
    max-width: 900px;

    margin: auto;
}


.timeline-item {
    display: grid;

    grid-template-columns: 130px 1fr;

    gap: 40px;

    padding: 35px;

    background: #161B22;

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 20px;

    margin-bottom: 18px;

    transition:
        transform 0.35s ease,
        border-color 0.35s ease;
}


.timeline-item:hover {
    transform: translateX(6px);

    border-color: rgba(59,130,246,0.5);
}


.timeline-date {
    color: #3B82F6;

    font-weight: 600;
}


.timeline-content h3 {
    font-family: "Poppins", sans-serif;

    font-size: 1.45rem;
}


.timeline-content h4 {
    color: #94A3B8;

    font-weight: 500;

    margin: 5px 0 12px;
}


.timeline-content p {
    color: #94A3B8;
}


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

#contact {
    min-height: 80vh;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 140px 50px;
}


.contact-content {
    width: min(100%, 850px);
}


.contact-content h2 {
    font-family: "Poppins", sans-serif;

    font-size: clamp(2.8rem, 6vw, 5rem);

    line-height: 1.05;

    letter-spacing: -2px;

    margin: 18px 0;
}


.contact-content > p:not(.section-label) {
    color: #94A3B8;

    max-width: 650px;

    margin: 0 auto;
}


/* Form */

.contact-form {
    margin-top: 45px;

    text-align: left;
}


.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;
}


.contact-form input,
.contact-form textarea {
    width: 100%;

    margin-bottom: 15px;

    padding: 16px 18px;

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

    font-size: 0.95rem;

    color: #F8FAFC;

    background: rgba(22,27,34,0.8);

    border: 1px solid rgba(255,255,255,0.1);

    border-radius: 14px;

    outline: none;

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


.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(59,130,246,0.8);

    background: #161B22;
}


.contact-form textarea {
    resize: vertical;

    min-height: 150px;
}


.contact-form button {
    border: none;

    cursor: pointer;

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

    font-size: 0.95rem;
}


.contact-links {
    margin-top: 30px;
}


.contact-links a {
    color: #94A3B8;

    text-decoration: none;

    transition: color 0.3s ease;
}


.contact-links a:hover {
    color: #FFFFFF;
}


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

footer {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 30px 50px;

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

    color: #64748B;

    font-size: 0.8rem;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    nav {
        width: 94%;
    }


    nav ul {
        gap: 18px;
    }


    nav ul a {
        font-size: 0.8rem;
    }


    .about-content {
        grid-template-columns: 1fr;

        gap: 25px;
    }


    .about-text {
        padding-top: 0;
    }


    .about-cards {
        grid-template-columns: 1fr;
    }


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


    .project-featured {
        grid-template-columns: 1fr;
    }


    .project-featured .project-image {
        min-height: 400px;

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


    .project-float-image {
        right: 20px;

        bottom: -45px;
    }


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


    .project-offset {
        margin-top: 0;
    }


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

}


@media (max-width: 700px) {

    header {
        top: 10px;

        padding: 0 10px;
    }


    nav {
        padding: 13px 18px;

        border-radius: 16px;
    }


    .logo-main {
        font-size: 0.9rem;
    }


    nav ul {
        gap: 12px;
    }


    nav ul li:nth-child(4) {
        display: none;
    }


    nav ul a {
        font-size: 0.72rem;
    }


    .hero-content {
        padding: 130px 25px 80px;
    }


    .hero h1 {
        font-size: clamp(2.8rem, 13vw, 4.5rem);

        letter-spacing: -2px;
    }


    .hero-description {
        font-size: 1rem;
    }


    .hero-buttons {
        flex-direction: column;

        align-items: stretch;

        max-width: 300px;
    }


    .btn {
        text-align: center;
    }


    #about,
    #skills,
    #work,
    #personal-projects,
    #experience,
    #contact {
        padding-left: 25px;

        padding-right: 25px;
    }


    .about-visual {
        margin-top: 60px;
    }


    .about-visual img {
        height: 400px;
    }


    .visual-caption {
        left: 15px;

        right: 15px;

        justify-content: center;
    }


    .project-content {
        padding: 30px 25px;
    }


    .project-featured .project-image {
        min-height: 300px;
    }


    .project-float-image {
        width: 155px;

        height: 110px;

        bottom: -40px;

        right: 15px;
    }


    .personal-image {
        height: 280px;
    }


    .personal-card-content {
        padding: 28px 25px;
    }


    .timeline-item {
        grid-template-columns: 1fr;

        gap: 10px;

        padding: 28px 25px;
    }


    .form-row {
        grid-template-columns: 1fr;

        gap: 0;
    }


    footer {
        flex-direction: column;

        gap: 8px;

        text-align: center;

        padding: 25px;
    }

}


@media (max-width: 480px) {

    nav ul li:nth-child(3) {
        display: none;
    }


    .hero h1 {
        font-size: 2.75rem;
    }


    .about-heading h2,
    .skills-header h2,
    .work-header h2,
    .personal-header h2,
    .experience-header h2 {
        font-size: 2.4rem;
    }


    .about-visual img {
        height: 330px;
    }


    .project-float-image {
        display: none;
    }


    .personal-secondary-visual {
        width: 220px;
    }

}

/* =========================
IMAGE OVERLAY
========================= */

/* Main image darkening */
.about-visual img,
.project-image img,
.personal-image img,
.personal-secondary-visual img {
filter:
brightness(0.72)
saturate(0.85);

```
transition:
    filter 0.4s ease,
    transform 0.6s ease;
```

}

/* Subtle brightness increase on hover */
.about-visual:hover img,
.project-card:hover .project-image img,
.personal-card:hover .personal-image img,
.personal-secondary-visual:hover img {
filter:
brightness(0.82)
saturate(0.9);
}

/* Keep the TBN floating editing image darker */
.project-float-image img {
filter:
brightness(0.78)
saturate(0.85);

```
transition:
    filter 0.4s ease,
    transform 0.6s ease;
```

}

.project-featured:hover .project-float-image img {
filter:
brightness(0.84)
saturate(0.9);
}
