/*
================================================
TABLE OF CONTENTS
================================================
1.  GLOBAL & ROOT VARIABLES
2.  BASE & TYPOGRAPHY
3.  UTILITIES & HELPERS
4.  HEADER & NAVIGATION
    - Desktop Header
    - Mobile Toggle & Navigation
5.  FOOTER
6.  BUTTONS & FORMS
    - General Buttons
    - Form Styling
7.  PAGE-SPECIFIC SECTIONS
    - Hero Section
    - Services Section
    - About Section
    - Process Section
    - Testimonials Section
    - CTA Section
    - Page Header (Subpages)
    - Contact Section
    - Legal Content
8.  INTERACTIVE ELEMENTS & POPUP
    - 3D Elements
    - Popup Modal
9.  ANIMATIONS & KEYFRAMES
10. RESPONSIVE MEDIA QUERIES
    - Large Desktops (1200px and up)
    - Tablets (max 992px)
    - Mobile (max 768px)
    - Small Mobile (max 480px)
================================================
*/

/* 1. GLOBAL & ROOT VARIABLES */
:root {
    --bg-primary: #0A0F1E;
    --bg-secondary: #121A2E;
    --accent-primary: #00AFFF;
    --accent-secondary: #FF00FF;
    --text-primary: #E0E0E0;
    --text-secondary: #a8b2d1;
    --border-color: rgba(0, 175, 255, 0.2);
    --shadow-color: rgba(0, 175, 255, 0.1);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Orbitron', sans-serif;
    --header-height: 80px;
    --transition-speed: 0.3s;
}

/* 2. BASE & TYPOGRAPHY */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--accent-primary), var(--accent-secondary));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--accent-secondary), var(--accent-primary));
}

h1,
h2,
h3,
h4 {
    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.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-secondary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 3. UTILITIES & HELPERS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--accent-primary);
    background: rgba(0, 175, 255, 0.1);
    padding: 5px 15px;
    border-radius: 50px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title {
    margin-bottom: 1rem;
    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(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* 4. HEADER & NAVIGATION */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
    padding: 0;
}

.header.scrolled {
    background: rgba(10, 15, 30, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    height: 45px;
    filter: invert(1);
    transition: transform var(--transition-speed) ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-cta {
    display: flex;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.hamburger {
    position: relative;
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0s 0.25s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: all 0.25s ease-in-out;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.mobile-toggle.active .hamburger {
    background: transparent;
}

.mobile-toggle.active .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}


/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 999;
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav ul {
    text-align: center;
}

.mobile-nav li {
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav.open li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav.open li:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-nav.open li:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-nav.open li:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-nav.open li:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-nav.open li:nth-child(5) {
    transition-delay: 0.5s;
}

.mobile-nav.open li:nth-child(6) {
    transition-delay: 0.6s;
}


.mobile-nav a {
    font-size: 1.8rem;
    font-family: var(--font-secondary);
    color: var(--text-primary);
}


/* 5. FOOTER */
.footer {
    background: var(--bg-secondary);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
    border-top: 2px solid var(--border-color);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-secondary), transparent);
    animation: animate-border 4s linear infinite;
}


.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-col-title {
    font-family: var(--font-secondary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-primary);
}

.footer-logo {
    height: 50px;
    filter: invert(1);
    margin-bottom: 1rem;
}

.footer-about-text {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-speed) ease;
}

.social-link:hover {
    color: #fff;
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--text-secondary);
    transition: all var(--transition-speed) ease;
}

.footer-links ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.contact-info li i {
    color: var(--accent-primary);
    margin-top: 5px;
}

.contact-info li a {
    color: var(--text-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 6. BUTTONS & FORMS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 50px;
    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 var(--transition-speed) ease;
    z-index: 1;
}

.btn span {
    z-index: 2;
}

.btn i {
    z-index: 2;
    transition: transform var(--transition-speed) ease;
}

.btn:hover i {
    transform: translateX(3px);
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    border-color: var(--accent-primary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    z-index: -1;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 175, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: var(--accent-primary);
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}


/* Form Styling */
.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group.full-width {
    width: 100%;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    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(--accent-primary);
    box-shadow: 0 0 15px var(--shadow-color);
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300AFFF' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

/* 7. PAGE-SPECIFIC SECTIONS */

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
    background: radial-gradient(circle, var(--bg-secondary) 0%, var(--bg-primary) 70%);
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    animation: fadeIn 1s ease-out;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    color: transparent;
    -webkit-text-stroke: 1px var(--accent-primary);
    animation: textScramble 2s forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.hero-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    color: #fff;
    -webkit-text-stroke: 0px transparent;
    overflow: hidden;
    animation: textFill 1.5s ease-out 1.5s forwards;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 550px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 1s forwards;
    opacity: 0;
}

/* Services Section */
.services-section {
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-secondary);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    transform-style: preserve-3d;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 175, 255, 0.2), transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-10px) perspective(1000px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-primary);
}

.service-card-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-card-title {
    margin-bottom: 1rem;
}

.card-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.card-link i {
    transition: transform var(--transition-speed) ease;
}

.service-card:hover .card-link i {
    transform: translateX(5px);
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.about-image-wrapper img {
    display: block;
    width: 100%;
}

.tech-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18, 26, 46, 0.6), rgba(10, 15, 30, 0.3));
    z-index: 1;
}

.about-visual::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    z-index: -1;
    transition: all var(--transition-speed) ease;
}

.about-visual:hover::before {
    transform: translate(10px, 10px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2.5rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--accent-primary);
}

.stat-number::after {
    content: '%';
}

.stat-item:nth-child(2) .stat-number::after {
    content: '+';
}

.stat-item:nth-child(3) .stat-number::after {
    content: '%+';
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}


