@import "navbar.css";
@import "header.css"; /* For shared page header styles */
@import "about.css";
@import "activities.css";
@import "gallery.css";
@import "contact.css";
@import "merchandise.css";
@import "footer.css";

:root {
  /* Modern Crimson & Gold Palette */
  --brand: hsl(345, 70%, 45%);         /* Deep Crimson Red */
  --brand-hover: hsl(345, 70%, 38%);   /* Darker Crimson */
  --gold: hsl(40, 70%, 65%);           /* Soft Gold Accent */
  
  /* Base Colors */
  --background: hsl(210, 20%, 98%);     /* Cool Off-White */
  --foreground: hsl(215, 25%, 20%);    /* Dark Slate Blue */
  
  /* Grayscale & UI */
  --light: hsl(210, 20%, 98%);
  --border: hsl(210, 15%, 90%);
  --muted-foreground: hsl(215, 15%, 50%);

  /* Dark Theme / Sections */
  --section-dark-bg: hsl(220, 20%, 12%); /* Deep Navy Charcoal */
  --card-dark-bg: hsl(220, 18%, 18%);    /* Darker card background */
  --text-light: hsl(210, 20%, 95%);
  --text-muted-light: hsl(210, 15%, 65%);

  /* Shadcn/UI Compatibility Mapping */
  --card: var(--background);
  --card-foreground: var(--foreground);
  --popover: var(--background);
  --popover-foreground: var(--foreground);
  --primary: var(--brand);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(210, 18%, 94%);
  --secondary-foreground: var(--foreground);
  --muted: hsl(210, 18%, 94%);
  --destructive: hsl(0, 72%, 51%);
  --destructive-foreground: hsl(0, 0%, 100%);
  --input: var(--border);
  --ring: var(--gold);
  --radius: 0.5rem;

  /* Hero Variables */
  --hero-bg-image-opacity: 0.5;
  --hero-gradient-start-color: hsla(220, 20%, 12%, 0.7); /* From --section-dark-bg */

  /* Mapped old variables for compatibility */
  --accent: var(--brand);
  --dark: var(--foreground);

  /* House Colors (adjusted for new palette) */
  --house-yellow: hsl(45, 90%, 55%); /* Keep vibrant for contrast */
  --house-blue: hsl(210, 70%, 60%);
  --house-green: hsl(145, 55%, 45%);
  --house-red: var(--brand);
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  overflow-x: hidden;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand);
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Utilities */
.bg-dark-alt {
  background-color: var(--section-dark-bg) !important;
}
.text-light { color: var(--text-light) !important; }
.text-brand { color: var(--brand) !important; }
.bg-brand { background-color: var(--brand) !important; }
.text-gold { color: var(--gold) !important; }
.leading-tight { line-height: 1.2; }
.bg-brand-soft {
  position: relative;
  overflow: hidden;
  background-color: hsla(345, 70%, 45%, 0.05); /* From --brand */
}

/* Ensure content is above the animated background */
.bg-brand-soft > .container {
  position: relative;
  z-index: 1;
}

.intro-section .ls-2 {
  letter-spacing: 2px;
}

.intro-section h2 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
}
.intro-section .lead {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.letter-spacing-2 { letter-spacing: 2px; }
.ls-3 { letter-spacing: 3px; }
.mw-700 { max-width: 700px; }
.mw-600 { max-width: 600px; }
.mw-500 { max-width: 500px; }
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }

/* Buttons */
.btn-brand {
  background-color: var(--brand);
  border-color: var(--brand);
  color: white;
  transition: all 0.3s ease;
}

.btn-brand:hover {
  background-color: var(--brand-hover);
  border-color: var(--brand-hover);
  color: white;
  transform: translateY(-2px);
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.1);
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(33, 37, 41, 0.3) 0%, rgba(15, 23, 42, 0.8) 100%),
              linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

.hero-logo-container {
  margin-bottom: 2rem;
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4), 0 0 0 5px rgba(255,255,255,0.1);
  animation: float 6s ease-in-out infinite;
}
.backdrop-blur {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.1);
}

