/* ===== RESET & VARIABLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --primary-color: #ff6b35;
  --primary-dark: #e55a2b;
  --secondary-color: #1a1a1a;
  --accent-color: #ffd700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --text-gray: #666666;
  --bg-dark: #0a0a0a;
  --bg-gradient: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  --card-bg: rgba(26, 26, 26, 0.8);
  --glass-bg: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-primary: "Orbitron", "Noto Sans KR", sans-serif;
  --font-secondary: "Cinzel", serif;
  --font-korean: "Noto Sans KR", sans-serif;

  /* Spacing */
  --section-padding: 5rem 0;
  --container-padding: 0 2rem;
  --container-max-width: 1200px;

  /* Animations */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Shadows */
  --shadow-subtle: 0 2px 20px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 10px 40px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(255, 107, 53, 0.3);
}

/* ===== BASE STYLES ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-light);
  background: var(--bg-dark);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--container-padding);
  width: 100%;
  box-sizing: border-box;
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-content {
  text-align: center;
  color: var(--text-light);
}

.zen-logo-loading {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
}

.logo-animation {
  width: 100%;
  height: 100%;
  animation: rotate 3s linear infinite;
}

.logo-animation circle {
  animation: drawCircle 2s ease-in-out infinite;
}

.logo-text {
  font-family: var(--font-korean);
  font-size: 2.5rem;
  font-weight: 700;
  fill: var(--primary-color);
  filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));
}

.loading-text span {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.5rem;
  color: var(--primary-color);
  display: block;
  margin-bottom: 1rem;
}

.loading-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 107, 53, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.loading-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
  animation: loadProgress 3s ease-in-out infinite;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 0.5rem 0;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.98);
  box-shadow: var(--shadow-subtle);
  padding: 0;
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.navbar.scrolled .nav-container {
  padding: 1rem 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-light);
}

.nav-logo .logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1;
}

.nav-logo .zen-text {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.15rem;
  color: var(--primary-color);
  margin-bottom: 0.1rem;
}

.nav-logo .taekwondo-text {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.3rem;
  color: var(--text-light);
}

.logo-svg {
  width: 40px;
  height: 40px;
}

.logo-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.navbar.scrolled .logo-image {
  width: 40px;
  height: 40px;
}

.logo-loading-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 50%;
  animation: logoJump 1.5s ease-in-out infinite;
}

@keyframes logoJump {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.1);
  }
}

.logo-char {
  font-family: var(--font-korean);
  font-size: 1.2rem;
  font-weight: 700;
  fill: var(--primary-color);
}

.logo-text {
  font-family: var(--font-primary);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  color: var(--primary-color);
  transition: var(--transition-smooth);
}

.navbar.scrolled .logo-text {
  font-size: 1.2rem;
}

.navbar.scrolled .zen-text {
  font-size: 1rem;
  letter-spacing: 0.12rem;
  margin-bottom: 0.05rem;
}

.navbar.scrolled .taekwondo-text {
  font-size: 0.6rem;
  letter-spacing: 0.25rem;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.navbar.scrolled .nav-menu {
  font-size: 1rem;
}

.nav-menu {
  list-style: none;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition-smooth);
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav-hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-light);
  transition: var(--transition-smooth);
}

/* ===== THREE.JS CANVAS ===== */
#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--section-padding);
  padding-top: 8rem;
  background: var(--bg-gradient);
}

.hero-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--container-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-text {
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-family: var(--font-secondary);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.title-line {
  display: block;
  color: var(--text-light);
}

.title-line.highlight {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: var(--shadow-glow);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-gray);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  cursor: pointer;
  transition: var(--transition-spring);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: var(--text-light);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn-secondary:hover {
  background: var(--text-light);
  color: var(--secondary-color);
  transform: translateY(-3px);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.warrior-silhouette {
  width: 400px;
  height: 500px;
  position: relative;
  animation: float 6s ease-in-out infinite;
  max-width: 100%;
}

.warrior-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.3));
}

.warrior-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: contrast(1.3) brightness(1.1) saturate(1.4)
    drop-shadow(0 0 30px rgba(255, 107, 53, 0.4));
  transition: all 0.3s ease;
  border-radius: 20px;
  /* Remove background using mix-blend-mode */
  mix-blend-mode: multiply;
  background: transparent;
  /* Alternative approach - use backdrop-filter for transparency effect */
  position: relative;
}

/* Add a pseudo-element to help with background removal */
.warrior-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(240, 240, 240, 0.6) 50%,
    rgba(255, 255, 255, 0.9) 100%
  );
  mix-blend-mode: difference;
  border-radius: 20px;
  pointer-events: none;
}

.energy-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ring {
  position: absolute;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse 3s ease-in-out infinite;
}

.ring-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  left: -150px;
  animation-delay: 0s;
}

