/*
================================================
TABLE OF CONTENTS
================================================
1.  Setup & Variables
2.  Base & Typography
3.  Layout & Helpers (Container, Grids)
4.  Header & Navigation
5.  Footer
6.  Buttons & Forms
7.  Animations & Effects (Cursor, Overlays, Transitions)
8.  Page-Specific: Index / Homepage
    8.1. Hero Section & 3D Cube
    8.2. Services Section
    8.3. About Section & Stats
    8.4. Process Section & Timeline
    8.5. Testimonials Section
    8.6. Interactive Report Section
    8.7. CTA Section
9.  Page-Specific: Contact
10. Page-Specific: Legal Pages (Terms, Privacy, etc.)
11. Popups & Modals
12. Responsiveness & Media Queries
================================================
*/

/* 1. SETUP & VARIABLES */
:root {
    --color-primary: #00a8e8;
    --color-secondary: #00f5d4;
    --color-dark: #0f172a;
    --color-dark-alt: #1e293b;
    --color-light: #f8fafc;
    --color-gray: #94a3b8;
    --color-gray-light: #cbd5e1;
    --color-success: #22c55e;
    --color-error: #ef4444;
    --color-shadow: rgba(0, 0, 0, 0.2);

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

/* 2. BASE & TYPOGRAPHY */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-dark);
    color: var(--color-gray-light);
    font-family: var(--font-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: var(--color-light);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-gray);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-secondary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 3. LAYOUT & HELPERS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-primary);
    color: var(--color-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.page-main {
    padding-top: var(--header-height);
}

.page-hero {
    padding: 5rem 0;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 1)), url(https://images.unsplash.com/photo-1519389950473-47ba0277781c?q=80&w=2670&auto=format&fit=crop);
    background-size: cover;
    background-position: center;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}


/* 4. HEADER & NAVIGATION */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
    border-bottom: 1px solid rgba(203, 213, 225, 0.1);
}

.main-header.scrolled {
    background-color: var(--color-dark);
    box-shadow: 0 4px 20px var(--color-shadow);
}

.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 80px;
    filter: invert(1);
}

.logo-text {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-light);
}

.main-nav ul {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--color-gray-light);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link span {
    color: var(--color-primary);
    margin-right: 0.5rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-toggle-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle-btn .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-light);
    transition: all var(--transition-speed) ease-in-out;
}


/* 5. FOOTER */
.main-footer {
    background-color: #0c1221;
    padding: 4rem 0 0;
    border-top: 1px solid rgba(203, 213, 225, 0.1);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--color-light);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-col.footer-info .logo {
    margin-bottom: 1.5rem;
}

.footer-col.footer-info p {
    font-size: 0.9rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul a {
    color: var(--color-gray);
    font-size: 0.9rem;
}

.footer-col ul a:hover {
    color: var(--color-light);
    padding-left: 5px;
}

.footer-contact-details p {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--color-gray);
}

.footer-contact-details i {
    color: var(--color-primary);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(203, 213, 225, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--color-gray);
}

/* 6. BUTTONS & FORMS */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-align: center;
}

.btn i {
    margin-left: 0.5rem;
    transition: transform var(--transition-speed) ease;
}

.btn:hover i {
    transform: translateX(5px);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-light);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    color: var(--color-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 168, 232, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-light);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 1rem 2.2rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group-row {
    display: flex;
    gap: 1.5rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: var(--font-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-gray-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background-color: var(--color-dark-alt);
    border: 1px solid #334155;
    border-radius: var(--border-radius);
    color: var(--color-light);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.3);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* 7. ANIMATIONS & EFFECTS */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrE+eYIqCqNEo6QG0AWGH/jgI-j5O3GSmxYRfxw/BFoAzQAjaoGKSgLlYLDLfUeBFaUH5WL0AeYCLAGz4Vo6DRDesJZjJbPIL/M-V8x1kdLv3gpvM2FNW8is4lLlMAqnLSHTWCGivM8OKcAMLbCK6i1-sAzI2tQJpJYsuNKkhMv2IoOIuED+dJRuXflOKHAKttTSTfl4H4yEPXSDOKe0a2XoHIFYwGJbX leggere. A grandissima richiesta ecco la trama di A grandissima richiesta ecco la trama di');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
    animation: noise 0.2s infinite;
}

