:root {
    --bg-color: #212121;
    --text-color: #efefef;
    --accent-color: #d4d4d4;
    /* Subtle gray for hover */
    --font-display: 'chainprinter', 'Courier New', Courier, monospace;
    /* Chainprinter from Adobe Typekit */
    --font-body: 'Montserrat', sans-serif;
    --spacing-unit: 2rem;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.burger-menu span {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem 2rem;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.hero-content {
    margin-bottom: 2rem;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--text-color);
    background: transparent;
    color: var(--text-color);
    font-family: var(--font-display);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Hero Video Slider */
.hero-video-slider {
    width: 100%;
    margin-top: 3rem;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.hero-video-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.hero-video-track video {
    width: 400px;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.hero-video-track video:hover {
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 10px));
        /* Move by half the width (3 videos + 3 gaps) */
    }
}

/* Adjust scroll animation calculation based on actual content width */
/* We have 8 videos (4 real + 4 duplicates). We want to scroll past the first 4. */
/* Each video is 400px + 20px gap = 420px. 4 videos = 1680px. */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-420px * 4));
    }
}

/* Intro Section */
.intro {
    padding: 6rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.intro p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Portfolio Carousel */
.portfolio {
    padding: 1rem 0 8rem;
    background-color: var(--bg-color);
    overflow: hidden;
}

.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4rem;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    transition: transform 0.5s ease;
    touch-action: pan-y;
}

.carousel-slide {
    min-width: 400px;
    max-width: 400px;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-slide:hover img {
    transform: scale(1.02);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.carousel-nav-prev {
    left: 1rem;
}

.carousel-nav-next {
    right: 1rem;
}

/* Services Section */
.services {
    padding: 6rem 2rem;
    border-top: 1px solid #333;
}

.services h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    border: 1px solid #333;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s ease;
}

.service-card:hover {
    border-color: var(--text-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card .price {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    display: block;
}

/* About Section */
.about {
    padding: 6rem 2rem;
    background-color: #1a1a1a;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-image {
    flex: 1;
    max-width: 400px;
}

.about-image img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    border-radius: 2px;
}

.about-text {
    flex: 1;
    text-align: left;
}

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

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.text-link {
    font-family: var(--font-display);
    font-size: 1rem;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.text-link:hover {
    border-bottom-color: var(--accent-color);
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .about-text {
        text-align: center;
    }
}

/* Process Section */
.process {
    padding: 6rem 2rem;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
}

.process h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.step-number {
    font-family: var(--font-display);
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Testimonials */
.testimonials {
    padding: 6rem 2rem 3rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial {
    margin-bottom: 4rem;
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

.author {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.1em;
}

/* Contact Section */
.contact {
    padding: 6rem 2rem 4rem;
    border-top: 1px solid #333;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid #555;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-color);
}

/* Footer */
footer {
    padding: 4rem 2rem;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

footer .socials {
    margin-bottom: 1.5rem;
}

footer .socials a {
    margin: 0 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .intro h2 {
        font-size: 1.5rem;
    }

    nav {
        padding: 1.5rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .burger-menu {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        border-left: 1px solid #333;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .carousel-container {
        padding: 0 2rem;
    }

    .carousel-slide {
        min-width: 280px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-nav-prev {
        left: 0.5rem;
    }

    .carousel-nav-next {
        right: 0.5rem;
    }
}

/* Portfolio Page Styles */
.portfolio-page {
    max-width: 1200px;
    margin: 120px auto 60px;
    /* Top margin to clear fixed nav */
    padding: 0 20px;
}

.portfolio-header {
    font-family: 'Chainprinter', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-color);
    letter-spacing: 2px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 Columns */
    gap: 40px;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-decoration: none;
    /* If we link them later */
}

.portfolio-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    /* Square aspect ratio */
    object-fit: cover;
    display: block;
    /* Optional: Add a subtle transition if needed */
    transition: opacity 0.3s ease;
}

.portfolio-image:hover {
    opacity: 0.9;
}

.portfolio-title {
    font-family: 'Chainprinter', sans-serif;
    font-size: 1.2rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    font-weight: normal;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        /* 1 Column on mobile */
        gap: 30px;
    }

    .portfolio-header {
        font-size: 2rem;
        margin-bottom: 40px;
    }
}