/* Table of Contents
-------------------
1.  :root Variables & Global Styles
2.  Keyframe Animations
3.  Utility & Animation Classes
4.  Header & Navigation
5.  Mobile Navigation
6.  Hero Section & 3D Canvas
7.  Buttons & Common Components
8.  Section Styling (General)
9.  Services Section
10. About Us Section
11. Process Section
12. Industry Expertise Section
13. Testimonials Section
14. CTA Section
15. Footer
16. Subpage & Legal Page Styles
17. Contact Page Styles
18. Popup Styles
19. Responsive Design (Media Queries)
-------------------*/

/* 1. :root Variables & Global Styles */
:root {
    --deep-navy: #0A0E1A;
    --navy-light: #101629;
    --navy-lighter: #1a223e;
    --cyan: #00E5FF;
    --lime: #C6FF00;
    --light-slate: #ccd6f6;
    --slate: #8892b0;
    --white: #ffffff;

    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Orbitron', sans-serif;

    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --glow-intensity: 0 0 15px;
    --glow-intensity-strong: 0 0 25px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--deep-navy);
    color: var(--slate);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--light-slate);
    line-height: 1.2;
    font-weight: 700;
}

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);
}

p {
    margin-bottom: 1rem;
    max-width: 65ch;
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--lime);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 2. Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 10px 20px rgba(0, 229, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0);
    }
}

@keyframes scroll-down {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(10px);
        opacity: 0;
    }
}

/* 3. Utility & Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: none;
}

.fade-in-up {
    transform: translateY(40px);
}

.fade-in-down {
    transform: translateY(-40px);
}

.fade-in-left {
    transform: translateX(-40px);
}

.fade-in-right {
    transform: translateX(40px);
}

.zoom-in {
    transform: scale(0.9);
}

/* 4. Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(10px);
    transition: all var(--transition-speed) ease;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: var(--deep-navy);
    height: 70px;
    border-bottom-color: var(--navy-lighter);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1400px;
    padding: 0 2rem;
    margin: 0 auto;
}

.logo {
    height: 60px;
    filter: brightness(0) invert(1);
    transition: transform var(--transition-speed) ease;
}

.logo-link:hover .logo {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--light-slate);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--cyan);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link.active {
    color: var(--cyan);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.hamburger {
    width: 28px;
    height: 2px;
    background: var(--white);
    position: relative;
    transition: all 0.25s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 2px;
    background: var(--white);
    left: 0;
    transition: all 0.25s ease-in-out;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* 5. Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(75vw, 400px);
    height: 100vh;
    background: var(--navy-light);
    z-index: 999;
    transition: right var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav nav ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav nav ul li a {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--light-slate);
}

.mobile-nav nav ul li a.btn {
    margin-top: 1rem;
    padding: 1rem 2rem;
}

/* Hamburger animation for mobile nav open */
.mobile-toggle.open .hamburger {
    background: transparent;
}

.mobile-toggle.open .hamburger::before {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-toggle.open .hamburger::after {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* 6. Hero Section & 3D Canvas */
#neural-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: var(--header-height) 0 4rem;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--slate);
    margin: 0 auto 2.5rem;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.mouse {
    width: 25px;
    height: 45px;
    border: 2px solid var(--cyan);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    background: var(--cyan);
    border-radius: 2px;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-down 2s infinite;
}

/* 7. Buttons & Common Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn i {
    transition: transform var(--transition-speed) ease;
}

.btn:hover i {
    transform: scale(1.2);
}

.btn-primary {
    background-color: var(--cyan);
    color: var(--deep-navy);
    border-color: var(--cyan);
}

.btn-primary:hover {
    background-color: var(--lime);
    border-color: var(--lime);
    color: var(--deep-navy);
    box-shadow: var(--glow-intensity) var(--lime);
}

.btn-secondary {
    background-color: transparent;
    color: var(--cyan);
    border-color: var(--cyan);
}

.btn-secondary:hover {
    background-color: rgba(0, 229, 255, 0.1);
    color: var(--white);
}

.btn-tertiary {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background-color: var(--lime);
    color: var(--deep-navy);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* 8. Section Styling (General) */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    color: var(--lime);
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: var(--slate);
}

/* 9. Services Section */
.services-section {
    background-color: var(--navy-light);
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(180deg, var(--deep-navy) 0%, var(--navy-light) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: transparent;
    perspective: 1000px;
    min-height: 280px;
}

.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;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--navy-lighter);
    background-color: var(--navy-light);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    transition: all var(--transition-speed) ease;
}

