/* Reset & Variables */
:root {
    --bg-color: #F4F4F4;
    --text-color: #111111;
    --accent-color: #4F46E5;
    --grid-line: #E0E0E0;

    --font-head: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;

    --spacing-container: 5vw;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.site-container {
    max-width: 100vw;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography Utility */
.container {
    padding: 0 var(--spacing-container);
    max-width: 1600px;
    margin: 0 auto;
}

h1,
h2,
h3 {
    font-family: var(--font-head);
    font-weight: 800;
    text-transform: uppercase;
}

/* Header */
.header {
    padding: 2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    mix-blend-mode: difference;
    /* Cool blend effect over images */
    color: #fff;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .logo {
        font-size: 20px;
    }
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-contact {
    border: 1px solid currentColor;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 4rem;
}

.hero-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 80vh;
}

.hero-title {
    font-size: 6vw;
    line-height: 0.85;
    letter-spacing: -0.03em;
    color: var(--text-color);
}

.hero-title .line {
    overflow: hidden;
}

.hero-title .outline {
    -webkit-text-stroke: 2px var(--text-color);
    color: transparent;
    transition: color 0.3s ease;
}

.hero-title:hover .outline {
    color: var(--accent-color);
    -webkit-text-stroke: 0px;
}

@media (max-width: 768px) {
    .hero-title .outline {
        color: var(--accent-color);
        -webkit-text-stroke: 0px;
    }
}

.hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.hero-desc {
    max-width: 400px;
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 500;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.line-down {
    width: 1px;
    height: 60px;
    background-color: var(--text-color);
}

/* Marquee Section */
.marquee-section {
    padding: 4rem 0;
    border-top: 1px solid var(--grid-line);
    border-bottom: 1px solid var(--grid-line);
    background-color: var(--text-color);
    color: var(--bg-color);
    overflow: hidden;
}

.marquee {
    position: relative;
    width: 100vw;
    max-width: 100%;
    height: 100px;
    overflow-x: hidden;
}

.track {
    position: absolute;
    white-space: nowrap;
    will-change: transform;
    animation: marquee 20s linear infinite;
    display: flex;
    gap: 2rem;
}

.content {
    display: flex;
    gap: 6vw;
    margin-left: 3vw;
    align-items: center;
}

.content img {
    height: 80px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.content img:hover {
    opacity: 1;
}

/* Remove old divider styles since we aren't using them anymore */

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Work Section */
.work {
    padding: 8rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--grid-line);
    padding-bottom: 2rem;
    margin-bottom: 4rem;
    align-items: baseline;
}

.section-title {
    font-size: 4rem;
}

.section-subtitle {
    font-family: var(--font-body);
}

.work-grid {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.work-item {
    position: relative;
    group: cursor-hover;
    /* Custom cursor target */
}

.work-link {
    display: block;
}

.work-img {
    height: 70vh;
    background-color: #ddd;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
}

.work-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.placeholder-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: 800;
    color: #fff;
    background-color: #000;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-item:hover .placeholder-overlay {
    transform: scale(1.05);
}

.work-info {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.work-title {
    font-size: 2.5rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .work-title {
        font-size: 20px;
    }

    .work-cat {
        font-size: 10px;
    }
}

.work-cat {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border: 1px solid var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

/* Services */
.services {
    padding: 6rem 0;
    background-color: #fff;
}

.services-intro {
    margin-bottom: 6rem;
}

.big-text {
    font-size: 5vw;
    line-height: 1.1;
    font-weight: 700;
    font-family: var(--font-head);
    max-width: 90%;
}

.services-list {
    border-top: 1px solid var(--grid-line);
}

.service-item {
    border-bottom: 1px solid var(--grid-line);
    padding: 3rem 0;
    display: grid;
    grid-template-columns: 0.5fr 1.5fr 2fr;
    align-items: baseline;
    transition: background-color 0.3s ease;
}

.service-item:hover {
    background-color: #fafafa;
}

.service-item .num {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--accent-color);
}

.service-item h3 {
    font-size: 2.5rem;
}

.service-item p {
    font-size: 1.1rem;
    color: #555;
}

/* Footer Contact */
.footer-contact {
    padding: 8rem 0 4rem 0;
    background-color: var(--text-color);
    color: var(--bg-color);
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #888;
}

.big-email {
    font-family: var(--font-head);
    font-size: 3vw;
    display: block;
    margin-bottom: 6rem;
    font-weight: 800;
    transition: color 0.3s ease;
}

.big-email:hover {
    color: var(--accent-color);
}

.footer-links {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #333;
    padding-top: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #888;
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.socials a svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    display: block;
}

.socials a:hover {
    color: #fff;
    transform: translateY(-5px) scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 30px;
    }

    .section-title {
        font-size: 20px;
    }

    .service-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .big-email {
        font-size: 10vw;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .marquee-section .content {
        font-size: 2rem;
    }
}

/* Agency Form Styles */
.agency-form {
    max-width: 800px;
    margin: 0 auto 6rem auto;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.agency-form input,
.agency-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #555;
    padding: 1rem 0;
    color: var(--bg-color);
    font-family: var(--font-body);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.agency-form input::placeholder,
.agency-form textarea::placeholder {
    color: #888;
}

.agency-form input:focus,
.agency-form textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-color);
    padding-left: 1rem;
}

.btn-submit {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.btn-submit:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Form Messages */
.form-message {
    margin-top: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-message.success {
    color: #4ade80;
    /* Green */
}

.form-message.error {
    color: #ef4444;
    /* Red */
}

/* Work Overlay Styles */
.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .work-overlay {
        font-size: 10px;
    }
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-overlay::after {
    content: '->';
    margin-left: 1rem;
    transition: margin-left 0.3s ease;
}

.work-item:hover .work-overlay::after {
    margin-left: 1.5rem;
}

/* Mobile Responsive Overrides */
@media (max-width: 768px) {
    :root {
        --spacing-container: 5vw;
        /* Ensure safe margins */
    }

    /* Typography fixes */


    .hero-desc {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .big-text {
        font-size: 2.5rem;
        /* Fix huge text */
        line-height: 1.2;
    }



    .big-email {
        font-size: 1.8rem;
        /* Make email fit screen */
        word-break: break-all;
    }

    /* Layout fixes */
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 6rem;
        padding-bottom: 2rem;
    }

    .hero-container {
        height: auto;
        gap: 2rem;
        flex-direction: column;
    }

    .hero-footer {
        flex-direction: column-reverse;
        /* Put scroll indicator at bottom or hide */
        align-items: flex-start;
        gap: 2rem;
    }

    /* Marquee */
    .marquee-section {
        padding: 2rem 0;
    }

    .marquee {
        height: 60px;
    }

    .content {
        gap: 3rem;
    }

    .content img {
        height: 50px;
        /* Smaller icons for mobile */
    }

    /* Work Grid */
    .work {
        padding: 4rem 0;
    }

    .work-grid {
        gap: 4rem;
    }

    .work-img {
        height: 60vw;
        /* Aspect ratio suitable for mobile cards */
    }

    /* Services */
    .services {
        padding: 4rem 0;
    }

    .service-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 2rem 0;
    }

    .service-item h3 {
        font-size: 20px;
    }

    /* Contact Form */
    .agency-form {
        margin-bottom: 3rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-submit {
        width: 100%;
    }

    /* Header */
    .header-container {
        flex-direction: row;
        /* Keep header minimal */
        justify-content: space-between;
    }

    .nav {
        display: none;
        /* Consider a hamburger menu or simpler nav for mobile */
    }

    /* Simple Mobile Nav Substitute or just hide links but keep contact btn? */
    /* Let's keep the contact button at least */
    .nav {
        display: flex;
        gap: 1rem;
    }

    .nav-link {
        display: none;
    }

    .btn-contact {
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
    }
}