:root {
    --primary: #62c1bf;
    --secondary: #2d2d2d;
    --accent: #f4f5f5;
    --text: #333;
}

@font-face {
    font-family: 'Open Sauce One';
    src: url('fonts/OpenSauceOne-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #1e1e24;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #ffffff33;
    border-top: 6px solid #d64933; /* your primary color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sauce One', sans-serif;
}

body {
    background-color: var(--accent);
    color: var(--text);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--secondary);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--accent);
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    transition: all 0.3s ease;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--accent);
    cursor: pointer;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: url('img/banner.jpg') no-repeat center/cover;
    position: relative;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(30, 30, 36, 0.8) 0%, rgba(224, 213, 215, 0.34) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;

    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-style: normal;
}


.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary);
    transition: all 0.3s;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary);
}

.section {
    padding: 100px 0;
}

.section-dark {
    background-color: var(--secondary);
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;

    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-bottom: 5px solid var(--primary);
    transition: transform 0.3s;
    color: black;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;

    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.projects-grid,
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.section h3 {
    color: var(--primary);
    font-family: "Bebas Neue", sans-serif;
    font-size: 2rem;
    font-weight: 400;
}

.footer {
    background-color: var(--secondary);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer a {
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline; /* Optional: add hover effect */
}

.footer h3 {
    color: var(--primary);
    font-family: "Bebas Neue", sans-serif;
    font-size: 2rem;
}

form input,
form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
    background: #fff;
}

.about-content img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.about-text p {
    margin-bottom: 1rem;
}

form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 30px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        background-color: var(--secondary);
        width: 200px;
        display: none;
        padding: 20px;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: block;
    }

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

/* --- Projects carousel --- */
.carousel {
    position: relative;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 6px;
}

.carousel-track {
    display: flex;
    transition: transform 400ms ease;
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 0;
}

.carousel-slide img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.slide-caption h3 {
    color: var(--primary);
    font-family: "Bebas Neue", sans-serif;
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 400;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0,0,0,0.4);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 2;
}

.carousel-btn:hover { background: rgba(0,0,0,0.6); }

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* Mobile stacking to match your existing responsive layout */
@media (max-width: 768px) {
    .carousel-slide {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.carousel {
    cursor: pointer;
}
.carousel .carousel-btn {
    cursor: pointer; /* Still shows hand over arrows, but they're buttons */
}

/* Subtle darken effect on hover */
.carousel:hover img {
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

/* Optional: keep arrows at full brightness */
.carousel .carousel-btn:hover {
    filter: none;
}

/* --- Projects page --- */
.classy-grid {
    display: grid;
    gap: 32px;
}

/* Project card */
.project-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.project-card header h3 {
    margin: 0 0 6px 0;
    font-size: 1.6rem;
    letter-spacing: 0.2px;
}
.project-card .blurb {
    color: #555;
    margin: 0 0 16px 0;
}

/* Thumb grid that handles portrait/landscape nicely */
.project-card .thumbs {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
}
.project-card .thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    cursor: zoom-in;
    aspect-ratio: 4 / 3; /* sensible default; overridden below */
}

/* Give a masonry-like vibe with span utilities */
.project-card .thumbs img:nth-child(1) { grid-column: span 8; aspect-ratio: 16 / 9; }
.project-card .thumbs img:nth-child(2) { grid-column: span 4; aspect-ratio: 3 / 4; }
.project-card .thumbs img:nth-child(3) { grid-column: span 5; aspect-ratio: 3 / 4; }
.project-card .thumbs img:nth-child(4) { grid-column: span 7; aspect-ratio: 16 / 10; }

/* Responsive */
@media (max-width: 900px) {
    .project-card .thumbs { grid-template-columns: repeat(6, 1fr); }
    .project-card .thumbs img { grid-column: span 6 !important; aspect-ratio: 4 / 3; }
}

/* --- Lightbox --- */
.lightbox[hidden] { display: none; }
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10,10,12,0.9);
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    grid-template-rows: 60px 1fr 60px;
    align-items: center;
    justify-items: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}
.lb-figure {
    grid-column: 2;
    grid-row: 2;
    max-width: min(1200px, 92vw);
    max-height: 82vh;
    display: grid;
    gap: 10px;
    justify-items: center;
}
.lb-image {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.lb-caption {
    color: #eaeaea;
    font-size: 0.95rem;
    text-align: center;
}
.lb-counter {
    color: #bdbdbd;
    font-size: 0.85rem;
}

/* Lightbox buttons */
.lb-btn {
    border: none;
    background: rgba(255,255,255,0.08);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 22px;
    font-size: 24px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
}
.lb-btn:hover { background: rgba(255,255,255,0.18); }

.lb-prev { grid-column: 1; grid-row: 2; }
.lb-next { grid-column: 3; grid-row: 2; }
.lb-close {
    grid-column: 3;
    grid-row: 1;
    font-size: 28px;
    width: 40px;
    height: 40px;
    align-self: start;
    margin-top: 10px;
}

/* Backdrop should not intercept clicks meant for buttons or the figure */
.lightbox::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none; /* <-- add this */
}