/*
  Digital Marketing Agency Redesign V7
  Theme: Gradient & Glassmorphism
  Author: Patricia Gipple Yoga
  Version: 7.0
*/

/* ---------------------------------- */
/* 1. Global Styles & Variables       */
/* ---------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;700;800&display=swap');

:root {
    --gradient-primary: linear-gradient(135deg, #00C9FF 0%, #92FE9D 100%);
    --gradient-secondary: linear-gradient(135deg, #F7971E 0%, #FFD200 100%);
    --bg-dark: #0D0B14;
    --text-light: #F5F5F7;
    --text-medium: #D1D1D6;
    --border-color: rgba(255, 255, 255, 0.1);

    --font-body: 'Manrope', sans-serif;
    --header-height: 80px;
    --border-radius: 12px;
}

/* Basic Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-medium);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--text-light);
    font-weight: 800;
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 1.5rem;
}

/* Links & Buttons */
a {
    color: var(--text-light);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 18px 40px;
}

/* Global Elements */
section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
}

/* ---------------------------------- */
/* 2. Background & Header             */
/* ---------------------------------- */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    will-change: transform;
}

.blob1 {
    width: 400px;
    height: 400px;
    background: #6a11cb;
    animation: morph-and-move 20s infinite alternate;
}

.blob2 {
    width: 300px;
    height: 300px;
    background: #2575fc;
    animation: morph-and-move 25s infinite alternate-reverse;
}

.blob3 {
    width: 250px;
    height: 250px;
    background: #ff0844;
    animation: morph-and-move 15s infinite alternate;
}

@keyframes morph-and-move {
    0% {
        transform: translate(10vw, 20vh) scale(1);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        transform: translate(50vw, 60vh) scale(1.2);
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        transform: translate(80vw, 10vh) scale(0.9);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    padding: 0 20px;
    background: rgba(13, 11, 20, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.header-logo img {
    height: 50px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links a {
    font-weight: 500;
}

.nav-links a.active {
    font-weight: 700;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    width: 28px;
    height: 20px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger-menu .bar {
    width: 100%;
    height: 2px;
    background: var(--text-light);
    transition: all 0.3s ease;
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ---------------------------------- */
/* 3. Hero Section                    */
/* ---------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-headline {
    margin-bottom: 20px;
}

.highlight-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-subheadline {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ---------------------------------- */
/* 4. Services Section (3D Tilt)      */
/* ---------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    perspective: 1000px;
}

.service-card-inner {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.2s ease-out;
    transform-style: preserve-3d;
}

.service-icon {
    margin-bottom: 20px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.service-card h3 {
    margin-bottom: 10px;
}

/* ---------------------------------- */
/* 5. Process Section                 */
/* ---------------------------------- */
.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--border-color);
    transform: translateX(-50%);
}

.process-step {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}

.process-step:nth-child(odd) {
    left: 0;
}

.process-step:nth-child(even) {
    left: 50%;
}

.step-node {
    position: absolute;
    top: 30px;
    width: 16px;
    height: 16px;
    background: var(--bg-dark);
    border: 3px solid #2575fc;
    border-radius: 50%;
}

.process-step:nth-child(odd) .step-node {
    right: -8px;
}

.process-step:nth-child(even) .step-node {
    left: -8px;
}

.step-content {
    position: relative;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: -10px;
    right: 20px;
}

.process-step h3 {
    margin-bottom: 10px;
}

/* ---------------------------------- */
/* 6. Interactive Report Section      */
/* ---------------------------------- */
.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.report-tabs button {
    background: none;
    border: none;
    color: var(--text-medium);
    padding: 10px 15px;
    cursor: pointer;
}

.report-tabs button.active {
    color: var(--text-light);
    font-weight: 700;
    border-bottom: 2px solid #2575fc;
}

.report-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.kpi-card {
    text-align: center;
}

.kpi-card h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-medium);
}

.kpi-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-light);
}

.kpi-change {
    display: block;
    font-weight: 700;
}

.kpi-change.positive {
    color: #4CAF50;
}

.kpi-change.negative {
    color: #F44336;
}

.report-chart {
    height: 150px;
    position: relative;
    overflow: hidden;
}

.chart-line {
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23333' stroke-width='1' stroke-dasharray='6%2c 14' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
    position: relative;
}

.chart-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    clip-path: polygon(0 65%, 15% 70%, 30% 50%, 45% 60%, 60% 40%, 75% 55%, 90% 45%, 100% 30%, 100% 100%, 0 100%);
    opacity: 0.3;
}

.chart-line::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    border-top: 2px solid #2575fc;
    clip-path: polygon(0 65%, 15% 70%, 30% 50%, 45% 60%, 60% 40%, 75% 55%, 90% 45%, 100% 30%);
    animation: draw-line 2s ease-out forwards;
}

@keyframes draw-line {
    to {
        transform: translateX(100%);
    }
}

/* ---------------------------------- */
/* 7. Testimonials Section            */
/* ---------------------------------- */
.testimonials-section {
    overflow: hidden;
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-slider {
    position: relative;
    height: 250px;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-slide h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.testimonial-slide p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-slide cite {
    font-style: normal;
    font-weight: 700;
    color: var(--text-light);
}

.slider-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.slider-navigation button {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.dots-container {
    display: flex;
    gap: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--text-medium);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: var(--text-light);
}

/* ---------------------------------- */
/* 8. CTA & Footer & Chat            */
/* ---------------------------------- */
.cta-section {
    background: transparent;
}

.cta-section .glass-panel {
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 15px;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 30px;
}

.main-footer {
    padding-top: 80px;
    background: transparent;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    text-align: center;
}

.live-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: var(--gradient-primary);
}

.chat-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: rgba(13, 11, 20, 0.8);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
    visibility: hidden;
}

.chat-popup.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* ... (chat window internal styles) ... */

/* ---------------------------------- */
/* 9. Contact & Legal Pages           */
/* ---------------------------------- */
.contact-page-section,
.legal-page-section {
    padding-top: calc(var(--header-height) + 80px);
}

.contact-page-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2575fc;
}

.legal-page-section .glass-panel {
    max-width: 850px;
    margin: 0 auto;
}

.legal-page-section h1 {
    margin-bottom: 30px;
}

.legal-page-section h2 {
    margin: 40px 0 15px;
}

.legal-page-section ul {
    padding-left: 20px;
}

/* ---------------------------------- */
/* 10. Responsiveness                 */
/* ---------------------------------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 3.2rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .process-timeline {
        max-width: 100%;
    }

    .timeline-line {
        left: 20px;
    }

    .process-step,
    .process-step:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 60px;
    }

    .process-step .step-node {
        left: 12px;
    }
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 25px 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .report-kpis,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------- */
/* 11. Scroll Animations              */
/* ---------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--delay, 0s);
}

.animate-on-scroll[data-animation="fade-up"] {
    transform: translateY(50px);
}

.animate-on-scroll[data-animation="slide-in-right"] {
    transform: translateX(-50px);
}

.animate-on-scroll[data-animation="slide-in-left"] {
    transform: translateX(50px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}