/* css/style.css */
:root {
    --deep-navy: #0B0E14;
    --navy-light: #151A22;
    --electric-blue: #00F0FF;
    --electric-blue-dark: #00A3FF;
    --white: #F8F9FA;
    --gray: #A0AAB2;
    --glass-bg: rgba(21, 26, 34, 0.7);
    --glass-border: rgba(0, 240, 255, 0.2);
}

/* Light Theme overrides */
body.light-theme {
    --deep-navy: #F8F9FA;
    --navy-light: #E9ECEF;
    --electric-blue: #0056b3;
    --electric-blue-dark: #004085;
    --white: #121212;
    --gray: #495057;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 86, 179, 0.2);
}

/* Bootstrap text-white utility fix in light mode */
body.light-theme .text-white {
    color: var(--white) !important;
}

/* Invert logos for light mode */
body.light-theme .navbar-brand img,
body.light-theme .footer-logo img {
    filter: invert(1) hue-rotate(180deg) contrast(1.2);
}

/* Enhance text contrast for buttons in light mode */
body.light-theme .btn-primary-custom {
    color: #FFF !important;
}

body.light-theme .btn-electric {
    color: var(--electric-blue);
    border-color: var(--electric-blue);
}
body.light-theme .btn-electric:hover {
    color: #FFF;
    background: var(--electric-blue);
}

body {
    background-color: var(--deep-navy);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    /* Disable Text Selection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

h1,
h2,
h3,
h4,
.navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
}

/* Glassmorphism Navbar */
.navbar-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--white) !important;
}

.brand-highlight {
    color: var(--electric-blue);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.nav-link {
    color: var(--gray) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    margin: 0 10px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--electric-blue) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--deep-navy); /* Fallback */
}


.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    opacity: 0.15;
    background-image: linear-gradient(var(--electric-blue) 1px, transparent 1px),
        linear-gradient(90deg, var(--electric-blue) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
}

#tsparticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--white), var(--electric-blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Buttons */
.btn-electric {
    background: transparent;
    color: var(--electric-blue);
    border: 1px solid var(--electric-blue);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    text-decoration: none;
    display: inline-block;
}

.btn-electric:hover {
    background: var(--electric-blue);
    color: var(--deep-navy);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
}

.btn-primary-custom {
    background: linear-gradient(45deg, var(--electric-blue-dark), var(--electric-blue));
    color: var(--deep-navy);
    border: none;
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-right: 15px;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.4);
    color: var(--deep-navy);
}

/* Services */
.services-section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    color: var(--electric-blue);
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 40px 30px;
    height: 100%;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
    backdrop-filter: blur(10px);
    transform-style: preserve-3d; /* Advanced 3D depth for VanillaTilt */
}

/* Unique look for the main solution */
.main-solution-card {
    background: radial-gradient(circle at top right, rgba(0, 240, 255, 0.08), transparent 40%), var(--glass-bg);
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.1);
}

body.light-theme .main-solution-card {
    background: radial-gradient(circle at top right, rgba(0, 86, 179, 0.08), transparent 40%), var(--glass-bg);
    border: 1px solid rgba(0, 86, 179, 0.3);
    box-shadow: 0 10px 40px rgba(0, 86, 179, 0.1);
}

.service-card:hover {
    border-color: var(--electric-blue);
    box-shadow: 0 15px 30px rgba(0, 240, 255, 0.2);
}

.service-card > * {
    transform: translateZ(30px); /* Lift elements off the card */
}

.service-icon {
    font-size: 3rem;
    color: var(--electric-blue);
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.service-text {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Fix text wrapping under list icons globally */
.list-unstyled li {
    display: flex;
    align-items: flex-start;
}

.list-unstyled li i {
    margin-top: 6px;
}

/* Timeline */
.timeline-section {
    padding: 100px 0;
    background-color: var(--navy-light);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--electric-blue);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 50px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--deep-navy);
    border: 4px solid var(--electric-blue);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 30px;
    background: var(--glass-bg);
    position: relative;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.timeline-content h3 {
    color: var(--electric-blue);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.timeline-content p {
    color: var(--gray);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.timeline-content:hover {
    border-color: var(--electric-blue);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
    transform: translateY(-5px);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    position: relative;
}

.contact-form {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.form-control {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 15px;
    border-radius: 10px;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--electric-blue);
    color: var(--white);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.form-label {
    color: var(--gray);
    font-weight: 500;
    margin-bottom: 8px;
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--electric-blue);
    box-shadow: 0 0 10px var(--electric-blue);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--electric-blue);
    background-color: rgba(0, 240, 255, 0.05);
    transition: transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28), background-color 0.2s ease;
}

.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
}

