/*
* ===================================================================
* STYLESHEET V2.0 (FROM SCRATCH)
*
* Theme Name: Zac Hess - Strategic Prevention - Future Forward
* Description: A futuristic, animated, and professional theme for a digital marketing agency.
* ===================================================================
*/

/* ===================================================================
 * TABLE OF CONTENTS
 *
 * 1.  Variables & Root
 * 2.  Reset & Base Styles
 * 3.  Custom Cursor
 * 4.  Typography
 * 5.  Layout & Container
 * 6.  Buttons & Forms
 * 7.  Header & Navigation
 * 8.  Footer
 * 9.  Page Header (for inner pages)
 * 10. Hero Section
 * 11. Services Section
 * 12. Process Section
 * 13. Sample Report Section
 * 14. Pricing Section
 * 15. Testimonials Section
 * 16. CTA Section
 * 17. Legal & Contact Pages
 * 18. Popups & Widgets
 * 19. Animations & Keyframes
 * 20. Responsive Design
 * =================================================================== */

/* ------------------------------------------------------------------- */
/* 1. Variables & Root
/* ------------------------------------------------------------------- */
:root {
    --primary-color: #7F5AF0;
    --secondary-color: #2CB67D;
    --background-dark: #16161A;
    --background-light: #242629;
    --card-background: #1a1a1e;
    --text-color: #94A1B2;
    --heading-color: #FFFFFE;
    --border-color: rgba(148, 161, 178, 0.2);

    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;

    --header-height: 80px;
    --border-radius: 12px;
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ------------------------------------------------------------------- */
/* 2. Reset & Base Styles
/* ------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-dark);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::selection {
    background-color: var(--primary-color);
    color: var(--heading-color);
}

/* ------------------------------------------------------------------- */
/* 3. Custom Cursor
/* ------------------------------------------------------------------- */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    z-index: 9999;
    transition: opacity 0.3s, transform 0.3s;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    background-color: rgba(44, 182, 125, 0.2);
    transition: width 0.3s, height 0.3s, background-color 0.3s, transform 0.1s;
}

body.cursor-active .cursor-dot,
body.cursor-active .cursor-outline {
    opacity: 1;
}

a:hover~.cursor-outline,
button:hover~.cursor-outline,
.btn:hover~.cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(127, 90, 240, 0.2);
}

/* ------------------------------------------------------------------- */
/* 4. Typography
/* ------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
}

h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
    max-width: 65ch;
}

.highlight {
    color: var(--primary-color);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-title {
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

/* ------------------------------------------------------------------- */
/* 5. Layout & Container
/* ------------------------------------------------------------------- */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 120px 0;
}

/* ------------------------------------------------------------------- */
/* 6. Buttons & Forms
/* ------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid transparent;
    border-radius: 50px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 32px;
    cursor: none;
    overflow: hidden;
    transition: color var(--transition-medium);
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: width var(--transition-medium), height var(--transition-medium);
}

.btn:hover::before {
    width: 250%;
    padding-bottom: 250%;
}

.btn-primary {
    color: var(--heading-color);
    border-color: var(--primary-color);
}

.btn-primary::before {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    color: var(--heading-color);
}

.btn-secondary {
    color: var(--heading-color);
    border-color: var(--border-color);
}

.btn-secondary::before {
    background-color: var(--primary-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--heading-color);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--heading-color);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group textarea {
    resize: vertical;
}

.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(127, 90, 240, 0.3);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

/* ------------------------------------------------------------------- */
/* 7. Header & Navigation
/* ------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background-color: transparent;
    transition: all var(--transition-medium);
}

.header.scrolled {
    background-color: rgba(22, 22, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.nav {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo img {
    height: 80px;
    filter: brightness(0) invert(1);
    transition: transform var(--transition-medium);
}

.nav__logo:hover img {
    transform: scale(1.05);
}

.nav__menu {
    transition: opacity 0.3s;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav__link {
    color: var(--heading-color);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    position: relative;
    overflow: hidden;
}


.nav__link:hover::before,
.nav__link.active::before {
    transform: translate3d(0, 0, 0);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav__toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.nav__toggle-icon {
    width: 28px;
    height: 20px;
    position: relative;
}

.nav__toggle-icon span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--heading-color);
    transition: all 0.3s ease-in-out;
}

.nav__toggle-icon span:nth-child(1) {
    top: 0;
}

.nav__toggle-icon span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.nav__toggle-icon span:nth-child(3) {
    bottom: 0;
}

body.nav-open .nav__toggle-icon span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

body.nav-open .nav__toggle-icon span:nth-child(2) {
    opacity: 0;
}

body.nav-open .nav__toggle-icon span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* ------------------------------------------------------------------- */
/* 8. Footer
/* ------------------------------------------------------------------- */
.footer {
    background-color: var(--background-light);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer__logo img {
    height: 80px;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer__description {
    font-size: 0.9rem;
    max-width: 300px;
    margin-bottom: 1.5rem;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-color);
    transition: all var(--transition-medium);
}

.footer__social a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--heading-color);
    transform: translateY(-3px);
}

