/* Agasty Enterprises - Modern Aesthetic Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-main: #030712;
    --bg-card: rgba(15, 23, 42, 0.65);
    --border-glow: rgba(59, 130, 246, 0.25);
    --primary: #3b82f6;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --emerald: #10b981;
}

* {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: #f1f5f9;
    overflow-x: hidden;
    selection-background-color: #3b82f6;
    selection-color: #ffffff;
}

::selection {
    background-color: rgba(59, 130, 246, 0.4);
    color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #030712;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

/* Glassmorphism Classes */
.glass {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.6) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.15);
}

/* Gradient Texts */
.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-amber {
    background: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-emerald {
    background: linear-gradient(135deg, #34d399 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Neon Glow Accents */
.glow-blue {
    box-shadow: 0 0 50px -10px rgba(59, 130, 246, 0.3);
}

.glow-purple {
    box-shadow: 0 0 50px -10px rgba(168, 85, 247, 0.25);
}

/* Animated Border Gradient */
.animated-border {
    position: relative;
}

.animated-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4, #3b82f6);
    background-size: 300% 300%;
    animation: borderRotate 6s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating animation */
@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(1deg);
    }
}

.animate-float {
    animation: floatSlow 6s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.animate-pulse-glow {
    animation: pulseGlow 4s ease-in-out infinite;
}

/* Infinite Marquee */
@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

/* Interactive Card Spotlight Effect */
.spotlight-card {
    position: relative;
    overflow: hidden;
}

.spotlight-card::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    left: var(--mouse-x, 0);
    top: var(--mouse-y, 0);
}

.spotlight-card:hover::after {
    opacity: 1;
}

/* Beam Simulation Canvas */
#beamCanvas {
    background: #090d16;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Fixed Navigation Scroll Margins */
section[id] {
    scroll-margin-top: 6rem;
}

/* Modal Reliability & Superior Stacking */
#formModal {
    z-index: 99999 !important;
}

#formModal.flex {
    display: flex !important;
}

#formModal.hidden {
    display: none !important;
}

/* Pointer Cursor Enforcement for All Interactive Elements */
button,
a,
input[type="range"],
.estimator-option,
.faq-question {
    cursor: pointer;
}