:root {
    --bg: #121212;
    --surface: #1a1a1a;
    --text: #f5f5f5;
    --muted: #9b9b9b;
    --accent: #4CAF50;
    --accent-2: #00c9ff;
    --card: #1e1e1e;
    --max-w: 1200px;
    --gap: 28px;
    --container-pad: 24px;
}

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

html, body {
    height: 100%;
    font-family: 'Poppins', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

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

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* Header - use grid so nav stays right regardless of logo width */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: 70px;
    background: #fff;
    display: flex;
    align-items: center;
    z-index: 1200;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.header-inner {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
}

/* Logo left */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #111;
    font-weight: 700;
}

/* logo image sized to fit header */
.logo-img {
    display: block;
    width: 150px;
    height: 150px;
    object-fit: contain;
}

/* spacer (middle column) - keeps logo left and header-right on the right */
.spacer {
    width: 100%;
}

/* right-side wrapper: nav + CTA next to each other */
.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-self: end;
}

/* nav on the right next to CTA */
.main-nav {
    display: flex;
    gap: 22px;
    align-items: center;
}

.main-nav a {
    color: #333;
    padding: 8px;
    font-weight: 500;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s;
}

.main-nav a:hover {
    color: var(--accent);
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

/* CTA */
.header-cta .btn-outline {
    background: #111;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
}

/* HERO */
.hero {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/LottoParkV2.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: grayscale(100%) contrast(1.05) brightness(0.9);
    transform: translateZ(0);
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55));
    z-index: 1;
}

.hero-inner {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 56px var(--container-pad);
    position: relative;
    z-index: 2;
}

.hero-name {
    font-weight: 900;
    font-size: clamp(48px, 9vw, 96px);
    line-height: 0.95;
    letter-spacing: -1px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, .9);
    max-width: 720px;
    margin: 18px 0 26px;
}

/* Buttons */
.btn {
    background: var(--accent);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-block;
}

.btn-light {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .12);
}

/* WORK / Projects */
.projects {
    padding: 64px var(--container-pad);
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projects h2 {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 28px;
    font-weight: 800;
    text-align: center;
}

/* Work viewport centered */
.work-viewport {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    box-sizing: border-box;

    /* positioned ancestor for arrows */
    position: relative;
}

/* Work slider: default horizontal, desktop grid; mobile below */
.work-slider {
    display: flex;
    gap: var(--gap);
    overflow-x: auto;
    padding: 18px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    align-items: start;
    justify-content: center;
}

/* Project card - fixed desktop height so all three match visually */
.project-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform .18s, box-shadow .18s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.project-card-preview {
    height: 250px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background: #fff;
}

.project-card-preview .thumb {
    height: 280px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.project-card-preview h3 {
    padding: 10px 14px;
    background: #fff;
    color: #222;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    height: 40px;
    display: flex;
    align-items: center;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* project CTA inside card - push to bottom for consistent layout */
.project-card .btn {
    margin-top: auto;
    /* pushes CTA to bottom of card */
    border-radius: 8px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    padding: 10px 14px;
    font-weight: 700;
}

/* Desktop: grid-like centered presentation */
@media (min-width:960px) {
    .work-slider {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 320px;
        gap: 36px;
        overflow: visible;
        padding: 0;
        align-items: start;
        justify-content: start;
    }

    .project-card {
        flex: 0 0 auto;
        min-width: 0;
        width: 100%;
        max-width: none;
        height: 380px;
        /* ensure desktop fixed height kept */
    }

}

/* active emphasis */
.project-card.active {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .6);
    border-color: #000;
    background: #0f0f0f;
}

/* Banner (above About) */
.banner {
    padding: 42px 0;
    background: #111;
    color: #fff;
    text-align: center;
}

.banner h3 {
    text-align: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

/* ABOUT — white section */
.about {
    background: #fff;
    padding: 42px var(--container-pad) 56px;
    border-top: 1px solid #eee;
    color: #222;
}

.about-content {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    gap: 36px;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 0;
}

.about-img-bg {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    border: 6px solid #fff;
    overflow: hidden;
}

.about-image img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.about-text h2 {
    font-size: 2.4rem;
    color: #222;
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.about-text p {
    color: #444;
    line-height: 1.6;
    max-width: 720px;
}

.about-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.about-badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    background: #eee;
    color: #222;
    font-size: .85rem;
    box-shadow: none;
}

.about-badge:nth-child(1) {
    background: #e3f2fd;
    color: #1565c0;
}

.about-badge:nth-child(2) {
    background: #f3e5f5;
    color: #6a1b9a;
}

.about-badge:nth-child(3) {
    background: #fff3e0;
    color: #e65100;
}

.about-badge:nth-child(4) {
    background: #e8f5e9;
    color: #2e7d32;
}

.about-badge:nth-child(5) {
    background: #fce4ec;
    color: #c2185b;
}

/* LET'S TALK area */
.contact {
    position: relative;
    background: #0b0b0b;
    padding: 120px 24px 80px;
    border-top: 1px solid #0a0a0a;
    overflow: hidden;
    color: var(--text);
}

.contact::before {
    content: "LET'S TALK";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-weight: 900;
    font-size: clamp(80px, 18vw, 220px);
    color: rgba(255, 255, 255, 0.035);
    letter-spacing: 4px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

.contact-inner {
    position: relative;
    z-index: 5;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* grid layout */
.contact-grid {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    justify-content: center;
}

/* form column */
.contact-form {
    flex: 1;
    max-width: 680px;
    background: rgba(10, 10, 10, 0.6);
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* fields */
.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form label {
    color: var(--accent);
    font-weight: 700;
    font-size: .95rem;
}

.contact-form input, .contact-form textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: box-shadow .12s, border-color .12s;
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.45)
}

.contact-form input:focus, .contact-form textarea:focus {
    box-shadow: 0 6px 24px rgba(76, 175, 80, 0.12);
    border-color: var(--accent);
}

/* actions */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    margin-top: 4px;
}

.btn-submit {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    border: none;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.btn-submit:active {
    transform: translateY(1px)
}

.form-note {
    font-size: .85rem;
    color: rgba(255, 255, 255, 0.5);
    padding-left: 6px
}

/* success message (hidden by default) */
.form-success {
    display: none;
    margin-top: 10px;
    color: var(--accent);
    font-weight: 700
}

/* Footer */
footer {
    background: #0b0b0b;
    color: #9b9b9b;
    padding: 56px 24px 18px;
    border-top: 1px solid #111;
    display: flex;
    justify-content: center;
    text-align: center;
}

/* Project Detail Pages */
.project-hero {
    margin-top: 70px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--bg);
}

.project-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.08), rgba(0, 201, 255, 0.08));
    z-index: 0;
}

