/*
========================================
Table of Contents
========================================
1.  Setup & CSS Variables
2.  Global Styles & Typography
3.  Layout & Helper Classes
4.  Buttons
5.  Header & Navigation
6.  Footer
7.  Animated Backgrounds & Cursor
8.  Hero Section
9.  Services Section (Bento Grid)
10. Process Section (Horizontal Scroll)
11. Quiz Section
12. Testimonials Section
13. CTA Section
14. Contact & Legal Pages
15. Animations & Keyframes
16. Media Queries (Responsiveness)
========================================
*/

/* 1. Setup & CSS Variables */
:root {
    --bg-dark: #0D0C1D;
    --bg-medium: #16152B;
    --bg-light: #211F3C;
    --text-primary: #F0F2F5;
    --text-secondary: #A9A8B3;
    --accent-magenta: #E040FB;
    --accent-cyan: #29D6C5;
    --accent-purple: #753BBD;

    --font-primary: 'Sora', sans-serif;
    --header-height: 80px;
    --border-radius: 12px;
    --transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-fast: 0.2s ease-out;
}

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700&display=swap');

/* 2. Global Styles & Typography */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-cyan);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* 3. Layout & Helper Classes */
.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

.section-padding {
    padding: 120px 0;
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 60px;
}

.tagline {
    display: block;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

/* 4. Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-magenta), var(--accent-purple));
    color: var(--text-primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(224, 64, 251, 0.2);
}

/* 5. Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 15px 0;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.main-header.scrolled {
    background-color: rgba(13, 12, 29, 0.7);
    backdrop-filter: blur(10px);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
}

.header-logo img {
    height: 45px;
    filter: invert(1);
}

.main-nav ul {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 600;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-cyan);
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    background: transparent;
    border: none;
    z-index: 101;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 6px 0;
    transition: all 0.3s ease;
}

/* 6. Footer */
.main-footer {
    padding: 80px 0 40px;
    background-color: #080714;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--bg-light);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 20px;
}

/* 7. Animated Backgrounds & Cursor */
.animated-aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, var(--accent-purple), transparent 40%),
        radial-gradient(circle at 80% 90%, var(--accent-magenta), transparent 40%),
        radial-gradient(circle at 50% 50%, var(--accent-cyan), transparent 30%);
    background-color: var(--bg-dark);
    z-index: -1;
    opacity: 0.15;
    animation: moveAurora 30s ease-in-out infinite alternate;
}

.cursor-spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(41, 214, 197, 0.08), transparent 60%);
    pointer-events: none;
    z-index: 99;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}

/* 8. Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 60ch;
    margin: 2rem auto 3rem;
}

/* 9. Services Section (Bento Grid) */
.services-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-item {
    background-color: rgba(22, 21, 43, 0.7);
    border: 1px solid var(--bg-light);
    border-radius: var(--border-radius);
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
}

.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.item-wide {
    grid-column: span 3;
}

.item-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.item-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.item-content p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* 10. Process Section (Horizontal Scroll) */
.process-section {
    padding: 120px 0;
}

.process-scroller-wrapper {
    height: 400px;
    position: relative;
}

.process-timeline {
    position: absolute;
    top: 0;
    display: flex;
    gap: 40px;
    padding: 0 calc(50vw - 200px);
    /* Centers first/last item */
    width: max-content;
}

.timeline-step {
    width: 400px;
    flex-shrink: 0;
    background-color: var(--bg-medium);
    border: 1px solid var(--bg-light);
    border-radius: var(--border-radius);
    padding: 30px;
}

.step-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

/* 11. Quiz Section */
.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(22, 21, 43, 0.7);
    border: 1px solid var(--bg-light);
    border-radius: var(--border-radius);
    padding: 40px;
    backdrop-filter: blur(10px);
}

.quiz-step,
.quiz-results {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: fadeIn 0.5s;
}

.quiz-results.active {
    display: block;
    animation: fadeIn 0.5s;
}

.quiz-options {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quiz-options label {
    display: block;
    background: var(--bg-dark);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--bg-light);
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.quiz-options label:hover {
    border-color: var(--accent-cyan);
}

.quiz-options input[type="radio"] {
    display: none;
}

.quiz-options input[type="radio"]:checked+span {
    color: var(--accent-cyan);
}

.quiz-results h3 {
    margin-bottom: 1rem;
    color: var(--accent-cyan);
}

/* 12. Testimonials Section */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.testimonial-card {
    background-color: rgba(22, 21, 43, 0.7);
    border: 1px solid var(--bg-light);
    border-radius: var(--border-radius);
    padding: 30px;
    backdrop-filter: blur(10px);
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.author-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.author-title {
    font-size: 0.9rem;
    color: var(--accent-cyan);
}

/* 13. CTA Section */
.cta-section {
    background-color: var(--bg-medium);
    text-align: center;
}

.cta-section p {
    max-width: 50ch;
    margin: 1rem auto 2rem;
}

/* 14. Contact & Legal Pages */
.contact-page-section,
.legal-page-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.contact-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.contact-details {
    margin-top: 2rem;
    border-left: 2px solid var(--accent-cyan);
    padding-left: 1.5rem;
}

.contact-form-container,
.legal-content {
    background-color: rgba(22, 21, 43, 0.7);
    border: 1px solid var(--bg-light);
    border-radius: var(--border-radius);
    padding: 40px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--bg-light);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
}

.legal-content h3 {
    color: var(--accent-cyan);
    margin: 2rem 0 1rem;
}

.legal-content ul {
    padding-left: 20px;
    list-style-type: disc;
}

/* 15. Animations & Keyframes */
@keyframes moveAurora {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(100px, 50px) rotate(20deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: var(--delay, 0s);
}

.animate-text-reveal {
    display: block;
    opacity: 0;
    transform: translateY(100%);
    animation: textReveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes textReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--delay, 0s);
}

.animate-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 16. Media Queries */
@media (max-width: 1024px) {
    .services-bento-grid {
        grid-template-columns: 1fr 1fr;
    }

    .item-large {
        grid-column: span 2;
        grid-row: auto;
    }

    .item-wide {
        grid-column: span 2;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor-spotlight {
        display: none;
    }

    .section-padding {
        padding: 80px 0;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg-dark);
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .services-bento-grid {
        grid-template-columns: 1fr;
    }

    .item-large,
    .item-wide {
        grid-column: span 1;
    }

    .process-scroller-wrapper {
        height: auto;
    }

    .process-timeline {
        position: static;
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    .timeline-step {
        width: 100%;
    }

    .contact-content-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}