:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --accent-color: #000000;
    --font-main: 'Montserrat', sans-serif;
    --transition-speed: 0.5s;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 10;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    /* White logo for video background */
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    /* Black overlay 0.2 opacity */
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.headline {
    font-size: 4.5rem;
    /* Slightly larger for impact */
    font-weight: 300;
    /* Lighter weight for minimalism */
    line-height: 1.2;
    color: #ffffff;
    /* White text for video background */
}

.dynamic-word-container {
    display: inline-block;
    position: relative;
    height: 1.2em;
    overflow: visible;
    /* Changed from hidden to visible to prevent blur clipping */
    vertical-align: bottom;
    /* width is set dynamically by JS */
    text-align: left;
    font-weight: 600;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    /* Smooth width transition */
}

.dynamic-word {
    display: block;
    /* Animation handled by JS transitions */
}

/* Clients Section */
.clients {
    padding: 4rem 0;
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 400;
    color: #666;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
    /* Slower for elegance */
}

.client-logo {
    display: inline-block;
    height: 40px;
    width: auto;
    margin: 0 3rem;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: opacity 0.3s ease, filter 0.3s ease;
    vertical-align: middle;
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

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

    100% {
        transform: translateX(-50%);
    }
}

/* Projects Section */
.projects {
    padding: 8rem 2rem;
    background-color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
    /* More whitespace */
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background-color: transparent;
    border-radius: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
    /* Remove underline from links */
    display: block;
    /* Ensure anchor behaves like block */
}

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

.project-image-placeholder {
    width: 100%;
    height: 250px;
    background-color: #f0f0f0;
    margin-bottom: 1.5rem;
    transition: transform 0.6s ease, filter 0.6s ease;
    transform: scale(1);
    filter: grayscale(100%);
    /* Start grayscale */
    overflow: hidden;
    position: relative;
}

.project-card:hover .project-image-placeholder,
.project-card .project-image-placeholder.playing {
    transform: scale(1.03);
    filter: grayscale(0%);
    /* Full color on hover or when playing */
}

.project-title {
    padding: 0;
    font-size: 1.5rem;
    font-weight: 300;
    color: #000;
}

/* Contact Section */
.contact {
    padding: 8rem 2rem;
    text-align: center;
    background-color: #fafafa;
}

.contact-content {
    max-width: 500px;
    margin: 0 auto;
    min-height: 450px;
    /* prevent layout shift when form disappears */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* center content vertically if needed */
}

.contact p {
    font-size: 2rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ccc;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.3s;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: #000;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    font-weight: 300;
}

.contact-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 500;
    border-radius: 0;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: 1rem;
    align-self: center;
}

.contact-button:hover {
    background-color: #333;
    transform: translateY(-2px);
}


/* Scroll Indicator */
.scroll-indicator-container {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: blurFadeInDown 1.5s ease-out 1.5s forwards;
    /* 1.5s delay */
    cursor: pointer;
    pointer-events: auto;
    /* Enable clicks */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    /* Spacing between text and arrow */
    z-index: 20;
}

.scroll-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 400;
    /* Increased weight */
    color: #cccccc;
    /* Light gray */
    opacity: 0.9;
    white-space: nowrap;
}

.scroll-indicator {
    width: 24px;
    height: 24px;
    border-bottom: 1.5px solid #cccccc;
    /* Thinner and light gray */
    border-right: 1.5px solid #cccccc;
    /* Thinner and light gray */
    transform: rotate(45deg);
    animation: floatIdle 3s ease-in-out infinite;
}

@keyframes blurFadeInDown {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: translateX(-50%) translateY(-20px);
    }

    100% {
        opacity: 0.8;
        filter: blur(0);
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes floatIdle {

    0%,
    100% {
        transform: rotate(45deg) translate(0, 0);
    }

    50% {
        transform: rotate(45deg) translate(6px, 6px);
        /* Moves purely down in 45deg rotation */
    }
}

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

    .dynamic-word-container {
        /* Width handled by JS */
    }

    .projects-grid {
        gap: 2rem;
    }
}

.form-status {
    margin-top: 1rem;
    font-weight: 400;
    /* Regular weight */
    text-align: center;
    color: var(--text-color);
    /* match site text color */
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 1rem !important;
    /* Force Reset to normal size */
}

/* Ensure paragraph inside form-status inherits the small size, overriding .contact p */
.form-status p {
    font-size: 1rem !important;
    margin-bottom: 0;
    /* Removing extra bottom margin if needed */
}

.form-status.visible {
    opacity: 1;
}

.form-status.success {
    color: var(--text-color);
    /* use site text color for success */
}

.form-status.error {
    color: #FF9494;
    /* error red */
}

/* Utility class to hide the form or elements */
.hidden {
    display: none !important;
    /* Force hide */
}

#reset-button {
    margin-top: 2rem;
    background-color: transparent;
    border: none;
    color: var(--text-color);
    text-decoration: none;
    padding: 0;
    font-size: 0.9rem;
    /* Match standard button text size or slightly smaller */
    cursor: pointer;
    font-weight: 400;
}

#reset-button:hover {
    background-color: transparent;
    color: var(--text-color);
    text-decoration: underline;
    transform: none;
    /* Remove the lift effect if not desired for link-style buttons */
}

/* Utility to make the success message large like the headline */
.text-large p {
    font-size: 2rem !important;
    /* Match headline size */
    font-weight: 300;
    /* Match headline weight */
    margin-bottom: 2rem;
    /* Add spacing before the button */
}