/* --- TABLE OF CONTENTS ---
1.  :root & Global Styles
2.  Keyframe Animations
3.  Typography & Utility Classes
4.  Header & Navigation
5.  Mobile Navigation
6.  Footer
7.  Buttons & Form Elements
8.  Hero Section (index.html)
9.  Services Section (3D Flip Cards)
10. About Section & Stats Counter
11. Testimonials Section (Slider)
12. CTA Section
13. Subpage Specific Styles (Page Header, Content)
14. Contact Page Styles
15. Popup Styles
16. Scrollbar Styles
17. Responsive Media Queries
--------------------------- */

/* 1. :root & Global Styles
-------------------------------------------------- */
:root {
    --bg-primary: #0a0c1a;
    --bg-secondary: #12152c;
    --bg-tertiary: #1a1d3a;
    --primary-color: #00f7ff;
    --secondary-color: #f700ff;
    --accent-color: #ffff00;
    --text-primary: #e0e1ff;
    --text-secondary: #a0a3c4;
    --glow-color: rgba(0, 247, 255, 0.5);
    --shadow-color: rgba(0, 247, 255, 0.2);
    --border-color: rgba(0, 247, 255, 0.3);
    --header-height: 80px;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Orbitron', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

/* 2. Keyframe Animations
-------------------------------------------------- */
@keyframes neon-flicker {

    0%,
    18%,
    22%,
    25%,
    53%,
    57%,
    100% {
        text-shadow:
            0 0 4px #fff,
            0 0 11px #fff,
            0 0 19px #fff,
            0 0 40px var(--primary-color),
            0 0 80px var(--primary-color),
            0 0 90px var(--primary-color),
            0 0 100px var(--primary-color),
            0 0 150px var(--primary-color);
    }

    20%,
    24%,
    55% {
        text-shadow: none;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.3;
    }
}

@keyframes rotate-3d-cube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes glitch-effect {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-3px, 3px);
    }

    40% {
        transform: translate(-3px, -3px);
    }

    60% {
        transform: translate(3px, 3px);
    }

    80% {
        transform: translate(3px, -3px);
    }

    100% {
        transform: translate(0);
    }
}

/* YEH GRID ANIMATION KE LIYE HAI */
@keyframes scan-grid {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 120px 120px;
    }
}


/* 3. Typography & Utility Classes
-------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    color: #fff;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: block;
    font-family: var(--font-secondary);
    color: var(--primary-color);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 700;
}

.section-title {
    margin-bottom: 20px;
}

.section-description {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--delay, 0s);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 4. Header & Navigation
-------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(10, 12, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-bottom-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background-color: rgba(10, 12, 26, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 35px;
}

.nav-link {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}

.bar-top {
    top: 0;
}

.bar-middle {
    top: 50%;
    transform: translateY(-50%);
}

.bar-bottom {
    bottom: 0;
}

body.nav-open .bar-top {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

body.nav-open .bar-middle {
    opacity: 0;
}

body.nav-open .bar-bottom {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* 5. Mobile Navigation
-------------------------------------------------- */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 12, 26, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

body.nav-open .mobile-nav {
    transform: translateX(0);
}

.mobile-nav nav ul {
    text-align: center;
}

.mobile-nav nav li {
    margin: 20px 0;
}

.mobile-nav nav a {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    color: #fff;
    text-transform: uppercase;
    transition: color 0.3s, letter-spacing 0.3s;
}

.mobile-nav nav a:hover {
    color: var(--primary-color);
    letter-spacing: 2px;
}

.mobile-nav .btn-primary {
    margin-top: 30px;
}

/* 6. Footer
-------------------------------------------------- */
.footer {
    background-color: var(--bg-secondary);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(to right, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
    animation: scan-grid 15s linear infinite reverse;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 80px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-about-text {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--glow-color);
    transform: translateY(-3px);
}

.footer-col-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-secondary);
    transition: color 0.3s, padding-left 0.3s;
}

