/*
--- DIGITAL MARKETING WEBSITE STYLESHEET ---
Theme: Dark, Professional, Modern
Primary Colors: Deep Blue, Vibrant Teal, White/Light Gray
Font: Poppins
*/

/* --- 1. CSS VARIABLES & RESET --- */
:root {
    --primary-bg: #131016;
    /* Deep plum */
    --secondary-bg: #1a1620;
    /* Slightly lighter violet-black */
    --card-bg: #231c2d;
    /* Card surface */
    --border-color: #3a2f45;
    --accent-color: #ff80ab;
    /* Sakura pink */
    --accent-hover: #ffb3c6;
    /* Light blossom hover */
    --heading-color: #ffffff;
    --text-color: #e6d9e9;
    /* Pale lavender text */
    --text-muted: #a38cab;
    --font-family: 'Poppins', sans-serif;
    --header-height: 80px;
    --shadow-sm: 0 4px 6px rgba(255, 128, 171, 0.08);
    --shadow-md: 0 10px 20px rgba(255, 128, 171, 0.15);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-bg);
    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: 600;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

ul {
    list-style: none;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.section-title h2 {
    margin-bottom: 15px;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--accent-color);
    color: #0d1117;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.secondary-button {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.secondary-button:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg);
}


/* --- 3. HEADER & NAVIGATION --- */
.site-header {
    background-color: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background-color: var(--primary-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav-logo a {
    display: inline-block;
}

.nav-logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 10px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--heading-color);
    transition: all 0.3s ease-in-out;
}

/* --- 4. HERO SECTION --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background-animation .circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 245, 195, 0.1), rgba(0, 245, 195, 0));
    animation: float 20s infinite linear;
}

.hero-background-animation .circle:nth-child(1) {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 5%;
    animation-duration: 25s;
}

.hero-background-animation .circle:nth-child(2) {
    width: 600px;
    height: 600px;
    top: 50%;
    left: 80%;
    animation-duration: 30s;
}

.hero-background-animation .circle:nth-child(3) {
    width: 300px;
    height: 300px;
    top: 70%;
    left: 10%;
    animation-duration: 20s;
}

.hero-background-animation .circle:nth-child(4) {
    width: 500px;
    height: 500px;
    top: -20%;
    left: 40%;
    animation-duration: 35s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(100px, 50px);
    }

    100% {
        transform: translate(0, 0);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-muted);
}

.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 {
    padding: 100px 0;
    background-color: var(--secondary-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 245, 195, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 245, 195, 0.1) 0%, rgba(0, 245, 195, 0) 70%);
    transition: opacity 0.5s ease;
    opacity: 0;
    transform-origin: center;
    animation: rotate 10s linear infinite;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.service-icon,
.service-card h3,
.service-card p {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 30px;
    background-color: rgba(0, 245, 195, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--accent-color);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--accent-color);
}

.service-card h3 {
    margin-bottom: 15px;
}

/* --- 6. PROCESS SECTION --- */
.process-section {
    padding: 100px 0;
    background-color: var(--primary-bg);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

/* Timeline alignment */
.timeline-item:nth-child(odd) {
    left: 0;
    padding-left: 20px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-right: 20px;
}

/* Timeline dot */
.timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--card-bg);
    border: 4px solid var(--accent-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-item.visible .timeline-dot {
    transform: scale(1.2);
    background-color: var(--accent-color);
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    position: relative;
    border-radius: 8px;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
}

.timeline-step {
    position: absolute;
    top: -25px;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    z-index: -1;
}

.timeline-item:nth-child(odd) .timeline-step {
    left: 20px;
}

.timeline-item:nth-child(even) .timeline-step {
    right: 20px;
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--accent-color);
}


