/*
================================================
TABLE OF CONTENTS
================================================
1.  CSS Custom Properties (Variables)
2.  Base & Reset Styles
3.  Utility Classes
4.  Typography
5.  Layout & Container
6.  Header & Navigation
7.  Footer
8.  Buttons & Forms
9.  Hero Section
10. Stats Bar Section
11. Services Section
12. Interactive Report Section
13. Process Section
14. Service Calculator Section
15. Testimonials Section
16. Call to Action (CTA) Section
17. Generic Page Styles (Contact, Legal)
18. Animations & Keyframes
19. Responsive Design (Media Queries)
================================================
*/

/* 1. CSS Custom Properties (Variables) */
:root {
    --primary-color: #1B263B;
    --secondary-color: #415A77;
    --accent-color: #FFB703;
    --text-primary: #E0E1DD;
    --text-secondary: #A9B8C9;
    --background-light: #0D1B2A;
    --white: #FFFFFF;
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --header-height: 80px;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.6);
    --transition-speed: 0.3s ease;
}


/* 2. Base & Reset Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--background-light);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--white);
}

ul {
    list-style: none;
}

/* 3. Utility Classes */
.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* 4. Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }

/* 5. Layout & Container */
main {
    padding-top: var(--header-height);
}

section {
    padding: 100px 0;
}

/* 6. Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(2, 12, 27, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: top 0.3s, box-shadow 0.3s;
    box-shadow: none;
}

.site-header.scrolled {
    box-shadow: 0 5px 20px rgba(2, 12, 27, 0.7);
}

.site-header.hidden {
    top: -100px;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px;
    filter: invert(1);
    transition: transform var(--transition-speed);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 10px 5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 2px;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background-color: var(--accent-color);
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Mobile nav open state */
.mobile-nav-toggle.open .hamburger {
    background-color: transparent;
    transform: rotate(180deg);
}
.mobile-nav-toggle.open .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}
.mobile-nav-toggle.open .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* 7. Footer */
.site-footer {
    background-color: var(--primary-color);
    padding: 60px 0 20px;
    border-top: 1px solid var(--secondary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about .footer-logo img {
    height: 50px;
    filter: invert(1);
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-links h4, .footer-contact h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul a {
    color: var(--text-secondary);
}
.footer-links ul a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-contact a {
    color: var(--text-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--secondary-color);
    font-size: 0.8rem;
}

/* 8. Buttons & Forms */
.cta-button {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all var(--transition-speed);
    cursor: pointer;
    text-align: center;
}

.cta-button.primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.cta-button.primary:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.1);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--accent-color);
}

.cta-button.secondary:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
}

.cta-button.large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.header-cta {
    padding: 8px 20px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.contact-form label {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.contact-form input, 
.contact-form textarea,
.contact-form select {
    background-color: var(--secondary-color);
    border: 1px solid #233554;
    border-radius: var(--border-radius);
    padding: 12px;
    color: var(--text-primary);
    font-family: var(--font-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-color);
}

/* 9. Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-content {
    z-index: 2;
    max-width: 800px;
}
.hero-content h1 {
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0 auto 30px;
    max-width: 600px;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(100, 255, 218, 0.1), transparent 30%),
        radial-gradient(circle at 85% 30%, rgba(100, 255, 218, 0.05), transparent 40%);
    z-index: 1;
}

/* 10. Stats Bar Section */
.stats-bar {
    background-color: var(--primary-color);
    padding: 50px 0;
}
.stats-bar .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}
.stat-number::after {
    content: '%';
}
.stat-item:nth-child(2) .stat-number::after,
.stat-item:nth-child(4) .stat-number::after {
    content: '+';
}
.stat-item:nth-child(1) .stat-number::after {
    content: '%';
}
.stat-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

/* 11. Services Section */
.services-section {
    background-color: var(--background-light);
}
.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: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed);
    border: 1px solid transparent;
    cursor: pointer;
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}
.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: var(--accent-color);
}
.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

/* 12. Interactive Report Section */
.report-section {
    background-color: var(--primary-color);
}
.report-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}
.report-content .section-header {
    text-align: left;
}
.report-content .section-header h2,
.report-content .section-header p {
    text-align: left;
}
.report-content .section-header h2::after {
    margin: 10px 0 0;
}
.report-content a {
    margin-top: 20px;
}
.report-visual {
    position: relative;
    perspective: 1000px;
}
.report-card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}
.report-visual:hover .report-card {
    transform: rotateY(0) rotateX(0);
}
.report-card h4 {
    margin-bottom: 20px;
    border-bottom: 1px solid #233554;
    padding-bottom: 10px;
}
.metric {
    margin-bottom: 15px;
}
.metric span {
    display: inline-block;
    margin-bottom: 5px;
}
.metric span:last-child {
    float: right;
    font-weight: bold;
    color: var(--accent-color);
}
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #233554;
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar div {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 4px;
}
.report-card.small-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 50%;
    padding: 20px;
    transform: rotateY(15deg) rotateX(-5deg) translateZ(50px);
}
.report-visual:hover .small-card {
    transform: rotateY(0) rotateX(0) translateZ(0);
}
.small-card h5 { margin-bottom: 10px; }
.small-card p { margin: 0; font-size: 0.9rem; }

