/*
 *  Digital Marketing Website Redesign
 *  Author: AI Assistant
 *  Version: 1.0
 */

/* ---------------------------------- */
/* 1. CSS Variables & Global Setup
/* ---------------------------------- */
:root {
    --primary-dark: #0A192F;
    --secondary-dark: #112240;
    --accent-color: #ed64ff;
    --accent-hover-color: rgba(100, 255, 218, 0.1);
    --light-text: #CCD6F6;
    --medium-text: #8892B0;
    --white: #FFFFFF;
    --shadow-color: rgba(2, 12, 27, 0.7);
    --border-color: #233554;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    --header-height: 80px;
    --transition-speed: 0.3s;
}

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Roboto:wght@400;500&display=swap');

/* Reset and Box Sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--primary-dark);
    color: var(--medium-text);
    font-family: var(--font-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------------------------------- */
/* 2. Helper Classes & Global Elements
/* ---------------------------------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--white);
}

h1,
h2,
h3,
h4 {
    color: var(--light-text);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 12px 28px;
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 5px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    text-align: center;
}

.cta-button:hover {
    background-color: var(--accent-hover-color);
    color: var(--accent-color);
}

/* ---------------------------------- */
/* 3. Header
/* ---------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: top 0.3s ease-in-out;
    border-bottom: 1px solid var(--border-color);
}

.header-scrolled {
    box-shadow: 0 5px 20px var(--shadow-color);
}

.header-hidden {
    top: -100px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text);
}

.logo img {
    height: 40px;
    filter: invert(1);
    margin-right: 10px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--light-text);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ---------------------------------- */
/* 4. Hero Section
/* ---------------------------------- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--primary-dark) 5%, rgba(10, 25, 47, 0.6) 100%);
}

.hero-content-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content-container h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-content-container p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--light-text);
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-down-indicator a {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    position: relative;
}

.scroll-down-indicator span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 2px;
    height: 8px;
    background: var(--accent-color);
    margin-left: -1px;
    animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(10px);
        opacity: 0.5;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ---------------------------------- */
/* 5. Services Section
/* ---------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--secondary-dark);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px -15px var(--shadow-color);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon svg {
    width: 48px;
    height: 48px;
    color: var(--accent-color);
}

.service-card h3 {
    margin-bottom: 15px;
}

/* ---------------------------------- */
/* 6. Process Section
/* ---------------------------------- */
.process-section {
    background-color: var(--secondary-dark);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px;
    background-color: var(--accent-color);
    color: var(--primary-dark);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    border: 3px solid var(--primary-dark);
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: " ";
    position: absolute;
    top: 28px;
    right: -15px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent transparent var(--border-color);
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: " ";
    position: absolute;
    top: 28px;
    left: -15px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent var(--border-color) transparent transparent;
}


/* ---------------------------------- */
/* 7. Sample Report Section
/* ---------------------------------- */
.report-dashboard {
    background-color: var(--secondary-dark);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px -15px var(--shadow-color);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.report-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.kpi-card {
    background-color: var(--primary-dark);
    padding: 20px;
    border-radius: 5px;
}

.kpi-card h4 {
    font-size: 1rem;
    color: var(--medium-text);
    margin-bottom: 10px;
    font-weight: 400;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-text);
}

.kpi-change {
    font-size: 0.9rem;
    font-weight: 500;
}

.kpi-change.positive {
    color: var(--accent-color);
}

.kpi-change.negative {
    color: #f87171;
}

.report-chart h4 {
    text-align: center;
}

.chart-container {
    height: 250px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: linear-gradient(to top, var(--accent-hover-color), transparent 50%);
}

.bar {
    width: 15%;
    background-color: var(--accent-color);
    border-radius: 5px 5px 0 0;
    position: relative;
    transition: height 0.5s ease-out, background-color 0.3s ease;
    animation: growBar 1.5s ease-out;
}

.bar:hover {
    background-color: var(--white);
}

.bar::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.bar:hover::after {
    opacity: 1;
    visibility: visible;
}

.chart-labels {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

@keyframes growBar {
    from {
        height: 0;
    }
}


/* ---------------------------------- */
/* 8. Industries Section
/* ---------------------------------- */
.industries-section {
    background-color: var(--secondary-dark);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.industry-card {
    text-align: center;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: background-color var(--transition-speed) ease;
}

.industry-card:hover {
    background-color: var(--primary-dark);
}

.industry-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* ---------------------------------- */
/* 9. Testimonials Section
/* ---------------------------------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--secondary-dark);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--accent-color);
    position: relative;
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: var(--border-color);
    z-index: 0;
    line-height: 1;
}

.testimonial-card p {
    position: relative;
    z-index: 1;
    font-style: italic;
}

.testimonial-author {
    margin-top: 20px;
}

.testimonial-author h4 {
    margin: 0;
    color: var(--light-text);
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* ---------------------------------- */
/* 10. Calculator Section
/* ---------------------------------- */
.calculator-wrapper {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--secondary-dark);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.calculator-form {
    flex: 2;
    padding: 40px;
    min-width: 300px;
}

.calculator-form h3 {
    margin-bottom: 20px;
}

.service-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.service-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.service-options input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    accent-color: var(--accent-color);
}

#months {
    width: 100%;
    margin-top: 10px;
}

.calculator-result {
    flex: 1;
    background-color: var(--primary-dark);
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 280px;
}

.estimated-cost {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 10px 0;
}

.calculator-result p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ---------------------------------- */
/* 11. CTA Section
/* ---------------------------------- */
.cta-section {
    background-color: var(--secondary-dark);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
}

.cta-section p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

/* ---------------------------------- */
/* 12. Footer
/* ---------------------------------- */
.site-footer {
    background-color: #020c1b;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about .logo {
    margin-bottom: 20px;
}

.footer-grid h4 {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid ul li {
    margin-bottom: 10px;
}

.footer-grid a {
    color: var(--medium-text);
}

.footer-grid a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* ---------------------------------- */
/* 13. Page-Specific Styles
/* ---------------------------------- */

/* Page Header (for Contact, Legal pages) */
.page-header-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
    text-align: center;
    background-color: var(--secondary-dark);
}

.page-header-section h1 {
    font-size: 3rem;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--light-text);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-hover-color);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-info-item h4 {
    margin-bottom: 5px;
}

.contact-info-item p {
    margin-bottom: 0;
}

.contact-map iframe {
    border-radius: 8px;
}


/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 1rem;
}

/* ---------------------------------- */
/* 14. Animations
/* ---------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

.fade-in {
    transform: translateY(20px);
}

.fade-in-up {
    transform: translateY(50px);
}

.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-right {
    transform: translateX(50px);
}

/* Staggered animation delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* ---------------------------------- */
/* 15. Responsiveness
/* ---------------------------------- */

/* Tablets and below */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero-content-container h1 {
        font-size: 3.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 80px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Nav & Smaller Tablets */
@media (max-width: 768px) {
    .header-cta {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--secondary-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        box-shadow: -10px 0 30px -15px var(--shadow-color);
    }

    .main-nav.is-open {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-toggle.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-content-container h1 {
        font-size: 2.5rem;
    }

    .hero-content-container p {
        font-size: 1.1rem;
    }

    .process-timeline::after {
        left: 25px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 15px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -15px;
        border-color: transparent var(--border-color) transparent transparent;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about .logo {
        justify-content: center;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }

    .hero-content-container h1 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .calculator-wrapper {
        flex-direction: column;
    }

    .estimated-cost {
        font-size: 2.8rem;
    }

    .report-kpis {
        grid-template-columns: 1fr 1fr;
    }
}