@keyframes noise {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -10%);
    }

    20% {
        transform: translate(-15%, 5%);
    }

    30% {
        transform: translate(7%, -25%);
    }

    40% {
        transform: translate(-5%, 25%);
    }

    50% {
        transform: translate(-15%, 10%);
    }

    60% {
        transform: translate(15%, 0%);
    }

    70% {
        transform: translate(0%, 15%);
    }

    80% {
        transform: translate(3%, 35%);
    }

    90% {
        transform: translate(-10%, 10%);
    }
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 10000;
    transform: translate(-50%, -50%);
    display: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-secondary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-primary);
    transition: transform 0.2s ease-out, width 0.3s ease, height 0.3s ease;
}

body:hover .cursor-outline.hover-grow {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: var(--color-secondary);
}

.animate-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-in[data-animation="fade-in-left"] {
    transform: translateX(-50px);
}

.animate-in[data-animation="fade-in-right"] {
    transform: translateX(50px);
}

.animate-in[data-animation="fade-in-left"].is-visible,
.animate-in[data-animation="fade-in-right"].is-visible {
    transform: translateX(0);
}

/* 8. PAGE-SPECIFIC: INDEX / HOMEPAGE */
/* 8.1. Hero Section & 3D Cube */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(0, 168, 232, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(0, 245, 212, 0.1), transparent 40%);
}

.hero-content {
    max-width: 650px;
    margin-left: calc((100% - 1200px)/2 + 1.5rem);
    position: relative;
    z-index: 10;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 90%;
}

.hero-cta {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.hero-animation {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
}

.cube-container {
    perspective: 1000px;
}

.cube {
    width: 250px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-125px);
    animation: rotate-cube 20s infinite linear;
    margin: 75px auto;
}

.cube .face {
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--color-primary);
    color: var(--color-light);
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-primary);
}

.cube .face i {
    font-size: 3rem;
    color: var(--color-secondary);
}

.face.front {
    transform: rotateY(0deg) translateZ(125px);
}

.face.back {
    transform: rotateY(180deg) translateZ(125px);
}

.face.right {
    transform: rotateY(90deg) translateZ(125px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(125px);
}

.face.top {
    transform: rotateX(90deg) translateZ(125px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(125px);
}

@keyframes rotate-cube {
    from {
        transform: rotateY(0deg) rotateX(0deg);
    }

    to {
        transform: rotateY(360deg) rotateX(360deg);
    }
}


/* 8.2. Services Section */
.services-section {
    background-color: #0c1221;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-dark-alt);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #334155;
    transition: all var(--transition-speed) ease;
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(var(--rotateX)) rotateY(var(--rotateY));
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px rgba(0, 168, 232, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--color-light);
}

.card-link {
    font-family: var(--font-primary);
    font-weight: 600;
    margin-top: 1.5rem;
    display: inline-block;
}

.card-link i {
    transition: transform var(--transition-speed) ease;
}

.service-card:hover .card-link i {
    transform: translateX(5px);
}

/* 8.3. About Section & Stats */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-column img {
    border-radius: var(--border-radius);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.stat-item h3::after {
    content: '%';
}

.stat-item:nth-child(2) h3::after {
    content: '+';
}

.stat-item p {
    margin: 0;
    font-size: 0.9rem;
    font-family: var(--font-primary);
}


/* 8.4. Process Section & Timeline */
.process-section {
    background-color: #0c1221;
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #334155;
    top: 0;
    bottom: 0;
    left: 40px;
}

.timeline-item {
    padding: 1rem 0 3rem 100px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: 28px;
    top: 18px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: var(--color-dark-alt);
    border: 3px solid var(--color-primary);
    z-index: 1;
    transition: background-color var(--transition-speed) ease;
}

.timeline-item:hover .timeline-dot {
    background-color: var(--color-secondary);
}

.timeline-step {
    font-family: var(--font-primary);
    color: var(--color-secondary);
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.timeline-content h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    margin: 0;
}


/* 8.5. Testimonials Section */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform var(--transition-speed) ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    position: absolute;
    top: 0;
    left: 0;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
}

.testimonial-quote {
    font-size: 1.3rem;
    font-style: italic;
    font-family: var(--font-primary);
    color: var(--color-light);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
}

.testimonial-author h4 {
    margin: 0;
    color: var(--color-light);
}

.testimonial-author span {
    color: var(--color-gray);
    font-size: 0.9rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    left: 0;
}

.slider-btn {
    background: var(--color-dark-alt);
    border: 1px solid #334155;
    color: var(--color-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.slider-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}


/* 8.6. Interactive Report Section */
.interactive-report-section {
    background-color: #0c1221;
}

.dashboard-mockup {
    background-color: var(--color-dark-alt);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid #334155;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #334155;
}

.dashboard-header h4 {
    margin: 0;
}

.date-range {
    background: var(--color-dark);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.dash-widget {
    background-color: var(--color-dark);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.dash-widget h5 {
    font-size: 1rem;
    color: var(--color-gray);
    margin-bottom: 1rem;
}

.kpi .kpi-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-light);
    display: block;
}

.kpi .change {
    font-size: 1rem;
    font-weight: 500;
}

.change.positive {
    color: var(--color-success);
}

.change.negative {
    color: var(--color-error);
}

.sparkline {
    height: 40px;
    width: 100%;
    margin-top: 1rem;
    /* BG image placeholder */
}

.chart {
    grid-column: 1 / 3;
}

.bar-chart {
    display: flex;
    height: 150px;
    align-items: flex-end;
    gap: 1rem;
    padding: 0 1rem;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, var(--color-primary), var(--color-secondary));
    border-radius: 4px 4px 0 0;
    transition: all var(--transition-speed) ease;
    position: relative;
}

.bar:hover {
    opacity: 0.8;
}

.bar::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%);
    background: #0c1221;
    color: var(--color-light);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
}