/* 13. Process Section */
.process-section {
    background-color: var(--background-light);
}
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}
.process-step {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}
.process-step:nth-child(odd) {
    left: 0;
    text-align: right;
}
.process-step:nth-child(even) {
    left: 50%;
}
.process-number {
    position: absolute;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    background-color: var(--accent-color);
    border: 4px solid var(--secondary-color);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 1;
    text-align: center;
}
.process-step:nth-child(odd) .process-number {
    right: -25px;
}
.process-step:nth-child(even) .process-number {
    left: -25px;
}
.process-content {
    padding: 20px 30px;
    background-color: var(--secondary-color);
    position: relative;
    border-radius: var(--border-radius);
    border: 1px solid #233554;
}
.process-content h3 {
    margin-bottom: 10px;
}
.process-content p {
    margin: 0;
}

/* 14. Service Calculator Section */
.calculator-section {
    background-color: var(--primary-color);
}
.calculator-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}
.calculator-wrapper h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
}
.service-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.service-checkboxes label {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.service-checkboxes input {
    margin-right: 10px;
    accent-color: var(--accent-color);
}
.calculator-slider {
    margin-top: 30px;
}
.calculator-slider input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #233554;
    outline: none;
    border-radius: 4px;
}
.calculator-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    cursor: pointer;
    border-radius: 50%;
}
.slider-value {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9rem;
}
#adSpendValue {
    font-weight: bold;
    color: var(--accent-color);
}
.calculator-result {
    text-align: center;
    background-color: var(--primary-color);
    padding: 30px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.calculator-result p {
    font-size: 2.5rem;
    color: var(--accent-color);
    font-weight: bold;
    margin: 10px 0;
}
.calculator-result span {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* 15. Testimonials Section */
.testimonials-section {
    background-color: var(--background-light);
}
.testimonial-slider-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.testimonial-slider {
    display: flex;
    transition: transform var(--transition-speed);
}
.testimonial-slide {
    min-width: 100%;
    padding: 40px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    text-align: center;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.5s ease;
}
.testimonial-slide.active {
    opacity: 1;
    position: relative;
}
blockquote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-primary);
}
cite {
    font-style: normal;
}
cite strong {
    display: block;
    color: var(--accent-color);
}
cite span {
    font-size: 0.9rem;
}
.slider-controls {
    text-align: center;
    margin-top: 30px;
}
.slider-controls button {
    background-color: var(--secondary-color);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 10px;
    transition: all var(--transition-speed);
}
.slider-controls button:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* 16. Call to Action (CTA) Section */
.cta-section {
    background-color: var(--secondary-color);
    text-align: center;
    padding: 80px 0;
}
.cta-content {
    max-width: 700px;
    margin: 0 auto;
}
.cta-content h2 {
    margin-bottom: 20px;
}
.cta-content p {
    margin-bottom: 30px;
    color: var(--text-primary);
}

/* 17. Generic Page Styles (Contact, Legal) */
.page-header {
    background-color: var(--primary-color);
    padding: 80px 0;
    text-align: center;
}
.page-header h1 {
    margin-bottom: 10px;
}
.page-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}
.contact-page-section {
    padding: 100px 0;
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background-color: var(--secondary-color);
    padding: 50px;
    border-radius: var(--border-radius);
}
.contact-info h3, .contact-form-wrapper h3 {
    margin-bottom: 20px;
}
.contact-info ul {
    list-style: none;
    padding: 0;
}
.contact-info ul li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.contact-info svg {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    color: var(--accent-color);
    flex-shrink: 0;
}
.legal-content {
    padding: 80px 0;
}
.legal-content .container {
    max-width: 800px;
}
.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}
.legal-content h2:first-of-type {
    margin-top: 0;
}
.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}
.legal-content li {
    margin-bottom: 10px;
}

/* 18. Animations & Keyframes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.fade-in-up {
    transform: translateY(30px);
}
.animate-on-scroll.slide-in-left {
    transform: translateX(-50px);
}
.animate-on-scroll.slide-in-right {
    transform: translateX(50px);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 19. Responsive Design (Media Queries) */
@media (max-width: 1024px) {
    .report-section .container {
        grid-template-columns: 1fr;
    }
    .report-content {
        order: 2;
        margin-top: 40px;
    }
    .report-visual {
        order: 1;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .calculator-wrapper {
        grid-template-columns: 1fr;
    }
    .calculator-result {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    section {
        padding: 80px 0;
    }
    .header-cta {
        display: none;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(75vw, 400px);
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        background-color: var(--secondary-color);
        box-shadow: -10px 0px 30px -15px rgba(2,12,27,0.7);
        transition: right 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    }
    .nav-links.open {
        right: 0;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .process-timeline::after {
        left: 25px;
    }
    .process-step {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }
    .process-step:nth-child(odd),
    .process-step:nth-child(even) {
        left: 0;
        text-align: left;
    }
    .process-number {
        left: 0 !important;
    }
    .contact-form {
        grid-template-columns: 1fr;
    }
    .service-checkboxes {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        text-align: center;
    }
    .footer-links h4::after {
        margin: 10px auto 0;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .stats-bar .container {
        flex-direction: column;
    }
    .report-card.small-card {
        display: none;
    }
    .contact-wrapper {
        padding: 30px;
    }
}