/* =========================================================
   GLOBAL CSS - KYOKUSHIN NALIN DOJO ABU DHABI
   Theme: Clean Light Material UI with Dark Footer
   ========================================================= */

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

:root {
  --md-primary: #d32f2f;         /* Material Red */
  --md-primary-hover: #b71c1c;
  --md-secondary: #0288d1;       /* Material Light Blue */
  --md-accent: #f57c00;          /* Material Amber/Orange Accent */
  --md-bg-light: #f8f9fa;        /* Clean Off-White */
  --md-card-bg: #ffffff;
  --md-text-dark: #1e293b;
  --md-text-muted: #64748b;
  --md-shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --md-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --md-shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

body {
  background-color: var(--md-bg-light);
  color: var(--md-text-dark);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

/* Material Elevation Cards */
.md-card {
  background: var(--md-card-bg);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--md-shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.md-card:hover {
  box-shadow: var(--md-shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(211, 47, 47, 0.3);
}

/* Material Header Styling */
.navbar-material {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: var(--md-shadow-sm);
}

.nav-link-md {
  color: #334155 !important;
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.85rem !important;
  transition: color 0.2s ease;
}

.nav-link-md:hover, .nav-link-md.active {
  color: var(--md-primary) !important;
}

/* Custom Interactive Tabs */
.md-tab-btn {
  background-color: #f1f5f9;
  color: #475569;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.md-tab-btn.active {
  background-color: var(--md-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}

/* Typing Effect */
.hero-word-shell {
  display: inline-block;
  min-width: 18ch;
  white-space: nowrap;
  vertical-align: bottom;
  line-height: 1.1;
}

#hero-typed {
  display: inline-block;
  min-width: 18ch;
  white-space: nowrap;
  vertical-align: bottom;
  line-height: 1.1;
  position: relative;
}

#hero-typed::after {
  content: '|';
  color: var(--md-primary);
  display: inline-block;
  margin-left: 0.06em;
  animation: blink 0.7s infinite;
  vertical-align: baseline;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (max-width: 640px) {
  .hero-word-shell,
  #hero-typed {
    min-width: 15ch;
  }
}

/* Bouncing / Floating Effect */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--md-primary);
}

/* Facebook page plugin full-width behavior in footer */
#footer-facebook .fb-page,
#footer-facebook .fb-page span,
#footer-facebook .fb-page iframe {
  width: 100% !important;
  max-width: 100% !important;
}