/*
  Digital Marketing Agency Redesign V4
  Theme: Clean & Professional Light Mode
  Author: Capture Moore Media
  Version: 4.0
*/

/* ---------------------------------- */
/* 1. Global Styles & Variables       */
/* ---------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #FF5722;
    /* Energetic Orange */
    --secondary-color: #0B2948;
    /* Deep Blue */
    --bg-light: #FFFFFF;
    --bg-offwhite: #F5F5F5;
    --text-dark: #212121;
    --text-medium: #616161;
    --border-color: #E0E0E0;

    --font-body: 'Poppins', sans-serif;
    --header-height: 80px;
    --border-radius: 8px;
}

/* Basic Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-medium);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #E64A19;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #E64A19;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-lg {
    padding: 16px 35px;
    font-size: 1.1rem;
}

section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    margin-bottom: 15px;
}

/* ---------------------------------- */
/* 2. Header and Navigation           */
/* ---------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--secondary-color);
    height: var(--header-height);
    transition: all 0.3s ease;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header-logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.header-logo img {
    height: 60px;
    filter: brightness(0) invert(1);
    margin-right: 12px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links a {
    color: white;
    opacity: 0.8;
    font-weight: 500;
    position: relative;
    transition: opacity 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 60%;
}

.btn-header-cta {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 20px;
    font-size: 0.9rem;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    width: 28px;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ---------------------------------- */
