/*
    STYLES.CSS
    - Main Stylesheet for Emily and Logan's Holding Digital Marketing Website
    - Author: [Your Name]
    - Version: 1.0.0
*/

/* ---------------------------------- */
/*          1. ROOT VARIABLES         */
/* ---------------------------------- */

:root {
    --primary-color: #4299e1;
    /* Bright Blue */
    --primary-color-dark: #2b6cb0;
    --secondary-color: #1a202c;
    /* Very Dark Blue/Charcoal */
    --background-color: #121212;
    /* True Black */
    --surface-color: #1a202c;
    /* Card Backgrounds */
    --surface-color-light: #2d3748;
    --text-color: #edf2f7;
    /* Off-white */
    --muted-text-color: #a0aec0;
    /* Grey */
    --border-color: #2d3748;
    --gradient: linear-gradient(135deg, var(--primary-color), #805ad5);

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto Mono', monospace;

    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --container-width: 1140px;
    --container-padding: 0 20px;
}

/* ---------------------------------- */
/*          2. GLOBAL & RESET         */
/* ---------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-color-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4 {
    line-height: 1.3;
    font-weight: 600;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

/* ---------------------------------- */
/*        3. UTILITY CLASSES          */
/* ---------------------------------- */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.text-center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    color: var(--primary-color);
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.section-title {
    margin-bottom: 20px;
    color: var(--text-color);
}

.section-intro {
    max-width: 600px;
    margin: 0 auto;
    color: var(--muted-text-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn span {
    z-index: 2;
}

.btn i {
    z-index: 2;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color-dark);
    transition: width var(--transition-speed) ease;
    z-index: 0;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
}

.btn-primary:hover {
    color: #fff;
}

.btn-secondary {
    background-color: var(--surface-color-light);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--surface-color);
    color: var(--text-color);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* ---------------------------------- */
/*          4. PRELOADER              */
/* ---------------------------------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-logo {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-logo img {
    width: 70px;
    filter: brightness(0) invert(1);
    animation: pulse 1.5s infinite ease-in-out;
}

.preloader-circuit-path {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    border: 3px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}


/* ---------------------------------- */
/*          5. HEADER                 */
/* ---------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.header.scrolled {
    background-color: rgba(26, 32, 44, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: auto;
    height: 70px;
    filter: brightness(0) invert(1);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color var(--transition-speed) ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle,
.nav-close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-color);
}

/* ---------------------------------- */
/*          6. HERO SECTION           */
/* ---------------------------------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-color: var(--background-color);
    overflow: hidden;
}

.hero-background-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(66, 153, 225, 0.15) 0%, rgba(66, 153, 225, 0) 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-tagline {
    display: block;
    color: var(--primary-color);
    font-family: var(--font-secondary);
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.hero-title {
    margin-bottom: 25px;
    font-size: 4rem;
}

.highlight-text {
    position: relative;
    display: inline-block;
    color: var(--primary-color);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--muted-text-color);
    max-width: 550px;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

/* 3D Cube Animation */
.hero-visuals {
    display: flex;
    justify-content: center;
    align-items: center;
}

.data-cube-container {
    perspective: 1000px;
    width: 300px;
    height: 300px;
}

.data-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

.data-cube .face {
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(45, 55, 72, 0.5);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: var(--text-color);
    font-size: 1.5rem;
}

.data-cube .face i {
    font-size: 3rem;
    color: var(--primary-color);
}

.data-cube .front {
    transform: rotateY(0deg) translateZ(150px);
}

.data-cube .back {
    transform: rotateY(180deg) translateZ(150px);
}

.data-cube .right {
    transform: rotateY(90deg) translateZ(150px);
}

.data-cube .left {
    transform: rotateY(-90deg) translateZ(150px);
}

.data-cube .top {
    transform: rotateX(90deg) translateZ(150px);
}

.data-cube .bottom {
    transform: rotateX(-90deg) translateZ(150px);
}

@keyframes rotateCube {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}


/* ---------------------------------- */
/*          7. SERVICES SECTION       */
/* ---------------------------------- */
.services-section {
    background-color: var(--surface-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--surface-color-light);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 80%);
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.service-card:hover::before {
    opacity: 0.1;
    transform: scale(3);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

.service-title {
    margin-bottom: 15px;
    position: relative;
}

.service-description {
    color: var(--muted-text-color);
    margin-bottom: 25px;
    position: relative;
}

.service-link {
    font-weight: 600;
    color: var(--text-color);
    position: relative;
}

.service-link i {
    margin-left: 5px;
    transition: transform var(--transition-speed) ease;
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}

/* ---------------------------------- */
/*          8. ABOUT SECTION          */
/* ---------------------------------- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: var(--border-radius);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.about-content p {
    color: var(--muted-text-color);
    margin-bottom: 30px;
}

.about-highlights {
    margin-bottom: 40px;
}

.about-highlights li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.about-highlights li i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* ---------------------------------- */
/*          9. PROCESS SECTION        */
/* ---------------------------------- */
.process-section {
    background-color: var(--surface-color);
}

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
    transform: translateX(-1px);
}

.timeline-item {
    padding: 40px 0;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 80px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 80px;
    text-align: left;
}

.timeline-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #fff;
    border: 4px solid var(--surface-color);
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -30px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -30px;
}

.timeline-step {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.timeline-title {
    margin: 10px 0;
}

.timeline-content p {
    color: var(--muted-text-color);
}

/* ---------------------------------- */
/*    10. INTERACTIVE REPORT SECTION  */
/* ---------------------------------- */
.report-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    background-color: var(--surface-color);
    padding: 60px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.report-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--muted-text-color);
}