.ring-2 {
  width: 400px;
  height: 400px;
  top: -200px;
  left: -200px;
  animation-delay: 1s;
}

.ring-3 {
  width: 500px;
  height: 500px;
  top: -250px;
  left: -250px;
  animation-delay: 2s;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-gray);
  font-size: 0.9rem;
  animation: bounce 2s infinite;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-gray);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 6px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--text-gray);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}

/* ===== SECTION STYLES ===== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-family: var(--font-secondary);
  font-size: 3rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  margin: 0 auto;
  border-radius: 2px;
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: var(--section-padding);
  background: linear-gradient(
    135deg,
    var(--bg-dark) 0%,
    var(--secondary-color) 100%
  );
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.philosophy-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 107, 53, 0.1);
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.philosophy-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: var(--shadow-glow);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--text-light);
}

.philosophy-card h3 {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.philosophy-card p {
  color: var(--text-gray);
  line-height: 1.7;
}

.about-stats {
  background: var(--glass-bg);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  text-align: center;
  margin-bottom: 2rem;
}

.stat-item:last-child {
  margin-bottom: 0;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--font-primary);
}

.stat-label {
  color: var(--text-gray);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

/* ===== CLASSES SECTION ===== */
.classes {
  padding: var(--section-padding);
  background: var(--bg-dark);
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.class-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-spring);
  border: 1px solid rgba(255, 107, 53, 0.1);
  backdrop-filter: blur(10px);
}

.class-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-glow);
}

.card-image {
  height: 200px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.class-icon {
  font-size: 3rem;
  color: var(--text-light);
  z-index: 1;
  position: relative;
}

.card-content {
  padding: 2rem;
}

.card-content h3 {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.age-group {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.card-content > p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.class-features {
  list-style: none;
  margin-bottom: 2rem;
}

.class-features li {
  color: var(--text-gray);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.class-features i {
  color: var(--primary-color);
  font-size: 0.8rem;
}

.class-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: var(--text-light);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.class-btn:hover {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-color)
  );
  box-shadow: var(--shadow-glow);
}

/* ===== GALLERY SECTION ===== */
.gallery {
  padding: var(--section-padding);
  background: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    var(--bg-dark) 100%
  );
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  aspect-ratio: 1;
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-spring);
  border: 1px solid rgba(255, 107, 53, 0.1);
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: var(--text-light);
}

.gallery-placeholder i {
  font-size: 3rem;
}

.gallery-placeholder span {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: var(--section-padding);
  background: var(--bg-dark);
  overflow-x: hidden;
  width: 100%;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.info-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 107, 53, 0.1);
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  word-wrap: break-word;
}

.info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 53, 0.3);
}

.info-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--text-light);
}

.info-card h3 {
  font-family: var(--font-secondary);
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.info-card p {
  color: var(--text-gray);
  line-height: 1.6;
}

.contact-form {
  background: var(--glass-bg);
  padding: 2.5rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-light);
  font-family: var(--font-primary);
  transition: var(--transition-smooth);
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--text-gray);
  transition: var(--transition-smooth);
  pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group select:focus + label,
.form-group select:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
  top: -0.5rem;
  left: 0.5rem;
  font-size: 0.8rem;
  color: var(--primary-color);
  background: var(--bg-dark);
  padding: 0 0.5rem;
}

.submit-btn {
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: var(--text-light);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  cursor: pointer;
  transition: var(--transition-spring);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-btn:hover {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-color)
  );
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    var(--bg-dark) 100%
  );
  padding: 3rem 0 1rem;
  border-top: 1px solid rgba(255, 107, 53, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo .logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1;
}

.footer-logo .zen-text {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.2rem;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.footer-logo .taekwondo-text {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.4rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
  background: #128c7e;
}

.whatsapp-float:active {
  transform: scale(0.95);
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
  }
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
}

/* ===== CALL FLOATING BUTTON ===== */
.call-float {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #007bff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  animation: callPulse 2.5s infinite;
}

.call-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 123, 255, 0.6);
  background: #0056b3;
}

.call-float:active {
  transform: scale(0.95);
}

@keyframes callPulse {
  0% {
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.8);
  }
  100% {
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
  }
}

/* ===== MAP FLOATING BUTTON ===== */
.map-float {
  position: fixed;
  bottom: 180px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #dc3545;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  animation: mapPulse 3s infinite;
}

.map-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(220, 53, 69, 0.6);
  background: #c82333;
}

.map-float:active {
  transform: scale(0.95);
}

