/*
 *  Digital Marketing Website Redesign - V3 (Corporate/Light Theme)
 *  Author: AI Assistant
 */

/* ---------------------------------- */
/* 1. Root Variables & Global Styles
/* ---------------------------------- */
:root {
    --bg-light: #F8F9FA;
    --bg-dark: #1A202C;
    --bg-accent-light: #E6F4FF;
    --primary-blue: #0052CC;
    --accent-green: #36B37E;
    --accent-green-hover: #2B9A6B;
    --text-dark: #2D3748;
    --text-medium: #4A5568;
    --text-light: #FFFFFF;
    --border-color: #E2E8F0;
    --shadow-light: rgba(0, 82, 204, 0.1);
    --shadow-medium: rgba(0, 82, 204, 0.15);

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --header-height: 80px;
    --transition-speed: 0.3s ease;
    --border-radius: 8px;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Roboto:wght@400;500&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-light);
    color: var(--text-medium);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---------------------------------- */
/* 2. Reusable Components
/* ---------------------------------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
}

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-heading .sub-title {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.section-heading h2 {
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-green);
    color: var(--text-light);
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--accent-green-hover);
    transform: translateY(-3px);
}

/* ---------------------------------- */
/* 3. Header
/* ---------------------------------- */
.site-header {
    background-color: var(--bg-dark);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: box-shadow var(--transition-speed), top var(--transition-speed);
}

.site-header.scrolled {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.site-header.hidden {
    top: -90px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo img {
    height: 40px;
    filter: invert(1);
    margin-right: 12px;
}

.main-nav {
    display: flex;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
}

.mobile-menu-button .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.mobile-menu-button .bar:nth-child(1) {
    top: 0;
}

.mobile-menu-button .bar:nth-child(2) {
    top: 10px;
}

.mobile-menu-button .bar:nth-child(3) {
    top: 20px;
}

.mobile-menu-button.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.mobile-menu-button.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}


/* ---------------------------------- */
/* 4. Hero Section
/* ---------------------------------- */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&q=80&w=1740') no-repeat center center/cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 32, 44, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 4rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: var(--border-radius);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ---------------------------------- */
/* 5. Services Section (Tabs)
/* ---------------------------------- */
.services-section {
    background-color: #fff;
}

.services-tabs-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 1000px;
    margin: 0 auto;
}

.service-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    background: var(--bg-light);
    padding: 8px;
    border-radius: var(--border-radius);
}

.tab-link {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-medium);
    border-radius: 6px;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-link:hover {
    background-color: var(--bg-accent-light);
    color: var(--primary-blue);
}

.tab-link.active {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

.service-tabs-content {
    background-color: #fff;
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    min-height: 250px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-bottom: 1rem;
}

.tab-content ul {
    list-style-type: none;
    margin-top: 1.5rem;
}

.tab-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.tab-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: 700;
}


