/*
 *  Digital Marketing Website Redesign - V7 (Modern Brutalism)
 *  Author: AI Assistant
 */

/* ---------------------------------- */
/* 1. Root Variables & Global Setup
/* ---------------------------------- */
:root {
    --bg-light: #F0F0F0;
    --bg-dark: #000000;
    --text-dark: #000000;
    --text-light: #FFFFFF;
    --accent-yellow: #FFFF00;
    --border-color: #000000;

    --font-primary: 'Manrope', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --header-height: 80px;
    --transition: 0.3s ease;
}

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@700;800&family=Roboto+Mono:wght@400&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent-yellow);
    color: var(--text-dark);
}

/* ---------------------------------- */
/* 2. Reusable Components & Typography
/* ---------------------------------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

h1,
h2,
h3 {
    font-family: var(--font-primary);
    font-weight: 800;
    line-height: 1.1;
}

h1 {
    font-size: clamp(3rem, 10vw, 8rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    line-height: 1.6;
    max-width: 65ch;
}

.section-tag {
    font-family: var(--font-mono);
    text-transform: uppercase;
}

/* ---------------------------------- */
/* 3. Header & Navigation
/* ---------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    transition: transform var(--transition);
}

.site-header.hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
}

.logo img {
    height: 40px;
}

.logo-text {
    font-weight: 800;
    font-size: 1.2rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    padding-bottom: 5px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: scaleX(1);
}

.header-cta {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    transition: background-color var(--transition), color var(--transition);
}

.header-cta:hover {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.menu-toggle .bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s;
}

.menu-toggle .bar:first-child {
    top: 0;
}

.menu-toggle .bar:last-child {
    top: 18px;
}

.menu-toggle.active .bar:first-child {
    top: 9px;
    transform: rotate(45deg);
}

.menu-toggle.active .bar:last-child {
    top: 9px;
    transform: rotate(-45deg);
}

/* ---------------------------------- */
/* 4. Sections
/* ---------------------------------- */
/* Hero */
.hero-section {
    padding: 150px 0;
    text-align: center;
}

.hero-headline {
    letter-spacing: -0.04em;
}

.hero-subheadline {
    margin: 2rem auto 0;
    font-size: 1.1rem;
}

/* Marquee */
.marquee-section {
    padding: 20px 0;
    background-color: var(--accent-yellow);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.marquee-wrapper {
    width: 100%;
    display: flex;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 1.2rem;
    font-weight: 800;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.accent-dot {
    width: 10px;
    height: 10px;
    background: var(--bg-dark);
    border-radius: 50%;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Services */
.services-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.services-intro h2 {
    margin-top: 1rem;
}

.service-list {
    border-top: 1px solid var(--border-color);
}

.service-item {
    border-bottom: 1px solid var(--border-color);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
}

.expand-btn {
    width: 30px;
    height: 30px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    transition: transform var(--transition);
}

.expand-btn::before,
.expand-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: var(--text-dark);
    transform: translate(-50%, -50%);
}

.expand-btn::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.service-item.active .expand-btn {
    transform: rotate(45deg);
}

.service-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
}

.service-content p {
    padding-bottom: 1.5rem;
}

/* Principles */
.principles-section {
    background: var(--bg-dark);
    color: var(--text-light);
}

.principles-section h2,
.principles-section .section-tag {
    color: var(--text-light);
}

.principles-section .section-intro {
    margin-bottom: 50px;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
}

.principle-card {
    background: var(--bg-dark);
    padding: 2rem;
    transition: background-color var(--transition), color var(--transition);
}

.principle-card:hover {
    background: var(--accent-yellow);
    color: var(--text-dark);
}

.principle-card:hover h3,
.principle-card:hover p {
    color: var(--text-dark);
}

.principle-card h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.principle-card p {
    color: #aaa;
}

/* Results */
.results-section .section-intro {
    margin-bottom: 50px;
}

.result-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.result-info h3 {
    margin-bottom: 1rem;
}

.result-metrics {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-self: end;
}

.metric-value {
    font-size: 3rem;
    font-weight: 800;
}

.metric-label {
    font-family: var(--font-mono);
}

/* Testimonials */
.testimonials-section {
    background: var(--accent-yellow);
    padding: 100px 0;
}

.testimonial-slider {
    position: relative;
    text-align: center;
}

.testimonial-slide {
    display: none;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.quote {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    max-width: 30ch;
    margin: 0 auto 1.5rem;
}

.author {
    font-family: var(--font-mono);
}

.slider-controls {
    margin-top: 2rem;
}

.slider-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0 10px;
}

/* CTA */
.cta-section {
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.cta-section h2 {
    margin-bottom: 2rem;
    max-width: 20ch;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border: 1px solid var(--bg-dark);
    padding: 15px 40px;
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: 700;
    transition: all var(--transition);
}

.cta-button:hover {
    background: var(--accent-yellow);
    color: var(--text-dark);
    border-color: var(--text-dark);
}

/* ---------------------------------- */
/* 5. Footer
/* ---------------------------------- */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column .logo {
    color: var(--text-light);
}

.footer-column h4 {
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-column a {
    color: #aaa;
    text-decoration: none;
}

.footer-column a:hover {
    color: var(--accent-yellow);
}

.footer-column p {
    color: #aaa;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    font-family: var(--font-mono);
}

/* ---------------------------------- */
/* 6. Contact & Legal Pages
/* ---------------------------------- */
.contact-hero-section {
    text-align: left;
    padding: 150px 0 80px;
}

.contact-hero-section p {
    font-size: 1.1rem;
}

.form-wrapper {
    max-width: 800px;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    background-color: transparent;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 1px solid var(--border-color);
}

.contact-form-section .cta-button {
    font-size: 1rem;
    padding: 12px 30px;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* ---------------------------------- */
/* 7. Animations & Responsiveness
/* ---------------------------------- */
[data-animate] {
    opacity: 0;
}

.reveal-up-wrapper {
    display: inline-block;
    overflow: hidden;
}

.reveal-up-content {
    display: inline-block;
    transform: translateY(110%);
}

[data-animate="fade-in-up"] {
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.is-visible .reveal-up-content {
    transform: translateY(0);
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

@media (max-width: 1024px) {
    .services-container {
        grid-template-columns: 1fr;
    }

    .result-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .result-metrics {
        justify-self: start;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .main-nav,
    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav.active {
        display: flex;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-light);
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .main-nav ul {
        flex-direction: column;
        font-size: 1.5rem;
    }

    .principles-grid {
        grid-template-columns: 1fr;
    }

    #contact-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}