.service-card:hover .service-card-front {
    border-color: var(--cyan);
    box-shadow: var(--glow-intensity) var(--cyan);
}

.service-card-front {
    z-index: 2;
}

.service-card-back {
    transform: rotateY(180deg);
    background-color: var(--navy-lighter);
    border-color: var(--lime);
    z-index: 1;
}

.service-icon {
    font-size: 3rem;
    color: var(--cyan);
    margin-bottom: 1rem;
    transition: color var(--transition-speed) ease;
}

.service-card:hover .service-icon {
    color: var(--lime);
}

.service-title {
    margin-bottom: 0.5rem;
    color: var(--light-slate);
}

.service-desc {
    color: var(--slate);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.service-card-back h3 {
    margin-bottom: 1rem;
    color: var(--lime);
}

.service-card-back ul {
    text-align: left;
    margin-bottom: 1.5rem;
}

.service-card-back ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 20px;
}

.service-card-back ul li::before {
    content: '\f058';
    /* FontAwesome check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--lime);
    position: absolute;
    left: 0;
    top: 2px;
}


/* 10. About Us Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: var(--border-radius);
    position: relative;
    z-index: 2;
}

.about-image-node {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--cyan);
    border-radius: var(--border-radius);
    z-index: 1;
    transition: all var(--transition-speed) ease;
}

.about-image-wrapper:hover .about-image-node {
    transform: translate(10px, 10px);
}

.about-content p {
    margin-bottom: 2rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--lime);
    font-weight: 900;
}

.stat-label {
    margin: 0;
    color: var(--slate);
    font-size: 0.9rem;
}

/* 11. Process Section */
.process-section {
    background-color: var(--navy-light);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    /* Aligns with center of process-node */
    left: 12.5%;
    /* Start after half of the first item */
    width: 75%;
    /* Span across the middle two items */
    height: 2px;
    background: linear-gradient(to right, var(--navy-lighter), var(--cyan), var(--navy-lighter));
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.process-node {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--deep-navy);
    border: 2px solid var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--cyan);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: all var(--transition-speed) ease;
}

.process-step:hover .process-node {
    background-color: var(--cyan);
    color: var(--deep-navy);
    transform: translateX(-50%) scale(1.1);
    box-shadow: var(--glow-intensity-strong) var(--cyan);
}

.process-content {
    background: var(--navy-lighter);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    height: 100%;
    transition: all var(--transition-speed) ease;
}

.process-step:hover .process-content {
    border-color: var(--cyan);
    transform: translateY(-10px);
}

.process-icon {
    font-size: 2.5rem;
    color: var(--lime);
    margin-bottom: 1rem;
}

.process-content h3 {
    margin-bottom: 0.5rem;
}

.process-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* 12. Industry Expertise Section */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.industry-item {
    background-color: var(--navy-light);
    border: 1px solid var(--navy-lighter);
    padding: 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
}

.industry-item:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--lime);
    box-shadow: var(--glow-intensity) var(--lime);
}

.industry-item i {
    font-size: 2.5rem;
    color: var(--lime);
    margin-bottom: 1rem;
}

.industry-item h3 {
    color: var(--light-slate);
    margin-bottom: 0.5rem;
}

.industry-item p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* 13. Testimonials Section */
.testimonials-section {
    background-color: var(--navy-light);
    overflow: hidden;
}

.testimonial-slider-wrapper {
    position: relative;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--deep-navy);
    border: 1px solid var(--navy-lighter);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    position: relative;
}

.testimonial-quote-icon {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 2rem;
    color: var(--cyan);
    opacity: 0.3;
}

.testimonial-text {
    font-style: italic;
    color: var(--light-slate);
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--cyan);
}

.author-info h4 {
    margin-bottom: 0.2rem;
    color: var(--white);
    font-family: var(--font-primary);
    font-weight: 600;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--slate);
}

/* 14. CTA Section */
.cta-section {
    padding: 0;
}

.cta-container {
    background: linear-gradient(135deg, var(--navy-lighter) 0%, var(--navy-light) 100%);
    padding: 4rem;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--navy-lighter);
}

