/*
Theme: Quantum Carnival
Colors:
- Plasma Pink: #FF00C8
- Electric Blue: #00E5FF
- Midnight: #0B0B0B
- White: #FFFFFF
- Light Gray: #EAEAEA
- Gray: #888
*/

/* --- ROOT VARIABLES --- */
:root {
    --plasma-pink: #FF00C8;
    --electric-blue: #00E5FF;
    --midnight-bg: #0B0B0B;
    --text-light: #EAEAEA;
    --text-dark: #333;
    --text-gray: #aaa;
    --border-color: rgba(255, 255, 255, 0.1);

    --font-primary: 'Poppins', sans-serif;

    --header-height: 80px;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s ease;
    --container-width: 1200px;
    --container-padding: 1.5rem;
    --section-padding-y: 100px;
    --card-border-radius: 15px;

    --glow-shadow-pink: 0 0 15px var(--plasma-pink), 0 0 30px var(--plasma-pink);
    --glow-shadow-blue: 0 0 15px var(--electric-blue), 0 0 30px var(--electric-blue);
}

/* --- GLOBAL RESET & BASE STYLES --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--midnight-bg);
    color: var(--text-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

a {
    color: var(--electric-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--plasma-pink);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- UTILITY CLASSES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-padding {
    padding: var(--section-padding-y) 0;
}

.text-center {
    text-align: center;
}

.subtitle {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--plasma-pink);
    text-shadow: 0 0 5px var(--plasma-pink);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(90deg, var(--plasma-pink), var(--electric-blue));
    color: #fff;
    border: none;
    box-shadow: 0 5px 20px rgba(255, 0, 200, 0.3);
}

.btn-primary:hover {
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.4);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--electric-blue);
    border: 2px solid var(--electric-blue);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.btn-secondary:hover {
    background-color: var(--electric-blue);
    color: var(--midnight-bg);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    transform: translateY(-3px);
}

/* --- PRELOADER --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--midnight-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
}

.loader {
    width: 60px;
    height: 60px;
    position: relative;
}

.loader-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--plasma-pink);
    border-right-color: var(--electric-blue);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.header.scrolled {
    background-color: rgba(11, 11, 11, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo img {
    height: 45px;
    filter: invert(1);
    transition: transform var(--transition-fast);
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--plasma-pink), var(--electric-blue));
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    border-radius: 5px;
    transition: all var(--transition-fast);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-glow-1,
.hero-glow-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.3;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background-color: var(--plasma-pink);
    top: -150px;
    left: -150px;
}

.hero-glow-2 {
    width: 500px;
    height: 500px;
    background-color: var(--electric-blue);
    bottom: -150px;
    right: -150px;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--text-light);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* --- SECTION HEADER --- */
.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* --- SERVICES SECTION --- */
.services-section {
    position: relative;
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: transparent;
    height: 350px;
    perspective: 1500px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--card-border-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.service-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, rgba(255, 0, 200, 0.1), rgba(0, 229, 255, 0.1));
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--electric-blue);
    text-shadow: var(--glow-shadow-blue);
    transition: transform var(--transition-fast);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.card-link {
    margin-top: auto;
    font-weight: 600;
}

.card-link i {
    transition: transform var(--transition-fast);
    margin-left: 5px;
}

.card-link:hover i {
    transform: translateX(5px);
}

/* --- ABOUT SECTION --- */
.about-section {
    background-color: rgba(11, 11, 11, 0.5);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-features {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.about-features i {
    color: var(--plasma-pink);
    font-size: 1.2rem;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: var(--card-border-radius);
    overflow: hidden;
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--plasma-pink), var(--electric-blue));
    opacity: 0.2;
    mix-blend-mode: color;
}

.stats-card {
    position: absolute;
    bottom: -40px;
    right: -40px;
    background: rgba(11, 11, 11, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    border-radius: var(--card-border-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stats-card h3 {
    font-size: 3rem;
    color: var(--electric-blue);
    margin-bottom: 0;
    text-shadow: var(--glow-shadow-blue);
}

.stats-card p {
    margin: 0;
    font-weight: 600;
    color: var(--text-light);
}


/* --- PROCESS SECTION --- */
.process-section {
    position: relative;
}

.process-timeline {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--plasma-pink), var(--electric-blue));
}

.process-step {
    position: relative;
    padding-left: 100px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.process-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--midnight-bg);
    border: 2px solid var(--plasma-pink);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--plasma-pink);
    box-shadow: 0 0 15px var(--plasma-pink);
    transition: all var(--transition-fast);
}

.process-step:hover .process-icon {
    background-color: var(--plasma-pink);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.process-content h3 {
    color: var(--electric-blue);
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-section {
    background-color: rgba(11, 11, 11, 0.5);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    height: 300px;
    /* Adjust as needed */
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--card-border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.testimonial-content p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-light);
}

.testimonial-author {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
}

.author-info h4 {
    margin: 0;
    color: var(--electric-blue);
}

.author-info span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--electric-blue);
    background: transparent;
    color: var(--electric-blue);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slider-btn:hover {
    background-color: var(--electric-blue);
    color: var(--midnight-bg);
    transform: scale(1.1);
}

/* --- CTA SECTION --- */
.cta-section {
    padding: var(--section-padding-y) 0;
    background: linear-gradient(rgba(11, 11, 11, 0.9), rgba(11, 11, 11, 0.9)), url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&w=6000') no-repeat center center/cover;
    background-attachment: fixed;
}

.cta-content h2 {
    font-size: 3rem;
    text-shadow: 0 0 10px var(--electric-blue);
}

.cta-content p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* --- FOOTER --- */
.footer {
    padding: 60px 0 30px;
    background: #050505;
    border-top: 1px solid var(--border-color);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 40px;
}

