/*
    Digital Marketing Agency Website Redesign
    Author: AI Assistant
    Version: 1.0
*/

/* 1. Reset and Global Styles
-------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #0A192F;
    /* Dark Navy Blue */
    --secondary-color: #172A45;
    /* Lighter Navy */
    --accent-color: #64FFDA;
    /* Vibrant Teal/Mint */
    --text-color-light: #CCD6F6;
    /* Light Slate */
    --text-color-dark: #8892B0;
    /* Darker Slate/Grey */
    --white-color: #FFFFFF;
    --border-color: rgba(100, 255, 218, 0.1);
    --shadow-color: rgba(2, 12, 27, 0.7);

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto Mono', monospace;

    --header-height: 80px;
    --transition-speed: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--primary-color);
    color: var(--text-color-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Add Google Fonts (if needed) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Roboto+Mono:wght@400;700&display=swap');

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    color: var(--text-color-light);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--white-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 100px 0;
}

.dark-bg {
    background-color: var(--secondary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-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 {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}


/* 2. Header and Navigation
-------------------------------------------------- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    transition: all var(--transition-speed);
    box-shadow: 0 10px 30px -10px var(--shadow-color);
}

#main-header.scrolled {
    height: 70px;
    box-shadow: 0 10px 30px -10px var(--shadow-color);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    height: 50px;
    filter: invert(1);
    width: auto;
    transition: transform var(--transition-speed);
}

#main-nav ul {
    display: flex;
    gap: 30px;
}

#main-nav a {
    color: var(--text-color-light);
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    position: relative;
    padding: 10px 0;
    transition: color var(--transition-speed);
}

#main-nav a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

#main-nav a:hover::before {
    visibility: visible;
    transform: scaleX(1);
}

#main-nav a:hover {
    color: var(--accent-color);
}

.cta-button {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 12px 24px;
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    cursor: pointer;
}

.cta-button:hover {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
}

#menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

#menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 5px 0;
    transition: all var(--transition-speed);
}

#menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

#mobile-menu {
    display: none;
}


/* 3. Hero Section
-------------------------------------------------- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background-image: url('https://images.unsplash.com/photo-1551434678-e076c223a692?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.8);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

#hero h1 {
    margin-bottom: 20px;
}

#hero .highlight {
    color: var(--accent-color);
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-color-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#hero .cta-button {
    padding: 15px 35px;
    font-size: 1rem;
}


/* 4. Services Section
-------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--secondary-color);
    padding: 40px 30px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -15px var(--shadow-color);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon svg {
    width: 50px;
    height: 50px;
    color: var(--accent-color);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}


/* 5. Process Section (Timeline)
-------------------------------------------------- */
.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-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12.5px;
    top: 25px;
    background-color: var(--primary-color);
    border: 4px solid var(--accent-color);
    border-radius: 50%;
    z-index: 1;
    transition: transform 0.3s ease;
}

.timeline-item:hover::after {
    transform: scale(1.2);
}

.timeline-item:nth-child(even)::after {
    left: -12.5px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--primary-color);
    position: relative;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.timeline-step {
    font-family: var(--font-secondary);
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.timeline-content h3 {
    margin-bottom: 10px;
}


/* 6. Interactive Report Section
-------------------------------------------------- */
.report-container {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 30px -10px var(--shadow-color);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.report-header h4 {
    color: var(--text-color-light);
    font-size: 1.5rem;
}

.report-header span {
    font-family: var(--font-secondary);
    color: var(--text-color-dark);
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.report-metric {
    background-color: var(--primary-color);
    padding: 25px;
    border-radius: 4px;
    text-align: center;
}

.metric-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.metric-value,
.metric-value-special,
.metric-value-percent,
.metric-value-large {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color-light);
    font-family: var(--font-secondary);
}

.metric-change {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
}

.metric-change.positive {
    color: var(--accent-color);
}

.metric-change.negative {
    color: #f87171;
}

.report-chart {
    text-align: center;
}

.report-chart p {
    margin-bottom: 20px;
    color: var(--text-color-light);
}

.chart-bar-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 200px;
    gap: 20px;
}

.chart-bar {
    width: 50px;
    background-color: var(--accent-color);
    border-radius: 4px 4px 0 0;
    position: relative;
    animation: growBar 1.5s ease-out forwards;
    transform-origin: bottom;
    transform: scaleY(0);
}

.chart-bar span {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
}

@keyframes growBar {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

/* 7. Industry Tabs Section
-------------------------------------------------- */
.industry-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-link {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color-dark);
    padding: 12px 25px;
    cursor: pointer;
    font-family: var(--font-secondary);
    transition: all var(--transition-speed);
    border-radius: 4px;
}

.tab-link:hover {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
}

.tab-link.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.tab-content {
    display: none;
    background-color: var(--primary-color);
    padding: 30px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.tab-content h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
}


/* 8. Testimonials Section
-------------------------------------------------- */
.testimonial-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    height: 250px;
    /* Adjust as needed */
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: 4px;
    border-left: 5px solid var(--accent-color);
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 0 20px;
}

.testimonial-slide.active {
    opacity: 1;
}

blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-color-light);
    margin-bottom: 20px;
    border: none;
    padding: 0;
}

