/* ---
CRYSTAL SYNAPSE STUDIO THEME
--- */

/* ------------------- */
/* 1. Base & Variables */
/* ------------------- */

:root {
    --color-deep-ink: #0a051a;
    --color-ice-blue: #7DF9FF;
    --color-lavender: #C8A2C8;
    --color-light-slate: #a8b2d1;
    --color-slate: #8892b0;
    --color-white: #e6f1ff;
    --color-glass-bg: rgba(22, 16, 48, 0.4);
    --color-glass-border: rgba(125, 249, 255, 0.2);
    --color-primary-glow: rgba(125, 249, 255, 0.7);
    --color-secondary-glow: rgba(200, 162, 200, 0.6);

    --font-primary: 'Orbitron', sans-serif;
    --font-secondary: 'Poppins', sans-serif;

    --header-height: 80px;
    --transition-speed: 0.3s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-deep-ink);
    color: var(--color-light-slate);
    font-family: var(--font-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body.no-scroll {
    overflow: hidden;
}

/* ------------------- */
/* 2. Dynamic Background & Cursor */
/* ------------------- */
#crystal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 80% at 50% -20%, rgba(200, 162, 200, 0.3), transparent),
        radial-gradient(ellipse 80% 80% at 20% 50%, rgba(125, 249, 255, 0.2), transparent),
        radial-gradient(ellipse 80% 80% at 80% 50%, rgba(200, 162, 200, 0.2), transparent);
    overflow: hidden;
}

#crystal-bg::before,
#crystal-bg::after {
    content: '';
    position: absolute;
    width: 200vw;
    height: 200vh;
    top: -50%;
    left: -50%;
    background-image:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: moveGrid 120s linear infinite;
    z-index: -1;
}

#crystal-bg::after {
    animation-direction: reverse;
    animation-duration: 150s;
}

@keyframes moveGrid {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(1000px, 1000px);
    }
}


#glow-cursor {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, rgba(125, 249, 255, 0) 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, opacity 0.3s;
    opacity: 0;
}

body:hover #glow-cursor {
    opacity: 0.2;
}


/* ------------------- */
/* 3. Reusable Components */
/* ------------------- */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-primary);
    color: var(--color-white);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

a {
    color: var(--color-ice-blue);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-white);
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-slate);
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    font-family: var(--font-secondary);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--color-ice-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 225%;
    height: 500%;
}

.btn-primary {
    background-color: transparent;
    border-color: var(--color-ice-blue);
    color: var(--color-ice-blue);
}

.btn-primary:hover {
    color: var(--color-deep-ink);
    border-color: var(--color-ice-blue);
}

.btn-secondary {
    background-color: var(--color-glass-bg);
    border-color: var(--color-glass-border);
    color: var(--color-white);
}

.btn-secondary::before {
    background: var(--color-lavender);
}

.btn-secondary:hover {
    color: var(--color-deep-ink);
    border-color: var(--color-lavender);
}

.btn.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Glassmorphism Effect */
.glass-effect {
    background: var(--color-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-glass-border);
    border-radius: 8px;
}

/* Scroll Animations */
[class*="animate-on-"],
.service-card,
.timeline-item,
.testimonial-slide,
.about-content,
.about-image {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------- */
/* 4. Header & Navigation */
/* ------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    transition: all var(--transition-speed) ease;
}

.header.scrolled {
    background: rgba(10, 5, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo, .footer-logo-link img{
    height: 60px;
    filter: invert(1);
    transition: height var(--transition-speed);
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--color-light-slate);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-ice-blue);
    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-white);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 22px;
    position: relative;
}

.bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transition: all 0.3s ease;
}

.bar-top {
    top: 0;
}

.bar-middle {
    top: 50%;
    transform: translateY(-50%);
}

.bar-bottom {
    bottom: 0;
}

.mobile-nav.open .bar-top {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-nav.open .bar-middle {
    opacity: 0;
}

.mobile-nav.open .bar-bottom {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.mobile-nav {
    display: none;
}

/* ------------------- */
/* 5. Hero Section */
/* ------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    margin-bottom: 20px;
    font-weight: 900;
}

.hero-title .highlight {
    color: var(--color-ice-blue);
    text-shadow: 0 0 15px var(--color-primary-glow);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-slate);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse-icon {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-slate);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--color-slate);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}


/* ------------------- */
/* 6. Services Section */
/* ------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    padding: 2px;
    border-radius: 10px;
    background: linear-gradient(var(--angle), var(--color-glass-border), var(--color-deep-ink), var(--color-secondary-glow));
    animation: rotate-glow 5s linear infinite;
    --angle: 0deg;
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotate-glow {
    to {
        --angle: 360deg;
    }
}

.service-card-inner {
    background: #0d0720;
    padding: 30px;
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: translateZ(20px) scale(1.02);
}

.service-card-icon {
    font-size: 2.5rem;
    color: var(--color-ice-blue);
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--color-primary-glow);
}

.service-card-title {
    margin-bottom: 15px;
    color: var(--color-white);
}

.service-card-description {
    color: var(--color-slate);
    flex-grow: 1;
    margin-bottom: 20px;
}

.service-card-link {
    font-weight: 600;
    color: var(--color-ice-blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.service-card-link i {
    transition: transform var(--transition-speed);
}

.service-card:hover .service-card-link i {
    transform: translateX(5px);
}

/* ------------------- */
/* 7. About Section */
/* ------------------- */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content p {
    margin-bottom: 20px;
}

.about-features {
    list-style: none;
    margin-bottom: 30px;
}

.about-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-features i {
    color: var(--color-ice-blue);
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.about-image-crystal {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--color-ice-blue), var(--color-lavender));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: float 6s ease-in-out infinite, crystal-rotate 30s linear infinite;
    transform-style: preserve-3d;
    box-shadow: 0 0 50px var(--color-primary-glow);
}