/* 3. Hero Section                    */
/* ---------------------------------- */
.hero-section {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 80px;
    background-color: var(--bg-offwhite);
    min-height: 80vh;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-headline {
    font-size: 3.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subheadline {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 550px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.hero-visual-content {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.data-orb-container {
    position: relative;
    width: 350px;
    height: 350px;
}

.orb {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, var(--secondary-color) 70%);
    box-shadow: 0 0 50px rgba(11, 41, 72, 0.3);
    animation: rotate-orb 30s infinite linear;
    transform-style: preserve-3d;
}

.point {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 15px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    transform-style: preserve-3d;
}

.p1 {
    animation: orbit1 10s infinite linear;
}

.p2 {
    animation: orbit2 12s infinite linear;
    animation-delay: -2s;
}

.p3 {
    animation: orbit3 8s infinite linear;
    animation-delay: -4s;
}

.p4 {
    animation: orbit4 15s infinite linear;
    animation-delay: -6s;
}

.p5 {
    animation: orbit5 9s infinite linear;
    animation-delay: -8s;
}

@keyframes rotate-orb {
    to {
        transform: rotateY(360deg);
    }
}

@keyframes orbit1 {
    from {
        transform: rotateY(0) translateX(175px) rotateY(-0deg);
    }

    to {
        transform: rotateY(360deg) translateX(175px) rotateY(-360deg);
    }
}

@keyframes orbit2 {
    from {
        transform: rotateY(60deg) rotateX(45deg) translateX(175px) rotateX(-45deg) rotateY(-60deg);
    }

    to {
        transform: rotateY(420deg) rotateX(45deg) translateX(175px) rotateX(-45deg) rotateY(-420deg);
    }
}

@keyframes orbit3 {
    from {
        transform: rotateY(-30deg) rotateX(60deg) translateX(175px) rotateX(-60deg) rotateY(30deg);
    }

    to {
        transform: rotateY(330deg) rotateX(60deg) translateX(175px) rotateX(-60deg) rotateY(-330deg);
    }
}

@keyframes orbit4 {
    from {
        transform: rotateY(120deg) rotateX(-50deg) translateX(175px) rotateX(50deg) rotateY(-120deg);
    }

    to {
        transform: rotateY(480deg) rotateX(-50deg) translateX(175px) rotateX(50deg) rotateY(-480deg);
    }
}

@keyframes orbit5 {
    from {
        transform: rotateY(20deg) rotateX(-70deg) translateX(175px) rotateX(70deg) rotateY(-20deg);
    }

    to {
        transform: rotateY(380deg) rotateX(-70deg) translateX(175px) rotateX(70deg) rotateY(-380deg);
    }
}

/* ---------------------------------- */
/* 4. Services Section                */
/* ---------------------------------- */
.services-section {
    background-color: var(--bg-offwhite);
}

.services-interactive-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.service-nav ul {
    list-style: none;
}

.service-tab {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.service-tab:hover {
    background-color: var(--bg-offwhite);
}

.service-tab.active {
    background-color: var(--bg-offwhite);
    border-left-color: var(--primary-color);
    font-weight: 600;
    color: var(--text-dark);
}

.service-display {
    position: relative;
}

.service-content-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.service-content-pane.active {
    display: block;
}

.service-content-pane h3 {
    margin-bottom: 15px;
}

.service-content-pane p {
    margin-bottom: 25px;
}

.service-content-pane img {
    max-width: 100%;
    border-radius: var(--border-radius);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ---------------------------------- */
/* 5. Process Section                 */
/* ---------------------------------- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.process-step {
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.process-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 15px;
    right: 25px;
}

.process-step h3 {
    margin-bottom: 10px;
}

/* ---------------------------------- */
/* 6. Report Section                  */
/* ---------------------------------- */
.report-section {
    background-color: var(--bg-offwhite);
}

.report-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.report-text-content h2 {
    margin-bottom: 20px;
}

.report-text-content p {
    margin-bottom: 30px;
}

.tablet-mockup {
    background: #333;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.tablet-screen {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 20px;
    aspect-ratio: 4 / 3;
}

.dashboard-header {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.kpi-item span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.kpi-item p {
    font-size: 0.8rem;
}

.chart-container {
    height: 100px;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 100%;
}

.bar {
    width: 15%;
    background-color: var(--primary-color);
    border-radius: 4px 4px 0 0;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.is-visible .bar {
    transform: scaleY(1);
}

.is-visible .bar:nth-child(2) {
    transition-delay: 0.1s;
}

.is-visible .bar:nth-child(3) {
    transition-delay: 0.2s;
}

.is-visible .bar:nth-child(4) {
    transition-delay: 0.3s;
}

.is-visible .bar:nth-child(5) {
    transition-delay: 0.4s;
}

/* ---------------------------------- */
/* 7. Testimonials Section            */
/* ---------------------------------- */
.testimonial-scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 31%;
    gap: 30px;
    overflow-x: auto;
    padding: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.testimonial-card {
    background-color: var(--bg-light);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    scroll-snap-align: start;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-card p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.author-info {
    display: flex;
    align-items: center;
}

.author-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.author-info h4 {
    font-size: 1.1rem;
}

.author-info span {
    font-size: 0.9rem;
}

/* ---------------------------------- */
/* 8. CTA Section                     */
/* ---------------------------------- */
.cta-section {
    background-color: var(--secondary-color);
    text-align: center;
}

.cta-section h2,
.cta-section p {
    color: white;
}

.cta-section .container {
    max-width: 800px;
}

.cta-section h2 {
    margin-bottom: 15px;
}

.cta-section p {
    margin-bottom: 30px;
    opacity: 0.8;
}

.cta-section .btn-primary {
    background-color: white;
    color: var(--secondary-color);
}

.cta-section .btn-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ---------------------------------- */
/* 9. Footer Section                  */
/* ---------------------------------- */
.main-footer {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-logo {
    color: white !important;
}

.footer-logo img {
    height: 70px;
    filter: brightness(0) invert(1);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
    color: white;
}

#footer-contact strong {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px 0;
    text-align: center;
}

/* ---------------------------------- */
/* 10. Contact & Legal Page Styles    */
/* ---------------------------------- */
.contact-page-section,
.page-header,
.legal-content {
    padding-top: calc(var(--header-height) + 60px);
}

.contact-page-title {
    text-align: center;
    margin-bottom: 60px;
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background-color: var(--bg-offwhite);
    padding: 50px;
    border-radius: var(--border-radius);
}

.contact-info-panel h3,
.contact-form-panel h3 {
    margin-bottom: 15px;
}

.contact-info-panel ul {
    list-style: none;
    margin-top: 20px;
}

.contact-info-panel li {
    margin-bottom: 15px;
}

.contact-info-panel li strong {
    display: block;
    color: var(--text-dark);
}

.contact-form-panel .form-group {
    margin-bottom: 20px;
}

.contact-form-panel label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-form-panel input,
.contact-form-panel select,
.contact-form-panel textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
}

.contact-form-panel input:focus,
.contact-form-panel select:focus,
.contact-form-panel textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.page-header {
    background-color: var(--bg-offwhite);
    padding-bottom: 40px;
}

.legal-content .container {
    max-width: 800px;
}

.legal-content h2 {
    margin: 40px 0 15px;
}

.legal-content ul {
    padding-left: 20px;
}

/* ---------------------------------- */
/* 11. Responsiveness                 */
/* ---------------------------------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-headline {
        font-size: 3.2rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text-content {
        order: 2;
    }

    .hero-visual-content {
        order: 1;
        margin-bottom: 40px;
    }

    .hero-subheadline {
        margin: 0 auto 30px;
    }

    .hero-cta {
        justify-content: center;
    }

    .services-interactive-wrapper {
        grid-template-columns: 1fr;
    }

    .service-nav ul {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 20px;
    }

    .service-tab {
        flex-grow: 1;
        text-align: center;
        border-left: none;
        border-bottom: 4px solid transparent;
    }

    .report-container {
        grid-template-columns: 1fr;
    }

    .report-text-content {
        text-align: center;
    }

    .tablet-mockup {
        max-width: 500px;
        margin: auto;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .btn-header-cta {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--secondary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .testimonial-scroller {
        grid-auto-columns: 80%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #footer-about {
        align-items: center;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.5rem;
    }

    .data-orb-container {
        width: 280px;
        height: 280px;
    }

    @keyframes orbit1 {
        from {
            transform: rotateY(0) translateX(140px) rotateY(-0deg);
        }

        to {
            transform: rotateY(360deg) translateX(140px) rotateY(-360deg);
        }
    }

    @keyframes orbit2 {
        from {
            transform: rotateY(60deg) rotateX(45deg) translateX(140px) rotateX(-45deg) rotateY(-60deg);
        }

        to {
            transform: rotateY(420deg) rotateX(45deg) translateX(140px) rotateX(-45deg) rotateY(-420deg);
        }
    }

    @keyframes orbit3 {
        from {
            transform: rotateY(-30deg) rotateX(60deg) translateX(140px) rotateX(-60deg) rotateY(30deg);
        }

        to {
            transform: rotateY(330deg) rotateX(60deg) translateX(140px) rotateX(-60deg) rotateY(-330deg);
        }
    }

    @keyframes orbit4 {
        from {
            transform: rotateY(120deg) rotateX(-50deg) translateX(140px) rotateX(50deg) rotateY(-120deg);
        }

        to {
            transform: rotateY(480deg) rotateX(-50deg) translateX(140px) rotateX(50deg) rotateY(-480deg);
        }
    }

    @keyframes orbit5 {
        from {
            transform: rotateY(20deg) rotateX(-70deg) translateX(140px) rotateX(70deg) rotateY(-20deg);
        }

        to {
            transform: rotateY(380deg) rotateX(-70deg) translateX(140px) rotateX(70deg) rotateY(-380deg);
        }
    }

    .testimonial-scroller {
        grid-auto-columns: 90%;
    }
}