/* ============================================================================
   FEMBEN SPORTS ACADEMY - PREMIUM RESPONSIVE WEBSITE
   Framework: HTML5 | Bootstrap 5.3 | Vanilla JS
   Theme: Sleek Athleticism | Football-Integrated Design
   ============================================================================ */

/* ============================================================================
   1. CSS CUSTOM PROPERTIES (Color Variables & Typography)
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  /* Primary Color Palette - FSI Logo Inspired */
  --color-pitch-black: #001d4d;      /* Deep Blue from logo */
  --color-charcoal: #0d2c66;         /* Slightly lighter blue */
  --color-deep-dark: #00152e;        /* Even deeper blue */
  --color-dark-gray: #1a3a66;        /* Blue-gray accent */
  
  /* Accent Colors - Energy & Premium Feel */
  --color-gold: #ff3d3d;             /* Tomato Red from logo */
  --color-electric-green: #ffffff;   /* White accents */
  --color-accent-teal: #e8f0ff;      /* Light blue accent */
  --color-white: #ffffff;
  --color-light-gray: #e8f0ff;
  
  /* Semantic Colors */
  --color-success: #ff3d3d;           /* Tomato red for success */
  --color-warning: #ffa500;
  --color-danger: #ff3d3d;            /* Tomato red for danger */
  
  /* Typography */
  --font-heading: 'Montserrat', 'Arial', sans-serif;
  --font-body: 'Montserrat', 'Arial', sans-serif;
  --font-weight-bold: 700;
  --font-weight-semibold: 600;
  --font-weight-regular: 400;
  
  /* Sizing & Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 20px rgba(255, 61, 61, 0.3);
}

/* Dark Mode Active (Default) */
[data-theme="dark"] {
  color-scheme: dark;
}

/* Light Mode Support */
[data-theme="light"] {
  --color-pitch-black: #f5f7fa;
  --color-charcoal: #ffffff;
  --color-deep-dark: #f0f2f5;
  --color-dark-gray: #e8eef2;
  --color-white: #0a0e27;
  --color-light-gray: #0a0e27;
  color-scheme: light;
}

/* ============================================================================
   2. RESET & BASE STYLES
   ============================================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, var(--color-pitch-black) 0%, var(--color-charcoal) 100%);
  color: var(--color-light-gray);
  line-height: 1.6;
  letter-spacing: 0.3px;
  overflow-x: hidden;
  background-attachment: fixed;
}

/* Football pitch pattern overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(
      90deg,
      rgba(0, 255, 65, 0.02) 0px,
      rgba(0, 255, 65, 0.02) 1px,
      transparent 1px,
      transparent 50px
    );
  pointer-events: none;
  z-index: -1;
}

/* ============================================================================
   3. TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-white);
  position: relative;
}

/* Jersey-style typography effect for headings */
h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(135deg, var(--color-gold), var(--color-electric-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
  border-radius: 2px;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: var(--spacing-md);
}

h4 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
}

p {
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
  opacity: 0.95;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
}

a:hover {
  color: var(--color-electric-green);
  text-decoration: none;
}

/* Underline effect on links */
a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-electric-green);
  transition: width var(--transition-base);
}

a:not(.btn):hover::after {
  width: 100%;
}

/* ============================================================================
   4. BUTTONS & INTERACTIVE ELEMENTS
   ============================================================================ */

.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  font-size: 0.875rem;
}

/* Primary Button - Tomato Red */
.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), #e62e2e);
  color: var(--color-pitch-black);
  box-shadow: 0 0 20px rgba(255, 61, 61, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 61, 61, 0.6);
  background: linear-gradient(135deg, #e62e2e, var(--color-gold));
}

/* Secondary Button - White */
.btn-secondary {
  background: linear-gradient(135deg, var(--color-electric-green), #f0f0f0);
  color: var(--color-pitch-black);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
}

/* Tertiary Button - Outline */
.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}

.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-pitch-black);
  transform: translateY(-2px);
}

/* Football texture effect on buttons */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 10px 10px;
  transition: left var(--transition-base);
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.box {
    margin-bottom: 100px; /* adds space below each element */
  }