.footer__links h3,
.footer__contact h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
}

.footer__links ul li {
    margin-bottom: 0.8rem;
}

.footer__links ul li a {
    color: var(--text-color);
    position: relative;
}

.footer__links ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width var(--transition-medium);
}

.footer__links ul li a:hover::after {
    width: 100%;
}

.footer__links ul li a:hover {
    color: var(--heading-color);
}

.footer__contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer__contact ul li i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer__contact ul li a {
    color: var(--text-color);
}

.footer__contact ul li a:hover {
    color: var(--heading-color);
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* ------------------------------------------------------------------- */
/* 9. Page Header
/* ------------------------------------------------------------------- */
.page-header {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--background-dark);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(127, 90, 240, 0.1), transparent 50%);
    animation: pulse 10s infinite ease-in-out;
}

.page-header__title {
    font-size: clamp(3rem, 6vw, 5rem);
}

.page-header__subtitle {
    max-width: 600px;
    margin: 1rem auto 0;
    font-size: 1.1rem;
}

/* ------------------------------------------------------------------- */
/* 10. Hero Section
/* ------------------------------------------------------------------- */
.hero {
    position: relative;
    padding: 200px 0 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.aurora {
    width: 100%;
    height: 100%;
    background: radial-gradient(40% 50% at 20% 20%, rgba(127, 90, 240, 0.3) 0%, rgba(127, 90, 240, 0) 100%),
        radial-gradient(40% 50% at 80% 80%, rgba(44, 182, 125, 0.2) 0%, rgba(44, 182, 125, 0) 100%);
    animation: aurora-flow 20s infinite alternate ease-in-out;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    align-items: center;
    gap: 2rem;
}

.hero__title {
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.reveal-text {
    display: block;
    overflow: hidden;
}

.reveal-text span {
    display: block;
    transform: translateY(110%);
    animation: reveal 1s 0.2s cubic-bezier(0.2, 1, 0.2, 1) forwards;
}

.hero__title .reveal-text:nth-child(2) span {
    animation-delay: 0.3s;
}

.hero__title .reveal-text:nth-child(3) span {
    animation-delay: 0.4s;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero__visual {
    display: grid;
    place-items: center;
}

.hero__3d-sphere-container {
    position: relative;
    width: 350px;
    height: 350px;
}

.hero__3d-sphere {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotate-sphere 30s linear infinite;
}

.sphere-point {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--heading-color);
    border-radius: 50%;
    transform-style: preserve-3d;
    transform: rotateY(calc(var(--i) * 45deg)) rotateX(calc(var(--i) * 25deg)) translateZ(175px);
}

.hero__icon-orbit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotate-sphere 20s linear infinite reverse;
}

.hero__icon-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px;
    display: grid;
    place-items: center;
    background: rgba(36, 38, 41, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--secondary-color);
    transform: rotateY(calc(var(--i) * 90deg)) translateZ(120px);
}

/* ------------------------------------------------------------------- */
/* 11. Services Section
/* ------------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(127, 90, 240, 0.15), transparent 70%);
    transform-origin: bottom right;
    transition: transform 0.8s ease-out;
    transform: scale(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(127, 90, 240, 0.5);
}

.service-card:hover::before {
    transform: scale(3);
}

.service-card__icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card__title {
    margin-bottom: 1rem;
}

.service-card__link {
    display: inline-block;
    margin-top: 1.5rem;
    font-family: var(--font-display);
    font-weight: 500;
}

/* ------------------------------------------------------------------- */
/* 12. Process Section
/* ------------------------------------------------------------------- */
.process-section {
    background-color: var(--background-light);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.process-step {
    position: relative;
    width: 50%;
    padding: 1rem 3rem;
    margin-bottom: 2rem;
}

.process-step:nth-child(odd) {
    left: 0;
    text-align: right;
}

.process-step:nth-child(even) {
    left: 50%;
}

.process-step__number {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.3;
    z-index: 1;
}

.process-step:nth-child(odd) .process-step__number {
    right: -40px;
}

.process-step:nth-child(even) .process-step__number {
    left: -40px;
}

.process-step__content {
    position: relative;
    z-index: 2;
}

/* ------------------------------------------------------------------- */
/* 13. Sample Report Section
/* ------------------------------------------------------------------- */
.report-section__container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.report-dashboard {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.dashboard-tabs .dashboard-tab {
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    font-family: var(--font-display);
    font-size: 1rem;
    position: relative;
    cursor: none;
}

.dashboard-tabs .dashboard-tab::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-medium);
}

.dashboard-tabs .dashboard-tab.active {
    color: var(--heading-color);
}

.dashboard-tabs .dashboard-tab.active::after {
    width: 100%;
}

.dashboard-pane {
    display: none;
}

.dashboard-pane.active {
    display: block;
    animation: fadeIn 0.5s;
}

.kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.kpi-card {
    background: var(--background-light);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.kpi-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
}

.kpi-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--heading-color);
}

.kpi-change {
    font-size: 0.8rem;
    font-weight: 700;
}