.cta-title {
    margin-bottom: 0.5rem;
}

.cta-text {
    margin-bottom: 0;
    max-width: 50ch;
}

/* 15. Footer */
.footer {
    background-color: var(--navy-light);
    color: var(--slate);
    padding-top: 80px;
    font-size: 0.95rem;
    border-top: 1px solid var(--navy-lighter);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-about-text {
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--slate);
    border-radius: 50%;
    color: var(--slate);
    transition: all var(--transition-speed) ease;
}

.social-link:hover {
    color: var(--deep-navy);
    background-color: var(--cyan);
    border-color: var(--cyan);
    transform: translateY(-5px);
}

.footer-col-title {
    font-family: var(--font-heading);
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul a {
    color: var(--slate);
}

.footer-links ul a:hover {
    color: var(--white);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--cyan);
    margin-top: 5px;
}

.contact-info a {
    color: var(--slate);
}

.contact-info a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--navy-lighter);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}


/* 16. Subpage & Legal Page Styles */
body.subpage main {
    padding-top: var(--header-height);
}

.page-header {
    background: linear-gradient(180deg, var(--deep-navy) 0%, var(--navy-light) 100%);
    text-align: center;
    padding: 80px 0;
}

.page-title {
    margin-bottom: 1rem;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--slate);
}

.breadcrumbs a {
    color: var(--slate);
}

.breadcrumbs a:hover {
    color: var(--cyan);
}

.page-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.page-content {
    background-color: var(--navy-light);
    padding: 80px 0;
}

.legal-content .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--deep-navy);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--navy-lighter);
}

.legal-content h2 {
    color: var(--cyan);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--navy-lighter);
    padding-bottom: 0.5rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

/* 17. Contact Page Styles */
.contact-section {
    background: var(--navy-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: var(--deep-navy);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--navy-lighter);
}

.info-panel-title {
    color: var(--cyan);
    margin-bottom: 1rem;
}

.contact-methods {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.method-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-light);
    border-radius: 50%;
    color: var(--lime);
    font-size: 1.5rem;
}

.method-details h3 {
    font-size: 1.1rem;
    color: var(--light-slate);
    margin-bottom: 0.2rem;
}

.method-details p {
    margin: 0;
}

.contact-form .form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    width: 100%;
    margin-bottom: 1.5rem;
}

.contact-form label {
    margin-bottom: 0.5rem;
    color: var(--light-slate);
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--navy-light);
    border: 1px solid var(--navy-lighter);
    border-radius: var(--border-radius);
    color: var(--white);
    font-family: var(--font-primary);
    transition: all var(--transition-speed) ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: var(--glow-intensity) var(--cyan);
}

.form-submit-btn {
    width: 100%;
}

/* 18. Popup Styles */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 26, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
}

.popup:target {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--navy-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--lime);
    box-shadow: var(--glow-intensity-strong) var(--lime);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup:target .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--slate);
}

.popup-icon {
    font-size: 4rem;
    color: var(--lime);
    margin-bottom: 1rem;
}

.popup-title {
    color: var(--white);
    margin-bottom: 1rem;
}


/* 19. Responsive Design (Media Queries) */

/* Tablets and small desktops */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 1.5rem;
    }

    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto 2rem;
    }

    .about-content {
        text-align: center;
    }

    .about-stats {
        justify-content: center;
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline::before {
        width: 50%;
        left: 25%;
    }

    .testimonial-slider {
        grid-template-columns: 1fr 1fr;
    }

    .testimonial-slider .testimonial-card:last-child {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .cta-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 60px 0;
    }

    .header-actions .header-cta span {
        display: none;
    }

    .header-actions .header-cta {
        padding: 0.6rem 0.8rem;
    }

    .header-actions .header-cta i {
        margin-right: 0;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .process-timeline::before {
        display: none;
    }

    /* Vertical line for mobile process */
    .process-timeline::after {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 40px;
        bottom: 40px;
        width: 2px;
        background: linear-gradient(to bottom, var(--navy-lighter), var(--cyan), var(--navy-lighter));
        z-index: 0;
    }

    .testimonial-slider {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about-text,
    .contact-info,
    .footer-links ul {
        text-align: left;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-info li {
        justify-content: flex-start;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .legal-content .content-wrapper {
        padding: 1.5rem;
    }
}