@keyframes mapPulse {
  0% {
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.8);
  }
  100% {
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.1;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes scrollWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes drawCircle {
  0% {
    stroke-dashoffset: 502;
  }
  50% {
    stroke-dashoffset: 251;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes loadProgress {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 4rem 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-title {
    font-size: 3rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .contact-form {
    padding: 1.5rem;
    max-width: 100%;
    overflow: hidden;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .info-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
    max-width: 100%;
    overflow: hidden;
  }

  .info-card p {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-logo .zen-text {
    font-size: 1.2rem;
    letter-spacing: 0.15rem;
  }

  .footer-logo .taekwondo-text {
    font-size: 0.9rem;
    letter-spacing: 0.3rem;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 0 1rem;
    --section-padding: 3rem 0;
  }

  .hero {
    padding-top: 10rem;
  }

  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 2rem;
    transform: translateY(-100%);
    transition: var(--transition-smooth);
    opacity: 0;
    visibility: hidden;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .nav-logo .zen-text {
    font-size: 2rem;
    letter-spacing: 0.12rem;
  }

  .nav-logo .taekwondo-text {
    font-size: 1rem;
    letter-spacing: 0.25rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding-top: 6rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
    padding: 1rem;
  }

  .warrior-silhouette {
    width: 300px;
    height: 375px;
    max-width: 90vw;
  }

  .hero-visual {
    margin-top: -1rem;
  }

  .classes-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-bottom {
    font-size: 0.8rem;
    line-height: 1.5;
    padding: 1.5rem 0.5rem;
  }

  .footer-bottom p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 26px;
    bottom: 15px;
    right: 15px;
  }

  .call-float {
    width: 55px;
    height: 55px;
    font-size: 22px;
    bottom: 85px;
    right: 15px;
  }

  .map-float {
    width: 55px;
    height: 55px;
    font-size: 22px;
    bottom: 155px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 9rem;
  }

  .hero-content {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .nav-logo .zen-text {
    font-size: 2rem;
    letter-spacing: 0.1rem;
  }

  .nav-logo .taekwondo-text {
    font-size: 1rem;
    letter-spacing: 0.2rem;
  }

  .philosophy-card,
  .info-card {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .warrior-silhouette {
    width: 250px;
    height: 312px;
    max-width: 85vw;
  }

  .hero-visual {
    margin-top: -1.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    padding: 0 1rem;
    gap: 1rem;
  }

  .footer-logo .zen-text {
    font-size: 1.1rem;
    letter-spacing: 0.12rem;
  }

  .footer-logo .taekwondo-text {
    font-size: 0.8rem;
    letter-spacing: 0.25rem;
  }

  .footer-links {
    gap: 0.5rem;
    font-size: 0.9rem;
  }

  .footer-links a {
    padding: 0.5rem;
    white-space: nowrap;
  }

  .footer-bottom {
    font-size: 0.75rem;
    padding: 1rem 0.5rem;
    line-height: 1.6;
  }

  .footer-bottom p {
    max-width: 100%;
    margin: 0;
  }

  /* Selectively hide menu items that cause overflow on small screens */
  .footer-links a[href="#contact"] {
    display: none;
  }

  /* If still overflowing, hide gallery too */
  @media (max-width: 400px) {
    .footer-links a[href="#gallery"] {
      display: none;
    }
  }

  /* If still overflowing on very small screens, hide classes */
  @media (max-width: 350px) {
    .footer-links a[href="#classes"] {
      display: none;
    }
  }
}

/* ===== EXTRA SMALL MOBILE DEVICES ===== */
@media (max-width: 375px) {
  :root {
    --container-padding: 0 0.75rem;
  }

  .nav-logo .zen-text {
    font-size: 2rem;
    letter-spacing: 0.08rem;
  }

  .nav-logo .taekwondo-text {
    font-size: 1rem;
    letter-spacing: 0.15rem;
  }

  .contact-content {
    gap: 1.5rem;
  }

  .contact-form {
    padding: 1rem;
    margin: 0;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.8rem;
    font-size: 14px;
  }

  .info-card {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }

  .info-card h3 {
    font-size: 1.1rem;
  }

  .info-card p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 12px;
    right: 12px;
  }

  .call-float {
    width: 50px;
    height: 50px;
    font-size: 20px;
    bottom: 75px;
    right: 12px;
  }

  .map-float {
    width: 50px;
    height: 50px;
    font-size: 20px;
    bottom: 138px;
    right: 12px;
  }

  .footer-logo .zen-text {
    font-size: 1rem;
    letter-spacing: 0.1rem;
    margin-bottom: 0.1rem;
  }

  .footer-logo .taekwondo-text {
    font-size: 0.7rem;
    letter-spacing: 0.2rem;
  }

  .footer-logo .logo-image {
    width: 35px;
    height: 35px;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  #three-canvas,
  .nav-hamburger,
  .scroll-indicator,
  .energy-rings {
    display: none;
  }

  .navbar {
    position: static;
    background: none;
  }

  .hero {
    min-height: auto;
  }
}

/* ===== HIDDEN CLASS ===== */
.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
}
