/*
* Digital Marketing Agency Website Stylesheet
* Author: AI Assistant
* Version: 1.0
*/

/* ---------------------------------- */
/* 1. Global Styles & Variables       */
/* ---------------------------------- */
:root {
    --primary-dark: #0a192f;
    --secondary-dark: #112240;
    --accent-primary: #64ffda;
    --accent-secondary: #ff6489;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --background-light: #f5f5f5;
    --white: #ffffff;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --header-height: 80px;
    --border-radius: 4px;
    --transition-speed: 0.3s;
}

/* Basic Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--primary-dark);
    color: var(--text-secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-secondary);
    color: var(--text-primary);
    font-weight: 700;
    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;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--white);
}

ul {
    list-style: none;
}

.highlight {
    color: var(--accent-primary);
}

.section-title {
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-primary);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--primary-dark);
    border-color: var(--accent-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.btn-secondary:hover {
    background-color: var(--accent-primary);
    color: var(--primary-dark);
}

/* Animation on Scroll Setup */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left.visible {
    transform: translateX(-20px);
}

.fade-in-right.visible {
    transform: translateX(20px);
}

.fade-in-up.visible {
    transform: translateY(0);
}

/* ---------------------------------- */
/* 2. Header & Navigation             */
/* ---------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    transition: all var(--transition-speed);
    height: var(--header-height);
}

.site-header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    height: 70px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px;
    filter: brightness(0) invert(1);
    width: auto;
    transition: transform var(--transition-speed);
}

.logo img:hover {
    transform: scale(1.05);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-primary);
    transition: width var(--transition-speed) ease-out;
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 30px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Mobile nav active state */
.mobile-nav-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-nav-toggle.active .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle.active .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}


/* ---------------------------------- */
/* 3. Hero Section                    */
/* ---------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 60%;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
}

/* 3D Cube Element */
.hero-3d-element {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    perspective: 1000px;
}

.cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid var(--accent-primary);
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.front {
    transform: translateZ(100px);
}

.back {
    transform: rotateY(180deg) translateZ(100px);
}

.right {
    transform: rotateY(90deg) translateZ(100px);
}

.left {
    transform: rotateY(-90deg) translateZ(100px);
}

