/* ==========================================================================
   PREMIUM DIGITAL MARKETING THEME - GLOBAL CSS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #050507;
    --bg-surface: #0e0e14;
    --bg-surface-elevated: #161620;
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #ec4899;
    --secondary-glow: rgba(236, 72, 153, 0.4);
    --accent: #06b6d4;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    --border-color: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;

    /* Layout & Animation */
    --section-pad: 100px 5%;
    --header-height: 90px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-surface-elevated);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    line-height: 1.1;
}

p {
    line-height: 1.7;
    color: var(--text-muted);
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.text-center {
    text-align: center;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-display);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 10px 25px var(--primary-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px var(--secondary-glow);
}

/* ==========================================================================
   1. HEADER (STRICTLY CONSISTENT SITE-WIDE)
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 5, 7, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(5, 5, 7, 0.95);
    height: 80px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.logo-container {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 70px;
    filter: invert(1);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links li a {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
#hero {
    min-height: 100vh;
    padding: 150px 5% 100px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 10s infinite ease-in-out alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: 10%;
    right: -50px;
    animation-delay: -5s;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
    font-weight: 500;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

/* ==========================================================================
   3. SERVICES (3D FLIP CARDS)
   ========================================================================== */
#services {
    padding: var(--section-pad);
    background: var(--bg-surface);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

.service-card {
    background: var(--bg-surface-elevated);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(99, 102, 241, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   4. INTERACTIVE ROI CALCULATOR
   ========================================================================== */
#calculator {
    padding: var(--section-pad);
    background: var(--bg-dark);
}

.calc-wrapper {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.calc-input-group {
    margin-bottom: 2rem;
}

.calc-input-group label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
    font-family: var(--font-display);
}

.range-slider {
    width: 100%;
    -webkit-appearance: none;
    background: transparent;
    height: 6px;
    border-radius: 5px;
    outline: none;
}

.range-slider::-webkit-slider-runnable-track {
    background: var(--border-color);
    height: 6px;
    border-radius: 5px;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: -9px;
    cursor: pointer;
    box-shadow: 0 0 15px var(--primary-glow);
}

.calc-output {
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-dark));
    padding: 3rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-value {
    font-size: 4rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent);
    margin: 1rem 0;
}

/* ==========================================================================
   5. INDUSTRIES (MASONRY-STYLE GRID)
   ========================================================================== */
#industries {
    padding: var(--section-pad);
    background: var(--bg-surface);
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    grid-auto-rows: 200px;
}

.industry-box {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    transition: var(--transition);
}

.industry-box.large {
    grid-row: span 2;
}

.industry-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 1;
}

.industry-box:hover {
    transform: scale(1.02);
    border-color: var(--secondary);
    z-index: 10;
}

.industry-box h3 {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    margin: 0;
}

.industry-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: var(--transition);
}

.industry-box:hover .industry-bg {
    opacity: 0.6;
    transform: scale(1.1);
}

/* ==========================================================================
   6. SAMPLE REPORTS (CSS CHART ANIMATIONS)
   ========================================================================== */
#reports {
    padding: var(--section-pad);
    background: var(--bg-dark);
}

.report-mockup {
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 300px;
    margin-top: 3rem;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.chart-bar {
    width: 60px;
    background: linear-gradient(to top, var(--primary), var(--accent));
    border-radius: 5px 5px 0 0;
    position: relative;
    transform-origin: bottom;
    animation: growBar 2s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.chart-bar::after {
    content: attr(data-value);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    font-family: var(--font-display);
}

.chart-bar:nth-child(1) {
    height: 30%;
    animation-delay: 0.2s;
}

.chart-bar:nth-child(2) {
    height: 50%;
    animation-delay: 0.4s;
}

.chart-bar:nth-child(3) {
    height: 75%;
    animation-delay: 0.6s;
}

.chart-bar:nth-child(4) {
    height: 60%;
    animation-delay: 0.8s;
}

.chart-bar:nth-child(5) {
    height: 100%;
    animation-delay: 1.0s;
}

/* ==========================================================================
   7. TESTIMONIALS (INFINITE SCROLL MARQUEE)
   ========================================================================== */
#testimonials {
    padding: var(--section-pad);
    background: var(--bg-surface);
    overflow: hidden;
}

.marquee-wrapper {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}

.marquee-wrapper:hover {
    animation-play-state: paused;
}

.testimonial-card {
    width: 400px;
    background: var(--bg-surface-elevated);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--border-color);
}

.client-name {
    font-weight: bold;
    font-family: var(--font-display);
}

.stars {
    color: #fbbf24;
    margin-bottom: 1rem;
}

/* ==========================================================================
   8. CONTACT FORM / CTA
   ========================================================================== */
#contact-cta {
    padding: var(--section-pad);
    background: var(--bg-dark);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.form-control {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-sans);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-info-block {
    padding: 3rem;
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(236, 72, 153, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   9. LIVE CHAT WIDGET
   ========================================================================== */
#live-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 25px var(--primary-glow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
}

.chat-window.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    background: var(--primary);
    padding: 1rem;
    color: #fff;
    font-family: var(--font-display);
    font-weight: bold;
}

.chat-body {
    height: 300px;
    padding: 1rem;
    overflow-y: auto;
    background: var(--bg-dark);
}

.chat-input {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
}

.chat-input input {
    flex: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 10px 15px;
    color: #fff;
    outline: none;
}

.chat-input button {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

/* ==========================================================================
   10. FOOTER (STRICTLY CONSISTENT SITE-WIDE)
   ========================================================================== */
footer {
    background: #000;
    padding: 80px 5% 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
    max-width: 1400px;
    margin-inline: auto;
}

.footer-about p {
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-heading {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ==========================================================================
   LEGAL PAGES SPECIFIC STYLES
   ========================================================================== */
.legal-header {
    padding: 180px 5% 80px;
    background: linear-gradient(to bottom, var(--bg-surface-elevated), var(--bg-dark));
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.legal-content {
    padding: 80px 5%;
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-dark);
}

.legal-content h2 {
    font-size: 2rem;
    margin: 2.5rem 0 1rem;
    color: var(--text-main);
}

.legal-content p,
.legal-content ul {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.legal-content ul {
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    100% {
        transform: translateY(50px) rotate(15deg);
    }
}

@keyframes growBar {
    from {
        opacity: 0;
        transform: scaleY(0);
    }

    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 1024px) {
    .calc-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .header-actions .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .industry-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}