/* --- 7. ROI CALCULATOR SECTION --- */
.roi-calculator-section {
    padding: 100px 0;
    background: linear-gradient(rgba(13, 17, 23, 0.95), rgba(13, 17, 23, 0.95)), url('https://dummyimage.com/1920x1080/0d1117/1c2128.png&text=Data+Visualization') no-repeat center center/cover;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.calculator-info h2 {
    margin-bottom: 20px;
}

.calculator-info p {
    color: var(--text-muted);
}

.calculator-sample-report {
    margin-top: 40px;
    padding: 20px;
    border-left: 3px solid var(--accent-color);
    background: rgba(0, 245, 195, 0.05);
}

.calculator-form {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.calculator-form .form-group {
    margin-bottom: 25px;
}

.calculator-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.calculator-form input[type="number"],
.calculator-form input[type="range"] {
    width: 100%;
    padding: 12px;
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--heading-color);
    font-size: 1rem;
}

.calculator-form input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Slider Customization */
.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

input[type="range"]::-webkit-slider-runnable-track {
    background: var(--border-color);
    height: 8px;
    border-radius: 4px;
}

input[type="range"]::-moz-range-track {
    background: var(--border-color);
    height: 8px;
    border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -6px;
    background-color: var(--accent-color);
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: 2px solid var(--primary-bg);
}

input[type="range"]::-moz-range-thumb {
    border: none;
    border-radius: 50%;
    background-color: var(--accent-color);
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: 2px solid var(--primary-bg);
}

#conversion-rate-value {
    font-weight: 600;
    color: var(--accent-color);
    min-width: 40px;
}

.calculator-results {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.calculator-results h4 {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 5px;
}

.calculator-results p {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
}


/* --- 8. INDUSTRIES SECTION --- */
.industries-section {
    padding: 100px 0;
    background-color: var(--secondary-bg);
}

.industries-tabs {
    max-width: 900px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    background-color: var(--card-bg);
    padding: 10px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

.tab-button {
    padding: 12px 25px;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg);
}

.tab-content {
    display: none;
    padding: 40px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.content-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.tab-content h3 {
    margin-bottom: 15px;
    color: var(--accent-color);
}


/* --- 9. TESTIMONIALS SECTION --- */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--primary-bg);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    visibility: hidden;
    position: absolute;
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.testimonial-slide p {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding: 0 20px;
}

.testimonial-slide p::before {
    content: '“';
    font-size: 5rem;
    color: var(--accent-color);
    position: absolute;
    top: -10px;
    left: -20px;
    opacity: 0.3;
}

.testimonial-author {
    text-align: center;
}

.testimonial-author h4 {
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--text-muted);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.slider-controls button {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-controls button:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    transform: scale(1.1);
}

/* --- 10. CTA SECTION --- */
.cta-section {
    padding: 80px 0;
    background-color: var(--secondary-bg);
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--text-muted);
}

/* --- 11. FOOTER --- */
.site-footer {
    background-color: 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-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-logo {
    height: 70px;
    margin-bottom: 20px;
}

.footer-about p {
    color: var(--text-muted);
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul a {
    color: var(--text-muted);
}

.footer-column ul a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.footer-contact strong {
    color: var(--text-color);
}

.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(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay for items in a grid/list */
.services-grid .reveal-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}

.services-grid .reveal-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.services-grid .reveal-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}

.services-grid .reveal-on-scroll:nth-child(4) {
    transition-delay: 0.4s;
}

.timeline-item.reveal-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}

.timeline-item.reveal-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.timeline-item.reveal-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}

.timeline-item.reveal-on-scroll:nth-child(4) {
    transition-delay: 0.4s;
}


/* --- 13. OTHER PAGES (CONTACT, LEGAL) --- */

/* Page Header */
.page-header {
    padding: 160px 0 80px;
    background-color: var(--secondary-bg);
    text-align: center;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Contact Page */
.contact-section {
    padding: 100px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background-color: var(--card-bg);
    padding: 50px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.contact-info .info-item {
    margin-top: 30px;
}

.contact-info .info-item h4 {
    color: var(--accent-color);
    margin-bottom: 5px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--heading-color);
    font-size: 1rem;
    font-family: var(--font-family);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.contact-form button {
    width: 100%;
    margin-top: 10px;
}

/* Legal Pages */
.legal-content {
    padding: 100px 0;
}

.legal-content .container {
    max-width: 800px;
}

.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* --- 14. RESPONSIVENESS --- */

/* Tablets and smaller desktops */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .process-timeline::after {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(odd) {
        left: 0;
    }

    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: 20px;
    }

    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }

    .timeline-item:nth-child(even) .timeline-step {
        right: auto;
        left: 20px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--primary-bg);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .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);
    }

    .slider-controls {
        position: static;
        transform: none;
        margin-top: 30px;
        justify-content: center;
        gap: 20px;
    }

    .tab-buttons {
        flex-direction: column;
        border-radius: 10px;
        padding: 5px;
    }

    .tab-button {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .contact-info {
        text-align: center;
    }
}