/* ==========================================================================
   SUROC - Sabancı University Rocketry Team
   Custom Theme Stylesheet
   ========================================================================== */

/* --- 1. Design Tokens & Variables --- */
:root {
  --font-sans: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Audiowide', cursive, sans-serif;

  /* Color Palette - Deep Charcoal Space with Crimson Brand Accents */
  --bg-dark: #0a0c10;
  --bg-navbar: #090b0e;
  --bg-footer: #060709;

  --color-crimson: #be123c;
  --color-crimson-hover: #e11d48;
  --color-crimson-glow: rgba(190, 18, 60, 0.65);
  --color-sky: #0284c7;
  --color-sky-hover: #0369a1;

  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;

  --card-bg: rgba(20, 24, 33, 0.55);
  --card-bg-hover: rgba(28, 34, 46, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-medium: rgba(255, 255, 255, 0.2);
  --border-hover: rgba(255, 255, 255, 0.38);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 26px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.65);

  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. Base & Full-Site Cosmic Starry Background --- */
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-secondary);
  letter-spacing: 0.25px;
  overflow-x: clip;
  position: relative;
  min-height: 100vh;
}

/* Full-Site Seamless Fixed Cosmic Background with Dark-Red Transparent Filter */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0b0206;
  background-image:
    /* Layer 1: Ambient cosmic nebula glows */
    radial-gradient(
      ellipse 85% 60% at 50% 18%,
      rgba(190, 18, 60, 0.28) 0%,
      rgba(120, 14, 40, 0.16) 42%,
      transparent 75%
    ),
    radial-gradient(
      ellipse 70% 50% at 20% 65%,
      rgba(159, 18, 57, 0.18) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 70% 50% at 85% 80%,
      rgba(136, 19, 55, 0.2) 0%,
      transparent 70%
    ),
    /* Layer 2: Transparent dark-red gradient filter across whole page */
    linear-gradient(
      180deg,
      rgba(20, 3, 8, 0.74) 0%,
      rgba(92, 14, 34, 0.55) 28%,
      rgba(35, 5, 14, 0.7) 55%,
      rgba(75, 9, 28, 0.58) 78%,
      rgba(12, 14, 18, 0.88) 100%
    ),
    /* Layer 3: High-Res Starry Night Sky */
    url('../assets/hero/hero-background.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: -2;
}

::selection {
  background: var(--color-crimson);
  color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.5px;
}

p, .lead, .dept-desc, .showcase-desc, .rocket-prose {
  color: var(--text-secondary);
}

.lead {
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

/* Accessibility Focus Rings (WCAG 2.1 AA) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.contact-link:focus-visible,
.custom-carousel-arrow:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.35);
}

/* --- 3. Navigation Bar & Active Indicator --- */
#mainNav {
  background-color: var(--bg-navbar);
  border-bottom: none;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  transition: background-color 0.3s var(--ease-out), padding 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

#mainNav.navbar-scrolled {
  background-color: rgba(9, 11, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: none;
  box-shadow: var(--shadow-md);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

#mainNav .container {
  max-width: 1200px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
}

.navbar-brand img {
  height: 56px;
  width: auto;
  transition: transform 0.25s var(--ease-out);
}

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

.navbar-nav {
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 0.5rem 0;
  transition: color 0.25s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: #ffffff;
}

/* Smooth animated red indicator bar */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--color-crimson);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--color-crimson-glow);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}

.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* --- 4. Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 7rem;
  padding-bottom: 5rem;
  overflow: hidden;
  background-color: transparent;
  border-bottom: none;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-title-text {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: clamp(3px, 1.2vw, 8px);
  line-height: 1;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.7));
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
}

/* Action Buttons */
.hero-cta-group {
  gap: 1rem;
}

.btn-danger {
  background-color: var(--color-crimson);
  border-color: var(--color-crimson);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease-out);
  box-shadow: 0 4px 14px rgba(190, 18, 60, 0.35);
}

.btn-danger:hover {
  background-color: var(--color-crimson-hover);
  border-color: var(--color-crimson-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.45);
}

.btn-sky {
  background-color: var(--color-sky);
  border-color: var(--color-sky);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease-out);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-sky:hover {
  background-color: var(--color-sky-hover);
  border-color: var(--color-sky-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(3, 105, 161, 0.45);
}

/* --- 5. Content Sections & Section Titles --- */
section {
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  background-color: transparent;
  border-bottom: none;
  scroll-margin-top: 4.5rem;
  position: relative;
}

/* Seamless section background without harsh dividing boxes */
section.section-alt {
  background-color: transparent;
}

section h2,
.dept-section-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  text-align: center;
  line-height: 1.15;
}

section h2::after,
.dept-section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.85) 50%, transparent 100%);
  margin: 0.75rem auto 0;
}