.kpi-change.positive {
    color: var(--secondary-color);
}

.kpi-change.negative {
    color: #f05a5a;
}

/* ------------------------------------------------------------------- */
/* 14. Pricing Section
/* ------------------------------------------------------------------- */
.pricing-section {
    background: var(--background-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition-medium);
}

.pricing-card.popular {
    transform: scale(1.05);
    border-color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: var(--heading-color);
    padding: 0.3rem 1.5rem;
    font-size: 0.8rem;
    font-family: var(--font-display);
    transform: rotate(45deg) translate(28%, -55%);
    transform-origin: center;
    width: 150px;
}

.pricing-card__header h3 {
    font-size: 1.5rem;
}

.pricing-card__price {
    margin: 2rem 0;
    font-size: 1.2rem;
}

.pricing-card__price span {
    font-family: var(--font-display);
    font-size: 3.5rem;
    display: block;
    color: var(--heading-color);
}

.pricing-card__price.custom span {
    font-size: 2.5rem;
}

.pricing-card__features {
    text-align: left;
    margin-bottom: 2.5rem;
}

.pricing-card__features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.pricing-card__features li i {
    color: var(--secondary-color);
}

/* ------------------------------------------------------------------- */
/* 15. Testimonials Section
/* ------------------------------------------------------------------- */
.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-slides {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial__text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--heading-color);
    margin-bottom: 2rem;
}

.testimonial__author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial__author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.testimonial__author h4 {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 1rem;
}

.testimonial__author span {
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.slider-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: none;
    transition: all var(--transition-fast);
}

.slider-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--heading-color);
}

.slider-dots {
    display: flex;
    gap: 0.8rem;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    background: var(--border-color);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.slider-dots .dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ------------------------------------------------------------------- */
/* 16. CTA Section
/* ------------------------------------------------------------------- */
.cta-section {
    background-color: var(--background-light);
}

.cta-section__container {
    background: var(--primary-color);
    padding: 4rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.cta__title {
    color: var(--heading-color);
}

.cta__text {
    color: var(--heading-color);
    opacity: 0.9;
    margin: 1rem auto 2rem;
}

.cta__text a {
    color: var(--secondary-color);
    font-weight: 700;
}

.cta-section .btn-primary {
    background: var(--heading-color);
    color: var(--primary-color);
    border-color: var(--heading-color);
}

.cta-section .btn-primary:hover {
    background: transparent;
    color: var(--heading-color);
}

.cta-section .btn-primary::before {
    background: var(--background-light);
}

/* ------------------------------------------------------------------- */
/* 17. Legal & Contact Pages
/* ------------------------------------------------------------------- */
.legal-page .container {
    max-width: 800px;
}

.legal-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.contact-page__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--card-background);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.contact-info-block h2 {
    color: var(--secondary-color);
}

.contact-details-list {
    margin-top: 2rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.icon-wrapper {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* ------------------------------------------------------------------- */
/* 18. Popups & Widgets
/* ------------------------------------------------------------------- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 2000;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--background-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: none;
}

.popup-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

.chat-widget__button {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--heading-color);
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(127, 90, 240, 0.4);
    cursor: none;
}

/* ------------------------------------------------------------------- */
/* 19. Animations & Keyframes
/* ------------------------------------------------------------------- */
.animate-on-load,
.animate-on-scroll {
    opacity: 0;
}

.fade-in-up {
    transform: translateY(30px);
}

.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-right {
    transform: translateX(50px);
}

.zoom-in {
    transform: scale(0.9);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes reveal {
    to {
        transform: translateY(0);
    }
}

@keyframes aurora-flow {
    0% {
        transform: scale(1) rotate(0deg);
    }

    100% {
        transform: scale(1.5) rotate(30deg);
    }
}

@keyframes rotate-sphere {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) scale(1.2);
        opacity: 0.7;
    }
}

/* ------------------------------------------------------------------- */
/* 20. Responsive Design
/* ------------------------------------------------------------------- */
@media (max-width: 1024px) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    .btn,
    .chat-widget__button {
        cursor: pointer;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background-color: var(--background-dark);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-slow);
    }

    .nav__menu.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 2rem;
    }

    .nav__link {
        font-size: 2rem;
    }

    .nav__toggle {
        display: block;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__visual {
        margin-top: 4rem;
    }

    .process-timeline::before {
        left: 20px;
    }

    .process-step {
        width: 100%;
        padding: 1rem 1rem 1rem 50px;
        left: 0 !important;
        text-align: left !important;
    }

    .process-step__number {
        left: -10px !important;
    }

    .report-section__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 450px;
        margin: 0 auto;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .footer__content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-page__wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 3rem;
    }

    .hero__3d-sphere-container {
        width: 300px;
        height: 300px;
    }

    .sphere-point {
        transform: rotateY(calc(var(--i) * 45deg)) rotateX(calc(var(--i) * 25deg)) translateZ(150px);
    }

    .hero__icon-container {
        transform: rotateY(calc(var(--i) * 90deg)) translateZ(100px);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .page-header {
        padding: 140px 0 60px;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }
}