/* --- ROOT VARIABLES & RESET --- */
:root {
    --primary-color: #00f2ea;
    --secondary-color: #ff0055;
    --accent-color: #7000ff;
    --bg-dark: #050509;
    --bg-card: #0f0f16;
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --glass-bg: rgba(15, 15, 22, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --transition-speed: 0.3s;
    --section-padding: 100px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 500;
}

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-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* --- UTILITIES --- */
.text-gradient {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
}

.btn-primary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 242, 234, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.6);
}

.btn-primary:hover::before {
    width: 100%;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: center;
}

.section-subtitle {
    color: var(--primary-color);
    text-align: center;
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 4px;
}

/* --- LOADER --- */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-text {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 20px;
    letter-spacing: 5px;
    animation: pulse 1.5s infinite;
}

.loader-line {
    width: 200px;
    height: 2px;
    background: #333;
    position: relative;
    overflow: hidden;
}

.loader-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: var(--primary-color);
    animation: load 2s infinite linear;
    box-shadow: 0 0 10px var(--primary-color);
}

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 90px;
    filter: invert(1) drop-shadow(0 0 5px rgba(0, 242, 234, 0.5));
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    position: relative;
    color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    position: relative;
}

.hamburger-inner {
    width: 100%;
    height: 2px;
    background: var(--text-main);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    width: 100%;
    height: 2px;
    background: var(--text-main);
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    top: 10px;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a2e 0%, var(--bg-dark) 70%);
    z-index: -2;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, var(--primary-color) 1px, transparent 1px),
        radial-gradient(circle, var(--accent-color) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.1;
    animation: particleMove 20s linear infinite;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.hero-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    border-left: 3px solid var(--secondary-color);
    padding-left: 20px;
}

.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 60px;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- SERVICES SECTION (3D Cards) --- */
.services-section {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0a14 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    position: relative;
    transition: all 0.5s ease;
    overflow: hidden;
    transform-style: preserve-3d;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-card:hover {
    transform: translateY(-10px) perspective(1000px) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(112, 0, 255, 0.2);
    border-color: var(--accent-color);
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-shadow: 0 0 15px var(--primary-color);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.service-link {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-link:hover {
    gap: 10px;
    color: var(--primary-color);
}

/* --- CALCULATOR SECTION --- */
.calculator-section {
    padding: var(--section-padding);
    background: var(--bg-card);
    position: relative;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.calc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.calc-box {
    background: var(--bg-dark);
    padding: 40px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    color: var(--text-muted);
}

.range-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 5px;
    background: #333;
    border-radius: 5px;
    outline: none;
}

.range-slider::-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);
}

.calc-value {
    display: block;
    text-align: right;
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 5px;
}

.calc-result {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.result-number {
    font-size: 4rem;
    font-family: var(--font-heading);
    color: var(--secondary-color);
    display: block;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 0, 85, 0.4);
}

/* --- PROCESS SECTION --- */
.process-section {
    padding: var(--section-padding);
    position: relative;
}

.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 80px auto 0;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.process-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.process-item.left {
    left: 0;
    text-align: right;
}

.process-item.right {
    left: 50%;
}

.process-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-dark);
    border: 2px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--primary-color);
}

.process-item.right::after {
    left: -10px;
}

.process-content {
    padding: 20px 30px;
    background: var(--bg-card);
    position: relative;
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    transition: transform 0.3s;
}

.process-content:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.process-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 0;
    right: 20px;
}

/* --- INDUSTRIES --- */
.industries-section {
    padding: var(--section-padding);
    background: #08080c;
}

.ind-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.ind-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px 10px;
    text-align: center;
    transition: all 0.3s;
    cursor: default;
}

.ind-card:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.ind-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.ind-card span {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* --- TESTIMONIALS --- */
.testimonial-section {
    padding: var(--section-padding);
}

.testimonial-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding-bottom: 50px;
    scrollbar-width: none;
}

.testimonial-wrapper::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 350px;
    background: var(--bg-card);
    padding: 40px;
    border-top: 3px solid var(--secondary-color);
    position: relative;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-weight: bold;
}

/* --- CONTACT / LEGAL PAGE STYLES --- */
.page-header-section {
    padding: 150px 0 80px;
    text-align: center;
    background: var(--bg-dark);
    position: relative;
    border-bottom: 1px solid var(--glass-border);
}

.page-header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, #1a1a2e, transparent);
    z-index: 0;
}

.page-title {
    font-size: 3.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px var(--primary-color);
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 20px auto 0;
    position: relative;
    z-index: 1;
}

.legal-content {
    padding: 60px 0;
    max-width: 900px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 40px;
    background: var(--bg-card);
    padding: 30px;
    border: 1px solid var(--glass-border);
}

.legal-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.contact-section-standalone {
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    padding-right: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 242, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    border-radius: 5px;
    font-size: 1.2rem;
}

.contact-text h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--text-muted);
}

.contact-form-wrapper {
    background: var(--bg-card);
    padding: 40px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 15px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 242, 234, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* --- FOOTER --- */
.footer {
    background: #020205;
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
    border-bottom: 1px solid #222;
    padding-bottom: 50px;
}

.footer-logo img {
    height: 90px;
    filter: invert(1);
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-col h3 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    color: var(--text-muted);
}

.footer-contact i {
    color: var(--secondary-color);
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
}

.footer-legal-links a {
    margin-left: 20px;
    color: #555;
    font-size: 0.8rem;
}

.footer-legal-links a:hover {
    color: var(--primary-color);
}

/* --- ANIMATIONS --- */
@keyframes load {
    0% {
        left: -50%;
    }

    100% {
        left: 150%;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@keyframes particleMove {
    0% {
        background-position: 0 0, 20px 20px;
    }

    100% {
        background-position: 100px 100px, 120px 120px;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 992px) {
    .header-actions {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        height: auto;
        padding: 150px 0 80px;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
        border-left: none;
        border-bottom: 3px solid var(--secondary-color);
        padding-bottom: 20px;
        padding-left: 0;
    }

    .hero-stats {
        justify-content: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .process-timeline::after {
        left: 20px;
    }

    .process-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 10px;
    }

    .process-item.left {
        text-align: left;
    }

    .process-item.left::after,
    .process-item.right::after {
        left: 10px;
    }

    .process-item.right {
        left: 0;
    }
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background: rgba(5, 5, 9, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding-top: 100px;
    transition: 0.4s ease;
    border-left: 1px solid var(--glass-border);
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-main);
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.popup.show {
    opacity: 1;
    pointer-events: all;
}

.popup-content {
    background: var(--bg-card);
    padding: 40px;
    border: 1px solid var(--primary-color);
    text-align: center;
    max-width: 400px;
    position: relative;
    transform: scale(0.8);
    transition: 0.3s;
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.popup-close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}