/* ===== TOROS ACADEMY - MAIN STYLES ===== */
/* Color Palette: #0D9488, #14B8A6, #065F5B, #CCFAF1 */

:root {
  /* Core palette */
  --primary: #2563EB;
  --secondary: #3B82F6;
  --dark: #171938;
  --light: #Dbeafe;
  --white: #ffffff;

  /* Semantic colors - LIGHT */
  --bg-body: #ffffff;
  --bg-alt: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --nav-bg: rgba(255, 255, 255, 0.7);
  --nav-border: rgba(148, 163, 184, 0.25);
  --nav-link-hover: var(--primary);
  --card-bg: #ffffff;
  --card-border: rgba(148, 163, 184, 0.2);

  --text: #0b1020;
  --text-muted: #6e6e73;
  --border: rgba(13, 148, 136, 0.15);
  --shadow: rgba(6, 95, 91, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Dark theme - override only variables here */
body.dark-theme {
  --bg-body: #020617;
  --bg-alt: #020617;
  --surface: #020617;
  --surface-soft: #0b1120;
  --nav-bg: #020617;
  --nav-border: rgba(30, 64, 175, 0.6);
  --nav-link-hover: #cbd5f5;
  --card-bg: #020617;
  --card-border: rgba(30, 64, 175, 0.6);

  /* Dark mode text colors – keep palette simple */
  --text: #ffffff;
  --text-muted: #cbd5f5;
}

body.dark-theme {
  color: var(--text);
  background: var(--bg-body);
}

/* Bootstrap provides .container, no need to override */

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== BUTTONS ===== */
.btn {
  position: relative;
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  overflow: hidden;
  cursor: pointer;
  font-size: 15px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--dark));
  color: var(--white);
  border:none;
}

.btn.primary:hover {
  background: linear-gradient(135deg, var(--primary), var(--dark));
  transform: translateY(-2px);
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.btn.primary:hover::before {
  left: 100%;
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn:hover {
  text-decoration: none;
}

.btn.secondary {
  background: var(--white);
  color: var(--text);
  border-color: rgba(11, 16, 32, 0.12);
  border:none;
}

.btn.secondary:hover {
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.btn.secondary:hover::before {
  left: 100%;
}

.btn.small {
  padding: 8px 16px;
  font-size: 14px;
}

/* Dark theme typographic + button tweaks */
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6 {
  color: var(--text);
}

body.dark-theme .btn.secondary {
  background: #ffffff;
  color: #0b1020;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .btn {
    padding: 10px 18px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .btn {
    padding: 10px 16px;
    font-size: 14px;
  }
}