.footer-links ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact .contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.footer-contact .contact-info i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-contact .contact-info a {
    color: var(--text-secondary);
}

.footer-contact .contact-info a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    text-align: center;
    color: var(--text-secondary);
}

/* 7. Buttons & Form Elements
-------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
}

.btn span {
    z-index: 2;
}

.btn i {
    z-index: 2;
    transition: transform 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-primary);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 20px var(--glow-color);
}

.btn-primary:hover i {
    transform: translateX(5px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    color: var(--bg-primary);
    background-color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-secondary:hover i {
    transform: rotate(90deg);
}

.header-cta.active {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 20px var(--glow-color);
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--glow-color);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* 8. Hero Section (index.html)
-------------------------------------------------- */
.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 247, 255, 0.1) 1px, transparent 1px),
        linear-gradient(to right, rgba(0, 247, 255, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    animation: scan-grid 10s linear infinite;
}

.hero-glow-1,
.hero-glow-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    pointer-events: none;
}

.hero-glow-1 {
    width: 500px;
    height: 500px;
    background-color: var(--primary-color);
    top: 10%;
    left: -10%;
    animation: pulse-glow 8s infinite alternate;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    background-color: var(--secondary-color);
    bottom: 5%;
    right: -5%;
    animation: pulse-glow 10s infinite alternate;
}

#motion-path-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.motion-icon {
    position: absolute;
    color: var(--primary-color);
    opacity: 0.5;
    font-size: 1.5rem;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 50px;
}

.hero-content {
    max-width: 600px;
}

.hero-subtitle {
    display: block;
    font-family: var(--font-secondary);
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.hero-title {
    margin-bottom: 25px;
    position: relative;
}

.hero-title::before,
.hero-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    overflow: hidden;
}

.hero-title::before {
    left: 2px;
    text-shadow: -1px 0 var(--secondary-color);
    animation: glitch-effect 1.5s infinite linear alternate-reverse;
}

.hero-title::after {
    left: -2px;
    text-shadow: -1px 0 var(--primary-color);
    animation: glitch-effect 2s infinite linear alternate-reverse;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
}

.hero-3d-object-container {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-3d-object {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-3d-cube 20s infinite linear;
}

.hero-3d-object .face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(18, 21, 44, 0.8);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: var(--primary-color);
}

.face.front {
    transform: rotateY(0deg) translateZ(100px);
}

.face.back {
    transform: rotateY(180deg) translateZ(100px);
}