.footer-about .footer-logo img {
    height: 50px;
    filter: invert(1);
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-gray);
}

.footer-social a:hover {
    color: var(--electric-blue);
    border-color: var(--electric-blue);
    transform: translateY(-3px);
}

.footer h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--plasma-pink), var(--electric-blue));
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul a {
    color: var(--text-gray);
}

.footer-links ul a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.footer-contact ul li a {
    color: var(--text-gray);
}

.footer-contact ul li a:hover {
    color: #fff;
}

.footer-contact i {
    color: var(--electric-blue);
    margin-top: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal a {
    color: var(--text-gray);
    margin: 0 0.5rem;
}

.footer-legal span {
    color: var(--text-gray);
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--plasma-pink), var(--electric-blue));
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-fast);
    z-index: 998;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: scale(1.1);
    color: #fff;
}

/* --- LIVE CHAT WIDGET --- */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 999;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--plasma-pink), var(--electric-blue));
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(255, 0, 200, 0.3);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-button:hover {
    transform: scale(1.1);
}

.chat-button i {
    position: absolute;
    transition: opacity 0.2s, transform 0.2s;
}

.chat-button .fa-times {
    opacity: 0;
    transform: rotate(-45deg) scale(0.5);
}

.chat-popup {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 350px;
    background-color: #1a1a1a;
    border-radius: var(--card-border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-fast);
}

.chat-widget.active .chat-button .fa-comments {
    opacity: 0;
    transform: rotate(45deg) scale(0.5);
}

.chat-widget.active .chat-button .fa-times {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.chat-widget.active .chat-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    padding: 1rem;
    background: linear-gradient(90deg, var(--plasma-pink), var(--electric-blue));
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.close-chat {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 1rem;
    height: 300px;
    overflow-y: auto;
}

.chat-message.received p {
    background-color: #333;
    padding: 0.8rem 1rem;
    border-radius: 15px 15px 15px 0;
    max-width: 80%;
    color: var(--text-light);
    margin-bottom: 0;
}

.chat-footer {
    display: flex;
    padding: 0.8rem;
    border-top: 1px solid var(--border-color);
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    background: transparent;
    color: #fff;
    padding: 0 0.5rem;
}

.chat-footer input:focus {
    outline: none;
}

.chat-footer button {
    background: none;
    border: none;
    color: var(--electric-blue);
    font-size: 1.2rem;
    cursor: pointer;
}

/* --- PAGE HEADER (FOR SUB-PAGES) --- */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(11, 11, 11, 0.8), rgba(11, 11, 11, 0.9)), url('https://images.unsplash.com/photo-1553877522-43269d4ea984?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&w=6000') no-repeat center center/cover;
}

.page-header h1 {
    font-size: 3.5rem;
    text-shadow: 0 0 10px var(--plasma-pink);
}

.breadcrumbs a {
    color: var(--text-gray);
}

.breadcrumbs a:hover {
    color: var(--electric-blue);
}

.breadcrumbs span {
    color: #fff;
}


/* --- LEGAL & CONTACT PAGES CONTENT --- */
.legal-content .content-wrapper,
.contact-page-section {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: var(--card-border-radius);
    border: 1px solid var(--border-color);
}

.legal-content h2,
.legal-content h3 {
    color: var(--electric-blue);
    margin-top: 2rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content ul {
    list-style: disc;
    padding-left: 2rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info-block {
    padding-right: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--plasma-pink);
    color: var(--plasma-pink);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    transition: all var(--transition-fast);
}

.contact-info-item:hover .info-icon {
    background-color: var(--plasma-pink);
    color: #fff;
    transform: scale(1.1);
}

.info-text h4 {
    margin-bottom: 0.3rem;
    color: #fff;
}

.info-text p,
.info-text a {
    color: var(--text-gray);
    margin: 0;
}

/* --- CONTACT FORM --- */
.contact-form .form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 14px 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--electric-blue);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

select {
    appearance: none;
    -webkit-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='%2300E5FF' 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;
}

textarea {
    resize: vertical;
}

.btn.btn-full {
    width: 100%;
}

/* --- FORM SUCCESS POPUP --- */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: 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-fast), visibility var(--transition-fast);
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: #1a1a1a;
    padding: 3rem;
    border-radius: var(--card-border-radius);
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--border-color);
    transform: scale(0.9);
    transition: transform var(--transition-fast);
}

.popup.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-gray);
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--electric-blue);
    margin-bottom: 1rem;
}

/* --- ANIMATIONS ON SCROLL --- */
[class*="animate-"] {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-fade-in {
    transform: translateY(30px);
}

.animate-up {
    transform: translateY(50px);
}

.animate-from-left {
    transform: translateX(-50px);
}

.animate-from-right {
    transform: translateX(50px);
}

.animate-from-bottom {
    transform: translateY(50px);
}

[class*="animate-"].visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2.5rem;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: var(--midnight-bg);
        transition: right 0.4s ease-in-out;
        gap: 2rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        order: -1;
        margin-bottom: 2rem;
    }

    .stats-card {
        bottom: 20px;
        right: 20px;
    }

    .process-timeline::before {
        left: 20px;
    }

    .process-step {
        padding-left: 60px;
        gap: 1rem;
    }

    .process-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about,
    .footer-contact {
        grid-column: 1 / -1;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding-y: 80px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .process-timeline {
        gap: 2rem;
    }

    .process-content h3 {
        font-size: 1.25rem;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }

    .chat-widget {
        display: none;
        /* Hide chat on smaller mobile */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .stats-card {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 2rem;
        width: 100%;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }
}