/* CSS Variables */
:root {
    /* Colors */
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-input: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #7c4dff;
    /* Deep purple/blue */
    --accent-secondary: #00e5ff;
    /* Cyan cyan */
    --accent-glow: rgba(124, 77, 255, 0.4);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Utilities */
.highlight {
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.t-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.small {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.full-width {
    width: 100%;
    text-align: center;
}

/* Navbar */
.navbar {
    padding: var(--spacing-sm) 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.dot {
    color: var(--accent-secondary);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.nav-links a:not(.btn):hover {
    color: var(--text-primary);
}

/* Hero */
.hero {
    padding-top: 140px;
    padding-bottom: var(--spacing-xl);
    position: relative;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.hero-bg-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.15), transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* Trusted By */
.trusted-by {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.logo-grid {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    opacity: 0.4;
    flex-wrap: wrap;
}

.logo-placeholder {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Services */
.services,
.expertise,
.process,
.contact {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    color: var(--text-secondary);
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.card {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.icon-box {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.card h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.25rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Expertise / Infinite Slider */
.slider {
    height: 180px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slider::before,
.slider::after {
    background: linear-gradient(to right, var(--bg-dark) 0%, rgba(10, 10, 10, 0) 100%);
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.slider::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.slider::before {
    left: 0;
    top: 0;
}

.slide-track {
    animation: scroll 30s linear infinite;
    display: flex;
    width: calc(250px * 14);
    /* 250px width * 14 slides (7 real + 7 duplicates) */
}

.slide {
    height: 100%;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.industry-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: default;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.industry-card:hover {
    background: rgba(255, 255, 255, 0.08);
    /* Slightly lighter */
    border-color: var(--accent-secondary);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.15);
    /* Neon Cyan Glow */
}

.industry-card .icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.industry-card h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 7));
    }

    /* Scroll by half the track width (7 slides) */
}

/* Pause animation on hover for better UX */
.slide-track:hover {
    animation-play-state: paused;
}

/* Process */
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
    flex: 1;
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: var(--spacing-xs);
}

.step h3 {
    margin-bottom: var(--spacing-xs);
}

.step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.step-connector {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    flex: 0.5;
    margin-top: 3rem;
}

/* Contact Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    background: linear-gradient(135deg, var(--bg-card), rgba(20, 20, 20, 0));
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-text h2 {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-sm);
}

.contact-text p {
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

input,
select,
textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

textarea {
    resize: vertical;
}

/* Footer */
.footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #050505;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
}

.footer-links h4 {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-content {
        width: 100%;
    }

    .nav-links {
        display: none;
    }

    /* Basic implementation, ideally add hamburger */
    .process-steps {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .step-connector {
        display: none;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }
}

/* Global Background Container */
.global-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg-dark);
}

/* Background Grid Pattern */
.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    opacity: 0.5;
}

/* Floating Orbs    /* Increased Orb Visibility */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    /* Sharper blur for more definition */
    opacity: 0.6;
    /* Increased opacity */
    animation: float-orb 20s infinite ease-in-out alternate;
    mix-blend-mode: screen;
    /* Make them glow */
}

/* Bubble Particles */
.bg-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.1));
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    opacity: 0;
    animation: bubble-float 15s infinite ease-in;
}

.bubble-1 {
    width: 10px;
    height: 10px;
    left: 10%;
    bottom: -20px;
    animation-duration: 8s;
    animation-delay: 0s;
}

.bubble-2 {
    width: 20px;
    height: 20px;
    left: 20%;
    bottom: -40px;
    animation-duration: 12s;
    animation-delay: 2s;
}

.bubble-3 {
    width: 8px;
    height: 8px;
    left: 35%;
    bottom: -10px;
    animation-duration: 10s;
    animation-delay: 4s;
}

.bubble-4 {
    width: 15px;
    height: 15px;
    left: 50%;
    bottom: -30px;
    animation-duration: 14s;
    animation-delay: 1s;
}

.bubble-5 {
    width: 25px;
    height: 25px;
    left: 65%;
    bottom: -50px;
    animation-duration: 16s;
    animation-delay: 3s;
}

.bubble-6 {
    width: 12px;
    height: 12px;
    left: 80%;
    bottom: -20px;
    animation-duration: 9s;
    animation-delay: 5s;
}

.bubble-7 {
    width: 18px;
    height: 18px;
    left: 90%;
    bottom: -40px;
    animation-duration: 13s;
    animation-delay: 0.5s;
}

@keyframes bubble-float {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0;
    }

    20% {
        opacity: 0.6;
    }

    80% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-120vh) scale(1.2);
        opacity: 0;
    }
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: #FF00FF;
    /* Magenta accent */
    top: 40%;
    left: 40%;
    animation-delay: -10s;
    opacity: 0.2;
}

@keyframes float-orb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, 50px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 80px) scale(0.9);
    }

    100% {
        transform: translate(20px, -40px) scale(1.05);
    }
}

/* --- Premium Motion Animations --- */

/* Base Animation States */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

/* Active State (Triggered by JS) */
.animate-on-scroll.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

.delay-6 {
    transition-delay: 0.6s;
}

/* Hero Specific Animations (Load immediately) */
.hero-title {
    animation: fadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    animation: fadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) 0.4s forwards;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 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: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
    /* Make icon white */
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}