/* 
====================================================================
   DIGITAL MARKETING AGENCY THEME - VERSION 3 (Bold & Electric)
   Style: Creative / Brutalist / High-Energy
==================================================================== 
*/

/* -----------------------------------------------------------------
   1. VARIABLES & CONFIGURATION
----------------------------------------------------------------- */
:root {
    /* Colors */
    --color-bg: #050505;
    --color-bg-secondary: #0a0a0a;
    --color-border: #262626;
    --color-text: #e5e5e5;
    --color-text-muted: #737373;

    /* Accents */
    --color-brand: #ffa600;
    /* Acid Green */
    --color-brand-dark: #b86800;
    --color-purple: #8b5cf6;

    /* Typography */
    --font-heading: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Layout */
    --header-height: 100px;
    --container-max: 1400px;
    --grid-gap: 1px;
    /* For the border grid effect */

    /* Animation */
    --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* -----------------------------------------------------------------
   2. GLOBAL RESET & BASE
----------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg);
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Noise Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #ffffff;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* -----------------------------------------------------------------
   3. UTILITY CLASSES
----------------------------------------------------------------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 30px;
}

/* Grid Layouts with "Border" Effect */
.border-grid {
    display: grid;
    gap: 1px;
    background-color: var(--color-border);
    /* Creates the lines */
    border: 1px solid var(--color-border);
}

.border-grid>* {
    background-color: var(--color-bg);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-20 {
    gap: 20px;
}

.section-padding {
    padding: 120px 0;
}

.text-brand {
    color: var(--color-brand);
}

.text-center {
    text-align: center;
}

/* -----------------------------------------------------------------
   4. BUTTONS & UI
----------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

/* Brutalist Button: Hard shadow, offset on hover */
.btn-primary {
    background-color: var(--color-brand);
    color: #000;
    border: 1px solid var(--color-brand);
}

.btn-primary:hover {
    background-color: #fff;
    border-color: #fff;
    transform: translate(-4px, -4px);
    box-shadow: 6px 6px 0px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: #fff;
}

.btn-outline:hover {
    border-color: var(--color-brand);
    color: var(--color-brand);
}

/* -----------------------------------------------------------------
   5. HEADER
----------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.site-header.hide {
    transform: translateY(-100%);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 40px;
    filter: invert(1);
}

.nav-links {
    display: flex;
    gap: 50px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 10px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-brand);
    transition: width 0.3s var(--ease-elastic);
}

.nav-link:hover {
    color: var(--color-brand);
}

.nav-link:hover::after {
    width: 100%;
}

.burger-menu {
    display: none;
    cursor: pointer;
    color: #fff;
    font-size: 1.5rem;
}

/* -----------------------------------------------------------------
   6. HERO SECTION
----------------------------------------------------------------- */
.hero {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-subtitle {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    margin-bottom: 30px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
}

/* Glitch Effect on Hover for Hero Title */
.glitch-text {
    position: relative;
    color: #fff;
    mix-blend-mode: lighten;
}

.hero-btns {
    margin-top: 50px;
    display: flex;
    gap: 20px;
}

/* Background Gradients */
.hero-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(5, 5, 5, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

/* -----------------------------------------------------------------
   7. MARQUEE SECTION
----------------------------------------------------------------- */
.marquee-section {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 0;
    overflow: hidden;
    background: var(--color-brand);
    color: #000;
}

.marquee-content {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: marquee 20s linear infinite;
}

.marquee-item {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 40px;
}

.marquee-item::after {
    content: "•";
    /* Bullet */
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* -----------------------------------------------------------------
   8. SERVICES (Grid Cards)
----------------------------------------------------------------- */
.services-header {
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.service-card {
    padding: 60px 40px;
    transition: 0.4s var(--ease-elastic);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background-color: #111;
}

.service-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-border);
    margin-bottom: 20px;
    transition: 0.3s;
}

.service-card:hover .service-num {
    color: var(--color-brand);
    transform: translateX(10px);
}

.service-card h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.service-card ul {
    margin-top: 30px;
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
}

.service-card li {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

/* -----------------------------------------------------------------
   9. ROI CALCULATOR
----------------------------------------------------------------- */
.calc-section {
    background: #0a0a0a;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.calc-controls {
    padding: 80px;
    border-right: 1px solid var(--color-border);
}

.calc-output {
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
    text-align: center;
}

.range-group {
    margin-bottom: 40px;
}

.range-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    font-weight: 700;
}

input[type=range] {
    width: 100%;
    height: 10px;
    background: var(--color-border);
    -webkit-appearance: none;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-brand);
    cursor: pointer;
    border-radius: 0;
    /* Square thumb */
    transition: 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.roi-value {
    font-size: 5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-brand);
    line-height: 1;
    margin: 20px 0;
    text-shadow: 0 0 30px rgba(189, 255, 0, 0.2);
}

/* -----------------------------------------------------------------
   10. INDUSTRIES & TESTIMONIALS
----------------------------------------------------------------- */
.industry-tag {
    display: inline-flex;
    padding: 15px 30px;
    border: 1px solid var(--color-border);
    margin: 5px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.industry-tag:hover {
    background: var(--color-text);
    color: #000;
    transform: rotate(-2deg);
}

.testimonial-slider {
    border-top: 1px solid var(--color-border);
    margin-top: 80px;
}

.testimonial-item {
    padding: 60px;
    border-bottom: 1px solid var(--color-border);
}

.t-quote {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 30px;
    max-width: 800px;
}

.t-author strong {
    color: var(--color-brand);
    display: block;
}

/* -----------------------------------------------------------------
   11. FOOTER
----------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--color-border);
    background: #000;
    padding-top: 100px;
}

/* Big Footer Text */
.footer-cta h2 {
    font-size: 10vw;
    line-height: 0.8;
    color: #1a1a1a;
    /* Dark gray for "background" feel */
    transition: 0.5s;
    cursor: default;
}

.footer-cta:hover h2 {
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 80px 0;
    border-top: 1px solid var(--color-border);
    margin-top: 50px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--color-brand);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* -----------------------------------------------------------------
   12. CONTACT & LEGAL PAGE LAYOUTS
----------------------------------------------------------------- */
.page-hero {
    padding: 200px 0 100px;
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
}

.legal-content {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 20px;
}

.legal-content h2 {
    color: var(--color-brand);
    margin-top: 50px;
    font-size: 2rem;
}

.legal-content ul {
    margin: 20px 0 20px 20px;
    list-style: square;
    color: var(--color-text-muted);
}

.legal-content li {
    margin-bottom: 10px;
}

/* Contact Form */
.split-screen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.split-content {
    padding: 150px 80px 80px;
    border-right: 1px solid var(--color-border);
}

.split-form {
    padding: 150px 80px 80px;
    background: #080808;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: transparent;
    border: 1px solid var(--color-border);
    padding: 15px;
    color: #fff;
    font-family: var(--font-body);
    transition: 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-brand);
    background: rgba(189, 255, 0, 0.05);
}

/* -----------------------------------------------------------------
   13. MEDIA QUERIES
----------------------------------------------------------------- */
@media (max-width: 1024px) {

    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .calc-grid {
        grid-template-columns: 1fr;
    }

    .calc-controls {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .split-screen {
        grid-template-columns: 1fr;
    }

    .split-content,
    .split-form {
        padding: 120px 30px 60px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: #000;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: 0.4s ease;
        border-top: 1px solid var(--color-border);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .burger-menu {
        display: block;
    }

    .header-btn {
        display: none;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero-btns {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-cta h2 {
        font-size: 15vw;
    }

    .section-padding {
        padding: 80px 0;
    }
}