.project-hero .hero-inner {
    position: relative;
    z-index: 2;
}

.back-link {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 24px;
    transition: opacity .2s;
}

.back-link:hover {
    opacity: 0.8;
}

.project-title {
    font-weight: 900;
    font-size: clamp(36px, 7vw, 72px);
    line-height: 1.1;
    margin-bottom: 16px;
}

.project-intro {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 28px;
}

.project-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.meta-item {
    display: inline-block;
    background: rgba(76, 175, 80, 0.15);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.project-content {
    background: #fff;
    color: #222;
    padding: 80px var(--container-pad);
}

.project-detail {
    max-width: 800px;
    margin: 0 auto;
}

.project-detail h2 {
    font-size: 2rem;
    color: #222;
    margin: 40px 0 16px;
    font-weight: 700;
}

.project-detail h2:first-child {
    margin-top: 0;
}

.project-detail p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.project-detail ul {
    color: #444;
    line-height: 1.8;
    margin-left: 24px;
    margin-bottom: 20px;
}

.project-detail li {
    margin-bottom: 12px;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.project-gallery img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}


.project-image {
    margin: 40px 0;
}

.project-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.content-with-image {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 64px;
    align-items: flex-start;
    margin: 60px 0;
}

.content-text {
    flex: 1;
    padding-right: 24px;
}

.content-image {
    flex: 1;
    max-width: 320px;
    justify-self: end;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.project-nav {
    background: var(--bg);
    padding: 60px var(--container-pad);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive tweaks */
@media(max-width:1000px) {
    .logo-img {
        width: 100px;
        height: 100px;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .header-right {
        gap: 12px;
    }

    .contact-grid {
        flex-direction: column;
        gap: 22px;
        align-items: center;
    }

    .contact {
        padding: 64px 18px;
    }

    .contact::before {
        font-size: clamp(48px, 18vw, 120px)
    }

    .content-with-image {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media(max-width:600px) {
    .logo-img {
        width: 36px;
        height: auto;
    }

    .hero-inner {
        padding: 40px 18px;
    }

    .work-slider {
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding: 12px 18px;
        align-items: center;
        justify-content: center;
    }

    .project-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 720px;
        height: auto;
        /* let content determine height on mobile */
        padding: 14px;
    }

    .project-card .thumb {
        height: 160px;
    }

    .contact {
        padding: 48px 14px;
    }

    .contact::before {
        font-size: clamp(60px, 24vw, 140px);
    }

    /* collapse header-right: nav hidden, keep CTA */
    .main-nav {
        display: none;
    }

    .header-cta {
        justify-self: end;
    }
}