/* Base Styles */
body {
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

/* Typography Clarity & Strokes */
h1, h2 {
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 255, 255, 0.2);
    -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.08);
}

h3 {
    -webkit-text-stroke: 0.3px rgba(255, 255, 255, 0.05);
}

.text-transparent {
    -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.15);
}

/* Luxury Cards */
@property --border-angle {
    syntax: "<angle>";
    inherits: true;
    initial-value: 0turn;
}

.luxury-card {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    /* Remove original static border to use animated one */
}

/* Static base border for when animation is light or loading */
.luxury-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
    z-index: -1;
}

/* Animated border line */
.luxury-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px; /* Thickness of the animated line */
    background: conic-gradient(
        from var(--border-angle, 0turn),
        transparent 60%,
        rgba(0, 229, 255, 0.8) 80%,
        rgba(255, 0, 127, 1) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: rotate-border 4s linear infinite;
    opacity: 0.6;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.luxury-card:hover {
    transform: translateY(-5px);
}

.luxury-card:hover::before {
    opacity: 1;
    animation: rotate-border 2s linear infinite; /* Speeds up on hover */
}

@keyframes rotate-border {
    to {
        --border-angle: 1turn;
    }
}


/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Custom Gradients and Animations */
.animate-gradient-x {
    background-size: 200% auto;
    animation: gradient-x 4s linear infinite;
}

@keyframes gradient-x {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.glow-dot {
    box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
}

/* Scanner Animation */
.animate-scan {
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(300%); opacity: 0; }
}

.animate-scan-line {
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% { top: -10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}

/* SVG Line Animation */
.animate-dash {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: dash 4s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -200;
    }
}

/* Float Animation for Icons */
.animate-float {
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* Traveling Snake Grid Line Animation */
.traveling-snake {
    stroke-dasharray: 20 100;
    animation: snake-travel 6s linear infinite;
}

@keyframes snake-travel {
    0% { stroke-dashoffset: 140; }
    100% { stroke-dashoffset: 20; }
}

/* Progress Bar Animation */
.animate-progress {
    animation: progress 2s ease-in-out infinite alternate;
}

@keyframes progress {
    0% { width: 30%; }
    100% { width: 80%; }
}

/* Delay Utilities */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #000000;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 229, 255, 0.5);
}

/* Lenis Specific Layout */
#smooth-wrapper {
    width: 100%;
}

#smooth-content {
    width: 100%;
}

.workflow-container {
    will-change: transform;
}

/* ── Marquee Scroll Animations ── */
@keyframes scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.marquee-left {
    animation: scroll-left 30s linear infinite;
    will-change: transform;
}

.marquee-right {
    animation: scroll-right 30s linear infinite;
    will-change: transform;
}

.marquee-left:hover,
.marquee-right:hover {
    animation-play-state: paused;
}
