/*
--- DIGITAL MARKETING WEBSITE STYLESHEET ---
Theme: Vibrant, Geometric, Modern
Primary Colors: Deep Indigo, Vibrant Pink, Bright Cyan
Font: Montserrat
*/

/* --- 1. CSS VARIABLES & RESET --- */
:root {
    --primary-bg: #0d1110;
    /* Deep black-green base */
    --secondary-bg: #141a18;
    /* Subtle depth for sections */
    --card-bg: #1b2420;
    /* Card background with contrast */
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-primary: #00e676;
    /* Vivid emerald green */
    --accent-secondary: #ffd166;
    /* Warm golden highlight */
    --heading-color: #ffffff;
    --text-color: #d8e2dc;
    /* Gentle off-white text */
    --text-muted: #9aa39e;
    --font-family: 'Montserrat', sans-serif;
    --header-height: 80px;
    --shadow-glow: 0 0 25px rgba(0, 230, 118, 0.25);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--primary-bg);
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
}

/* --- 2. GLOBAL & UTILITY STYLES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 3.8rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

section p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-secondary);
}

ul {
    list-style: none;
}

section {
    padding: 120px 0;
    position: relative;
    background-color: var(--secondary-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.section-title h2 {
    margin-bottom: 15px;
}

.section-title p {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: var(--heading-color);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    padding: 2px;
}

.cta-button span {
    display: block;
    padding: 14px 35px;
    background-color: var(--secondary-bg);
    border-radius: 50px;
    transition: background-color 0.4s ease;
}

.cta-button:hover span {
    background-color: transparent;
}

.full-width {
    width: 100%;
}

/* Angled Section Dividers */
.angled-top {
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0% 100%);
    padding-top: 180px;
}

.angled-bottom {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
    padding-bottom: 180px;
}

/* --- 3. HEADER & NAVIGATION --- */
.site-header {
    background-color: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background-color: var(--secondary-bg);
    border-bottom-color: var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav-logo img {
    height: 50px;
    filter: invert(1);
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 45px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding: 5px;
    letter-spacing: 0.5px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link.active {
    color: var(--heading-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--heading-color);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* --- 4. HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--primary-bg);
}

.geometric-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 15% 25%, var(--accent-primary), transparent 25%),
        radial-gradient(circle at 85% 75%, var(--accent-secondary), transparent 25%);
    opacity: 0.15;
    filter: blur(100px);
    animation: bg-pulse 10s ease-in-out infinite alternate;
}

@keyframes bg-pulse {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.2);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-weight: 800;
    margin-bottom: 25px;
}

.hero-content h1 .highlight {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.animate-on-load:nth-child(1) {
    animation-delay: 0.2s;
}

.animate-on-load:nth-child(2) {
    animation-delay: 0.4s;
}

.animate-on-load:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 5. SERVICES SECTION --- */
.services-section {
    background-color: var(--secondary-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--heading-color);
}

/* --- 6. FRAMEWORK SECTION --- */
.framework-section {
    background-color: var(--primary-bg);
}

.framework-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.framework-step {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 600px;
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.step-content h3 {
    margin-bottom: 10px;
}

.framework-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(var(--accent-primary), var(--accent-secondary));
}

/* --- 7. CAMPAIGN FORECASTER SECTION --- */
.forecaster-section {
    background-color: var(--secondary-bg);
}

.forecaster-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: var(--card-bg);
    padding: 50px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.forecaster-controls h2 {
    margin-bottom: 15px;
}

.forecaster-controls p {
    margin-bottom: 30px;
}

.forecaster-controls .form-group {
    margin-bottom: 30px;
}

.forecaster-controls label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.forecaster-controls select,
.forecaster-controls input[type="range"] {
    width: 100%;
    padding: 12px;
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--heading-color);
    font-size: 1rem;
    font-family: var(--font-family);
}