.face.right {
    transform: rotateY(90deg) translateZ(100px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(100px);
}

.face.top {
    transform: rotateX(90deg) translateZ(100px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

/* Animate on Load */
.animate-on-load {
    opacity: 1 !important;
}

/* 9. Services Section (3D Flip Cards)
-------------------------------------------------- */
.services-section {
    background-color: var(--bg-secondary);
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background-color: transparent;
    aspect-ratio: 1 / 1.1;
    perspective: 1500px;
}

.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: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: linear-gradient(145deg, var(--bg-tertiary), var(--bg-secondary));
    transition: background 0.3s, box-shadow 0.3s;
}

.service-card-front {
    z-index: 2;
}

.service-card-back {
    transform: rotateY(180deg);
    z-index: 1;
    align-items: flex-start;
    text-align: left;
    justify-content: space-between;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.service-card-front p {
    color: var(--text-secondary);
}

.service-card-back p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-learn-more {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1px;
}

/* 10. About Section & Stats Counter
-------------------------------------------------- */
.about-section {
    background-color: var(--bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-features {
    list-style: none;
    margin: 30px 0;
}

.about-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-features i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.about-image-wrapper {
    position: relative;
    padding: 15px;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transform: translate(15px, 15px);
    transition: transform 0.3s ease;
}

.about-image-wrapper:hover::before {
    transform: translate(10px, 10px);
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.about-image img {
    filter: saturate(0) contrast(1.2);
    transition: filter 0.5s ease;
}

.about-image:hover img {
    filter: saturate(1) contrast(1);
}

.stats-counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    background-color: var(--bg-secondary);
    padding: 50px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 11. Testimonials Section (Slider)
-------------------------------------------------- */
.testimonials-section {
    background-color: var(--bg-secondary);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    flex: 0 0 100%;
    padding: 40px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.testimonial-content {
    margin-bottom: 30px;
    position: relative;
}

.testimonial-content i.fa-quote-left {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: -10px;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-info h4 {
    margin-bottom: 0;
}

.author-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% + 120px);
    left: -60px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.slider-controls button {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
}

.slider-controls button:hover {
    background-color: var(--primary-color);
    color: var(--bg-primary);
}

/* 12. CTA Section
-------------------------------------------------- */
.cta-section {
    padding: 80px 0;
    background-image:
        linear-gradient(rgba(10, 12, 26, 0.9), rgba(10, 12, 26, 0.9)),
        url('https://images.pexels.com/photos/160107/pexels-photo-160107.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta-text {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* 13. Subpage Specific Styles (Page Header, Content)
-------------------------------------------------- */
body.subpage main {
    padding-top: var(--header-height);
}

.page-header {
    padding: 80px 0;
    background-color: var(--bg-secondary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    position: relative;
}


.page-header h1::before {
    left: calc(50% + 2px);
    text-shadow: -1px 0 var(--secondary-color);
    animation: glitch-effect 1.5s infinite linear alternate-reverse;
}

.page-header h1::after {
    left: calc(50% - 2px);
    text-shadow: -1px 0 var(--primary-color);
    animation: glitch-effect 2s infinite linear alternate-reverse;
}

.breadcrumbs {
    margin-top: 15px;
    color: var(--text-secondary);
}

.breadcrumbs a {
    color: var(--text-secondary);
}

.breadcrumbs a:hover {
    color: #fff;
}

.breadcrumbs i {
    font-size: 0.8rem;
    margin: 0 10px;
}

.breadcrumbs span {
    color: #fff;
}

.page-content {
    background-color: var(--bg-primary);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-secondary);
    padding: 50px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.content-wrapper h2 {
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.content-wrapper p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.content-wrapper strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* 14. Contact Page Styles
-------------------------------------------------- */
.contact-section {
    background-color: var(--bg-primary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-info-panel {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-method:not(:last-child) {
    margin-bottom: 30px;
}

.method-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.method-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.method-details p {
    color: var(--text-secondary);
    margin: 0;
    word-break: break-word;
}

.method-details a {
    color: var(--text-secondary);
}

.method-details a:hover {
    color: #fff;
}

.contact-form-wrapper {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* 15. Popup Styles
-------------------------------------------------- */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.popup:target {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 450px;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.popup:target .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    color: var(--text-secondary);
    line-height: 1;
}

.popup-close:hover {
    color: #fff;
}

.popup-content .fa-check-circle {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.popup-content h3 {
    margin-bottom: 10px;
}

.popup-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* 16. Scrollbar Styles
-------------------------------------------------- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00b8bf;
}

/* 17. Responsive Media Queries
-------------------------------------------------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .nav-list {
        gap: 25px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-3d-object-container {
        margin-top: 50px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-features {
        display: inline-block;
        text-align: left;
    }

    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .stats-counter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    html {
        font-size: 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 80px 0;
    }

    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .header-actions .header-cta {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .stats-counter-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .slider-controls {
        display: none;
    }

    .testimonial-card {
        padding: 30px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact .contact-info {
        text-align: center;
    }

    .footer-contact .contact-info li {
        justify-content: center;
    }
}


@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .page-header {
        padding: 60px 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .content-wrapper,
    .contact-info-panel,
    .contact-form-wrapper {
        padding: 30px 20px;
    }
}