/* --- New Hero Parallax Styles --- */
.hero-parallax-logo-container {
  position: absolute;
  /* Start it at the bottom of the viewport */
  top: 100vh;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 350px; /* Adjust size as needed */
  z-index: 2; /* Above hero text/overlay, below scrolled navbar */
  will-change: transform;
  pointer-events: none; /* So it doesn't block clicks */
}

.hero-parallax-logo {
  width: 100%;
  height: auto;
  /* Re-using the cool shadow effect from the original hero logo */
  filter: drop-shadow(0 25px 40px rgba(0,0,0,0.6));
  will-change: transform;
  transition: transform 0.3s ease-out; /* For rotation on scroll */
}

.hero-pretitle {
  font-size: 0.9rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-title-main {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(6rem, 18vw, 14rem); /* Massive responsive font */
  line-height: 0.85;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.text-outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.8);
  position: relative;
  display: inline-block;
  transition: color 0.5s ease;
}

.text-outline::before {
  content: 'HANAMI';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  color: #fff;
  overflow: hidden;
  transition: width 1s cubic-bezier(0.25, 1, 0.5, 1);
  white-space: nowrap;
  border-right: 2px solid var(--gold); /* Typewriter cursor effect */
}

/* Animation trigger on load */
.aos-animate .text-outline::before {
  width: 100%;
  border-right-color: transparent;
  transition-delay: 0.5s;
}

.hero-subtitle-text {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.aos-animate .hero-subtitle-text {
  transform: translateY(0);
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.scroll-indicator:hover {
  opacity: 1;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid #fff;
  border-radius: 20px;
  position: relative;
  margin-bottom: 10px;
}

.wheel {
  width: 4px;
  height: 8px;
  background: #fff;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0% { top: 10px; opacity: 1; height: 8px; }
  100% { top: 30px; opacity: 0; height: 4px; }
}

/* Sakura Petals Animation */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.petal {
  position: absolute;
  background: rgba(255, 192, 203, 0.6);
  border-radius: 100% 0 100% 0;
  opacity: 0;
  animation: falling 10s linear infinite;
}

.petal.p1 { width: 15px; height: 15px; left: 10%; animation-duration: 8s; animation-delay: 0s; }
.petal.p2 { width: 20px; height: 20px; left: 30%; animation-duration: 12s; animation-delay: 2s; }
.petal.p3 { width: 12px; height: 12px; left: 70%; animation-duration: 7s; animation-delay: 1s; }
.petal.p4 { width: 18px; height: 18px; left: 90%; animation-duration: 11s; animation-delay: 3s; }

@keyframes falling {
  0% { top: -10%; transform: rotate(0deg) translateX(0); opacity: 0; }
  20% { opacity: 0.8; }
  100% { top: 110%; transform: rotate(720deg) translateX(100px); opacity: 0; }
}

/* Logo Cards */
.logo-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.hover-shadow:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
}

.logo-icon {
  transition: transform 0.3s ease;
}

.logo-card:hover .logo-icon {
  transform: scale(1.1);
}

/* --- New Commitment Section --- */
.commitment-card-new {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.commitment-card-new:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.commitment-card-new-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: hsla(345, 70%, 45%, 0.1);
  color: var(--brand);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.decorative-bg-element {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.1;
  transform: rotate(-2deg);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bg-brand-soft::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(125deg, hsla(345, 70%, 45%, 0.1), hsla(40, 70%, 65%, 0.08), hsla(345, 70%, 45%, 0.1));
  background-size: 400% 400%;
  animation: gradient-flow 16s ease infinite;
  z-index: 0;
}

@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--section-dark-bg);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.75s ease;
  pointer-events: auto;
}

#preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.preloader-logo {
  width: 100px;
  height: 100px;
  animation: spin-and-scale 2s infinite linear;
}

@keyframes spin-and-scale {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.05) rotate(180deg);
  }
  100% {
    transform: scale(1) rotate(360deg);
  }
}

/* Activity Card */
.activity-card {
  background-color: transparent;
  perspective: 1500px;
  border: none !important;
  box-shadow: none !important;
}

.activity-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.08);
  border-radius: .75rem;
}

.activity-card:hover .activity-card-inner {
  transform: rotateY(180deg);
}