.forecaster-controls select:focus {
    outline: 1px solid var(--accent-primary);
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

input[type="range"]::-webkit-slider-runnable-track {
    background: var(--secondary-bg);
    height: 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

input[type="range"]::-moz-range-track {
    background: var(--secondary-bg);
    height: 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -7px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    height: 20px;
    width: 20px;
    border-radius: 50%;
}

input[type="range"]::-moz-range-thumb {
    border: none;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    height: 20px;
    width: 20px;
    border-radius: 50%;
}

#budget-value {
    color: var(--accent-secondary);
}

.sample-report-link {
    margin-top: 30px;
    text-align: center;
}

.forecaster-results {
    border-left: 1px solid var(--border-color);
    padding-left: 60px;
}

.forecaster-results h3 {
    text-align: center;
    margin-bottom: 30px;
}

.results-chart {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.pie-chart {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    transition: background 0.5s ease;
}

.chart-legend .legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.chart-legend .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
}

.dot.seo {
    background-color: var(--accent-primary);
}

.dot.ppc {
    background-color: var(--accent-secondary);
}

.dot.smm {
    background-color: #ffc107;
}

/* Third color */
.results-metrics h4 {
    color: var(--text-muted);
    margin-top: 20px;
    font-weight: 600;
}

.results-metrics p {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0;
}

/* --- 8. INDUSTRIES SECTION --- */
.industries-section {
    background-color: var(--primary-bg);
}

.industries-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.industry-card {
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.industry-card.active,
.industry-card:hover {
    background: var(--card-bg);
    transform: translateY(-5px);
    border-color: var(--accent-secondary);
    opacity: 1;
}

.industry-card h4 {
    color: var(--accent-secondary);
    margin-bottom: 10px;
}

/* --- 9. TESTIMONIALS SECTION --- */
.testimonials-section {
    background-color: var(--secondary-bg);
}

.testimonial-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 50px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    min-height: 250px;
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 8rem;
    font-weight: 800;
    color: var(--accent-primary);
    opacity: 0.1;
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.testimonial-content p {
    font-size: 1.2rem;
    color: var(--heading-color);
    font-style: italic;
    margin-bottom: 25px;
}

.testimonial-author h5 {
    font-size: 1.1rem;
    color: var(--heading-color);
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--accent-secondary);
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
}

.slider-nav button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--secondary-bg);
    color: var(--heading-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-nav button:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* --- 10. CTA SECTION --- */
.cta-section {
    text-align: center;
    background: var(--primary-bg);
}

.cta-section h2 {
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 30px;
}

/* --- 11. FOOTER --- */
.site-footer {
    background: var(--secondary-bg);
    padding: 80px 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h4 {
    margin-bottom: 20px;
    color: var(--heading-color);
    position: relative;
}

.footer-logo {
    height: 50px;
    filter: invert(1);
    margin-bottom: 20px;
}

.footer-about p,
.footer-column ul a,
.footer-contact p {
    color: var(--text-muted);
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- 12. SCROLL ANIMATIONS --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.services-grid .reveal-on-scroll:nth-child(2),
.framework-step:nth-child(2) {
    transition-delay: 0.1s;
}

.services-grid .reveal-on-scroll:nth-child(3),
.framework-step:nth-child(3) {
    transition-delay: 0.2s;
}

.services-grid .reveal-on-scroll:nth-child(4),
.framework-step:nth-child(4) {
    transition-delay: 0.3s;
}

/* --- 13. OTHER PAGES (CONTACT, LEGAL) --- */
.page-header {
    background-color: var(--primary-bg);
    text-align: center;
    padding: 180px 0 100px;
}

.contact-page-section {
    padding: 100px 0;
    background: var(--primary-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: var(--card-bg);
    padding: 50px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.contact-details h3 {
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.detail-icon {
    font-size: 2rem;
}

.detail-item h4 {
    color: var(--accent-secondary);
    margin-bottom: 5px;
}

.contact-form h3 {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--heading-color);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.legal-content {
    padding: 100px 0;
    background: var(--primary-bg);
}

.legal-content .container {
    max-width: 800px;
}

.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* --- 14. RESPONSIVENESS --- */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .angled-top {
        clip-path: polygon(0 5%, 100% 0, 100% 100%, 0% 100%);
        padding-top: 140px;
    }

    .angled-bottom {
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0% 100%);
        padding-bottom: 140px;
    }

    .forecaster-wrapper,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .forecaster-results {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-left: 0;
        padding-top: 40px;
        margin-top: 40px;
    }

    .industries-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    section,
    .legal-content,
    .contact-page-section {
        padding: 80px 0;
    }

    .angled-top {
        clip-path: polygon(0 3%, 100% 0, 100% 100%, 0% 100%);
        padding-top: 120px;
    }

    .angled-bottom {
        clip-path: polygon(0 0, 100% 0, 100% 97%, 0% 100%);
        padding-bottom: 120px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background: var(--secondary-bg);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 0;
        padding-top: 40px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 20px 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .framework-step {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .industries-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}