cite {
    font-style: normal;
}

.client-name {
    display: block;
    font-weight: bold;
    color: var(--white-color);
}

.client-title {
    font-size: 0.9rem;
    color: var(--text-color-dark);
}

.slider-controls {
    text-align: center;
    margin-top: 20px;
}

.slider-controls button {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: all var(--transition-speed);
}

.slider-controls button:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* 9. CTA Section
-------------------------------------------------- */
#cta {
    background-color: var(--secondary-color);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

#cta h2 {
    margin-bottom: 20px;
}

#cta p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* 10. Footer
-------------------------------------------------- */
#main-footer {
    background-color: var(--secondary-color);
    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-col h4 {
    margin-bottom: 20px;
    color: var(--text-color-light);
    font-size: 1.1rem;
}

.footer-col p,
.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--white-color);
    text-decoration: underline;
}

.footer-col.about-col .logo {
    margin-bottom: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}


/* 11. Contact Page
-------------------------------------------------- */
.page-header {
    background-color: var(--secondary-color);
    padding: 140px 0 60px;
    text-align: center;
}

.page-header p {
    font-size: 1.2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.contact-form-container h3,
.contact-details-container h3 {
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color-light);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color-light);
    font-family: var(--font-primary);
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.contact-details-list li {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.contact-details-list strong {
    color: var(--text-color-light);
    margin-bottom: 5px;
}

.map-placeholder {
    height: 250px;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}


/* 12. Legal Pages
-------------------------------------------------- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    color: var(--accent-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 15px;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.legal-content ul li {
    margin-bottom: 10px;
}


/* 13. Animations & Scroll Effects
-------------------------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for grid items */
.service-card.animate-on-scroll:nth-child(1) {
    transition-delay: 0s;
}

.service-card.animate-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.service-card.animate-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

.service-card.animate-on-scroll:nth-child(4) {
    transition-delay: 0.3s;
}

.timeline-item.animate-on-scroll:nth-child(1) {
    transition-delay: 0s;
}

.timeline-item.animate-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.timeline-item.animate-on-scroll:nth-child(3) {
    transition-delay: 0.4s;
}

.timeline-item.animate-on-scroll:nth-child(4) {
    transition-delay: 0.6s;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* 14. Responsive Design
-------------------------------------------------- */

/* Tablets and small desktops */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .section-padding {
        padding: 60px 0;
    }

    #main-nav {
        display: none;
    }

    .header-cta {
        display: none;
    }

    #menu-toggle {
        display: block;
    }

    #mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--secondary-color);
        box-shadow: -10px 0 30px -15px var(--shadow-color);
        z-index: 999;
        transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        padding-top: 100px;
    }

    #mobile-menu.active {
        right: 0;
    }

    #mobile-menu nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    #mobile-menu nav ul li {
        width: 100%;
        text-align: center;
    }

    #mobile-menu nav a {
        display: block;
        padding: 15px;
        font-size: 1.2rem;
        color: var(--text-color-light);
    }

    #mobile-menu .cta-button {
        margin-top: 20px;
        width: 80%;
    }

    #hero {
        min-height: 80vh;
    }

    .process-timeline::after {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .timeline-item::after {
        left: 17.5px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col .logo {
        margin: 0 auto 20px;
    }
}