/*
==================================================
    Digital Marketing Agency Stylesheet (V3 - Bold)
==================================================
    - 1. Global Styles & Variables
    - 2. Typography
    - 3. Layout & Helpers
    - 4. Header & Navigation
    - 5. Footer
    - 6. Buttons & Forms
    - 7. Hero Section
    - 8. Services Section
    - 9. Process Section (Horizontal Scroll)
    - 10. Report Section
    - 11. Testimonials Section
    - 12. CTA Section
    - 13. Contact & Legal Pages
    - 14. Animations & Keyframes
    - 15. Responsive Design
==================================================
*/

/* 1. Global Styles & Variables
-------------------------------------------------- */
:root {
    --dark-bg: #000000;
    --light-text: #FFFFFF;
    --medium-text: #A1A1A1;
    --accent-yellow: #cf3cd4;
    --border-color: #333333;

    --font-heading: 'Roboto Mono', monospace;
    --font-body: 'Inter', sans-serif;
    --header-height: 85px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* 2. Typography
-------------------------------------------------- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--medium-text);
    max-width: 60ch;
}

a {
    text-decoration: none;
    color: var(--accent-yellow);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--light-text);
}

::selection {
    background: var(--accent-yellow);
    color: var(--dark-bg);
}

/* 3. Layout & Helpers
-------------------------------------------------- */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 120px 0;
    border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
    border-bottom: none;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    color: var(--light-text);
}

.section-title p {
    margin: 0.5rem auto 0;
}

/* 4. Header & Navigation
-------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--dark-bg);
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-link {
    color: var(--light-text);
    font-weight: 500;
    padding: 5px;
    transition: color 0.3s;
}

.nav-link.active,
.nav-link:hover {
    color: var(--accent-yellow);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px auto;
    background-color: var(--light-text);
    transition: all 0.3s ease-in-out;
}

/* 5. Footer
-------------------------------------------------- */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--medium-text);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.footer-column h4 {
    font-size: 1rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-column ul li {
    margin-bottom: 1rem;
}

.footer-column a {
    color: var(--medium-text);
}

.footer-column a:hover {
    color: var(--light-text);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* 6. Buttons & Forms
-------------------------------------------------- */
.cta-button {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 0;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
    background-color: var(--accent-yellow);
    color: var(--dark-bg);
    border: 2px solid var(--accent-yellow);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--accent-yellow);
}

.header-cta {
    padding: 12px 24px;
    font-size: 0.8rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-size: 1rem;
    font-family: var(--font-body);
    background-color: #1a1a1a;
    color: var(--light-text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-yellow);
}

.error-message {
    color: #f36c6c;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

#form-status {
    margin-top: 1.5rem;
    font-weight: 500;
}

/* 7. Hero Section
-------------------------------------------------- */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
}

.hero-text h1 {
    max-width: 800px;
}

.hero-text p {
    font-size: 1.2rem;
    margin: 2rem 0 3rem;
}

.animated-text-container {
    display: inline-block;
    color: var(--accent-yellow);
    position: relative;
    overflow: hidden;
    height: 4.5rem;
    vertical-align: bottom;
}

#animated-keyword {
    display: inline-block;
    transition: transform 0.3s ease-out;
}

.slide-up {
    animation: slideUp 0.4s ease-out forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* 8. Services Section
-------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
}

.service-card {
    background-color: var(--dark-bg);
    padding: 3rem;
    position: relative;
    transition: background-color 0.3s;
}

.service-card:hover {
    background-color: #1a1a1a;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-link {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    line-height: 1;
    transition: transform 0.3s;
}

.service-card:hover .service-link {
    transform: translateX(5px);
}

/* 9. Process Section (Horizontal Scroll)
-------------------------------------------------- */
.process-section {
    padding-bottom: 0;
}

.process-wrapper {
    height: 100vh;
    /* Determines scroll duration */
    overflow: hidden;
}

.process-track {
    display: flex;
    height: 100%;
    align-items: center;
    width: 400%;
    /* 100% per step */
}

.process-step {
    width: 100vw;
    padding: 0 10vw;
}

.step-number {
    font-size: 5rem;
    font-family: var(--font-heading);
    color: var(--accent-yellow);
    display: block;
    margin-bottom: 1rem;
}

/* 10. Report Section
-------------------------------------------------- */
.report-wrapper {
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
}

.report-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.report-tab {
    flex: 1;
    padding: 1.5rem;
    border: none;
    background: transparent;
    color: var(--medium-text);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    border-right: 1px solid var(--border-color);
}

.report-tab:last-child {
    border-right: none;
}

.report-tab.active {
    background-color: var(--accent-yellow);
    color: var(--dark-bg);
}

.report-content {
    padding: 3rem;
}

.report-panel {
    display: none;
}

.report-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.report-panel ul {
    list-style: none;
}

.report-panel li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.report-panel li:last-child {
    border-bottom: none;
}

.status-positive {
    color: #50e3c2;
    font-weight: bold;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.kpi-item span {
    display: block;
    font-size: 0.9rem;
    color: var(--medium-text);
}

.kpi-item strong {
    display: block;
    font-size: 2rem;
    font-family: var(--font-heading);
}

/* 11. Testimonials Section
-------------------------------------------------- */
.testimonial-wrapper {
    border: 1px solid var(--border-color);
    padding: 4rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-quote {
    font-size: 1.8rem;
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--light-text);
    max-width: 40ch;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-author h4 {
    margin: 0;
}

.testimonial-author span {
    color: var(--medium-text);
}

/* 12. CTA Section
-------------------------------------------------- */
.cta-section {
    background-color: var(--accent-yellow);
    color: var(--dark-bg);
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    color: var(--dark-bg);
}

.cta-content p {
    color: #333;
    margin: 1rem auto 2.5rem;
}

.cta-section .cta-button {
    background-color: var(--dark-bg);
    color: var(--light-text);
    border-color: var(--dark-bg);
}

.cta-section .cta-button:hover {
    background-color: transparent;
    color: var(--dark-bg);
}

/* 13. Contact & Legal Pages
-------------------------------------------------- */
.contact-page-section,
.legal-page-section {
    padding-top: calc(var(--header-height) + 100px);
}

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form .form-row {
    display: flex;
    gap: 2rem;
}

.contact-form .form-row .form-group {
    flex: 1;
}

.legal-content {
    max-width: 800px;
}

.legal-content h1 {
    margin-bottom: 2rem;
}

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.legal-content ul {
    padding-left: 1.5rem;
}

/* 14. Animations & Keyframes
-------------------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-on-load {
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-on-load:nth-child(2) {
    animation-delay: 0.4s;
}

.animate-on-load:nth-child(3) {
    animation-delay: 0.6s;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 15. Responsive Design
-------------------------------------------------- */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .process-wrapper {
        display: none;
        /* Horizontal scroll is not ideal on tablet */
    }

    .process-section .process-track {
        display: block;
        width: 100%;
    }

    /* Fallback to vertical */
    .process-step {
        width: 100%;
        padding: 3rem 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-column.about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2.5rem;
    }

    section {
        padding: 80px 0;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--dark-bg);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        padding: 1.5rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .header-cta {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}