/* ============================================================================
   5. NAVIGATION & HEADER
   ============================================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 29, 77, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-base);
  padding: 1rem 0;
}

.navbar.scrolled {
  background: rgba(0, 29, 77, 0.98);
  border-bottom-color: var(--color-gold);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-weight: var(--font-weight-bold);
  font-size: 1.5rem;
  color: var(--color-gold) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand img {
  height: 50px;
  width: auto;
  transition: transform var(--transition-base);
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-brand:hover {
  color: var(--color-electric-green) !important;
  text-shadow: 0 0 10px var(--color-electric-green);
}

.navbar-nav .nav-link {
  color: var(--color-light-gray) !important;
  margin: 0 var(--spacing-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  position: relative;
  transition: all var(--transition-base);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition-base);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-nav .nav-link:hover {
  color: var(--color-gold) !important;
}

.navbar-toggler {
  border-color: var(--color-gold) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ff3d3d' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

@media (min-width: 992px) {
  .navbar-nav .dropdown:hover > .dropdown-menu {
    display: block;
  }

  .navbar-nav .dropdown:hover > .nav-link {
    color: var(--color-gold) !important;
  }
}

.dropdown-menu {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 29, 77, 0.98);
  backdrop-filter: blur(16px);
}

.dropdown-menu .dropdown-item {
  color: var(--color-light-gray);
  transition: color var(--transition-base), background var(--transition-base);
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  color: var(--color-white);
  background: rgba(255, 61, 61, 0.12);
}

/* ============================================================================
   6. HERO SECTION
   ============================================================================ */

.hero {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 60px;
  padding: 0;
  background: linear-gradient(135deg, var(--color-pitch-black) 0%, var(--color-deep-dark) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item {
  width: 100%;
  height: 100%;
}

/* Slanted edge effect using clip-path */
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: inherit;
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: var(--spacing-lg);
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: var(--spacing-lg);
  animation: slideInDown 1s ease-out;
}

.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--color-gold);
  margin-bottom: var(--spacing-lg);
  animation: slideInUp 1s ease-out 0.2s backwards;
}

.hero .description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-light-gray);
  margin-bottom: var(--spacing-xl);
  animation: fadeIn 1s ease-out 0.4s backwards;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: slideInUp 1s ease-out 0.6s backwards;
}

.hero-slide {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-slide .hero-content {
  position: relative;
  z-index: 2;
}

.hero-slide .description {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.carousel-indicators [data-bs-target="#heroCarousel"] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.carousel-indicators .active {
  background: var(--color-gold);
}

/* Short Hero for Non-Home Pages */
.hero-short {
  height: auto;
  min-height: 300px;
  padding: 4rem 0;
}

.hero-short .hero-slide {
  min-height: 300px;
}

.hero-short .hero-content {
  padding: 2rem 1rem;
}

.hero-short h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  margin-bottom: 1rem;
}

.hero-short .subtitle {
  font-size: clamp(0.9rem, 2vw, 1.25rem);
  margin-bottom: 0.75rem;
}

.hero-short .description {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.service-card {
  background: #f5f8ff;
  border: 1px solid rgba(0, 29, 77, 0.08);
  border-radius: 1.25rem;
  padding: 1.8rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 35px rgba(0, 17, 60, 0.12);
}

.nav-tabs-custom {
  border-bottom: 2px solid rgba(255, 61, 61, 0.12);
}

.nav-tabs-custom .nav-link {
  border: none;
  border-radius: 999px;
  background: rgba(255, 61, 61, 0.08);
  color: var(--color-pitch-black);
  padding: 0.95rem 1.4rem;
  margin: 0 0.35rem;
  transition: all var(--transition-base);
}

.nav-tabs-custom .nav-link:hover {
  background: rgba(255, 61, 61, 0.16);
}

.nav-tabs-custom .nav-link.active {
  background: linear-gradient(135deg, rgba(255, 61, 61, 0.2), rgba(255, 61, 61, 0.05));
  color: var(--color-pitch-black);
  box-shadow: inset 0 0 0 1px rgba(255, 61, 61, 0.12);
}

.nav-tabs-custom .nav-link i {
  color: var(--color-gold);
}

.service-card-icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold), rgba(255, 61, 61, 0.8));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-pitch-black);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.partner-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 29, 77, 0.12);
  border-radius: 1rem;
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 35px rgba(0, 17, 60, 0.12);
}

