/*
================================================
TABLE OF CONTENTS
================================================
1.  :root Variables & Global Styles
2.  Keyframes & Animations
3.  Typography & Glitch Effect
4.  Reusable Components (Buttons, Cards, Grid)
5.  Layout (Header, Nav, Footer)
6.  Preloader & Custom Cursor
7.  Particle Canvas Background
8.  Hero Section
9.  Services Section (The Arsenal)
10. Process Section (Battle Plan)
11. Tech & 3D Element Section
12. Industries Section (Sector Command)
13. Testimonials Section (Intel Stream)
14. CTA Section
15. Subpage Styles (Contact, Legal)
16. Contact Page Specifics
17. Legal Content Page
18. Popup Styles
19. Responsive Design (Media Queries)
================================================
*/

/* 1. :root Variables & Global Styles */
:root {
    --color-background: #0d0f13;
    --color-surface: #1a1d24;
    --color-surface-light: #252932;
    --color-primary: #00f6ff;
    --color-secondary: #ff005c;
    --color-accent: #ff9a00;
    --color-text: #d1d5db;
    --color-text-muted: #8a919f;
    --color-border: rgba(0, 246, 255, 0.2);
    --color-shadow: rgba(0, 246, 255, 0.1);

    --font-primary: 'Teko', sans-serif;
    --font-secondary: 'Roboto Mono', monospace;

    --header-height: 80px;
    --border-radius: 4px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

body.loading {
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

ul {
    list-style: none;
}

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    margin-bottom: 50px;
    text-align: center;
}

.section-title .subtitle {
    display: block;
    font-family: var(--font-secondary);
    color: var(--color-primary);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title h2 {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
}

/* 2. Keyframes & Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes textIn {
    from {
        opacity: 0;
        transform: translateY(20px) skewY(5deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) skewY(0);
    }
}

@keyframes preloaderBar {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

@keyframes glitch {

    2%,
    64% {
        transform: translate(2px, 0) skew(0deg);
    }

    4%,
    60% {
        transform: translate(-2px, 0) skew(0deg);
    }

    62% {
        transform: translate(0, 0) skew(5deg);
    }
}

@keyframes rotate3D {
    0% {
        transform: rotateY(0deg) rotateX(10deg);
    }

    100% {
        transform: rotateY(360deg) rotateX(10deg);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 246, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 246, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 246, 255, 0);
    }
}

/* Scroll-triggered Animations */
.animate-in {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-in.is-visible {
    opacity: 1;
}

.animate-in[data-animation="fade-in-up"].is-visible {
    animation: fadeInUp 0.8s forwards;
}

.animate-in[data-animation="fade-in-right"].is-visible {
    animation: slideInRight 0.8s forwards;
}

.animate-in[data-animation="fade-in-left"].is-visible {
    animation: slideInLeft 0.8s forwards;
}

.animate-in[data-animation="text-in"].is-visible {
    animation: textIn 0.8s forwards;
}

/* 3. Typography & Glitch Effect */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: #fff;
    line-height: 1.2;
    font-weight: 700;
}

.glitch {
    position: relative;
    color: white;
}

.glitch:before,
.glitch:after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-background);
    overflow: hidden;
}

.glitch:before {
    left: 2px;
    text-shadow: -2px 0 var(--color-secondary);
    animation: glitch 3s infinite linear alternate-reverse;
}

.glitch:after {
    left: -2px;
    text-shadow: -2px 0 var(--color-primary), 2px 2px var(--color-secondary);
    animation: glitch 2s infinite linear alternate-reverse;
}

/* 4. Reusable Components (Buttons, Cards, Grid) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: none;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    z-index: 1;
}

.btn span {
    margin-right: 10px;
}

.btn i {
    font-size: 1.1em;
    transition: transform var(--transition-speed) ease;
}

.btn:hover i {
    transform: translateX(5px);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-background);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
    border-color: var(--color-primary);
}

/* 5. Layout (Header, Nav, Footer) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(13, 15, 19, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-speed) ease;
}

.header.scrolled {
    background: var(--color-background);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.header .container {
    height: 100%;
}

.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    height: 40px;
    width: auto;
    transition: transform var(--transition-speed) ease;
}

.logo-link:hover .logo {
    transform: scale(1.1);
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-secondary);
    color: var(--color-text);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease;
}

.nav-link:hover,
.nav-link:focus {
    color: #fff;
}

.nav-link:hover::after,
.nav-link:focus::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 30px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
    cursor: none;
    z-index: 1002;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all var(--transition-speed) ease;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(13, 15, 19, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1001;
    transition: right var(--transition-speed) ease;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-nav.is-open {
    right: 0;
}

.mobile-nav nav ul {
    text-align: center;
}

.mobile-nav nav li {
    margin: 30px 0;
}

.mobile-nav nav a {
    font-size: 2rem;
    font-family: var(--font-primary);
}

/* Footer */
.footer {
    background-color: var(--color-surface);
    padding: 80px 0 30px;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-about-text {
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-muted);
    transition: all var(--transition-speed) ease;
}

