/* ============================================
   FTC Team 19098 - Eastern Foxes
   Main Stylesheet
   ============================================ */

/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-main);
  color: var(--color-text-primary);
  line-height: var(--line-height-normal);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Diagonal Crosshatch Pattern - Orange Lines */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url("../images/photos/background.svg");
  background-repeat: no-repeat;     /* prevent repeating */
  background-size: cover;           /* scale to fill width & height */
  background-position: center;      /* keep it centered */

}

  /*
  repeating-linear-gradient(
      45deg,
      transparent,
      transparent 35px,
      rgba(255,93,36,0.05) 35px,
      rgba(255,93,36,0.05) 36px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 35px,
      rgba(255,93,36,0.05) 35px,
      rgba(255,93,36,0.05) 36px
    ); 

*/

/* Typography - All Responsive */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--line-height-tight);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-text-accent);
}

h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: var(--weight-black);
  
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
}

h3 {
  font-size: clamp(20px, 3vw, 32px);
}

h4 {
  font-size: clamp(16px, 2.5vw, 24px);
}

p {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

a {
  color: var(--color-text-accent);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-btn-primary-hover);
}

/* Layout Structure - Responsive */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
}

.section {
  padding: clamp(32px, 6vw, 64px) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.section-header-left {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: var(--weight-bold);
  line-height: var(--line-height-tight);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: #FFFFFF;
  text-align: left;
  margin-bottom: clamp(24px, 4vw, 48px);
  position: relative;
  display: inline-block;
}

.section-header-left::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #FFFFFF;
}

/* Smaller size for Mission and News titles to make "We are Eastern Foxes" pop */
#mission-heading,
#news-heading {
  font-size: clamp(22px, 3vw, 36px);
}

.section-divider {
  border: none;
  border-top: 2px solid var(--color-text-accent);
  width: 100%;
  margin: 0 0 clamp(32px, 5vw, 48px) 0;
  opacity: 0.6;
}

/* Grid System - Responsive */
.grid {
  display: grid;
  gap: clamp(16px, 3vw, 24px);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.grid-5 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
}

.grid-6 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
}

.grid-7 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 100px), 1fr));
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

/* Text Utilities */
.text-center {
  text-align: center;
}

.text-uppercase {
  text-transform: uppercase;
}

.text-orange {
  color: var(--color-text-accent);
}

.text-white {
  color: var(--color-text-primary);
}

/* Spacing Utilities - Responsive */
.mt-lg {
  margin-top: clamp(16px, 3vw, 24px);
}

.mb-lg {
  margin-bottom: clamp(16px, 3vw, 24px);
}

.mt-xl {
  margin-top: clamp(20px, 4vw, 32px);
}

.mb-xl {
  margin-bottom: clamp(20px, 4vw, 32px);
}

.mt-2xl {
  margin-top: clamp(32px, 5vw, 48px);
}

.mb-2xl {
  margin-bottom: clamp(32px, 5vw, 48px);
}

/* Image Utilities */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero Section Specific Styles - Full Viewport */
.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 60px); /* Account for navbar height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero Background Image - Object Fit Cover */
.hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* Dark Overlay for Professional Look and Text Visibility */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Orange Horizontal Line at Bottom */
.hero-orange-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(16px, 3vw, 24px);
  background-color: rgba(255, 93, 36, 0.7);
  z-index: 2;
  pointer-events: none;
  animation: expandWidth 0.6s ease-out 0.7s backwards;
}