.report-visual h4 {
    text-align: center;
    margin-bottom: 30px;
}

.chart-container {
    display: flex;
    gap: 40px;
    align-items: flex-end;
}

.bar-chart {
    flex-grow: 1;
}

.bar-label {
    font-size: 0.9rem;
    color: var(--muted-text-color);
    margin: 15px 0 5px;
}

.bar {
    width: 0;
    /* Animated with JS */
    height: 30px;
    background: var(--gradient);
    border-radius: 5px;
    position: relative;
    transition: width 1s ease-out;
}

.bar-value {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.donut-chart-container {
    text-align: center;
}

.donut-chart {
    transform: rotate(-90deg);
}

.donut-bg {
    stroke: var(--surface-color-light);
}

.donut-segment {
    stroke: var(--primary-color);
    stroke-dasharray: 0 100;
    /* Animated with JS */
    transition: stroke-dasharray 1s ease-out;
}

.donut-number {
    font-size: 0.8rem;
    fill: var(--text-color);
    font-family: var(--font-secondary);
    font-weight: 700;
}

.donut-label {
    margin-top: 10px;
    color: var(--muted-text-color);
    font-size: 0.9rem;
}


/* ---------------------------------- */
/*      11. TESTIMONIALS SECTION      */
/* ---------------------------------- */
.testimonials-section {
    background-color: var(--surface-color);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform var(--transition-speed) ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 40px;
    text-align: center;
    display: none;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-quote-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.5;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--muted-text-color);
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.author-info {
    text-align: left;
}

.author-name {
    margin: 0;
}

.author-title {
    color: var(--muted-text-color);
    font-size: 0.9rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.slider-btn {
    pointer-events: all;
    background-color: var(--surface-color-light);
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.slider-btn:hover {
    background-color: var(--primary-color);
}

/* ---------------------------------- */
/*         12. CTA SECTION            */
/* ---------------------------------- */
.cta-section {
    padding: 0;
}

.cta-container {
    background: var(--gradient);
    padding: 60px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cta-title {
    color: #fff;
    margin-bottom: 10px;
}

.cta-text {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
}

.cta-action .btn-primary {
    background: #fff;
    color: var(--primary-color-dark);
}

.cta-action .btn-primary:hover::before {
    background: #f0f0f0;
}


/* ---------------------------------- */
/*          13. FOOTER                */
/* ---------------------------------- */
.footer {
    background-color: var(--secondary-color);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer-grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(45, 55, 72, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 55, 72, 0.5) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
    position: relative;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo {
    height: 80px;
    filter: brightness(0) invert(1);
}

.footer-about-text {
    color: var(--muted-text-color);
    margin-bottom: 25px;
    padding-right: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--surface-color-light);
    color: var(--text-color);
    border-radius: 50%;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col-title {
    margin-bottom: 25px;
    color: var(--text-color);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--muted-text-color);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--muted-text-color);
}

.footer-contact ul li i {
    margin-top: 5px;
    color: var(--primary-color);
}

.footer-contact ul li a {
    color: var(--muted-text-color);
}

.footer-contact ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    text-align: center;
    color: var(--muted-text-color);
    font-size: 0.9rem;
    position: relative;
}


/* ---------------------------------- */
/*          14. PAGE HEADER (Inner Pages) */
/* ---------------------------------- */
.page-header {
    padding: 160px 0 80px;
    background-color: var(--surface-color);
    text-align: center;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--muted-text-color);
}

.breadcrumbs a {
    color: var(--muted-text-color);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs span {
    color: var(--text-color);
}


/* ---------------------------------- */
/*          15. LEGAL & CONTACT PAGES */
/* ---------------------------------- */
.legal-content .container {
    max-width: 800px;
}

.page-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-content p {
    color: var(--muted-text-color);
    margin-bottom: 20px;
}

.page-content p strong {
    color: var(--text-color);
}

.contact-page-section {
    padding-bottom: 100px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.contact-info-panel h3 {
    margin-bottom: 15px;
}

.contact-info-panel p {
    color: var(--muted-text-color);
    margin-bottom: 30px;
}

.contact-details-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-details-list i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-details-list h4 {
    margin: 0 0 5px;
}

.contact-details-list a,
.contact-details-list p {
    color: var(--muted-text-color);
    margin: 0;
}

/* Contact Form */
.contact-form .form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
    width: 100%;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--surface-color-light);
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color var(--transition-speed) ease;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--muted-text-color);
    pointer-events: none;
    transition: all var(--transition-speed) ease;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background-color: var(--surface-color);
    padding: 0 5px;
    color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Success Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed) ease;
}