.activity-card-front,
.activity-card-back {
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: .75rem;
  overflow: hidden;
  background-color: var(--card);
  display: flex;
  flex-direction: column;
}

.activity-card-front .card-footer {
  margin-top: auto;
}

.activity-card-back {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateY(180deg);
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

/* Testimonials */
.testimonial-slider {
  position: relative;
  padding: 0 10px;
}

.testimonial-slider-wrapper {
  overflow: hidden;
  border-radius: 1rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 15px 40px rgba(0,0,0,0.05);
  background: white;
}

.testimonial-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
}

/* Spotlight Card Styles */
.spotlight-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.spotlight-img {
  width: auto;
  max-width: 160px;
  height: auto;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  border: 4px solid hsla(345, 70%, 45%, 0.1);
  padding: 3px;
}

.spotlight-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-quote-icon {
  font-size: 2.5rem;
  color: var(--brand);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 1rem;
}

.spotlight-quote {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--foreground);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.spotlight-name {
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.spotlight-role {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--card);
  border: 1px solid var(--border);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.testimonial-nav:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  box-shadow: 0 8px 20px rgba(220, 20, 60, 0.2);
}

.testimonial-nav.prev { left: 0; }
.testimonial-nav.next { right: 0; }

@media (min-width: 992px) {
  .testimonial-nav.prev { left: -20px; }
  .testimonial-nav.next { right: -20px; }

  .spotlight-card {
    flex-direction: row;
    text-align: left;
    padding: 3rem 4rem;
    gap: 3rem;
  }

  .spotlight-img {
    max-width: 220px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .spotlight-content {
    align-items: flex-start;
  }

  .spotlight-quote-icon {
    margin-bottom: 0.5rem;
  }
}

/* Go To Top */
.go-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  transform: translateY(20px);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.go-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.img-aspect-16-10 {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Navbar & Footer Overrides (retained from input) */
.navbar-custom { background-color: transparent !important; transition: padding 0.3s ease-in-out; }
.navbar-custom.scrolled { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; box-shadow: 0 2px 10px hsla(220, 20%, 12%, 0.1); }
.navbar-custom.scrolled::before { content: ''; position: absolute; inset: 0; background-color: hsla(220, 20%, 12%, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: -1; }
.offcanvas-custom { background-color: var(--section-dark-bg) !important; }

/* --- Modern Footer --- */
.footer-main {
  background-color: var(--section-dark-bg);
  color: white;
}
.footer-bottom {
  background-color: hsl(220, 20%, 8%); /* Even darker for contrast */
  border-top: 1px solid hsla(210, 15%, 65%, 0.1);
}
.footer-heading {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.footer-link {
  color: var(--text-muted-light);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-link:hover {
  color: var(--gold);
}
.footer-tagline { letter-spacing: 2px; font-size: 0.75rem; }
.footer-social .btn:hover { background-color: var(--brand); border-color: var(--brand); color: white; }


/* =========================================================
   "SAKURA ENGINE" (REACTOR) STYLES
   ========================================================= */

/* Main container for the interactive wheel */
.sakura-engine-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Full Wheel Layout (Replaces Half Wheel) --- */
.sakura-engine-container.full-wheel-design {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    /* Techy background */
    background: 
        radial-gradient(circle at center, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.05) 40%, transparent 70%),
        conic-gradient(from 0deg, transparent 0%, rgba(255,255,255,0.05) 25%, transparent 50%, rgba(255,255,255,0.05) 75%, transparent 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 60px rgba(0,0,0,0.3), inset 0 0 20px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
    position: relative;
}

/* The Glowing Core (Center Logo Container) */
.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    background: var(--section-dark-bg);
    border: 2px solid var(--gold);
    border-radius: 50%;
    z-index: 20; /* Above wheel */
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.4), inset 0 0 30px rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.full-wheel-design .engine-wheel {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,0.1);
}

.center-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Top Pointer */
.wheel-pointer {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wheel-pointer::before {
    content: '';
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

.wheel-pointer::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--gold);
    margin-top: -5px;
}

/* --- House Selector Buttons (Top) --- */
.house-selector {
    position: relative;
    z-index: 10;
    margin-bottom: 1rem;
    transform: none;
}

.btn-house-select {
    width: 50px; 
    height: 50px;
    border-radius: 50%;
    background: var(--card-dark-bg);
    border: 2px solid rgba(255,255,255,0.1);
    padding: 0; 
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.5;
    transform: scale(0.9);
}

.btn-house-select img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.btn-house-select.active, .btn-house-select:hover { 
    transform: scale(1.2); 
    opacity: 1; 
    border-color: white; 
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    z-index: 2;
}

.btn-house-select.active img, .btn-house-select:hover img {
    filter: grayscale(0%);
    filter: none;
    opacity: 1;
}

/* Specific Colors for Selectors */
.btn-house-select[data-target="wind"].active { border-color: var(--house-yellow); box-shadow: 0 0 15px var(--house-yellow); }
.btn-house-select[data-target="water"].active { border-color: var(--house-blue); box-shadow: 0 0 15px var(--house-blue); }
.btn-house-select[data-target="fire"].active { border-color: var(--house-red); box-shadow: 0 0 15px var(--house-red); }
.btn-house-select[data-target="earth"].active { border-color: var(--house-green); box-shadow: 0 0 15px var(--house-green); }


/* --- The Main Wheel --- */
.engine-wheel {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.05);
    /* High-tech rings background */
    background: 
        radial-gradient(transparent 64%, rgba(255,255,255,0.05) 64%, rgba(255,255,255,0.05) 65%, transparent 65%),
        radial-gradient(transparent 45%, rgba(255,255,255,0.08) 45%, rgba(255,255,255,0.08) 46%, transparent 46%);
    transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncier easing */
}

/* Segments */
.wheel-segment {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px; /* Fixed size for icons */
    height: 60px;
    margin-top: -30px; 
    margin-left: -30px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.5s ease;
}

/* Distance from center (160px radius) */
.wheel-segment[data-house="earth"] { transform: rotate(270deg) translate(160px) rotate(-270deg); }
.wheel-segment[data-house="fire"]  { transform: rotate(0deg)   translate(160px) rotate(0deg); }
.wheel-segment[data-house="water"] { transform: rotate(90deg)  translate(160px) rotate(-90deg); }
.wheel-segment[data-house="wind"]  { transform: rotate(180deg) translate(160px) rotate(-180deg); }

.house-logo-container {
    width: 100%;
    height: 100%;
    background: var(--section-dark-bg);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    padding: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5), inset 0 0 10px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
}

.house-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.3s ease;
    filter: grayscale(100%) brightness(0.7) contrast(1.2);
    border-radius: 50%;    
    filter: grayscale(1);
    opacity: 0.7;
    transition: all 0.4s ease;
    transform: scale(1);
}