/* ---------------------------------- */
/* 6. Process Section
/* ---------------------------------- */
.process-section {
    background-color: var(--bg-accent-light);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 5%;
    width: 90%;
    height: 2px;
    background-color: var(--border-color);
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.step-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.process-step:hover .step-icon {
    background-color: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

.step-title {
    margin-bottom: 0.5rem;
}

/* ---------------------------------- */
/* 7. Interactive Report Section
/* ---------------------------------- */
.report-section {
    background-color: #fff;
}

.dashboard-container {
    display: flex;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow-light);
    overflow: hidden;
}

.dashboard-sidebar {
    flex-basis: 200px;
    background-color: var(--bg-light);
    padding: 20px;
    border-right: 1px solid var(--border-color);
}

.dashboard-sidebar h4 {
    margin-bottom: 20px;
}

.dashboard-sidebar ul {
    list-style: none;
}

.dashboard-sidebar li {
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.dashboard-sidebar li:hover,
.dashboard-sidebar li.active-metric {
    background-color: var(--bg-accent-light);
    color: var(--primary-blue);
    font-weight: 500;
}

.dashboard-main {
    flex: 1;
    padding: 30px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#date-range-selector {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.kpi-card h5 {
    color: var(--text-medium);
    font-weight: 500;
    margin-bottom: 10px;
}

.kpi-card p {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.kpi-card .change {
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 8px;
}

.change.positive {
    color: var(--accent-green);
}

.change.negative {
    color: #E53E3E;
}

.chart-container {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.chart-bar-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 200px;
    margin-top: 20px;
}

.chart-bar {
    width: 15%;
    border-radius: 4px 4px 0 0;
    transition: all var(--transition-speed);
    position: relative;
}

.chart-bar.organic {
    background-color: var(--primary-blue);
}

.chart-bar.paid {
    background-color: #3182CE;
}

.chart-bar.social {
    background-color: #63B3ED;
}

.chart-bar.direct {
    background-color: #BEE3F8;
}

.chart-bar:hover {
    filter: brightness(1.2);
    transform: translateY(-5px);
}

.chart-bar::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.chart-bar:hover::after {
    opacity: 1;
}

/* ---------------------------------- */
/* 8. Clients/Testimonials Section
/* ---------------------------------- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--border-radius);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-medium);
}

.testimonial-card .quote {
    font-size: 1.1rem;
    font-style: italic;
    position: relative;
    padding-left: 30px;
    border-left: 3px solid var(--primary-blue);
}

.author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.author-info h4 {
    font-size: 1.1rem;
    margin: 0;
}

.author-info span {
    color: var(--text-medium);
}

/* ---------------------------------- */
/* 9. CTA Section
/* ---------------------------------- */
.cta-section {
    background-color: var(--primary-blue);
    color: var(--text-light);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    color: var(--text-light);
}

.cta-section p {
    max-width: 600px;
    margin: 1rem auto 2rem;
}

.cta-section .cta-button {
    background-color: #fff;
    color: var(--primary-blue);
    font-weight: 700;
}

.cta-section .cta-button:hover {
    background-color: var(--bg-light);
}

/* ---------------------------------- */
/* 10. Footer
/* ---------------------------------- */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #A0AEC0;
    transition: color var(--transition-speed);
}

.footer-col a:hover {
    color: var(--accent-green);
}

.footer-about p {
    color: #A0AEC0;
    max-width: 300px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2D3748;
    color: #A0AEC0;
}

.footer-bottom p {
    font-size: 0.9rem;
}

address {
    font-style: normal;
    line-height: 1.8;
}

/* ---------------------------------- */
/* 11. Inner Pages (Contact, Legal)
/* ---------------------------------- */
.page-title-section {
    padding: 120px 0 60px;
    background-color: var(--bg-accent-light);
    text-align: center;
}

.page-title-section h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    margin-bottom: 1rem;
}

.contact-form .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 textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px var(--shadow-light);
}

.info-block {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    font-size: 2rem;
    color: var(--primary-blue);
}

.info-content h3 {
    font-size: 1.25rem;
}

.info-content p {
    margin: 0;
}

.legal-page-content .container {
    max-width: 800px;
}

.legal-page-content h2 {
    margin: 2rem 0 1rem;
}


/* ---------------------------------- */
/* 12. Animations & Keyframes
/* ---------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-on-load {
    opacity: 0;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in {
    transform: translateY(20px);
}

.slide-in-left {
    transform: translateX(-40px);
}

.slide-in-right {
    transform: translateX(40px);
}

.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------------------------------- */
/* 13. Responsive Design
/* ---------------------------------- */
@media (max-width: 992px) {
    .process-timeline {
        grid-template-columns: 1fr 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .kpi-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .header-cta {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        height: calc(100vh - var(--header-height));
        transform: translateY(-110%);
        transition: transform 0.4s ease;
    }

    .main-nav.open {
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        gap: 50px;
    }

    .mobile-menu-button {
        display: block;
    }

    .service-tabs-nav {
        flex-direction: column;
    }

    .process-timeline::before {
        display: none;
    }

    .dashboard-container {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about .logo {
        justify-content: center;
    }
}