/*
================================================
TABLE OF CONTENTS
------------------------------------------------
1.  ROOT & GLOBAL STYLES
2.  HELPER CLASSES & KEYFRAMES
3.  CUSTOM CURSOR
4.  PARTICLE CANVAS BACKGROUND
5.  HEADER & NAVIGATION
6.  BUTTONS
7.  FOOTER
8.  HERO SECTION
9.  PAGE HEADER (FOR SUBPAGES)
10. SERVICES SECTION
11. ABOUT SECTION
12. STATS COUNTER SECTION
13. PROCESS SECTION
14. TESTIMONIALS SECTION
15. ROI CALCULATOR
16. CTA SECTION
17. CONTACT PAGE
18. LEGAL PAGES
19. POPUP / MODAL
20. RESPONSIVE DESIGN (MEDIA QUERIES)
================================================
*/

/* 1. ROOT & GLOBAL STYLES */
:root {
    --primary-color: #00f0ff;
    --secondary-color: #9f00ff;
    --dark-bg: #0a071a;
    --dark-bg-2: #14102c;
    --dark-bg-3: #1e193e;
    --text-color: #e0e0e0;
    --text-muted: #a0a0c0;
    --border-color: rgba(0, 240, 255, 0.2);
    --glow-color: rgba(0, 240, 255, 0.5);
    --shadow-color: rgba(159, 0, 255, 0.2);
    --font-primary: 'Orbitron', sans-serif;
    --font-secondary: 'Rajdhani', sans-serif;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
}

body,
input,
textarea,
select,
button {
    cursor: none;
}

a,
button {
    cursor: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* 2. HELPER CLASSES & KEYFRAMES */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-in.fade-in-right {
    transform: translateX(-30px);
}

.animate-in.fade-in-left {
    transform: translateX(30px);
}

.animate-in.fade-in-up {
    transform: translateY(30px);
}

.animate-in.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

@keyframes text-cycle {

    0%,
    25% {
        transform: translateY(0);
    }

    33%,
    58% {
        transform: translateY(-100%);
    }

    66%,
    91% {
        transform: translateY(-200%);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px var(--glow-color), 0 0 10px var(--glow-color);
    }

    50% {
        box-shadow: 0 0 20px var(--glow-color), 0 0 30px var(--glow-color);
    }

    100% {
        box-shadow: 0 0 5px var(--glow-color), 0 0 10px var(--glow-color);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 3. CUSTOM CURSOR */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 9999;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
}

body:hover .cursor-dot,
body:hover .cursor-outline {
    opacity: 1;
}

/* 4. PARTICLE CANVAS BACKGROUND */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 5. HEADER & NAVIGATION */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background-color: rgba(10, 7, 26, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 60px;
    filter: brightness(0) invert(1) drop-shadow(0 0 5px var(--primary-color));
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    padding: 10px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    text-shadow: 0 0 5px var(--glow-color);
}

.nav-close {
    display: none;
}

.nav-toggle {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 6. BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-bg);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    color: #fff;
    background: transparent;
    box-shadow: 0 0 15px var(--glow-color);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 0 0 15px var(--glow-color);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.2rem;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* 7. FOOTER */
.footer {
    background-color: var(--dark-bg-2);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-about-text {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 0 10px var(--glow-color);
}

.footer-col-title {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul a {
    color: var(--text-muted);
    position: relative;
}

.footer-links ul a::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.footer-links ul a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-links ul a:hover::before {
    color: #fff;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.footer-contact ul li i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

.footer-contact ul li a {
    color: var(--text-muted);
}

.footer-contact ul li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
    color: var(--text-muted);
}

/* 8. HERO SECTION */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    position: relative;
    padding: 0 20px;
}

.hero-section h1 {
    font-size: 5.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-section h1 .highlight {
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--glow-color);
}

.text-anim-container {
    display: inline-block;
    height: 6rem;
    /* Adjust based on h1 font size */
    overflow: hidden;
    vertical-align: bottom;
}

.text-animated {
    display: block;
    animation: text-cycle 10s infinite;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-color);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: 10%;
    left: 10%;
    opacity: 0.15;
    animation: pulse 10s infinite alternate;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: 15%;
    right: 15%;
    opacity: 0.2;
    animation: pulse 12s infinite alternate;
}

.shape-3 {
    position: absolute;
    width: 200vw;
    height: 200vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    opacity: 0.2;
}

/* 9. PAGE HEADER (FOR SUBPAGES) */
.page-header-section {
    padding: 180px 0 100px;
    background: var(--dark-bg-2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--dark-bg), transparent);
}

.page-header-section h1 {
    font-size: 3.5rem;
}

.page-header-desc {
    max-width: 600px;
    margin: 15px auto 25px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs span {
    color: var(--primary-color);
}

.breadcrumbs i {
    font-size: 0.8rem;
    margin: 0 10px;
}

/* 10. SERVICES SECTION */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    perspective: 1000px;
    min-height: 350px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    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;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--dark-bg-2);
    border-radius: 10px;
}

.service-card-back {
    transform: rotateY(180deg);
    background: var(--dark-bg-3);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--glow-color);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.btn-learn-more {
    margin-top: 20px;
    padding: 8px 20px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    font-weight: 600;
}