/* Active Segment State */
.wheel-segment.segment-active .house-logo-container {
    transform: scale(1.4); /* Make active item much bigger */
    border-width: 3px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    background: white; /* Make background pop */
    transform: scale(1.5); /* Make active item significantly bigger */
    border-width: 2px;
    background: var(--section-dark-bg); /* Keep dark for contrast with glow */
    z-index: 10;
    animation: reactorPulse 3s infinite ease-in-out;
}

.wheel-segment.segment-active .house-logo-img {
    filter: grayscale(0%) brightness(1);
    filter: grayscale(0%) brightness(1.1) contrast(1.1);
    filter: none;
    opacity: 1;
    transform: scale(1.1); /* Slight zoom on the image itself */
}

/* Dynamic Colors for Active Segment applied via JS or specific classes */
.wheel-segment.segment-active[data-house="wind"] .house-logo-container { border-color: var(--house-yellow); box-shadow: 0 0 30px var(--house-yellow); }
.wheel-segment.segment-active[data-house="water"] .house-logo-container { border-color: var(--house-blue); box-shadow: 0 0 30px var(--house-blue); }
.wheel-segment.segment-active[data-house="fire"] .house-logo-container { border-color: var(--house-red); box-shadow: 0 0 30px var(--house-red); }
.wheel-segment.segment-active[data-house="earth"] .house-logo-container { border-color: var(--house-green); box-shadow: 0 0 30px var(--house-green); }
.wheel-segment.segment-active[data-house="wind"] .house-logo-container { border-color: var(--house-yellow); box-shadow: 0 0 40px var(--house-yellow), inset 0 0 15px var(--house-yellow); }
.wheel-segment.segment-active[data-house="water"] .house-logo-container { border-color: var(--house-blue); box-shadow: 0 0 40px var(--house-blue), inset 0 0 15px var(--house-blue); }
.wheel-segment.segment-active[data-house="fire"] .house-logo-container { border-color: var(--house-red); box-shadow: 0 0 40px var(--house-red), inset 0 0 15px var(--house-red); }
.wheel-segment.segment-active[data-house="earth"] .house-logo-container { border-color: var(--house-green); box-shadow: 0 0 40px var(--house-green), inset 0 0 15px var(--house-green); }

