:root {
    --black: #0d0d0d;
    --gold: #e0a631;
    --white: #ffffff;
    --grey: #888888;
    --bar-bg: #2a2a2a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: 16px 36px;
    position: sticky;
    top: 0;
    background-color: var(--black);
    z-index: 100;
}

.logo img{
   height: 30px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
}

.nav-links a {
    font-size: 0.8rem;
    color: var(--grey);
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 3px;
}

#home {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: 30px 36px 0;
    min-height: 84vh;
}

.hero-text {
    max-width: 410px;
    padding-left: 6px;
    padding-bottom: 84px;
}

.hero-text .hello {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-text h1 {
    font-size: 4.1rem;
    font-weight: 800;
    line-height: 1.03;
}

.hero-text h1 span {
    color: var(--gold);
}

.hero-text .subtitle {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--white);
    margin: 16px 0 28px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.hero-image img {
    width: min(55vw, 520px);
    max-height: 79vh;
    object-fit: contain;
    border-radius: 0;
    display: block;
}

.btn-gold {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    padding: 10px 26px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 2px solid var(--gold);
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-gold:hover {
    opacity: 0.85;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--white);
    padding: 10px 26px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 2px solid var(--white);
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

#about {
    display: flex;
    align-items: flex-end;
    gap: 42px;
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: 72px 36px 84px;
}

.about-image {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
}

.about-image img {
    width: min(36vw, 300px);
    max-height: 55vh;
    object-fit: contain;
    border-radius: 0;
}

.about-content {
    max-width: 580px;
}

.section-watermark {
    position: relative;
    margin-bottom: 10px;
}

.section-watermark .watermark {
    position: absolute;
    top: -26px;
    left: 0;
    font-size: 5.2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    user-select: none;
}

.section-watermark h2 {
    font-size: 3.3rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.about-desc {
    color: var(--grey);
    font-size: 1.05rem;
    margin: 14px 0 24px;
    line-height: 1.8;
}

.about-info {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px 28px;
    margin-bottom: 24px;
}

.info-row {
    font-size: 1rem;
    display: contents;
}

.info-label {
    font-weight: 600;
    color: var(--white);
    margin-right: 0;
}

.info-value {
    color: var(--grey);
}

.project-count {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.project-count strong {
    color: var(--gold);
    font-size: 2rem;
}

#skills {
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: 72px 36px;
    text-align: center;
}

#skills .section-header {
    margin-bottom: 40px;
}

#skills .section-header .section-watermark {
    display: inline-block;
}

#skills .section-header p {
    color: var(--grey);
    font-size: 1rem;
    margin-top: 10px;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 34px;
    max-width: 1140px;
    margin: 0 auto;
    text-align: left;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    font-size: 1.55rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.skill-bar {
    background: var(--bar-bg);
    border-radius: 4px;
    height: 9px;
    overflow: hidden;
}

.skill-bar .fill {
    height: 100%;
    background: var(--gold);
    border-radius: 4px;
}

footer {
    text-align: center;
    padding: 30px;
    color: var(--grey);
    font-size: 0.95rem;
    border-top: 1px solid #1e1e1e;
}

@media (max-width: 1024px) {
    nav,
    #home {
        padding: 32px 22px 0;
    }

    #about,
    #skills {
        padding-left: 22px;
        padding-right: 22px;
    }

    .hero-text h1 {
        font-size: 3.2rem;
    }

    .hero-text .subtitle {
        font-size: 1.75rem;
    }

    .section-watermark h2 {
        font-size: 2.6rem;
    }

    .skill-label {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 18px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 12px 16px;
    }

    #home,
    #about {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 18px;
    }

    .hero-image,
    .about-image {
        width: 100%;
        justify-content: center;
    }

    .hero-image img,
    .about-image img {
        width: min(100%, 355px);
    }

    .hero-text h1 {
        font-size: 2.6rem;
    }

    .hero-text .subtitle {
        font-size: 1.4rem;
    }

    .section-watermark .watermark {
        font-size: 4rem;
    }

    .section-watermark h2 {
        font-size: 2.1rem;
    }

    .about-info {
        grid-template-columns: 130px 1fr;
        gap: 10px 16px;
    }

    .project-count,
    .project-count strong {
        font-size: 1.5rem;
    }

    #skills {
        padding: 68px 18px;
    }

    #skills .section-header p {
        font-size: 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .skill-label {
        font-size: 1.1rem;
    }
}

#projects {
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: 72px 36px;
    text-align: center;
}

#projects .section-header {
    margin-bottom: 50px;
}

#projects .section-header .section-watermark {
    display: inline-block;
}

#projects .section-header p {
    color: var(--grey);
    font-size: 1rem;
    margin-top: 10px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    max-width: 1140px;
    margin: 0 auto;
}

.project-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.project-card--link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(224, 166, 49, 0.2);
}

.project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 24px;
}

.project-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.project-content p {
    color: var(--grey);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.tag {
    background: var(--bar-bg);
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 12px;
}

.project-link {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s;
}

.project-link:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    #projects {
        padding: 68px 18px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .project-image {
        height: 200px;
    }

    .project-content h3 {
        font-size: 1.2rem;
    }
}

#contact {
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: 72px 36px;
    text-align: center;
}

#contact .section-header {
    margin-bottom: 50px;
}

#contact .section-header .section-watermark {
    display: inline-block;
}

#contact .section-header p {
    color: var(--grey);
    font-size: 1rem;
    margin-top: 10px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1140px;
    margin: 0 auto;
}

.contact-card {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 40px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    text-align: center;
    display: block;
    color: inherit;
    text-decoration: none;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(224, 166, 49, 0.2);
    background: #222222;
}

.contact-icon {
    color: var(--gold);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.contact-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--grey);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    #contact {
        padding: 68px 18px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .contact-card h3 {
        font-size: 1.2rem;
    }
}