/* Process Section */
.process-section {
    padding: 6rem 0;
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 40px;
    width: 4px;
    height: 100%;
    background: var(--border-color);
}

.timeline-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    animation: fill-line linear forwards;
    animation-timeline: view();
}

@keyframes fill-line {
    to {
        height: 100%;
    }
}

.process-step {
    position: relative;
    padding-left: 120px;
    margin-bottom: 4rem;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-icon-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    display: grid;
    place-items: center;
    transition: all var(--transition-speed) ease;
}

.process-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    transition: transform var(--transition-speed) ease;
}

.process-step:hover .process-icon-wrapper {
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.process-step:hover .process-icon {
    transform: rotate(15deg);
}

.process-number {
    font-family: var(--font-secondary);
    color: var(--accent-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.process-title {
    margin-bottom: 0.5rem;
}


/* Testimonials Section */
.testimonials-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    display: flex;
    overflow: hidden;
}

.testimonial-card {
    min-width: 100%;
    padding: 3rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: opacity 0.5s ease-in-out;
    position: relative;
}

.testimonial-quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 3rem;
    color: rgba(0, 175, 255, 0.1);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    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(--accent-primary);
}

.author-name {
    margin: 0;
}

.author-title {
    margin: 0;
    font-size: 0.9rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 110%;
    left: -5%;
    display: flex;
    justify-content: space-between;
}

.slider-btn {
    background: rgba(18, 26, 46, 0.8);
    border: 1px solid var(--border-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.slider-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}


/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: url('https://www.transparenttextures.com/patterns/clean-gray-paper.png'),
        linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    background-blend-mode: multiply;
    background-size: auto, cover;
}

.cta-container {
    text-align: center;
    color: #fff;
}

.cta-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.cta-text {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: #fff;
    opacity: 0.9;
}

.cta-button {
    background: #fff;
    color: var(--bg-primary);
    font-size: 1.1rem;
    padding: 15px 30px;
}

.cta-button:hover {
    background: var(--bg-primary);
    color: #fff;
    border-color: #fff;
}


/* Page Header (Subpages) */
.page-header {
    padding: 10rem 0 5rem;
    text-align: center;
    background: linear-gradient(rgba(10, 15, 30, 0.8), rgba(10, 15, 30, 0.8)), url('https://images.unsplash.com/photo-1516321497487-e288fb19713f?auto=format&fit=crop&q=80&w=1770');
    background-size: cover;
    background-position: center;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.breadcrumbs a {
    color: var(--text-primary);
}

.breadcrumbs a:hover {
    color: var(--accent-primary);
}

.page-subtitle {
    max-width: 600px;
    margin: 0 auto;
}


/* Contact Section */
.contact-section {
    padding: 6rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.contact-info-panel {
    padding: 3rem;
    background: var(--bg-primary);
}

.info-panel-title {
    margin-bottom: 1rem;
}

.contact-methods {
    margin-top: 3rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.method-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}

.method-details h3 {
    margin: 0;
}

.method-details p {
    margin: 0;
}

.contact-form-wrapper {
    padding: 3rem;
}

.form-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 15px;
    font-size: 1rem;
}


/* Legal Content */
.legal-content {
    padding: 6rem 0;
}

.legal-content .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}


/* 8. INTERACTIVE ELEMENTS & POPUP */
.hero-visual {
    display: grid;
    place-items: center;
    perspective: 1000px;
    animation: fadeIn 1s ease-out 0.5s forwards;
    opacity: 0;
}

.hero-3d-sphere {
    width: 350px;
    height: 350px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-sphere 30s linear infinite;
}

.sphere-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    opacity: 0.5;
}

.sphere-ring:nth-child(1) {
    transform: rotateY(30deg);
}

.sphere-ring:nth-child(2) {
    transform: rotateY(120deg) rotateX(20deg);
}

.sphere-ring:nth-child(3) {
    transform: rotateY(-50deg) rotateX(-60deg);
}

.sphere-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    color: var(--accent-secondary);
    text-shadow: 0 0 20px var(--accent-secondary);
}


/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup:target {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 500px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup:target .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.popup-icon {
    font-size: 4rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.popup-title {
    margin-bottom: 0.5rem;
}

.popup-close-btn {
    margin-top: 1.5rem;
}


/* 9. ANIMATIONS & KEYFRAMES */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textScramble {
    to {
        opacity: 1;
    }
}

@keyframes textFill {
    to {
        width: 100%;
    }
}

@keyframes rotate-sphere {
    from {
        transform: rotateY(0deg) rotateX(10deg);
    }

    to {
        transform: rotateY(360deg) rotateX(10deg);
    }
}

@keyframes animate-border {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* 10. RESPONSIVE MEDIA QUERIES */

/* Large Desktops */
@media (min-width: 1200px) {
    h1 {
        font-size: 4.5rem;
    }

    .hero-title {
        font-size: 5rem;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .nav-list {
        gap: 1.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 3rem;
    }

    .hero-3d-sphere {
        width: 300px;
        height: 300px;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-visual {
        max-width: 500px;
        margin: 0 auto 3rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .header-cta {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-step {
        padding-left: 100px;
    }

    .process-icon-wrapper {
        width: 70px;
        height: 70px;
        left: -10px;
    }

    .process-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .timeline-line {
        left: 24px;
    }

    .slider-controls {
        width: 100%;
        left: 0;
        top: auto;
        bottom: -80px;
        transform: none;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        min-height: 600px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .contact-info li {
        justify-content: center;
    }

    .contact-info li span,
    .contact-info li a {
        text-align: left;
    }

    .contact-wrapper {
        padding: 0;
    }

    .contact-info-panel,
    .contact-form-wrapper {
        padding: 2rem;
    }
}