@keyframes reactorPulse {
    0% { box-shadow: 0 0 30px currentColor, inset 0 0 10px currentColor; }
    50% { box-shadow: 0 0 50px currentColor, inset 0 0 20px currentColor; }
    100% { box-shadow: 0 0 30px currentColor, inset 0 0 10px currentColor; }
}


/* --- The Info Card (Glassmorphism HUD) --- */
.house-info-card {
    background: rgba(255, 255, 255, 0.05); /* Very subtle fill */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 6px solid var(--muted-foreground); /* Default border */
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Background Glow Effect behind card */
.house-info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--glow-color, rgba(255,255,255,0.1)) 0%, transparent 60%);
    opacity: 0.1;
    pointer-events: none;
    transition: background 0.5s ease;
}

.house-title {
    font-size: 2.5rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.house-meta {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.8;
}

.card-footer-area .badge {
    padding: 8px 16px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* =========================================
   MODERN HERO SECTION
   ========================================= */

.hero-modern {
    position: relative;
    min-height: 100vh; /* Full viewport height */
    background-color: var(--section-dark-bg);
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 0; /* Removed to fix navbar spacing issues */
    padding-bottom: 0;
}

/* Background Image with Overlay */
.hero-bg-absolute {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use a dark scenic image of the school or abstract texture */
    background-image: url('../img/header_2.jpg'); 
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: heroZoom 25s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark gradient to make text readable (similar to the car rental dark fade) */
    background: 
        linear-gradient(to bottom, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0) 120px), /* Top shade for navbar visibility */
        linear-gradient(to right, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.8) 50%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

/* Typography */
.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted-light);
    margin-bottom: 1rem;
    display: inline-block;
}

.hero-title {
    font-family: 'Hind', sans-serif;
    font-size: clamp(3rem, 5vw, 4.5rem); /* Responsive huge font */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.highlight-gold {
    color: var(--gold);
    position: relative;
    display: inline-block;
}

/* The yellow underline effect from the image */
.highlight-gold::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--gold);
    opacity: 0.3;
    z-index: -1;
    transform: skewX(-15deg);
}

/* Buttons */
.btn-hero-primary {
    background-color: var(--gold);
    color: var(--dark);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.3);
    background-color: white;
}

.btn-hero-secondary {
    background-color: transparent;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-hero-secondary .icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.btn-hero-secondary:hover .icon-circle {
    background-color: var(--gold);
    color: var(--dark);
}

/* Visuals (Right side) */
.hero-visual-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-floating-img {
    width: 100%;
    max-width: 500px;
    /* Drop shadow to make it pop like the car in the reference */
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)); 
    animation: floatHero 6s ease-in-out infinite;
}

@keyframes floatHero {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .hero-modern {
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-content .row {
        flex-direction: column-reverse;
    }

    .hero-visual-wrapper {
        margin-bottom: 2rem;
    }

    .hero-floating-img {
        max-width: 300px;
    }
}

/* Navbar Logo Enhancement */
.logo-outline-white {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Intro Section Watermark */
.intro-bg-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    width: 400px;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

/* Scroll Arrow Animation */
.arrow-scroll {
    margin-top: 5px;
}
.arrow-scroll span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin: -5px auto;
    animation: scrollArrow 2s infinite;
}
.arrow-scroll span:nth-child(2) { animation-delay: -0.2s; }
.arrow-scroll span:nth-child(3) { animation-delay: -0.4s; }
@keyframes scrollArrow {
    0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
}