/* --- 6. Hakkımızda & Stat Cards --- */
.stat-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.stat-card:hover {
  border-color: var(--border-hover);
  background: var(--card-bg-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.4rem;
  text-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
  letter-spacing: -1px;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Department Cards (Takım Yapısı) */
.dept-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  height: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.dept-card:hover {
  border-color: var(--border-hover);
  background: var(--card-bg-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.dept-img {
  width: 100%;
  max-width: 260px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 auto 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out);
}

.dept-card:hover .dept-img {
  transform: scale(1.03);
}

.dept-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.dept-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- 7. Projelerimiz & Rocket Showcase --- */
.goksu-showcase-row {
  max-width: 1040px;
}

.rocket-render-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.rocket-render-img {
  height: 440px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(148, 163, 184, 0.25)) drop-shadow(0 14px 28px rgba(0, 0, 0, 0.8));
  transition: transform 0.3s var(--ease-out), filter 0.3s ease;
}

.rocket-render-img:hover {
  transform: translateY(-6px) scale(1.03);
  filter: drop-shadow(0 0 16px rgba(203, 213, 225, 0.4)) drop-shadow(0 18px 34px rgba(0, 0, 0, 0.85));
}

.rocket-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.rocket-prose {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 740px;
  margin-bottom: 1.5rem;
}

/* Highlight Spec Cards */
.highlight-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.highlight-card:hover {
  border-color: var(--border-hover);
  background: var(--card-bg-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.highlight-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.highlight-label i {
  color: var(--color-crimson);
  font-size: 1rem;
}

.highlight-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0;
}

/* Clean spacing between GÖKSU and Carousel without harsh divider lines */
.section-divider {
  display: none;
}

/* Carousel Showcase */
.project-showcase-card {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.project-card-grid {
  display: grid;
  grid-template-columns: 44% 1fr;
  align-items: center;
  gap: 2rem;
}

.showcase-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.showcase-img:hover {
  transform: scale(1.02);
}

.showcase-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.showcase-desc {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.showcase-bullets {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.showcase-bullets li {
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
}

.showcase-bullets li::before {
  content: '•';
  color: var(--color-crimson);
  font-size: 1.4rem;
  position: absolute;
  left: 0;
  top: -3px;
}

.showcase-bullets li strong {
  color: var(--text-primary);
}

/* Carousel Navigation Arrows */
.custom-carousel-arrow {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-medium);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.85;
  transition: all 0.25s var(--ease-out);
  color: var(--text-primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.custom-carousel-arrow:hover {
  background-color: rgba(255, 255, 255, 0.22);
  border-color: var(--text-primary);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.08);
  opacity: 1;
}

.carousel-control-prev.custom-carousel-arrow {
  left: -48px;
}

.carousel-control-next.custom-carousel-arrow {
  right: -48px;
}

/* Carousel Dots */
.custom-carousel-dots {
  position: relative;
  margin-top: 2rem;
  margin-bottom: 0;
  justify-content: center;
  gap: 0.6rem;
  z-index: 10;
}

.custom-carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.25);
  border: none;
  opacity: 0.6;
  transition: all 0.3s var(--ease-out);
}

.custom-carousel-dots button.active {
  width: 24px;
  border-radius: 6px;
  background-color: var(--color-crimson);
  opacity: 1;
}

/* --- 8. Sponsorlarımız --- */
.sponsors-flex-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.sponsor-item-box {
  width: 200px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all 0.3s var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.sponsor-item-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}

.sponsor-logo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* --- 9. İletişim --- */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-info-card {
  background-color: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.contact-info-card:hover {
  border-color: var(--border-hover);
  background-color: var(--card-bg-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-info-card:hover .contact-icon-wrapper {
  background-color: var(--color-crimson);
  color: #ffffff;
}

.contact-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-all;
}

.contact-link:hover {
  color: #38bdf8;
  text-decoration: underline;
}

/* --- 10. Footer --- */
.footer-section {
  background-color: rgba(6, 7, 9, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: none;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  position: relative;
}

.footer-section .container {
  max-width: 1200px;
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 3px;
  color: var(--text-primary);
  line-height: 1;
}

.footer-brand-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.footer-nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-social-link {
  color: var(--text-muted);
  font-size: 1.35rem;
  transition: color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.footer-social-link:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

.footer-copyright {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.4rem;
}

/* ==========================================================================
   Responsive & Mobile Compatibility Styles
   ========================================================================== */

@media (max-width: 1200px) {
  .carousel-control-prev.custom-carousel-arrow {
    left: -16px;
  }
  .carousel-control-next.custom-carousel-arrow {
    right: -16px;
  }
}

@media (max-width: 991px) {
  .project-card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .navbar-nav {
    padding-top: 1rem;
    padding-bottom: 1rem;
    gap: 1rem;
    text-align: center;
  }

  .nav-link.active::after {
    width: 60px;
    left: 50%;
    transform: translateX(-50%) scaleX(1);
  }

  .nav-link::after {
    left: 50%;
    transform: translateX(-50%) scaleX(0);
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  .navbar-brand img {
    height: 48px;
  }

  .rocket-render-img {
    height: 300px;
  }

  .custom-carousel-arrow {
    display: none;
  }

  .sponsors-flex-grid {
    gap: 1.25rem;
  }

  .sponsor-item-box {
    width: 160px;
    height: 85px;
    padding: 1rem;
  }
}

@media (max-width: 575px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    padding: 1.25rem 1rem;
  }

  .highlight-card {
    padding: 1rem 0.85rem;
  }

  .sponsor-item-box {
    width: calc(50% - 0.75rem);
    height: 80px;
    padding: 0.75rem;
  }

  .footer-nav-links {
    gap: 1rem;
  }
}
