@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Sparki Inspired */
    --bg-deep: #030014;
    --bg-card: rgba(255, 255, 255, 0.03);
    --primary-purple: #7C3AED;
    --primary-indigo: #4F46E5;
    --accent-glow: rgba(124, 58, 237, 0.5);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    /* Gradients */
    --gradient-premium: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
    --gradient-text: linear-gradient(135deg, #FFFFFF 30%, #A78BFA 100%);
    --glow-effect: 0 0 30px rgba(124, 58, 237, 0.3);

    /* Spacing & Radii */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    --spacing-3xl: 96px;
    --radius-lg: 32px;
    --radius-md: 16px;

    --transition-base: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-outfit {
    font-family: 'Outfit', sans-serif;
}

/* Base Utilities */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.glass-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: var(--glow-effect);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.glow-point {
    width: 6px;
    height: 6px;
    background: var(--primary-purple);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary-purple);
    position: relative;
}

.glow-point::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid var(--primary-purple);
    border-radius: 50%;
    animation: pulse-glow 2s infinite;
}

/* Navigation */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 0;
    z-index: 1000;
    background: rgba(3, 0, 20, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link-custom {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-base);
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: var(--primary-purple);
}

/* Buttons */
.btn-gradient {
    background: var(--gradient-premium);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
}

.btn-gradient.lg {
    padding: 18px 36px;
    border-radius: 20px;
    font-size: 18px;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    color: white;
    text-decoration: none;
    padding: 18px 36px;
    border-radius: 20px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Hero Section */
.hero-section {
    padding: 200px 0 100px;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    /* Adjusted for better text contrast */
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(3, 0, 20, 0.8) 0%, rgba(3, 0, 20, 0.4) 50%, rgba(3, 0, 20, 0.9) 100%);
}

.hero-glow-bg {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 800px;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    color: #A78BFA;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.hero-desc {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: var(--spacing-xl);
}

/* Automation Flow Visual */
.hero-mockup-wrapper {
    perspective: 1000px;
}

.automation-flow-visual {
    max-width: 1000px;
    margin: 0 auto;
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(124, 58, 237, 0.2);
    transform: rotateX(5deg);
    transition: var(--transition-base);
}

.automation-flow-visual:hover {
    transform: rotateX(0deg) scale(1.02);
    border-color: rgba(124, 58, 237, 0.4);
}

.flow-node {
    text-align: center;
    position: relative;
    z-index: 2;
    transition: var(--transition-base);
}

.node-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 12px;
    color: var(--primary-purple);
}

.flow-node.featured .node-icon {
    background: var(--gradient-premium);
    color: white;
    border: none;
    box-shadow: var(--glow-effect);
}

.node-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.flow-line {
    width: 100px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
}

.flow-line.active {
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-indigo));
    box-shadow: 0 0 10px var(--primary-purple);
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 56px;
    }

    .flow-line {
        width: 50px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 40px;
    }

    .hero-section {
        padding-top: 150px;
    }

    .flow-nodes {
        gap: 30px !important;
    }

    .flow-line {
        display: none;
    }
}

/* Capabilities Section */
.capabilities-section {
    padding: var(--spacing-3xl) 0;
    position: relative;
    background: radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
}

.section-label {
    display: inline-block;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.capability-card {
    position: relative;
}

.card-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-purple);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.card-icon-wrapper.color-indigo {
    background: rgba(79, 70, 229, 0.1);
    color: #818CF8;
    border-color: rgba(79, 70, 229, 0.2);
}

.card-icon-wrapper.color-glow {
    background: rgba(167, 139, 250, 0.1);
    color: #C084FC;
    border-color: rgba(167, 139, 250, 0.2);
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.card-text {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 25px;
}

.feature-list-mini {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.feature-list-mini li {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-list-mini li i {
    color: var(--primary-purple);
    font-size: 18px;
}

@media (max-width: 767px) {
    .section-title {
        font-size: 32px;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }
}

/* Projects Showcase Section (Perfected Port from Healthcare) */
.showcase-section {
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
    background: var(--bg-deep);
}

.showcase-section .section-header {
    margin-bottom: var(--spacing-2xl);
}

.showcase-item {
    padding: var(--spacing-2xl) 0;
    position: relative;
    overflow: visible;
}

.showcase-image-container {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.showcase-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 0 30px rgba(124, 58, 237, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.showcase-item:hover .showcase-img {
    transform: scale(1.02);
    border-color: rgba(124, 58, 237, 0.4);
}

.showcase-text {
    padding: 0;
    position: relative;
}

.project-number {
    position: absolute;
    top: -40px;
    left: -20px;
    font-size: 150px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 0.8;
    font-family: 'Outfit', sans-serif;
    z-index: 0;
    pointer-events: none;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
}

.badge-label {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary-purple);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 1;
}

.showcase-title {
    font-family: 'Outfit', sans-serif;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.showcase-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
}

.feature-list i {
    width: 32px;
    height: 32px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.tech-stack span {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-stack span:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary-purple);
}

@media (max-width: 991px) {
    .showcase-item {
        padding: var(--spacing-xl) 0;
    }

    .showcase-title {
        font-size: 32px;
    }

    .project-number {
        font-size: 80px;
        top: 0;
        left: 0;
    }
}

.flow-card-mini {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    width: 280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.flow-card-mini.featured {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.3);
    width: 320px;
    /* Make the central one larger */
}

.flow-card-mini .card-header {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.flow-card-mini .card-body {
    font-size: 14px;
    color: var(--text-secondary);
}

.connection-point-bottom,
.connection-point-top {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: var(--primary-purple);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-purple);
}

.connection-point-bottom {
    bottom: -5px;
}

.connection-point-top {
    top: -5px;
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

.meta-icon {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-purple);
}

.meta-icon.featured {
    color: #10B981;
    border-color: rgba(16, 185, 129, 0.2);
}

.meta-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.meta-value {
    font-size: 16px;
    font-weight: 700;
}

/* Form Styling */
.input-group-custom {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group-custom label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

.input-group-custom input,
.input-group-custom select,
.input-group-custom textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 20px;
    color: white;
    font-family: inherit;
    transition: var(--transition-base);
}

.input-group-custom input:focus,
.input-group-custom select:focus,
.input-group-custom textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.input-group-custom select option {
    background: var(--bg-deep);
    color: white;
}

/* Modal Root */
.modal-root {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: var(--transition-base);
}

.modal-root.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-backdrop-custom {
    position: absolute;
    inset: 0;
    background: rgba(3, 0, 20, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content-card {
    position: relative;
    max-width: 440px;
    width: 100%;
    padding: 50px 40px;
    text-align: center;
    z-index: 2;
    border-color: rgba(124, 58, 237, 0.3);
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #10B981;
    margin: 0 auto 30px;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.modal-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
}

.modal-desc {
    color: var(--text-secondary);
    margin-bottom: 30px;
}


/* Background Noise Texture */
.bg-noise {
    position: absolute;
    inset: 0;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

/* Footer Styling */
.footer-custom {
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
    background: #02000c;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary-purple);
    padding-left: 8px;
}

.footer-info i {
    color: var(--primary-purple);
}

.footer-info a {
    color: var(--text-secondary);
    text-decoration: none;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-base);
}

.social-icon:hover {
    background: var(--primary-purple);
    transform: translateY(-3px);
    color: white;
}

/* Scroll Animation Utilities */
.rotate-infinite {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 991px) {
    .footer-custom {
        padding-top: 60px;
    }
}