.btn-learn-more:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

/* 11. ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content .section-title {
    text-align-last: left;
}

.about-content .section-title::after {
    left: 0;
    transform: none;
}

.about-features {
    list-style: none;
    margin: 30px 0;
}

.about-features li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.about-features li i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.5rem;
}

.about-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-globe {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(10, 7, 26, 0) 0%, var(--dark-bg) 70%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M25 50 a 25 25 0 1 1 0 0.0001' fill='none' stroke='rgba(0,240,255,0.3)'/%3E%3Cpath d='M35 50 a 15 15 0 1 1 0 0.0001' fill='none' stroke='rgba(0,240,255,0.3)'/%3E%3Cpath d='M50 25 a 25 25 0 0 1 0 50' fill='none' stroke='rgba(0,240,255,0.5)'/%3E%3Cpath d='M50 35 a 15 15 0 0 1 0 30' fill='none' stroke='rgba(0,240,255,0.5)'/%3E%3C/svg%3E");
    background-size: cover;
    position: relative;
    animation: spin 60s linear infinite;
}

.tech-globe::before,
.tech-globe::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.tech-globe::before {
    width: 120%;
    height: 120%;
    animation: pulse 4s infinite ease-in-out;
}

.tech-globe::after {
    width: 150%;
    height: 150%;
    animation: pulse 4s 2s infinite ease-in-out;
}

/* 12. STATS COUNTER SECTION */
.stats-section {
    background-color: var(--dark-bg-2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

/* 13. PROCESS SECTION */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    z-index: 0;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12.5px;
    background-color: var(--dark-bg);
    border: 4px solid var(--primary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -12.5px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--dark-bg-2);
    border: 1px solid var(--border-color);
    position: relative;
    border-radius: 6px;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
}

.timeline-step {
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 3rem;
    font-family: var(--font-primary);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
}

.timeline-item:nth-child(even) .timeline-step {
    left: 20px;
    right: auto;
}

/* 14. TESTIMONIALS SECTION */
.testimonials-section {
    background: var(--dark-bg-2);
}

.testimonial-slider-wrapper {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 40px;
    background-color: var(--dark-bg-3);
    border-left: 5px solid var(--primary-color);
    border-radius: 5px;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--text-color);
}

.testimonial-author {
    text-align: right;
}

.author-name {
    color: var(--primary-color);
}

.author-title {
    color: var(--text-muted);
    margin: 0;
}

/* 15. ROI CALCULATOR */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: var(--dark-bg-2);
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 1rem;
}

.calculator-results {
    padding-left: 40px;
    border-left: 1px solid var(--border-color);
}

.calculator-results h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.result-item p {
    margin: 0;
}

.result-item span {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-primary);
}

.result-item.highlight span {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--glow-color);
}

/* 16. CTA SECTION */
.cta-section {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.cta-title {
    font-size: 2.8rem;
    color: var(--dark-bg);
    margin-bottom: 15px;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--dark-bg);
    margin-bottom: 30px;
}

.cta-section .btn-primary {
    background: var(--dark-bg);
    color: #fff;
    border-color: #fff;
}

.cta-section .btn-primary:hover {
    background: transparent;
    color: var(--dark-bg);
}

/* 17. CONTACT PAGE */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--dark-bg-2);
    padding: 50px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.contact-info-panel h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-details-list {
    margin-top: 30px;
}

.contact-details-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-details-list li i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-details-list li h4 {
    margin-bottom: 5px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-secondary);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--glow-color);
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2300f0ff' 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;
}

/* 18. LEGAL PAGES */
.legal-content {
    background-color: var(--dark-bg-2);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.legal-content p {
    margin-bottom: 1.2rem;
}

.legal-content strong {
    color: #fff;
    font-weight: 600;
}

/* 19. POPUP / MODAL */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 7, 26, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--dark-bg-2);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 30px var(--glow-color);
    text-align: center;
    max-width: 500px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup.active .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.popup-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.popup-content p {
    margin-bottom: 30px;
}

/* 20. RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    .hero-section h1 {
        font-size: 4rem;
    }

    .text-anim-container {
        height: 4.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--dark-bg-2);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        box-shadow: -10px 0 20px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 30px;
    }

    .nav-toggle {
        display: block;
        font-size: 1.5rem;
        color: #fff;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2rem;
        color: #fff;
        background: none;
        border: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-content .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-image-wrapper {
        margin-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .calculator-results {
        border-left: none;
        padding-left: 0;
        margin-top: 30px;
        border-top: 1px solid var(--border-color);
        padding-top: 30px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .process-timeline::after {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 60px;
        padding-right: 15px;
    }

    .timeline-item::after,
    .timeline-item:nth-child(even)::after {
        left: 8px;
    }

    .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    body,
    input,
    textarea,
    select,
    button,
    a {
        cursor: auto;
    }

    .hero-section h1 {
        font-size: 3.5rem;
    }

    .text-anim-container {
        height: 4rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        padding: 30px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 576px) {
    .section-padding {
        padding: 60px 0;
    }

    .hero-section {
        padding-top: var(--header-height);
    }

    .hero-section h1 {
        font-size: 2.8rem;
    }

    .text-anim-container {
        height: 3.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
}