/* Custom Styles for Rocketry Redesign */

/* Starfield Canvas */
#starfield {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: transparent;
}

/* Remove default overlay gradients if starfield is active */
.hero.dark-background::before {
  background: transparent !important;
}

/* Watermark */
.watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 15vw;
  font-family: 'Bebas Neue', sans-serif;
  color: rgba(255, 255, 255, 0.03);
  z-index: 0;
  pointer-events: none;
  white-space: nowrap;
}

/* Floating Rocket */
.floating-rocket-container {
  position: absolute;
  right: 15%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: auto;
  height: clamp(200px, 30vw, 400px);
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float {
  0% { transform: translateY(-50%) translatey(0px) rotate(15deg); }
  50% { transform: translateY(-50%) translatey(-25px) rotate(10deg); }
  100% { transform: translateY(-50%) translatey(0px) rotate(15deg); }
}

@media(max-width: 991px) {
  .floating-rocket-container {
    opacity: 0.15;
    right: 50%;
    transform: translate(50%, -50%);
  }
  @keyframes float {
    0% { transform: translate(50%, -50%) translatey(0px) rotate(15deg); }
    50% { transform: translate(50%, -50%) translatey(-25px) rotate(10deg); }
    100% { transform: translate(50%, -50%) translatey(0px) rotate(15deg); }
  }
}


/* Stats Band */
.stats-band {
  background: linear-gradient(90deg, #0b132b 0%, #1e3a8a 100%);
  padding: 40px 0;
  border-bottom: 2px solid #3b82f6;
  border-top: 2px solid #3b82f6;
  position: relative;
  z-index: 3;
}

.stat-item {
  text-align: center;
  color: white;
}

.stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  line-height: 1;
  color: #93c5fd;
  margin-bottom: 10px;
}

.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Achievements Record Board */
.achievements-board {
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-top: 2rem;
}

.achievement-row {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.achievement-row:hover {
  background: rgba(59, 130, 246, 0.1);
}

.achievement-row:last-child {
  border-bottom: none;
}

.ach-year {
  font-family: 'DM Mono', monospace;
  font-weight: 600;
  width: 80px;
  color: #93c5fd;
}

.ach-desc {
  flex-grow: 1;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  color: #f8fafc;
}

.ach-badge {
  padding: 6px 16px;
  border-radius: 20px;
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  margin-left: 15px;
}

.badge-gold { background: rgba(250, 204, 21, 0.15); color: #fde047; border: 1px solid rgba(250, 204, 21, 0.3); }
.badge-silver { background: rgba(148, 163, 184, 0.15); color: #e2e8f0; border: 1px solid rgba(148, 163, 184, 0.3); }
.badge-bronze { background: rgba(217, 119, 6, 0.15); color: #fcd34d; border: 1px solid rgba(217, 119, 6, 0.3); }
.badge-special { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.3); }

@media(max-width: 768px) {
  .achievement-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .ach-desc { margin: 10px 0; }
  .ach-badge { margin-left: 0; }
}

/* Competitions Real List Cards */
.comp-real-card {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 30px;
  height: 100%;
  transition: all 0.3s ease;
  color: #cbd5e1;
}

.comp-real-card h3 {
  color: #f8fafc;
  margin-bottom: 15px;
}

.comp-real-card:hover {
  transform: translateY(-5px);
  border-color: #3b82f6;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.comp-real-icon {
  font-size: 2.5rem;
  color: #60a5fa;
  margin-bottom: 20px;
}

/* Glassmorphism System */
.glass-card {
  background: rgba(11, 25, 44, 0.75) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, background 0.3s ease, border 0.3s ease;
}
.glass-card:hover {
  background: rgba(15, 35, 60, 0.85) !important;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

/* Tilt effect custom class used by JS */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-inner {
  transform: translateZ(30px);
}

/* FullCalendar Overrides for Dark Minimal Theme */
.fc-theme-standard td, .fc-theme-standard th {
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}
.fc-daygrid-day-number, .fc-col-header-cell-cushion {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    opacity: 0.8;
}
.fc .fc-toolbar-title {
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.5px;
    font-weight: 300;
}
.fc .fc-button-primary {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
    backdrop-filter: blur(8px);
    transition: all 0.3s;
    font-family: 'DM Sans', sans-serif;
}
.fc .fc-button-primary:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
.fc-event {
    border-radius: 6px;
    border: none !important;
    padding: 3px 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

/* Background Video and Transparency Overrides */
#main-bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -10;
}
#main-bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 11, 20, 0.7); /* Deep cosmic navy overlay */
  z-index: -9;
}

body, .main, .section, .dark-background, .light-background {
  background: transparent !important;
}

.hero::after {
  background: transparent !important;
}

/* Bento-Box Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 20px;
}
.bento-col-span-2 { grid-column: span 2; }
.bento-col-span-3 { grid-column: span 3; }
.bento-col-span-4 { grid-column: span 4; }
.bento-row-span-2 { grid-row: span 2; }

@media (max-width: 991px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-col-span-3 { grid-column: span 2; }
  .bento-col-span-4 { grid-column: span 2; }
}

@media (max-width: 576px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-col-span-2, .bento-col-span-3, .bento-col-span-4 {
    grid-column: span 1;
  }
  .bento-row-span-2 {
    grid-row: span 1;
  }
}

.bento-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}

/* Ambient Accent Light */
.ambient-light {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.bento-content {
  position: relative;
  z-index: 1;
}