.top {
    transform: rotateX(90deg) translateZ(100px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

@keyframes rotateCube {
    from {
        transform: rotateX(0) rotateY(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* Hero Background Shapes */
.hero-background-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.05) 0%, rgba(100, 255, 218, 0) 70%);
    z-index: -1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 5%;
}

.shape-2 {
    width: 300px;
    height: 300px;
    top: 60%;
    right: 15%;
}

.shape-3 {
    width: 200px;
    height: 200px;
    bottom: 5%;
    left: 30%;
}


/* ---------------------------------- */
/* 4. Services Section                */
/* ---------------------------------- */
.services-section {
    padding: 100px 0;
    background-color: var(--secondary-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 4rem;
}

.service-card {
    background-color: var(--primary-dark);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    transition: all var(--transition-speed) ease;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon svg {
    width: 50px;
    height: 50px;
    color: var(--accent-primary);
}

.service-card h3 {
    margin-bottom: 15px;
}

/* ---------------------------------- */
/* 5. Industry Specific Section       */
/* ---------------------------------- */
.industry-section {
    padding: 100px 0;
}

.industry-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.industry-list {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

.industry-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.industry-list li span {
    margin-right: 15px;
    font-size: 1.2rem;
}

.industry-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.industry-image-wrapper img {
    width: 100%;
    display: block;
    filter: grayscale(80%) contrast(1.1);
    transition: all var(--transition-speed);
}

.industry-image-wrapper:hover img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05);
}

/* ---------------------------------- */
/* 6. Interactive Report Section      */
/* ---------------------------------- */
.interactive-report-section {
    padding: 100px 0;
    background-color: var(--secondary-dark);
}

.report-container {
    background-color: var(--primary-dark);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--secondary-dark);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.report-tabs .tab-btn {
    background: none;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 8px 16px;
    margin-left: 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.report-tabs .tab-btn.active,
.report-tabs .tab-btn:hover {
    background-color: var(--accent-primary);
    color: var(--primary-dark);
    border-color: var(--accent-primary);
}

.report-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.bar-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 300px;
}

.bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.bar-item .bar {
    width: 50px;
    background: linear-gradient(to top, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    transition: height 0.8s ease-out;
}

.report-summary #summary-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.report-summary #summary-desc {
    font-size: 0.9rem;
}

/* ---------------------------------- */
/* 7. Testimonials Section            */
/* ---------------------------------- */
.testimonials-section {
    padding: 100px 0;
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    background-color: var(--secondary-dark);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.author-name {
    font-weight: bold;
    color: var(--text-primary);
    display: block;
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
}

.slider-controls button {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background-color var(--transition-speed);
}

.slider-controls button:hover {
    background-color: var(--accent-primary);
    color: var(--primary-dark);
}

/* ---------------------------------- */
/* 8. CTA Section                     */
/* ---------------------------------- */
.cta-section {
    padding: 80px 0;
    background-color: var(--secondary-dark);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.2rem;
}

.cta-content p {
    margin-bottom: 2rem;
}

/* ---------------------------------- */
/* 9. Footer                          */
/* ---------------------------------- */
.site-footer {
    background-color: #020c1b;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-legal a {
    color: var(--text-secondary);
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--accent-primary);
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--secondary-dark);
}

/* ---------------------------------- */
/* 10. Page Specific Styles           */
/* ---------------------------------- */
/* Page Header (for Contact, Legal pages) */
.page-header {
    padding: 120px 0 60px;
    text-align: center;
    background-color: var(--secondary-dark);
}

.page-header h1 {
    font-size: 3rem;
}

/* Contact Page */
.contact-page-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    background-color: var(--secondary-dark);
    border: 1px solid #233554;
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.contact-details {
    margin-top: 2rem;
}

.contact-details li {
    display: flex;
    margin-bottom: 1rem;
}

.contact-details li strong {
    width: 80px;
    color: var(--text-primary);
}

/* Legal Pages */
.legal-content {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--secondary-dark);
}

.legal-content p,
.legal-content li {
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
}

/* ---------------------------------- */
/* 11. Live Chat Widget                */
/* ---------------------------------- */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.chat-button {
    width: 60px;
    height: 60px;
    background-color: var(--accent-primary);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-speed);
}

.chat-button:hover {
    transform: scale(1.1);
}

.chat-button svg {
    width: 30px;
    height: 30px;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background-color: var(--secondary-dark);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all var(--transition-speed);
}

.chat-widget.open .chat-window {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.chat-header {
    background-color: var(--primary-dark);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
}

.close-chat {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 20px;
    flex-grow: 1;
    min-height: 150px;
}

.chat-footer {
    padding: 15px;
    border-top: 1px solid var(--primary-dark);
}

.chat-footer input {
    width: 100%;
    background: var(--primary-dark);
    border: 1px solid #233554;
    padding: 10px;
    border-radius: var(--border-radius);
    color: var(--text-primary);
}

.chat-footer input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* ---------------------------------- */
/* 12. Responsive Design              */
/* ---------------------------------- */

/* Tablets and larger devices */
@media (max-width: 1024px) {
    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-3d-element {
        display: none;
    }

    .industry-content {
        grid-template-columns: 1fr;
    }

    .industry-image-wrapper {
        margin-top: 3rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Mobile Navigation */
    .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 rgba(0, 0, 0, 0.5);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .header-cta {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .report-header {
        flex-direction: column;
        gap: 1rem;
    }

    .report-body {
        grid-template-columns: 1fr;
    }

    .bar-chart {
        height: 250px;
    }

    .chat-window {
        width: 90vw;
    }
}

@media (max-width: 480px) {
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .slider-controls {
        display: none;
    }

    /* Hide arrows on mobile, rely on swipe */
}