/*
* Digital Marketing Website Redesign - Version 3 (Futuristic Tech Theme)
* Author: AI Assistant
* Version: 3.0.0
*/

/* ------------------- */
/* 1. VARIABLES & RESET   */
/* ------------------- */
:root {
    --color-accent: #00f6ff;
    /* Electric Cyan */
    --color-accent-dark: #00c2cb;
    --color-bg-dark: #0a0a14;
    /* Deep Navy/Black */
    --color-bg-light: #121224;
    --color-glass: rgba(18, 18, 36, 0.5);
    --color-white: #ffffff;
    --color-text-primary: #EAEAF5;
    --color-text-secondary: #9a9ab0;
    --color-border: rgba(0, 246, 255, 0.2);

    --font-family-base: 'Poppins', sans-serif;
    --header-height: 80px;
    --border-radius: 10px;
    --transition-speed: 0.3s;
    --transition-curve: cubic-bezier(0.165, 0.84, 0.44, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-base);
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ------------------- */
/* 2. GENERAL STYLES      */
/* ------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2.75rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 7rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 650px;
    margin: 0 auto;
}

.accent-text {
    color: var(--color-accent);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-speed) var(--transition-curve);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-bg-dark);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 246, 255, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-text-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-bg-dark);
    border-color: var(--color-white);
}

/* ------------------- */
/* 3. HEADER & NAVIGATION */
/* ------------------- */
.site-header {
    background-color: transparent;
    padding: 0 1rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
}

.site-header.scrolled {
    background-color: var(--color-glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    filter: brightness(0) invert(1);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    color: var(--color-text-primary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0.2rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-accent);
}

.mobile-nav-toggle {
    display: none;
    /* ... */
}

main {
    padding-top: var(--header-height);
}

/* ------------------- */
/* 4. HERO SECTION      */
/* ------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin: 1.5rem auto 2.5rem;
    max-width: 650px;
}

.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ------------------- */
/* 5. STATS SECTION     */
/* ------------------- */
.stats-section {
    background-color: var(--color-bg-light);
    padding: 5rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    color: var(--color-accent);
    font-weight: 700;
}

.stat-label {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

/* ------------------- */
/* 6. SERVICES (3D STACK) */
/* ------------------- */
.services-stack-section {
    padding-bottom: 10rem;
}

.stack-container {
    height: 300vh;
    /* This determines the scroll distance for the animation */
    position: relative;
}

.stack-cards {
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    height: 400px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    perspective: 1500px;
}

.stack-card {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background: linear-gradient(135deg, var(--color-bg-light), var(--color-bg-dark));
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    will-change: transform, opacity;
    transition: transform 0.5s var(--transition-curve), opacity 0.5s var(--transition-curve);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stack-card h3 {
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.stack-card p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

/* ------------------- */
/* 7. INDUSTRIES (GLOBE) */
/* ------------------- */
.industries-section {
    background-color: var(--color-bg-light);
    overflow: hidden;
}

.industries-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.industries-text .section-subtitle {
    margin: 1rem 0 2rem;
}

.industries-text ul {
    list-style: none;
}

.industries-text li {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.industries-text li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: 1.5rem;
    line-height: 1;
}

.industries-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.globe {
    width: 350px;
    height: 350px;
    position: relative;
    border-radius: 50%;
    transform-style: preserve-3d;
    animation: rotate-globe 25s infinite linear;
}

@keyframes rotate-globe {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

.globe-wire {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-border);
    border-radius: 50%;
}

.globe-wire:nth-child(1) {
    transform: rotateY(0deg);
}

.globe-wire:nth-child(2) {
    transform: rotateY(30deg);
}

.globe-wire:nth-child(3) {
    transform: rotateY(60deg);
}

.globe-wire:nth-child(4) {
    transform: rotateY(90deg);
}

.globe-wire:nth-child(5) {
    transform: rotateY(120deg);
}

.globe-wire:nth-child(6) {
    transform: rotateY(150deg);
}

/* ------------------- */
/* 8. TESTIMONIALS (MARQUEE) */
/* ------------------- */
.testimonials-section {
    padding: 7rem 0;
    overflow: hidden;
}

.testimonial-marquee {
    display: flex;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
    mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
    margin-bottom: 1rem;
}

.marquee-track {
    display: flex;
    flex-shrink: 0;
    animation: marquee-scroll 40s linear infinite;
}

.testimonial-marquee.reverse .marquee-track {
    animation-direction: reverse;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    flex-shrink: 0;
    width: 450px;
    padding: 2rem;
    margin: 0 1rem;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.testimonial-card p {
    font-size: 1.1rem;
}

.testimonial-card span {
    display: block;
    margin-top: 1rem;
    color: var(--color-accent);
    font-weight: 500;
}

/* ------------------- */
/* 9. ROI CALCULATOR     */
/* ------------------- */
.roi-calculator-section {
    background-color: var(--color-bg-light);
}

.roi-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    background: var(--color-glass);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(5px);
}

.slider-group {
    margin-bottom: 2rem;
}

.slider-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 1rem;
}

.slider-group span {
    float: right;
    color: var(--color-accent);
    font-weight: 600;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(0, 246, 255, 0.2);
    outline: none;
    border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-accent);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent);
}

.roi-output {
    background-color: var(--color-bg-dark);
    padding: 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.roi-output h3 {
    color: var(--color-text-secondary);
    font-weight: 400;
}

.roi-result {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-accent);
    margin: 1rem 0;
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    opacity: 0.7;
}

/* ------------------- */
/* 10. CTA & FOOTER      */
/* ------------------- */
.cta-section {
    text-align: center;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-subtitle {
    max-width: 700px;
}

.cta-button-container {
    margin-top: 2.5rem;
}

.site-footer {
    background-color: var(--color-bg-dark);
    border-top: 1px solid var(--color-border);
    padding: 5rem 0 0;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 4rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
}

.footer-about p {
    color: var(--color-text-secondary);
}

.footer-links h3,
.footer-contact h3 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li,
.footer-contact p {
    margin-bottom: 0.8rem;
}

.footer-links a,
.footer-contact a {
    color: var(--color-text-secondary);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    text-align: center;
    color: var(--color-text-secondary);
}

/* ------------------- */
/* 11. OTHER PAGES       */
/* ------------------- */
.page-header {
    background-color: var(--color-bg-light);
    padding: 5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
    font-size: 3rem;
}

.contact-section {
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-form-wrapper {
    background: var(--color-bg-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: var(--color-bg-dark);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-family-base);
    font-size: 1rem;
    color: var(--color-text-primary);
    transition: all var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 10px rgba(0, 246, 255, 0.3);
}

.legal-content {
    padding: 5rem 0;
}

.legal-content .container {
    max-width: 800px;
}

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

/* ------------------- */
/* 12. RESPONSIVENESS    */
/* ------------------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .industries-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .industries-text {
        order: 2;
    }

    .industries-visual {
        order: 1;
        margin-bottom: 2rem;
    }

    .globe {
        width: 300px;
        height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about,
    .footer-contact {
        grid-column: 1 / -1;
    }

    .roi-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stack-container {
        display: none;
    }

    /* 3D stack is too complex for mobile, would replace with a simple grid/list */
    .services-stack-section {
        padding-bottom: 4rem;
    }

    /* Adjust padding if stack is hidden */
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        width: 320px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile nav styles would go here */
}