.social-link:hover {
    color: var(--color-background);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.footer-col-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul a {
    color: var(--color-text-muted);
    transition: color var(--transition-speed), padding-left var(--transition-speed);
}

.footer-links ul a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: var(--color-text-muted);
}

.contact-info-list i {
    color: var(--color-primary);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-info-list a {
    color: var(--color-text-muted);
}

.contact-info-list a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* 6. Preloader & Custom Cursor */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-background);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader-logo {
    margin-bottom: 30px;
}

.preloader-logo img {
    width: 100px;
    animation: pulse 2s infinite;
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background-color: var(--color-surface);
    margin-bottom: 20px;
    position: relative;
}

.preloader-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--color-primary);
    animation: preloaderBar 2s ease-out forwards;
}

.preloader p {
    font-family: var(--font-secondary);
    color: var(--color-text-muted);
    letter-spacing: 2px;
}

.cursor {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease-out;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
}

.cursor.hovered {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(0, 246, 255, 0.1);
}

/* 7. Particle Canvas Background */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

/* 8. Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(13, 15, 19, 0.5) 0%, var(--color-background) 70%);
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 7rem;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-title span {
    display: block;
}

.hero-title .line2 {
    color: var(--color-primary);
    text-shadow: 0 0 20px var(--color-primary);
}

.hero-subtitle {
    max-width: 600px;
    margin: 30px auto;
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-down-indicator a {
    font-size: 1.5rem;
    color: var(--color-text);
    animation: pulse 2s infinite;
}

/* 9. Services Section (The Arsenal) */
.services-section {
    background: var(--color-surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-background);
    padding: 40px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--color-primary), transparent 30%);
    animation: rotate3D 4s linear infinite;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--color-shadow);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.service-description {
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-tags span {
    background: var(--color-surface-light);
    color: var(--color-text-muted);
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: var(--border-radius);
}

/* 10. Process Section (Battle Plan) */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--color-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.process-step {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.process-step:nth-child(odd) {
    left: 0;
    text-align: right;
}

.process-step:nth-child(even) {
    left: 50%;
}

.process-step::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--color-background);
    border: 4px solid var(--color-primary);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
}

.process-step:nth-child(even)::after {
    left: -10px;
}

.process-icon {
    position: absolute;
    font-size: 1.5rem;
    top: 27px;
    color: var(--color-primary);
    z-index: 2;
}

.process-step:nth-child(odd) .process-icon {
    right: -35px;
}

.process-step:nth-child(even) .process-icon {
    left: -35px;
}

.process-content {
    padding: 20px 30px;
    background: var(--color-surface);
    position: relative;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.process-number {
    position: absolute;
    font-size: 4rem;
    font-family: var(--font-primary);
    color: rgba(255, 255, 255, 0.05);
    z-index: -1;
}

.process-step:nth-child(odd) .process-number {
    right: 20px;
    top: 0;
}

.process-step:nth-child(even) .process-number {
    left: 20px;
    top: 0;
}

.process-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* 11. Tech & 3D Element Section */
.tech-section {
    background: var(--color-surface);
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.tech-content p {
    margin-bottom: 20px;
}

.tech-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.tech-list li {
    display: flex;
    align-items: center;
}

.tech-list i {
    color: var(--color-primary);
    margin-right: 10px;
}

.tech-3d-wrapper {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.tech-cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate3D 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--color-primary);
    background: rgba(0, 246, 255, 0.1);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--color-primary);
    box-shadow: 0 0 20px var(--color-shadow) inset;
}

.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);
}