@keyframes float {
    0% {
        transform: translateY(0px) rotateY(0deg);
    }

    50% {
        transform: translateY(-20px) rotateY(10deg);
    }

    100% {
        transform: translateY(0px) rotateY(0deg);
    }
}

@keyframes crystal-rotate {
    from {
        transform: rotateY(0deg) rotateX(5deg);
    }

    to {
        transform: rotateY(360deg) rotateX(5deg);
    }
}

/* ------------------- */
/* 8. Process Section */
/* ------------------- */
.process-section {
    background: rgba(0, 0, 0, 0.2);
}

.process-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 50px;
}

.timeline-line {
    position: absolute;
    top: 50px;
    left: 5%;
    width: 90%;
    height: 2px;
    background: var(--color-glass-border);
}

.timeline-item {
    width: 22%;
    text-align: center;
    position: relative;
}

.timeline-node {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-deep-ink);
    border: 2px solid var(--color-ice-blue);
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: all var(--transition-speed);
}

.timeline-item:hover .timeline-node {
    background: var(--color-ice-blue);
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 15px var(--color-primary-glow);
}

.timeline-content {
    margin-top: 80px;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--color-ice-blue);
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--color-lavender);
}

/* ------------------- */
/* 9. Testimonials Section */
/* ------------------- */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    display: flex;
    overflow: hidden;
}

.testimonial-slide {
    min-width: 100%;
    transition: transform 0.5s ease-in-out;
    padding: 0 20px;
}

.testimonial-content {
    padding: 30px;
    text-align: center;
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
    color: var(--color-light-slate);
}

.testimonial-content::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 2rem;
    position: absolute;
    top: 0;
    left: 0;
    color: var(--color-lavender);
    opacity: 0.2;
}

.testimonial-content::after {
    content: '\f10e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 2rem;
    position: absolute;
    bottom: 0;
    right: 0;
    color: var(--color-lavender);
    opacity: 0.2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--color-lavender);
}

.author-info h4 {
    color: var(--color-white);
    margin-bottom: 5px;
}

.author-info span {
    color: var(--color-slate);
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-btn {
    background: transparent;
    border: 2px solid var(--color-slate);
    color: var(--color-slate);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.slider-btn:hover {
    border-color: var(--color-ice-blue);
    color: var(--color-ice-blue);
    transform: scale(1.1);
}

/* ------------------- */
/* 10. CTA Section */
/* ------------------- */
.cta-section {
    text-align: center;
}

.cta-content {
    background: linear-gradient(135deg, rgba(125, 249, 255, 0.1), rgba(200, 162, 200, 0.1));
    padding: 60px 40px;
    border-radius: 10px;
    border: 1px solid var(--color-glass-border);
}

.cta-title {
    margin-bottom: 20px;
}

.cta-text {
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--color-light-slate);
}

/* ------------------- */
/* 11. Footer */
/* ------------------- */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding-top: 80px;
    border-top: 1px solid var(--color-glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col-title {
    font-family: var(--font-primary);
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer-logo-link {
    margin-bottom: 20px;
}

.footer-about-text {
    color: var(--color-slate);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--color-slate);
    border-radius: 50%;
    color: var(--color-slate);
    transition: all var(--transition-speed);
}

.social-link:hover {
    border-color: var(--color-ice-blue);
    color: var(--color-ice-blue);
    transform: translateY(-3px);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--color-slate);
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--color-slate);
    align-items: flex-start;
}

.contact-info i {
    color: var(--color-ice-blue);
    margin-top: 5px;
}

.contact-info a {
    color: var(--color-slate);
}

.contact-info a:hover {
    color: var(--color-white);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--color-glass-border);
    color: var(--color-slate);
    font-size: 0.9rem;
}

/* ------------------- */
/* 12. Subpages (Contact, Legal) */
/* ------------------- */
.subpage main {
    padding-top: var(--header-height);
}

.page-header {
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--color-glass-border);
}

.page-header h1 {
    margin-bottom: 15px;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--color-slate);
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: var(--color-ice-blue);
}

.page-header-subtitle {
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-light-slate);
}

.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease-out forwards;
}

.animate-on-load:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-on-load:nth-child(3) {
    animation-delay: 0.4s;
}


/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    border-radius: 10px;
    overflow: hidden;
}

.contact-info-panel {
    padding: 40px;
    background: linear-gradient(160deg, rgba(200, 162, 200, 0.1), transparent);
}

