/* --- CSS RESET & VARIABLES --- */
:root {
    --primary-color: #4facfe;
    --secondary-color: #00f2fe;
    --accent-color: #7028e4;
    --dark-bg: #0f0c29;
    --dark-bg-2: #1e1b3a;
    --light-text: #ffffff;
    --gray-text: #b0b0b0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-height: 80px;
    --transition-speed: 0.3s;
    --font-main: 'Poppins', sans-serif;
    --gradient-main: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-text: linear-gradient(to right, #4facfe, #00f2fe);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(79, 172, 254, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: 100px 0;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: #fff;
}

.btn-outline:hover {
    background: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title p {
    color: var(--gray-text);
    max-width: 600px;
    margin: 0 auto;
}

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: transparent;
    z-index: 1000;
    transition: background 0.4s ease, height 0.4s ease;
}

.header.scrolled {
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    height: 70px;
}

.header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1002;
    /* Ensure logo is above nav on mobile if needed */
}

.logo-img {
    height: 40px;
    filter: drop-shadow(0 0 5px rgba(0, 242, 254, 0.5));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--light-text);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.header-cta {
    padding: 10px 25px;
    font-size: 0.9rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
    /* Higher than mobile nav */
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}

/* --- MOBILE NAVIGATION (Core Fix) --- */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--dark-bg);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease;
    visibility: hidden;
    /* Hide by default */
    opacity: 0;
}

.mobile-nav.active {
    right: 0;
    visibility: visible;
    opacity: 1;
}

.mobile-nav ul {
    text-align: center;
}

.mobile-nav li {
    margin: 25px 0;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1e1b3a 0%, #0f0c29 100%);
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary-color);
}

.shape-2 {
    bottom: 10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    animation-delay: 2s;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-3d-element {
    position: relative;
    height: 500px;
    perspective: 1000px;
}

.cube-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 20s infinite linear;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float-card 6s infinite ease-in-out;
}

.card-1 {
    top: 10%;
    right: 10%;
    z-index: 2;
}

.card-2 {
    bottom: 20%;
    left: 0%;
    z-index: 1;
    animation-delay: 1.5s;
}

.card-3 {
    top: 40%;
    right: -10%;
    z-index: 3;
    animation-delay: 3s;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-main);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.card-text h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.card-text span {
    font-size: 0.8rem;
    color: #00f2fe;
}

/* --- STATS SECTION --- */
.stats-section {
    padding: 60px 0;
    background: var(--dark-bg-2);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--gray-text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--dark-bg-2);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 40px rgba(0, 242, 254, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: var(--gradient-main);
    color: #fff;
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray-text);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.learn-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.learn-more i {
    transition: transform 0.3s;
}

.service-card:hover .learn-more i {
    transform: translateX(5px);
}

/* --- CALCULATOR SECTION --- */
.calculator-section {
    background: linear-gradient(rgba(15, 12, 41, 0.9), rgba(15, 12, 41, 0.9));
    background-size: cover;
    background-attachment: fixed;
}

.calc-container {
    background: var(--dark-bg-2);
    border-radius: 25px;
    padding: 50px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.calc-inputs label {
    display: block;
    margin-bottom: 10px;
    color: var(--light-text);
    font-weight: 500;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
}

.input-group input,
.input-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 15px 15px 15px 50px;
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
}

.range-slider {
    width: 100%;
    margin-top: 10px;
    -webkit-appearance: none;
    background: transparent;
}

.range-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--secondary-color);
    margin-top: -7px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.calc-results {
    background: var(--gradient-main);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.result-circle {
    width: 150px;
    height: 150px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.roi-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
}

.roi-label {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
}

/* --- INDUSTRY SECTION --- */
.industry-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.industry-tag {
    padding: 10px 25px;
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--gray-text);
    transition: 0.3s;
    cursor: default;
}

.industry-tag:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* --- TESTIMONIALS --- */
.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 40px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 350px;
    background: var(--dark-bg-2);
    padding: 30px;
    border-radius: 20px;
    scroll-snap-align: center;
    border: 1px solid var(--glass-border);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ccc;
    object-fit: cover;
}

.client-details h4 {
    color: #fff;
    margin-bottom: 2px;
}

.client-details span {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.quote-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

/* --- CONTACT SECTION (HOMEPAGE) --- */
.contact-cta {
    background: var(--gradient-main);
    border-radius: 30px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.contact-cta p {
    margin-bottom: 40px;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- INNER PAGES --- */
.subpage .page-header {
    padding: 180px 0 80px;
    background: linear-gradient(180deg, var(--dark-bg-2) 0%, var(--dark-bg) 100%);
    text-align: center;
    position: relative;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-top: 20px;
}

.breadcrumbs a:hover {
    color: var(--secondary-color);
}

.page-content {
    padding: 60px 0;
}

.content-wrapper {
    background: var(--dark-bg-2);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.content-wrapper h2 {
    color: var(--secondary-color);
    margin: 40px 0 20px;
}

.content-wrapper p,
.content-wrapper li {
    margin-bottom: 15px;
    color: #d0d0d0;
}

/* Contact Form Specifics */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info-panel {
    background: var(--gradient-main);
    padding: 40px;
    border-radius: 20px;
    color: #fff;
}

.contact-method {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.method-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form {
    background: var(--dark-bg-2);
    padding: 40px;
    border-radius: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    width: 100%;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

/* --- FOOTER --- */
.footer {
    background: #050414;
    padding: 80px 0 30px;
    position: relative;
    margin-top: 100px;
}

.footer-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 35px;
    margin-bottom: 20px;
}

.footer-about-text {
    color: var(--gray-text);
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-col-title {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-text);
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--gray-text);
    font-size: 0.9rem;
}

.contact-info i {
    color: var(--secondary-color);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    color: var(--gray-text);
    font-size: 0.85rem;
}

/* --- ANIMATIONS --- */
@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 20px);
    }
}

@keyframes float-card {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes rotate {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- CHAT WIDGET --- */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 242, 254, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.3s;
}

.chat-widget:hover {
    transform: scale(1.1);
}

.chat-widget i {
    font-size: 1.5rem;
    color: #fff;
}

/* --- MEDIA QUERIES --- */
@media (min-width: 769px) {

    /* STRICT FIX: Desktop par Mobile Nav kabhi show na ho */
    .mobile-nav {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content p {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-3d-element {
        display: none;
    }

    .calc-container {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .nav-menu,
    .header-actions .btn {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    /* Stats grid fix */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .header-cta {
        display: none;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-info li {
        justify-content: center;
    }

    /* Hamburger Animation */
    .mobile-toggle.active .bar-top {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active .bar-middle {
        opacity: 0;
    }

    .mobile-toggle.active .bar-bottom {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}