/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #00f3ff;
    --secondary-color: #bc13fe;
    --bg-dark: #0a0a12;
    --bg-darker: #050508;
    --bg-card: #14141f;
    --text-main: #e0e0e0;
    --text-muted: #a0a0b0;
    --font-heading: 'Orbitron', sans-serif;
    --font-sub: 'Rajdhani', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --gradient-main: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --glass-bg: rgba(20, 20, 31, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --spacing-section: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    text-transform: uppercase;
    font-weight: 700;
}

.section-header .tagline {
    font-family: var(--font-sub);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/* =========================================
   3. LAYOUT UTILITIES
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 40px;
}

.section-padding {
    padding: var(--spacing-section) 0;
}

/* =========================================
   4. HEADER & NAV
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(10, 10, 18, 0.9);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 80px;
    filter: invert(1);
    /* height: auto; */
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.main-nav .nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-sub);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1002;
}

.mobile-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: 0.3s;
}

/* =========================================
   5. BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-family: var(--font-sub);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 15px var(--primary-color);
}

.btn-secondary {
    border: 1px solid var(--glass-border);
    background: transparent;
    color: #fff;
    margin-left: 15px;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-glow {
    position: relative;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    overflow: hidden;
}

.btn-glow:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero-section {
    padding: 150px 0;
    /* height: 100vh; */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 10, 18, 0.3) 0%, rgba(10, 10, 18, 1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-label {
    font-family: var(--font-sub);
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 3px solid var(--primary-color);
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Typing Cursor */
.typewriter-text {
    color: var(--primary-color);
    border-right: 2px solid var(--secondary-color);
    padding-right: 5px;
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
    margin-bottom: 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 10px;
        opacity: 1;
    }

    100% {
        top: 30px;
        opacity: 0;
    }
}

/* =========================================
   7. STATS SECTION
   ========================================= */
.stats-section {
    padding: 50px 0;
    border-bottom: 1px solid var(--glass-border);
    background: var(--bg-darker);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.stat-label {
    font-family: var(--font-sub);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   8. SERVICES GRID
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: var(--transition-fast);
    height: 100%;
}

.card-inner {
    padding: 40px;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 20px;
}

.service-list {
    margin-bottom: 25px;
}

.service-list li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
    color: #ccc;
    font-size: 0.9rem;
}

.service-list li::before {
    content: '›';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.service-link {
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sub);
    text-transform: uppercase;
}

.service-link i {
    transition: 0.3s;
}

.service-link:hover i {
    transform: translateX(5px);
}

.service-link:hover {
    color: var(--primary-color);
}

.card-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    pointer-events: none;
    transition: var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card:hover .card-border {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

/* =========================================
   9. CALCULATOR
   ========================================= */
.calculator-section {
    background: linear-gradient(135deg, #14141f 0%, #050508 100%);
    position: relative;
}

.calc-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-sub);
    font-weight: 600;
    color: #fff;
}

.input-group input[type="range"] {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-color);
}

.range-value {
    display: block;
    margin-top: 5px;
    color: var(--secondary-color);
    font-weight: 700;
}

.calc-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.result-box {
    background: #0a0a12;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-box.highlight {
    background: rgba(188, 19, 254, 0.1);
    border-color: var(--secondary-color);
}

.result-box span {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.result-box h3 {
    font-size: 2rem;
    margin: 10px 0 0;
    color: #fff;
}

/* =========================================
   10. PROCESS TIMELINE
   ========================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    padding-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: 15px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--bg-dark);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    z-index: 2;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    right: 0;
    top: -20px;
    pointer-events: none;
}

.timeline-content h3 {
    color: var(--primary-color);
}

/* =========================================
   11. INDUSTRIES TABS
   ========================================= */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 15px 30px;
    cursor: pointer;
    font-family: var(--font-sub);
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.tab-btn.active,
.tab-btn:hover {
    border-color: var(--primary-color);
    color: #fff;
    background: rgba(0, 243, 255, 0.05);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: var(--bg-card);
    padding: 50px;
    border-radius: 20px;
}

.visual-area {
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

.check-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* =========================================
   12. REVIEWS / TESTIMONIALS
   ========================================= */
.reviews-slider {
    overflow: hidden;
    position: relative;
}

.review-track {
    display: flex;
    gap: 30px;
    animation: slide 20s linear infinite;
    /* Simple auto scroll or just static for now */
    flex-wrap: wrap;
    justify-content: center;
}

.review-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    min-width: 300px;
    flex: 1;
    max-width: 350px;
}

.review-stars {
    color: #ffd700;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #ccc;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.r-img {
    width: 50px;
    height: 50px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.reviewer-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

.reviewer-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =========================================
   13. CTA SECTION
   ========================================= */
.cta-section {
    padding: 100px 0;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(188, 19, 254, 0.1) 0%, rgba(10, 10, 18, 0) 70%);
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* =========================================
   14. CONTACT PAGE STYLES
   ========================================= */
.page-main {
    padding-top: 80px;
}

.page-header {
    background: var(--bg-darker);
    padding: 100px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.info-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card.support {
    border-color: var(--secondary-color);
}

.form-wrapper {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 10px;
}

.tech-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #555;
    padding: 10px 0;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.input-group select option {
    background: #000;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #888;
    pointer-events: none;
    transition: 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color: var(--primary-color);
}

.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:focus~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.full-width {
    width: 100%;
}

/* =========================================
   15. MOBILE OVERLAY (THIS WAS MISSING)
   ========================================= */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 18, 0.98);
    backdrop-filter: blur(15px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.3s ease-in-out;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.mobile-nav-container {
    text-align: center;
    transform: translateY(20px);
    transition: 0.4s ease;
}

.mobile-overlay.active .mobile-nav-container {
    transform: translateY(0);
}

.mobile-links li {
    margin: 25px 0;
}

.m-link {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
    letter-spacing: 2px;
}

.m-link:hover {
    color: var(--primary-color);
    letter-spacing: 5px;
    text-shadow: 0 0 20px var(--primary-color);
}

/* =========================================
   16. LEGAL PAGES (Consolidated)
   ========================================= */
.legal-content {
    background: var(--bg-card);
    padding: 60px;
    margin: 50px auto;
    max-width: 1000px;
    border-radius: 8px;
}

.legal-content h2 {
    color: var(--primary-color);
    margin-top: 30px;
    font-size: 1.8rem;
}

.legal-content p,
.legal-content li {
    color: #ccc;
    margin-bottom: 15px;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

/* =========================================
   17. FOOTER
   ========================================= */
.footer {
    background: var(--bg-darker);
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.brand-col p {
    color: var(--text-muted);
    margin: 20px 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo img {
    height: 80px;
    filter: invert(1);
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #fff;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a {
    color: var(--text-muted);
}

.footer ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    gap: 10px;
    color: var(--text-muted);
    align-items: start;
}

.contact-info i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
    font-size: 0.9rem;
}

.legal-links a {
    margin-left: 20px;
    color: #666;
}

.legal-links a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
}

.social-links a:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #000;
}

/* =========================================
   18. ANIMATIONS & LOADERS
   ========================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Loader Styles */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
    color: var(--primary-color);
    font-family: var(--font-sub);
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(0, 243, 255, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* =========================================
   19. MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .calc-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .main-nav,
    .header-actions .btn-glow {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .visual-area {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .legal-content {
        padding: 30px;
    }
}