/* =====================================================================
   AMRAIZ IQBAL - ELITE TENNIS COACHING PORTFOLIO
   Design Fusion: Smash Hit + Racketon + OriginKit 3D Components
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --color-bg: #070a11;
    --color-bg-alt: #0d121f;
    --color-card: #111827;
    --color-card-border: rgba(255, 255, 255, 0.08);
    --color-volt: #ccff00;
    --color-volt-glow: rgba(204, 255, 0, 0.35);
    --color-volt-dark: #a3d900;
    --color-cyan: #0ea5e9;
    --color-cyan-glow: rgba(14, 165, 233, 0.35);
    --color-text-primary: #f8fafc;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;
    --court-line: rgba(204, 255, 0, 0.22);
    --font-heading: 'Outfit', sans-serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
}

body {
    overflow-x: hidden;
    position: relative;
    background: radial-gradient(circle at 50% -20%, rgba(14, 165, 233, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 90% 40%, rgba(204, 255, 0, 0.05) 0%, transparent 40%),
                var(--color-bg);
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #070a11;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-volt);
}

/* Typography Utilities */
.font-heading {
    font-family: var(--font-heading);
}
.font-mono {
    font-family: var(--font-mono);
}

/* Tennis Marquee Running Ticker */
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    user-select: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(13, 18, 31, 0.85);
    backdrop-filter: blur(8px);
}
.marquee-track {
    display: flex;
    gap: 2rem;
    animation: marquee-scroll 28s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* OriginKit 3D Spotlight Card */
.spotlight-card {
    position: relative;
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    backdrop-filter: blur(12px);
}
.spotlight-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(circle 350px at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(204, 255, 0, 0.35), transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.spotlight-card:hover::before {
    opacity: 1;
}
.spotlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px -15px rgba(0, 0, 0, 0.5), 0 0 25px -5px rgba(204, 255, 0, 0.1);
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(17, 24, 39, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.09);
}
.glass-header {
    background: rgba(7, 10, 17, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Neon Glow Accents */
.text-volt {
    color: var(--color-volt);
}
.bg-volt {
    background-color: var(--color-volt);
}
.border-volt {
    border-color: var(--color-volt);
}
.shadow-volt-glow {
    box-shadow: 0 0 25px var(--color-volt-glow);
}
.text-cyan-brand {
    color: var(--color-cyan);
}
.bg-cyan-brand {
    background-color: var(--color-cyan);
}

/* Tennis Court Badge & Tags */
.badge-volt {
    background: rgba(204, 255, 0, 0.12);
    color: var(--color-volt);
    border: 1px solid rgba(204, 255, 0, 0.3);
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.badge-cyan {
    background: rgba(14, 165, 233, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.3);
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Primary Athletic Button */
.btn-athletic-volt {
    position: relative;
    background: var(--color-volt);
    color: #070a11;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1.75rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(204, 255, 0, 0.25);
    cursor: pointer;
    border: none;
}
.btn-athletic-volt:hover {
    background: #d8ff26;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(204, 255, 0, 0.45);
}
.btn-athletic-volt:active {
    transform: translateY(1px) scale(0.98);
}

.btn-athletic-ghost {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1.75rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    cursor: pointer;
    backdrop-filter: blur(8px);
}
.btn-athletic-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-volt);
    color: var(--color-volt);
    transform: translateY(-2px);
}

/* Court Grid Background Overlay */
.court-grid-pattern {
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* 3D Tennis Ball Container Canvas */
#tennis-3d-canvas-container {
    width: 100%;
    height: 100%;
    min-height: 380px;
    position: relative;
    cursor: grab;
}
#tennis-3d-canvas-container:active {
    cursor: grabbing;
}

/* Pulse Keyframes */
@keyframes tennis-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.4;
    }
}
.animate-tennis-pulse {
    animation: tennis-pulse 2.5s ease-in-out infinite;
}

/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}
.shimmer::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.08) 20%,
        rgba(255, 255, 255, 0.15) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer-swipe 3s infinite;
}
@keyframes shimmer-swipe {
    100% {
        transform: translateX(100%);
    }
}