.partner-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 61, 61, 0.15), rgba(0, 29, 77, 0.12));
  color: var(--color-gold);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.partner-card h5 {
  font-size: 1rem;
  margin: 0;
  color: var(--color-pitch-black);
}

/* ============================================================================
   7. STATS SECTION
   ============================================================================ */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  padding: var(--spacing-xxl) var(--spacing-lg);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(255, 61, 61, 0.05));
}

.stat-item {
  text-align: center;
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  background: rgba(255, 61, 61, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 61, 61, 0.2);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 61, 61, 0.1), transparent);
  transition: left 0.6s ease;
}

.stat-item:hover::before {
  left: 100%;
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
}

.stat-number {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-bold);
  background: linear-gradient(135deg, var(--color-gold), var(--color-electric-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--spacing-sm);
}

.stat-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-light-gray);
}

/* ============================================================================
   8. CARDS & CONTENT BLOCKS
   ============================================================================ */

.card {
  background: white;
  border: 1px solid rgba(255, 61, 61, 0.2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  position: relative;
  color: white;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: white;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
}

.card:hover::before {
  opacity: 1;
}

.card-img-top {
  object-fit: cover;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.card-img-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-img-top img {
  transform: scale(1.1) rotate(1deg);
}

.card-body {
  padding: var(--spacing-lg);
}

.card-title {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-md);
  color: var(--color-gold);
}

.card-text {
  font-size: 0.95rem;
  color: var(--color-light-gray);
  line-height: 1.6;
}

/* ============================================================================
   9. SECTIONS & CONTAINERS
   ============================================================================ */

section {
  padding: var(--spacing-xxl) var(--spacing-lg);
  position: relative;
}

section.light-bg {
  background: linear-gradient(135deg, rgba(255, 61, 61, 0.03), rgba(232, 240, 255, 0.03));
}

/* White/Light Sections for Visual Contrast and Brightness */
section.white-bg {
  background: #ffffff;
  color: var(--color-pitch-black);
}

section.white-bg h1,
section.white-bg h2,
section.white-bg h3,
section.white-bg h4,
section.white-bg h5,
section.white-bg h6 {
  color: var(--color-pitch-black);
  background: none;
  -webkit-text-fill-color: unset;
}

section.white-bg h2 {
  background: linear-gradient(135deg, var(--color-pitch-black), var(--color-charcoal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

section.white-bg h2::after {
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

section.white-bg p {
  color: rgba(0, 29, 77, 0.85);
}

section.white-bg a {
  color: var(--color-gold);
}

section.white-bg a:hover {
  color: var(--color-pitch-black);
}

section.white-bg .card {
  background: linear-gradient(135deg, rgba(232, 240, 255, 0.9), rgba(255, 61, 61, 0.05));
  border-color: rgba(255, 61, 61, 0.3);
  color: var(--color-pitch-black);
}

section.white-bg .card-title {
  color: var(--color-pitch-black);
}

section.white-bg .card-text {
  color: rgba(0, 29, 77, 0.85);
}

section.white-bg .btn-primary {
  background: linear-gradient(135deg, var(--color-gold), #e62e2e);
  color: #ffffff;
}

section.white-bg .btn-primary:hover {
  background: linear-gradient(135deg, #e62e2e, var(--color-gold));
}

section.white-bg .stat-item {
  background: linear-gradient(135deg, rgba(232, 240, 255, 0.9), rgba(255, 61, 61, 0.1));
  border-color: rgba(0, 29, 77, 0.2);
  color: var(--color-pitch-black);
}

section.white-bg .stat-number {
  color: var(--color-gold);
}

section.white-bg .stat-label {
  color: rgba(0, 29, 77, 0.8);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xxl);
  position: relative;
}

.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title p {
  color: var(--color-gold);
  font-size: 1rem;
  margin-top: var(--spacing-md);
}

/* Slanted divider between sections */
.slanted-divider {
  position: relative;
  height: 100px;
  background: inherit;
}

.slanted-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  clip-path: polygon(0 0, 100% 30%, 100% 100%, 0 70%);
}

/* ============================================================================
   10. GRID LAYOUTS
   ============================================================================ */

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
}

.grid-container.dense {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   11. MASONRY LAYOUT (Media Gallery)
   ============================================================================ */

.masonry {
  display: grid;
  grid-auto-rows: 300px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
}

.masonry-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.masonry-item:hover img {
  transform: scale(1.15) rotate(-2deg);
}

.masonry-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(0, 255, 65, 0.2));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.masonry-item:hover::after {
  opacity: 1;
}

/* Wider item */
.masonry-item.wide {
  grid-column: span 2;
}

/* Taller item */
.masonry-item.tall {
  grid-row: span 2;
}

@media (max-width: 768px) {
  .masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  
  .masonry-item.wide {
    grid-column: span 1;
  }
  
  .masonry-item.tall {
    grid-row: span 1;
  }
}

/* ============================================================================
   12. FORMS
   ============================================================================ */

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gold);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.form-control,
.form-select {
  background: rgba(13, 44, 102, 0.7);
  border: 2px solid rgba(255, 61, 61, 0.3);
  color: var(--color-light-gray);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  transition: all var(--transition-base);
  font-size: 1rem;
}

.form-control::placeholder {
  color: rgba(232, 238, 242, 0.5);
}

.form-control:focus,
.form-select:focus {
  background: rgba(13, 44, 102, 0.9);
  border-color: var(--color-gold);
  outline: none;
  box-shadow: 0 0 15px rgba(255, 61, 61, 0.3);
  color: var(--color-light-gray);
}

.form-select option {
  background: var(--color-charcoal);
  color: var(--color-light-gray);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ============================================================================
   13. FOOTER
   ============================================================================ */

footer {
  background: linear-gradient(135deg, var(--color-pitch-black), var(--color-charcoal));
  border-top: 2px solid var(--color-gold);
  color: var(--color-light-gray);
  padding: var(--spacing-xxl) var(--spacing-lg) var(--spacing-lg);
}

.footer-section h5 {
  color: var(--color-gold);
  margin-bottom: var(--spacing-md);
  font-size: 0.95rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-section ul li a {
  color: var(--color-light-gray);
  transition: all var(--transition-base);
}

.footer-section ul li a:hover {
  color: var(--color-gold);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 61, 61, 0.1);
  border: 2px solid var(--color-gold);
  transition: all var(--transition-base);
}

.social-links a:hover {
  background: var(--color-gold);
  color: var(--color-pitch-black);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 61, 61, 0.2);
  padding-top: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(232, 238, 242, 0.7);
}

/* ============================================================================
   14. ANIMATIONS
   ============================================================================ */

@keyframes slideInDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  }
}

/* AOS Integration */
.aos-animate {
  animation-duration: 0.8s;
}

/* ============================================================================
   15. UTILITY CLASSES
   ============================================================================ */

.text-gold {
  color: var(--color-gold) !important;
}

.text-green {
  color: var(--color-electric-green) !important;
}

.text-white {
  color: var(--color-white) !important;
}

.text-muted {
  color: rgba(232, 238, 242, 0.7) !important;
}

.bg-dark {
  background: var(--color-charcoal) !important;
}

.bg-darker {
  background: var(--color-pitch-black) !important;
}

.accent-border {
  border-left: 4px solid var(--color-gold);
  padding-left: var(--spacing-md);
}

.glass-effect {
  background: rgba(13, 44, 102, 0.6) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 61, 61, 0.2);
}

.glass-effect-white {
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 61, 61, 0.2);
}

/* ============================================================================
   16. RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
  :root {
    --spacing-xxl: 2.5rem;
    --spacing-xl: 2rem;
    --spacing-lg: 1.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero {
    margin-top: 70px;
  }
  
  .navbar {
    padding: 0.75rem 0;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0 !important;
    margin: 0.5rem 0;
  }
  
  section {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .stats {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
  }
  
  .stats {
    grid-template-columns: 1fr;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
  }
  
  footer {
    padding: var(--spacing-lg) var(--spacing-md);
  }
}

/* ============================================================================
   17. PRINT STYLES
   ============================================================================ */

@media print {
  .navbar,
  footer,
  .no-print {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
}
