/* --- RESET & VARIABLES --- */
:root {
    --primary: #00f3ff;
    --primary-dark: #00c7d1;
    --secondary: #bc13fe;
    --bg-dark: #050505;
    --bg-card: #0f0f11;
    --bg-light: #1a1a1f;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-main: linear-gradient(135deg, var(--primary), var(--secondary));
    --font-heading: 'Orbitron', sans-serif;
    --font-sub: 'Rajdhani', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- UTILITIES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 40px;
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-padding {
    padding: 100px 0;
}

.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;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

.btn-glow {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-main);
    transition: var(--transition);
    z-index: -1;
}

.btn-glow:hover::before {
    left: 0;
}

.btn-glow:hover {
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
    border-color: transparent;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
}

.btn-primary:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

/* --- HEADER & NAVIGATION (STRICTLY CONSISTENT) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: padding 0.3s ease;
}

.header.scrolled {
    padding: 10px 0;
    background: rgba(5, 5, 5, 0.95);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    filter: drop-shadow(0 0 5px var(--primary));
}

.main-nav {
    display: flex;
    align-items: center;
}

.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);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1002;
}

.bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    position: absolute;
    transition: var(--transition);
}

.bar.top {
    top: 0;
}

.bar.mid {
    top: 50%;
    transform: translateY(-50%);
}

.bar.bot {
    bottom: 0;
}

.mobile-toggle.active .bar.top {
    top: 50%;
    transform: rotate(45deg);
}

.mobile-toggle.active .bar.mid {
    opacity: 0;
}

.mobile-toggle.active .bar.bot {
    top: 50%;
    transform: rotate(-45deg);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-links {
    text-align: center;
}

.mobile-links li {
    margin: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s ease;
}

.mobile-overlay.active .mobile-links li {
    opacity: 1;
    transform: translateY(0);
}

.m-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-main);
}

.m-link:hover {
    color: var(--primary);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, var(--bg-dark) 70%);
    z-index: -1;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    perspective: 1000px;
    transform: rotateX(60deg) scale(2);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: rotateX(60deg) scale(2) translateY(0);
    }

    100% {
        transform: rotateX(60deg) scale(2) translateY(50px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(188, 19, 254, 0.1);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    font-family: var(--font-sub);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-radius: 50px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-3d-element {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 80%;
    z-index: 1;
    pointer-events: none;
}

.cube {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 15s infinite linear;
    margin: 0 auto;
}

.face {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid var(--primary);
    background: rgba(0, 243, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.face.front {
    transform: translateZ(150px);
}

.face.back {
    transform: rotateY(180deg) translateZ(150px);
}

.face.right {
    transform: rotateY(90deg) translateZ(150px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(150px);
}

.face.top {
    transform: rotateX(90deg) translateZ(150px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(150px);
}

@keyframes rotateCube {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* --- STATS COUNTER --- */
.stats-section {
    background: var(--bg-card);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-item p {
    font-family: var(--font-sub);
    font-size: 1.2rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* --- SERVICES SECTION --- */
.services {
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title span {
    color: var(--secondary);
    font-family: var(--font-sub);
    font-weight: 700;
    letter-spacing: 2px;
}

.section-title h2 {
    font-size: 3rem;
    margin-top: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--bg-light);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.card-link {
    color: var(--secondary);
    font-weight: 700;
    font-family: var(--font-sub);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-link i {
    transition: var(--transition);
}

.card-link:hover i {
    transform: translateX(5px);
}

/* --- ROI CALCULATOR --- */
.calculator-section {
    background: linear-gradient(to bottom, var(--bg-dark), #100b14);
}

.calc-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    backdrop-filter: blur(10px);
}

.calc-inputs label {
    display: block;
    font-family: var(--font-sub);
    margin-bottom: 10px;
    color: var(--text-main);
}

.input-range-wrapper {
    margin-bottom: 30px;
}

.input-range-wrapper input[type="range"] {
    width: 100%;
    height: 5px;
    background: var(--bg-light);
    outline: none;
    border-radius: 5px;
    -webkit-appearance: none;
}

.input-range-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary);
}

.range-value {
    display: block;
    text-align: right;
    color: var(--primary);
    font-weight: bold;
    margin-top: 5px;
}

.calc-result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-dark);
    border-radius: 15px;
    border: 1px solid var(--secondary);
    position: relative;
    padding: 30px;
    text-align: center;
}

.calc-result h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.result-number {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    font-family: var(--font-heading);
    text-shadow: 0 0 20px var(--secondary);
}

.calc-cta {
    margin-top: 30px;
}

/* --- INDUSTRIES TABS --- */
.industries {
    background: var(--bg-dark);
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-sub);
    font-size: 1.1rem;
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    font-weight: bold;
    border-color: var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.industry-text h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.industry-text ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.industry-text ul li i {
    color: var(--secondary);
}

.industry-img {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.industry-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

/* --- TESTIMONIALS --- */
.testimonials {
    background: var(--bg-card);
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    border-left: 3px solid var(--primary);
}

.quote-icon {
    font-size: 2rem;
    color: var(--glass-border);
    margin-bottom: 20px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: var(--glass-border);
    border-radius: 50%;
}

.client-details h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.client-details span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- CONTACT SECTION (Index) --- */
.contact-cta {
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('placeholder-bg.jpg');
    /* Use color fallback */
    background-size: cover;
    background-attachment: fixed;
}

.contact-box {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 60px;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* --- PAGE HEADER (Legal/Contact Pages) --- */
.page-header {
    padding-top: 180px;
    padding-bottom: 80px;
    background: radial-gradient(circle at 50% 0%, #1a1a2e 0%, var(--bg-dark) 100%);
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

/* --- CONTACT PAGE SPECIFIC --- */
.contact-interface {
    padding-bottom: 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.info-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--primary);
}

.info-card i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-right: 10px;
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.tech-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

.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: 2px solid var(--glass-border);
    padding: 10px 0;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.input-group select option {
    background: var(--bg-dark);
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--text-muted);
    transition: var(--transition);
    pointer-events: none;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group input:not(:placeholder-shown),
.input-group textarea:not(:placeholder-shown) {
    border-bottom-color: var(--primary);
}

.input-group input:focus~label,
.input-group textarea:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary);
}

.full-width {
    width: 100%;
}

/* --- LEGAL CONTENT --- */
.legal-content {
    padding-bottom: 100px;
}

.legal-section {
    background: var(--bg-light);
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--secondary);
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

/* --- FOOTER (STRICTLY CONSISTENT) --- */
.footer {
    background: #000;
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
    filter: grayscale(100%) brightness(200%);
}

.brand-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: #000;
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #fff;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-info i {
    color: var(--secondary);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 20px;
}

.legal-links a:hover {
    color: var(--primary);
}

/* --- ANIMATIONS --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero-3d-element {
        opacity: 0.5;
    }

    .calc-container {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .nav-list,
    .header-actions .btn {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero {
        padding-top: 120px;
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-3d-element {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tab-content.active {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .legal-links a {
        margin: 0 10px;
    }
}