/* 12. Industries Section (Sector Command) */
.section-description {
    max-width: 700px;
    margin: -30px auto 50px;
    color: var(--color-text-muted);
}

.industries-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.industry-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 20px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all var(--transition-speed) ease;
}

.industry-item:hover {
    background: var(--color-primary);
    color: var(--color-background);
    transform: scale(1.05);
}

.industry-item i {
    font-size: 1.5rem;
    transition: color var(--transition-speed) ease;
}

.industry-item:hover i {
    color: var(--color-background);
}

/* 13. Testimonials Section (Intel Stream) */
.testimonials-section {
    background-color: var(--color-surface);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--color-background);
    padding: 30px;
    border-left: 4px solid var(--color-primary);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-header i {
    font-size: 2rem;
    color: var(--color-primary);
}

.testimonial-rating {
    color: var(--color-accent);
}

.testimonial-text {
    flex-grow: 1;
    margin-bottom: 20px;
    font-style: italic;
    color: var(--color-text-muted);
}

.author-name {
    font-size: 1.2rem;
}

.author-title {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* 14. CTA Section */
.cta-section {
    background-image: linear-gradient(rgba(13, 15, 19, 0.8), rgba(13, 15, 19, 0.8)), url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-text {
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--color-text-muted);
}

/* 15. Subpage Styles (Contact, Legal) */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
    font-size: 4rem;
    margin-bottom: 15px;
}

.page-subtitle {
    max-width: 600px;
    margin: 0 auto 20px;
    color: var(--color-text-muted);
}

.breadcrumbs a {
    color: var(--color-text-muted);
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumbs i {
    margin: 0 10px;
    font-size: 0.8rem;
}

.breadcrumbs span {
    color: var(--color-text);
}

/* 16. Contact Page Specifics */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--color-surface);
    padding: 50px;
    border: 1px solid var(--color-border);
}

.contact-info-list-page li {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-info-list-page i {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: var(--color-surface-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-primary);
    margin-right: 20px;
}

.contact-info-list-page div {
    display: flex;
    flex-direction: column;
}

.contact-info-list-page span {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.contact-info-list-page a {
    color: #fff;
    font-size: 1.1rem;
}

.contact-info-list-page a:hover {
    color: var(--color-primary);
}

.contact-form .form-group {
    position: relative;
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: #fff;
    font-family: var(--font-secondary);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.contact-form select {
    padding-left: 15px;
    appearance: none;
}

.contact-form textarea {
    padding-left: 15px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-shadow);
}

.form-icon {
    position: absolute;
    left: 15px;
    top: 38px;
    color: var(--color-text-muted);
}

/* 17. Legal Content Page */
.legal-content .content-wrapper {
    background: var(--color-surface);
    padding: 40px;
    border: 1px solid var(--color-border);
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 2rem;
    margin: 30px 0 15px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}

.legal-content p,
.legal-content li {
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
}

/* 18. Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--color-surface);
    padding: 40px;
    z-index: 1003;
    width: 90%;
    max-width: 500px;
    text-align: center;
    border: 1px solid var(--color-primary);
    box-shadow: 0 0 30px var(--color-shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.popup.active,
.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup.active {
    transform: translate(-50%, -50%) scale(1);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: none;
}

.popup-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.popup h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* 19. Responsive Design (Media Queries) */

/* Tablets and larger phones */
@media (max-width: 992px) {
    .section-title h2 {
        font-size: 3rem;
    }

    .header .nav {
        display: none;
    }

    .header-actions .header-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-title {
        font-size: 5rem;
    }

    .process-timeline::after {
        left: 31px;
    }

    .process-step {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .process-step:nth-child(odd),
    .process-step:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .process-step::after,
    .process-step:nth-child(even)::after {
        left: 21px;
    }

    .process-icon,
    .process-step:nth-child(odd) .process-icon,
    .process-step:nth-child(even) .process-icon {
        left: -10px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .tech-3d-wrapper {
        margin-top: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Phones */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    section {
        padding: 80px 0;
    }

    .container {
        width: 95%;
    }

    .hero {
        text-align: left;
    }

    .hero-content {
        text-align: left;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer .social-links,
    .footer .contact-info-list li {
        justify-content: center;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer .contact-info-list li {
        text-align: left;
    }

    .contact-grid {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 3rem;
    }
}