/**
 * SS Skating Academy – Premium Design System 2.0
 * Theme: "Velocity & Grace"
 * Mood: Professional, Kinetic, Trustworthy
 */

:root {
  /* Brand Identity */
  --ss-primary: #0B1120;
  /* Richer Deep Navy */
  --ss-primary-light: #1E293B;
  /* Slate 800 */
  --ss-secondary: #0EA5E9;
  /* Vibrant Sky Blue */
  --ss-secondary-dark: #0284C7;
  --ss-accent: #F97316;
  /* Energetic Orange */

  /* Semantic Colors */
  --ss-success: #10B981;
  --ss-warning: #F59E0B;
  --ss-error: #EF4444;

  /* Surfaces */
  --ss-bg: #F8FAFC;
  /* Cool Light Grey */
  --ss-bg-alt: #FFFFFF;
  --ss-surface-dark: #0F172A;

  /* Text */
  --ss-text-main: #020617;
  /* Almost Black */
  --ss-text-muted: #64748B;
  /* Slate 500 */
  --ss-text-light: #94A3B8;
  /* Slate 400 */

  /* Borders & Lines */
  --ss-border: #E2E8F0;
  --ss-border-light: #F1F5F9;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Elevation (Premium Shadows) */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.08);
  --shadow-color-primary: 0 20px 40px -10px rgba(14, 165, 233, 0.25);

  /* Spacing */
  --section-spacing: 6rem;
}

@media (max-width: 768px) {
  :root {
    --section-spacing: 4rem;
  }
}

/* ================= RESET & BASE ================= */

body {
  font-family: var(--font-body);
  color: var(--ss-text-main);
  background-color: var(--ss-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--ss-primary);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

a {
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================= TYPOGRAPHY UTILS ================= */

.display-1,
.display-2,
.display-3 {
  font-weight: 800;
  letter-spacing: -0.04em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--ss-primary) 0%, var(--ss-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-accent {
  background: linear-gradient(135deg, var(--ss-accent) 0%, #FBBF24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--ss-primary) 0%, #1e293b 100%);
}

.bg-gradient-accent {
  background: linear-gradient(135deg, var(--ss-accent) 0%, #fb923c 100%);
}

.eyebrow {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ss-secondary);
}

/* Utility Overrides for Bootstrap Consistency */
.text-primary {
  color: var(--ss-secondary) !important;
}

.bg-primary {
  background-color: var(--ss-primary) !important;
}

.text-secondary {
  color: var(--ss-text-muted) !important;
}

.bg-secondary {
  background-color: var(--ss-border-light) !important;
}

.bg-dark {
  background-color: var(--ss-surface-dark) !important;
}

/* ================= BUTTONS ================= */

.btn {
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  letter-spacing: 0.01em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--ss-primary);
  border: 1px solid var(--ss-primary);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:active {
  transform: scale(0.98);
}

/* Hover effect for buttons - subtle lift */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
  color: var(--ss-primary);
  border-color: var(--ss-primary);
}

.btn-outline-primary:hover {
  background-color: var(--ss-primary);
  color: white;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: white;
}

/* ================= COMPONENTS ================= */

/* Checkered Grid Pattern used for backgrounds */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(226, 232, 240, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.5) 1px, transparent 1px);
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* Glass Card */
.card-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
}

/* Badge */
.badge-pill {
  padding: 0.5em 1em;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Navbar */
.navbar {
  padding: 1rem 0;
  transition: all 0.4s ease;
  background: rgba(255, 255, 255, 0.85);
  /* Slightly frosty by default or transparent */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}

.nav-link {
  font-weight: 500;
  color: var(--ss-text-main) !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ss-secondary) !important;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1.5rem;
}

.bento-item {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
  background: white;
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  z-index: 2;
}

/* Bento Grid Responsive Spans */
.bento-item {
  grid-column: span 12;
}

@media (min-width: 992px) {
  .span-lg-8 {
    grid-column: span 8;
  }

  .span-lg-4 {
    grid-column: span 4;
  }

  .row-span-2 {
    grid-row: span 2;
  }
}

/* Utility Layouts */
body {
  padding-top: 90px;
  /* Space for fixed navbar */
}

@media (max-width: 991px) {
  body {
    padding-top: 70px;
  }
}

.section-padding {
  padding: var(--section-spacing) 0;
}

.overflow-hidden-x {
  overflow-x: hidden;
}

/* Image Masks */
.mask-squircle {
  mask-image: url("data:image/svg+xml;base64,...");
  /* Using border-radius instead usually fine */
  border-radius: 32px;
}

/* Marquee for Partners/Logos */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-track {
  display: inline-flex;
  gap: 4rem;
  animation: marquee 30s linear infinite;
}

.marquee-item {
  opacity: 0.5;
  transition: opacity 0.3s;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ss-text-light);
}

.marquee-item:hover {
  opacity: 1;
  color: var(--ss-primary);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ================= ANIMATIONS ================= */

/* Init State */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-in {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Trigger State */
.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger Delays */
.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

/* Blob Backgrounds */
.blob {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--ss-secondary-dark) 0%, transparent 70%);
  opacity: 0.06;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.blob-2 {
  background: radial-gradient(circle, var(--ss-accent) 0%, transparent 70%);
}

/* Footer */
.footer-dark {
  background-color: var(--ss-primary);
  color: white;
}

.footer-link {
  color: var(--ss-text-light);
  text-decoration: none;
}

.footer-link:hover {
  color: white;
}