.bar:hover::after {
    opacity: 1;
    visibility: visible;
}

.table {
    grid-column: 3 / 5;
}

.table ul {
    padding: 0;
}

.table li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #334155;
}

.table li:last-child {
    border: none;
}

.table li span:last-child {
    font-weight: 700;
    color: var(--color-primary);
}

/* 8.7. CTA Section */
.cta-section {
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    padding: 6rem 0;
    text-align: center;
}

.cta-container h2,
.cta-container p {
    color: var(--color-dark);
}

.cta-container .btn-primary {
    background-color: var(--color-dark);
    color: var(--color-light);
}

.cta-container .btn-primary:hover {
    background-color: var(--color-light);
    color: var(--color-dark);
}

/* 9. PAGE-SPECIFIC: CONTACT */
.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background-color: var(--color-dark-alt);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.contact-details-panel {
    border-right: 1px solid #334155;
    padding-right: 3rem;
}

.contact-details-panel h3,
.contact-form-panel h3 {
    margin-bottom: 2rem;
}

.contact-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-list i {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-top: 5px;
}

.contact-list h4 {
    margin: 0 0 0.25rem 0;
}

.contact-list p,
.contact-list a {
    margin: 0;
    color: var(--color-gray);
}

.contact-list a:hover {
    color: var(--color-light);
}

/* 10. PAGE-SPECIFIC: LEGAL PAGES */
.legal-content {
    background-color: var(--color-dark-alt);
    padding: 3rem;
    border-radius: var(--border-radius);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #334155;
}

.legal-content p,
.legal-content ul {
    color: var(--color-gray);
}

/* 11. POPUPS & MODALS */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--color-dark-alt);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 500px;
    transform: scale(0.9);
    transition: transform var(--transition-speed) ease;
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 4rem;
    color: var(--color-success);
    margin-bottom: 1.5rem;
}

.popup h3 {
    margin-bottom: 1rem;
}

.popup p {
    margin-bottom: 2rem;
}

/* 12. RESPONSIVENESS & MEDIA QUERIES */
@media (max-width: 1200px) {
    .hero-content {
        margin-left: 2rem;
    }

    .hero-animation {
        right: 2%;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-toggle-btn {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--color-dark-alt);
        padding-top: 100px;
        transition: right var(--transition-speed) ease;
        z-index: 1000;
        box-shadow: -10px 0 30px var(--color-shadow);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav-toggle-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle-btn.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle-btn.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding-top: 120px;
        min-height: 80vh;
    }

    .hero-content {
        margin: 0 auto;
        max-width: 90%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-animation {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin-top: 4rem;
        opacity: 0.3;
    }

    .cube-container {
        perspective: none;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image-column {
        order: 1;
    }

    .about-content-column {
        order: 2;
        text-align: center;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-details-panel {
        border-right: none;
        border-bottom: 1px solid #334155;
        padding-right: 0;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .chart,
    .table {
        grid-column: 1 / 3;
    }
}

@media (max-width: 768px) {
    .content-section {
        padding: 4rem 0;
    }

    .form-group-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .header-actions .btn {
        display: none;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .process-timeline::after {
        left: 18px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-dot {
        left: 5px;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        width: 100%;
        max-width: 300px;
    }

    .contact-page-wrapper {
        padding: 1.5rem;
    }

    .legal-content {
        padding: 1.5rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .chart,
    .table {
        grid-column: 1 / 2;
    }

    .slider-controls {
        padding: 0;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    body {
        cursor: auto;
    }
}