.contact-info-panel h2 {
    margin-bottom: 15px;
}

.contact-methods {
    margin-top: 30px;
}

.contact-method {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}

.method-icon {
    font-size: 1.5rem;
    color: var(--color-ice-blue);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--color-glass-border);
    border-radius: 50%;
}

.method-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.method-details p {
    color: var(--color-slate);
}

.method-details a {
    color: var(--color-light-slate);
}

.contact-form-wrapper {
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    margin-bottom: 8px;
    color: var(--color-slate);
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-glass-border);
    padding: 12px 15px;
    border-radius: 5px;
    color: var(--color-white);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: all var(--transition-speed);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-ice-blue);
    box-shadow: 0 0 10px var(--color-primary-glow);
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%237DF9FF' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

option {
    background: var(--color-deep-ink);
}

/* Contact Popup */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    visibility: hidden;
    z-index: 1002;
    transition: all var(--transition-speed);
}

.popup.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.popup-content {
    padding: 40px;
    text-align: center;
    position: relative;
    width: 90vw;
    max-width: 450px;
}

.popup-content.glass-effect {
    background: rgba(10, 5, 26, 0.9);
}

.popup-content .fa-check-circle {
    font-size: 4rem;
    color: var(--color-ice-blue);
    margin-bottom: 20px;
}

.popup-content h3 {
    margin-bottom: 10px;
}

.popup-close,
.popup-close-btn {
    cursor: pointer;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--color-slate);
}

.popup-close-btn {
    margin-top: 20px;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* Legal Pages */
.legal-content .content-wrapper {
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    border-radius: 10px;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    margin: 30px 0 15px;
    color: var(--color-lavender);
}

.legal-content ul {
    list-style-position: inside;
    padding-left: 20px;
    margin: 15px 0;
}

.legal-content li {
    margin-bottom: 5px;
}


/* ------------------- */
/* 13. Live Chat Widget */
/* ------------------- */
#live-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-icon {
    width: 60px;
    height: 60px;
    background: var(--color-ice-blue);
    color: var(--color-deep-ink);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 0 20px var(--color-primary-glow);
    transition: all var(--transition-speed);
}

.chat-icon:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: var(--color-glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--color-glass-border);
    border-radius: 10px;
    overflow: hidden;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
}

#live-chat-widget.open .chat-window {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    padding: 15px;
    background: rgba(125, 249, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header p {
    font-weight: 600;
    color: var(--color-white);
}

.close-chat-btn {
    background: none;
    border: none;
    color: var(--color-slate);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 15px;
    height: 200px;
    overflow-y: auto;
    font-size: 0.9rem;
}

.chat-body p {
    margin-bottom: 10px;
}

.agent-msg {
    background: rgba(200, 162, 200, 0.2);
    padding: 10px;
    border-radius: 8px;
    max-width: 80%;
}

.chat-footer {
    padding: 10px;
    display: flex;
    border-top: 1px solid var(--color-glass-border);
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 5px;
    color: var(--color-white);
}

.chat-footer input:focus {
    outline: none;
    box-shadow: none;
}

.chat-footer button {
    background: none;
    border: none;
    color: var(--color-ice-blue);
    font-size: 1.2rem;
    cursor: pointer;
}


/* ------------------- */
/* 14. Responsive Design */
/* ------------------- */
@media (max-width: 1024px) {
    .nav {
        display: none;
    }

    .header-actions .header-cta {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-nav {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: rgba(10, 5, 26, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1000;
        padding-top: 100px;
    }

    .mobile-nav.open {
        transform: translateX(0);
    }

    .mobile-nav nav ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .mobile-nav li {
        opacity: 0;
        transform: translateY(20px);
        animation: mobile-nav-item-fade 0.5s forwards;
    }

    .mobile-nav.open li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .mobile-nav.open li:nth-child(2) {
        animation-delay: 0.2s;
    }

    .mobile-nav.open li:nth-child(3) {
        animation-delay: 0.3s;
    }

    .mobile-nav.open li:nth-child(4) {
        animation-delay: 0.4s;
    }

    .mobile-nav.open li:nth-child(5) {
        animation-delay: 0.5s;
    }

    .mobile-nav.open li:nth-child(6) {
        animation-delay: 0.6s;
    }

    @keyframes mobile-nav-item-fade {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-nav a {
        font-size: 1.5rem;
        font-family: var(--font-primary);
        color: var(--color-white);
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        margin-bottom: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section-padding {
        padding: 80px 0;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .process-timeline {
        flex-direction: column;
        gap: 40px;
    }

    .process-timeline .timeline-item {
        width: 100%;
        text-align: left;
        display: flex;
        align-items: flex-start;
        gap: 20px;
    }

    .timeline-line {
        left: 10px;
        width: 2px;
        height: 90%;
        top: 5%;
    }

    .timeline-node {
        position: static;
        transform: none;
        flex-shrink: 0;
        margin-top: 20px;
    }

    .timeline-content {
        margin-top: 0;
    }

    .timeline-icon {
        margin: 0 0 15px 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}