/* Hide default cursor only on larger screens where fine pointer is used */
@media (min-width: 992px) {
    body, a, button, .navbar-brand, .nav-link, .btn, .service-card {
        cursor: none !important;
    }
}

/* Footer */
footer {
    background-color: var(--navy-light);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    display: inline-block;
    text-decoration: none;
}

.footer-text {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--electric-blue);
    color: var(--deep-navy);
    transform: translateY(-3px);
}

.footer-title {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--electric-blue);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}

@media screen and (max-width: 768px) {
    .hero-section {
        padding-top: 100px !important;
        padding-bottom: 60px !important;
    }

    .hero-content {
        margin-top: 50px !important;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        margin-bottom: 30px;
    }

    .left::after,
    .right::after {
        left: 21px;
    }

    .right {
        left: 0%;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-section,
    .contact-section,
    .timeline-section,
    .about-hero {
        padding: 50px 0;
    }

    .cta-title {
        font-size: 1.8rem;
    }
}

.cta-title {
    font-size: 2.5rem;
}

/* Glitch Effect */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(4px, 9999px, 86px, 0);
    }

    20% {
        clip: rect(61px, 9999px, 20px, 0);
    }

    40% {
        clip: rect(81px, 9999px, 11px, 0);
    }

    60% {
        clip: rect(7px, 9999px, 97px, 0);
    }

    80% {
        clip: rect(93px, 9999px, 83px, 0);
    }

    100% {
        clip: rect(18px, 9999px, 34px, 0);
    }
}

/* Marquee / Tech Stack Slider */
.tech-slider {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background: rgba(21, 26, 34, 0.5);
    padding: 30px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    display: flex;
}

.tech-slider-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.tech-item {
    display: inline-flex;
    align-items: center;
    margin: 0 40px;
    font-size: 1.5rem;
    color: var(--white);
    opacity: 0.6;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
    white-space: nowrap;
}

.tech-item i {
    font-size: 2rem;
    margin-right: 15px;
    color: var(--electric-blue);
}

.tech-item:hover {
    opacity: 1;
    text-shadow: 0 0 10px var(--electric-blue);
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.glowing-border {
    position: relative;
}

.glowing-border::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    background: linear-gradient(45deg, var(--electric-blue), transparent, var(--electric-blue-dark), transparent);
    background-size: 400%;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: glowing-anim 5s ease infinite;
}

.glowing-border:hover::before {
    opacity: 1;
}

@keyframes glowing-anim {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }
}

/* Utilities */
.text-gray {
    color: var(--gray) !important;
}

.text-electric-blue {
    color: var(--electric-blue) !important;
}

/* Client Logo Box */
.client-logo-box {
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.client-logo-box:hover {
    transform: translateY(-5px);
    border-color: var(--electric-blue);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.1);
}

.client-logo-box:hover .text-electric-blue {
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.8);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile App Bottom Navbar */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(21, 26, 34, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    z-index: 1050;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
}

.mobile-nav-item {
    color: var(--gray);
    text-align: center;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
}

.mobile-nav-item i {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--electric-blue);
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    body {
        padding-bottom: 80px;
    }

    .navbar-glass .navbar-collapse {
        display: none !important;
    }

    .navbar-glass .navbar-toggler {
        display: none;
    }

    .navbar-glass .container {
        justify-content: center;
    }

    .navbar-glass .navbar-brand {
        margin-right: 0 !important;
    }

    .mobile-bottom-nav {
        display: flex !important;
    }

    .whatsapp-float {
        bottom: 100px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}