.popup.show {
    opacity: 1;
    pointer-events: all;
}

.popup-content {
    background: var(--surface-color);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 450px;
    transform: scale(0.9);
    transition: transform var(--transition-speed) ease;
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.popup-content h3 {
    margin-bottom: 10px;
}

.popup-content p {
    color: var(--muted-text-color);
    margin-bottom: 30px;
}

/* ---------------------------------- */
/*      16. ANIMATIONS                */
/* ---------------------------------- */
.animate-in {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-in.fade-in-up {
    transform: translateY(50px);
}

.animate-in.fade-in-left {
    transform: translateX(-50px);
}

.animate-in.fade-in-right {
    transform: translateX(50px);
}

.animate-in.zoom-in {
    transform: scale(0.9);
}

.animate-in.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}


/* ---------------------------------- */
/*          17. RESPONSIVE DESIGN     */
/* ---------------------------------- */

/* Tablets and larger */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visuals {
        order: 1;
        margin-bottom: 40px;
    }

    .hero-description {
        margin: 0 auto 40px;
    }

    .hero-cta {
        justify-content: center;
    }

    .about-container,
    .report-container {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}


/* Mobile devices */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .section {
        padding: 80px 0;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--surface-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-speed) ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 30px;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2rem;
    }

    .menu-toggle {
        display: block;
    }

    .header-actions .contactButton {
        display: none;
    }

    .data-cube-container {
        transform: scale(0.8);
    }

    .process-timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
        text-align: left !important;
        left: 0 !important;
    }

    .timeline-icon {
        left: 0 !important;
    }

    .cta-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}