/* Hero Content Overlay - Vertical Spacing */
.hero-content {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 100%;
  text-align: center;
  padding: clamp(32px, 5vw, 64px) clamp(16px, 3vw, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.hero-title {
  font-size: clamp(48px, 8vw, 72px);
  margin: 0;
  padding-top: clamp(32px, 5vw, 48px);
  text-shadow:
    -3px 3px 0 rgba(255, 255, 255, 0.9),
    -4px 4px 0 rgba(255, 255, 255, 0.7),
    0 0 20px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(0, 0, 0, 0.7);
  animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.hero-tagline {
  font-family: var(--font-3d-titles);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-text-accent);
  margin: 0;
  padding-bottom: clamp(32px, 5vw, 48px);
  text-shadow:
    -3px 3px 0 rgba(255, 255, 255, 0.9),
    -4px 4px 0 rgba(255, 255, 255, 0.7),
    0 0 20px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(0, 0, 0, 0.7);
  animation: fadeInUp 0.6s ease-out 0.5s backwards;
}

/* White Corner Lines - Top Left (Two Identical Offset L-shapes) */
.hero-corner-tl {
  position: absolute;
  width: clamp(80px, 12vw, 140px);
  height: clamp(80px, 12vw, 140px);
  border-top: 3px solid rgba(255, 255, 255, 0.95);
  border-left: 3px solid rgba(255, 255, 255, 0.95);
  z-index: 3;
  pointer-events: none;
  animation: fadeInCornerTopLeft 0.6s ease-out 0.6s backwards;
}

/* Outer corner (further from center - SMALLER offset, closer to edge) */
.hero-corner-tl-outer {
  top: clamp(30px, 9vw, 80px);
  left: clamp(20px, 1.5vw, 30px);
}

/* Inner corner (closer to center - LARGER offset, further from edge) */
.hero-corner-tl-inner {
  top: clamp(35px, 5vw, 50px);
  left: clamp(35px, 5vw, 50px);
}

/* White Corner Lines - Bottom Right (Two Identical Offset L-shapes) */
.hero-corner-br {
  position: absolute;
  width: clamp(80px, 12vw, 140px);
  height: clamp(80px, 12vw, 140px);
  border-bottom: 3px solid rgba(255, 255, 255, 0.95);
  border-right: 3px solid rgba(255, 255, 255, 0.95);
  z-index: 3;
  pointer-events: none;
  animation: fadeInCornerBottomRight 0.6s ease-out 0.6s backwards;
}

/* Outer corner (further from center - SMALLER offset, closer to edge) */
.hero-corner-br-outer {
  bottom: clamp(40px, 9vw, 80px);
  right: clamp(20px, 1.5vw, 30px);
}

/* Inner corner (closer to center - LARGER offset, further from edge) */
.hero-corner-br-inner {
  bottom: clamp(35px, 5vw, 50px);
  right: clamp(35px, 5vw, 50px);
}

/* ============================================
   HERO LOAD ANIMATION
   ============================================ */

/* Hero Load Overlay - Fades from black (Only on Photo) */
.hero-load-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  z-index: 10;
  pointer-events: none;
  animation: fadeOutHeroOverlay 0.6s ease-out forwards;
}

@keyframes fadeOutHeroOverlay {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInCornerTopLeft {
  from {
    opacity: 0;
    transform: translate(-20px, -20px);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes fadeInCornerBottomRight {
  from {
    opacity: 0;
    transform: translate(20px, 20px);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes expandWidth {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 100%;
    opacity: 1;
  }
}

/* Section Background Variants */
.section-alt {
  background-color: var(--color-bg-section);
}

/* Content Width Constraints */
.content-narrow {
  max-width: 800px;
  margin: 0 auto;
}

.content-narrow-left {
  width: 100%;
  margin: 0;
  text-align: left;
}

.content-wide {
  max-width: 1400px;
  margin: 0 auto;
}

/* Visibility Utilities */
.mobile-only {
  display: block;
}

.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }

  .desktop-only {
    display: block;
  }
}

/* ============================================
   MOBILE MENU CHECKBOX
   ============================================ */

/* Hide the checkbox completely */
.mobile-menu-checkbox {
  display: none;
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 767px) {
  html {
    overflow-x: hidden;
    width: 100vw;
  }

  body {
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
  }

  /* Ensure all containers fit within viewport */
  .container,
  .section,
  .sidebar-layout,
  .resources-main-content,
  .navbar-container {
    max-width: 100vw;
  }
}

/* Specific White Text Shadows (Bottom-Left 3D effect) */
/* text-shadow: horizontal-offset vertical-offset blur color */
/* negative horizontal = LEFT, positive vertical = DOWN */
#hero-title {
  font-family: var(--font-3d-titles);
  text-shadow:
  -3px 3px 0 rgba(255, 255, 255, 0.9);
}

.hero-tagline {
  font-family: var(--font-3d-titles);
}

#active-team-heading {
  font-family: var(--font-3d-titles);
  text-shadow:
  -3px 3px 0 rgba(255, 255, 255, 0.9);
}

#alumni-heading {
  font-family: var(--font-3d-titles);
  text-shadow:
  -3px 3px 0 rgba(255, 255, 255, 0.9);
}

#mentors-heading {
  font-family: var(--font-3d-titles);
  text-shadow:
  -3px 3px 0 rgba(255, 255, 255, 0.9);
}

#volunteers-heading {
  font-family: var(--font-3d-titles);
  text-shadow:
  -3px 3px 0 rgba(255, 255, 255, 0.9);
}

#sponsors-heading {
  font-family: var(--font-3d-titles);
  text-shadow:
  -3px 3px 0 rgba(255, 255, 255, 0.9);
}

#resources-heading {
  font-family: var(--font-3d-titles);
  text-shadow:
  -3px 3px 0 rgba(255, 255, 255, 0.9);
}

#contact-heading {
  font-family: var(--font-3d-titles);
  text-shadow:
  -3px 3px 0 rgba(255, 255, 255, 0.9);
}

/* FTC Awards Page - All headings with white shadow and orange color */
#awards-heading,
#season-2024-heading,
#season-2023-heading,
#season-2022-heading,
#season-2021-heading {
  font-family: var(--font-3d-titles);
  color: var(--color-text-accent);
  text-shadow:
  -3px 3px 0 rgba(255, 255, 255, 0.9);
}

/* Remove underlines from award section titles */
#season-2024-heading::after,
#season-2023-heading::after,
#season-2022-heading::after,
#season-2021-heading::after {
  display: none;
}

.spinner {
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  background-color: #000;
  animation: blink 1.2s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.3; }
}
