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

:root {
  --primary-blue: #1E5AA8;
  --primary-blue-hover: #15427d;
  --bg-blue-dark: #0f3466;
  --accent-light: #f0f6ff;
  --text-main: #2b2b2b;
  --text-muted: #555555;
  --bg-color: #FCFBF4; /* Faint cream */
  --bg-secondary: #f4f2ea; /* Slightly darker cream */
  --transition-speed: 0.3s;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary-blue);
}

/* Base Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary-blue);
  border-radius: 2px;
}

/* Header & Glassmorphism Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background var(--transition-speed);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  height: 50px;
  width: auto;
  margin-right: 15px;
  border-radius: 5px;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-blue);
  letter-spacing: 0.5px;
}

/* Hamburger Menu Icon */
.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1010;
}

.menu-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-blue);
  border-radius: 3px;
  transition: all var(--transition-speed) ease-in-out;
}

/* Sidebar Menu */
.sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: var(--primary-blue);
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1005;
  padding-top: 100px;
}

.sidebar.active {
  right: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 40px;
}

.nav-links li a {
  text-decoration: none;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  transition: color var(--transition-speed);
  position: relative;
}

.nav-links li a:hover {
  color: var(--accent-light);
}

.nav-links li a::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width var(--transition-speed);
}

.nav-links li a:hover::before {
  width: 100%;
}

/* Menu Open State (X animation) */
.menu-btn.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background-color: white; /* Contrast against sidebar */
}
.menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.menu-btn.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background-color: white;
}

.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
  z-index: 1004;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Main Content Area */
main {
  margin-top: 80px; /* offset for fixed header */
  min-height: calc(100vh - 80px - 250px);
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--bg-blue-dark) 0%, var(--primary-blue) 100%);
  color: var(--bg-color);
  padding: 120px 20px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  animation: fadeIn 1s ease-out forwards;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 10px;
  line-height: 1.1;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero h2 {
  font-size: 2.2rem;
  color: var(--accent-light);
  margin-bottom: 20px;
  font-weight: 400;
  letter-spacing: 1px;
}

.hero .subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  color: #fbcd00; /* Gold accent for martial arts */
  font-style: italic;
  margin-bottom: 30px;
}

.hero .about-text {
  color: #e6f0ff;
  font-size: 1.25rem;
  font-weight: 300;
}

/* Image Grid for Presentation */
.logos-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.logo-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  transition: transform var(--transition-speed), background var(--transition-speed);
}

.logo-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
}

.highlight-card {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid #fbcd00;
}

.logo-label {
  margin-top: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
}

.cert-logo {
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
  transition: transform var(--transition-speed);
}

.main-logo {
  height: 120px;
}

/* Standard Section */
.section-padding {
  padding: 80px 0;
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.about-text p {
  margin-bottom: 20px;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.team-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  position: relative;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.team-card.coach-card {
  grid-column: 1 / -1;
  max-width: 500px;
  margin: 0 auto 20px auto;
  border: 2px solid var(--primary-blue);
}

.team-img-wrapper {
  width: 100%;
  background: #fdfdfd;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.team-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.team-card:hover .team-img {
  transform: scale(1.05);
}

.team-info {
  padding: 25px;
  text-align: center;
}

.team-info h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.team-info .role {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Schedule and Maps */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  height: 450px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.schedule-card {
  background: var(--bg-secondary);
  padding: 40px;
  border-radius: 15px;
  border-top: 5px solid var(--primary-blue);
}

.schedule-card h3 {
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.schedule-list {
  list-style: none;
}

.schedule-list li {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.schedule-list li:last-child {
  border-bottom: none;
}

.schedule-level {
  font-weight: 600;
  color: var(--text-main);
}

.schedule-time {
  color: var(--primary-blue);
  font-weight: 700;
}

/* Mixed Content Grid (Acerca de) */
.grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 20px;
}

.grid-layout.reverse .text-content {
  order: 2;
}
.grid-layout.reverse .img-content {
  order: 1;
}

.text-content {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.content-img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
}

.shadow-img {
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  transition: transform var(--transition-speed);
}

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

/* Study Plan Timeline/Cards */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.plan-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border-left: 4px solid var(--primary-blue);
  transition: transform 0.3s;
}

.plan-card:hover {
  transform: translateX(5px);
}

.plan-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.plan-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
  font-size: 1.1rem;
}

.plan-footer {
  margin-top: 50px;
  padding: 30px;
  background: var(--primary-blue);
  color: white;
  border-radius: 10px;
  text-align: center;
}

/* Footer */
footer {
  background-color: #0d2a50;
  color: white;
  padding: 60px 0 20px 0;
  margin-top: 50px;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact-item i {
  color: #a3c4f3;
  font-size: 1.2rem;
}

.contact-info a {
  color: white;
  text-decoration: none;
  transition: color var(--transition-speed);
}

.contact-info a:hover {
  color: #a3c4f3;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all var(--transition-speed);
}

.social-links a:hover {
  background: var(--primary-blue);
  transform: translateY(-3px);
}

.copyright {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.9rem;
  color: #8fa6c7;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero h2 { font-size: 1.5rem; }
  .hero .subtitle { font-size: 1.2rem; }
  .location-grid { grid-template-columns: 1fr; }
  .map-container { height: 300px; }
  .grid-layout { grid-template-columns: 1fr; gap: 20px;}
  .grid-layout.reverse .text-content { order: unset; }
  .grid-layout.reverse .img-content { order: unset; }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
