/**
 * Infinity Classes - Custom Styles & Micro-Interactions
 */

:root {
    --brand-orange: #FF4D15;
    --brand-dark: #0B0F19;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #FF4D15;
}

/* Glassmorphism */
.glass-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.glass-dark {
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Subtle Matrix/Grid Background */
.bg-grid-pattern {
    background-size: 32px 32px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.bg-dot-pattern {
    background-image: radial-gradient(rgba(255, 77, 21, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Pulsating Animation for Live badges */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 77, 21, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(255, 77, 21, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 77, 21, 0);
    }
}

.pulse-live {
    animation: pulse-ring 2s infinite cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

/* Horizontal Ticker Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-flex;
    animation: marquee-slide 30s linear infinite;
}

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

@keyframes marquee-slide {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Vertical Upward Moving Background Text Animation */
@keyframes vertical-scroll-up {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.animate-vertical-text {
    display: flex;
    flex-direction: column;
    animation: vertical-scroll-up 18s linear infinite;
    will-change: transform;
}

.animate-vertical-text > div {
    letter-spacing: 0.12em;
    user-select: none;
    white-space: nowrap;
    color: rgba(226, 232, 240, 0.7);
    font-weight: 900;
}

/* Seamless Upward Vertical Marquee for Hero Section */
.hero-bg-text-marquee {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 320px;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    display: flex;
    justify-content: flex-end;
}

@media (min-width: 640px) {
    .hero-bg-text-marquee {
        width: 390px;
    }
}

@media (min-width: 1024px) {
    .hero-bg-text-marquee {
        width: 440px;
    }
}

.hero-bg-text-track {
    display: flex;
    flex-direction: column;
    animation: vertical-scroll-up 18s linear infinite;
    will-change: transform;
    width: 100%;
}

.hero-bg-text-group {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 2rem;
    text-align: right;
    width: 100%;
}

.hero-bg-text-item {
    font-size: 52px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.08em;
    color: #F1F2F4;
    white-space: nowrap;
    user-select: none;
    text-align: right;
    padding-right: 0.5rem;
}

@media (min-width: 640px) {
    .hero-bg-text-item {
        font-size: 70px;
        gap: 2.25rem;
        padding-bottom: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-bg-text-item {
        font-size: 82px;
        padding-right: 1.5rem;
    }
}

/* Orange Gradient Text */
.gradient-text-orange {
    background: linear-gradient(135deg, #FF4D15 0%, #FF8533 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gold-gradient-text {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom interactive card lifts */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-lift:hover {
    transform: translateY(-6px);
}

/* Hide scrollbar for clean carousels */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ==========================================================================
   Professional Dark Section: Marker Effect & Bento Feature Styles
   ========================================================================== */

/* ==========================================================================
   World-Class Pro Typography Accents & Gradient Highlights (10/10 Polish)
   ========================================================================== */
.pro-text-highlight {
    position: relative;
    display: inline-block;
    vertical-align: baseline;
    line-height: inherit;
    white-space: nowrap;
}

.pro-gradient-text {
    background: linear-gradient(135deg, #FF4B0B 0%, #FF6F10 50%, #FFA826 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.pro-gradient-dark {
    background: linear-gradient(135deg, #FF5A1F 0%, #FF8533 50%, #FFB84D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 20px rgba(255, 90, 31, 0.45));
    display: inline-block;
    position: relative;
    z-index: 1;
}

.pro-accent-swoosh {
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 14px;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pro-text-highlight:hover .pro-accent-swoosh {
    transform: translateY(1px) scaleX(1.03);
}

/* Legacy compatibility */
.marker-highlight-wrapper {
    position: relative;
    display: inline-block;
}

.marker-highlight-bg {
    display: none;
}

/* Marker Underline Accent Stroke */
.marker-underline-svg {
    position: absolute;
    bottom: -10px;
    left: 2%;
    width: 96%;
    height: 12px;
    z-index: -1;
    pointer-events: none;
}

/* Premium Dark Bento Grid Card */
.dark-bento-card {
    position: relative;
    background: linear-gradient(145deg, rgba(19, 27, 46, 0.92) 0%, rgba(13, 20, 36, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 1.75rem;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.dark-bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0.6;
    transition: opacity 0.35s ease;
}

.dark-bento-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 77, 21, 0.5);
    box-shadow: 0 20px 40px -12px rgba(255, 77, 21, 0.22), 0 0 0 1px rgba(255, 77, 21, 0.2);
}

.dark-bento-card:hover::before {
    opacity: 1;
    background: linear-gradient(90deg, transparent, rgba(255, 100, 40, 0.6), transparent);
}

/* Card Sheen Sweep on Hover */
.dark-bento-card .sheen-sweep {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-25deg);
    transition: left 0.75s ease-in-out;
    pointer-events: none;
}

.dark-bento-card:hover .sheen-sweep {
    left: 180%;
}

/* Pillar Interactive Glass Tile */
.pillar-glass-tile {
    position: relative;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid #FF4D15;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.pillar-glass-tile:hover {
    background: rgba(23, 32, 54, 0.85);
    border-color: rgba(255, 77, 21, 0.35);
    border-left: 3px solid #FF6B35;
    transform: translateX(6px);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4);
}
