:root {
  --primary: #30f4e0; /*Softer and more attractive color */
  --primary-dark: #e0a820; /*Harmonized darker version */
  --primary-light: #ffe680; /*for hover effects */
  --accent: #f4c430;
  --black: #1a1a1a;
  --light: #f8f8f8;
  --gray: #888;
  --error: #ff3333;
  --success: #4caf50;
}

/* ================= BASE STYLES ================= */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom, #121212, #1a1a1a);
  color: var(--light);
  margin: 0;
  padding: 0;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ================= CONTAINER ================= */
.container {
  margin: 0 auto;
  padding: 0 20px;
  max-width: 1280px;
}

/* ================= HEADER STYLES ================= */
.site-header {
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.98),
    rgba(18, 18, 18, 0.95)
  );
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 8px 0;
  border-bottom: 2px solid var(--primary);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  padding: 6px 0;
  background: rgba(18, 18, 18, 0.9);
  min-height: 48px;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  flex-wrap: wrap;
  gap: 16px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 4px rgba(232, 185, 35, 0.7));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(232, 185, 35, 0.9));
}

.site-header.scrolled .logo {
  height: 40px;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.site-header.scrolled .site-title {
  font-size: 1.4rem;
}

/* ================= HAMBURGER MENU ================= */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  z-index: 1002;
}

.hamburger i {
  color: var(--primary);
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.hamburger:hover i {
  transform: rotate(90deg);
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 700;
  color: var(--light);
  padding: 10px 0;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.4s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  text-shadow: 0 0 6px rgba(232, 185, 35, 0.5);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  transition: width 0.3s ease, left 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 80%;
  left: 50%;
}

/* ================= AUTH STYLES ================= */
.auth-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 24px;
}

.auth-state {
  display: flex;
  gap: 12px;
  align-items: center;
}

.auth-btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  border: 1px solid var(--primary);
  background: rgba(30, 30, 30, 0.8);
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  box-sizing: border-box;
  text-decoration: none;
  backdrop-filter: blur(3px);
}

.auth-btn:hover {
  background: var(--primary);
  color: var(--black);
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(232, 185, 35, 0.4);
}

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

.auth-btn.primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 6px 12px rgba(232, 185, 35, 0.5);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(40, 40, 40, 0.8);
  border-radius: 20px;
  border: 1px solid rgba(232, 185, 35, 0.3);
  transition: all 0.3s ease;
  height: 36px;
  box-sizing: border-box;
}

.user-info:hover {
  background: rgba(50, 50, 50, 1);
  box-shadow: 0 0 10px rgba(232, 185, 35, 0.4);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 0 10px rgba(232, 185, 35, 0.6);
  transition: all 0.4s ease;
}

.user-info:hover .user-avatar {
  animation: tactical-pulse 1.5s infinite;
}

.user-name {
  font-size: 0.95rem;
  letter-spacing: 1.2px;
  cursor: pointer;
  color: var(--light);
}

.logout-form {
  margin: 0;
  padding: 0;
}

/* ================= BUTTONS ================= */
.btn {
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: all 0.4s ease;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(232, 185, 35, 0.5);
}

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

.btn-secondary:hover {
  background: var(--primary);
  color: var(--black);
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(232, 185, 35, 0.4);
}

/* ================= SECTION TITLE ================= */
.section-title {
  text-align: center;
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 48px;
  text-transform: uppercase;
  font-weight: 800;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), transparent);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ================= CTA SECTION ================= */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.75)),
    url("/static/lessons/images/gallery5.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
}

.cta-title {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-description {
  font-size: 1.2rem;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ================= FOOTER ================= */
.site-footer {
  background: linear-gradient(
    to top,
    rgba(26, 26, 26, 0.98),
    rgba(18, 18, 18, 0.95)
  );
  padding: 80px 0 0;
  border-top: 3px solid var(--primary);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}

.footer-column {
  margin-bottom: 24px;
  background: var(--black);
  color: var(--light);
  padding: 24px;
  border-radius: 10px;
  max-width: 320px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-column:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(232, 185, 35, 0.3);
}

.footer-logo {
  height: 50px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 6px rgba(232, 185, 35, 0.6));
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-about {
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 0.95rem;
  opacity: 0.9;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: var(--primary);
  font-size: 1.3rem;
  transition: all 0.4s ease;
}

.social-links a:hover {
  color: var(--light);
  transform: translateY(-4px);
}

.footer-heading {
  color: var(--primary);
  font-size: 1.4em;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  position: relative;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--primary-dark);
  transition: width 0.3s ease;
}

.footer-column:hover .footer-heading::after {
  width: 100%;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--light);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.4s ease;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 8px;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 2;
}

.contact-info li {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.contact-info li:hover {
  color: var(--primary);
}

.contact-info i {
  color: var(--primary);
  margin-right: 8px;
  margin-top: 4px;
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.contact-info li:hover i {
  transform: scale(1.1);
}

.contact-info .closed-text {
  color: var(--error);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 24px 0;
  text-align: center;
  background: rgba(18, 18, 18, 0.95);
}

.copyright {
  margin: 0;
  color: var(--gray);
  font-size: 0.95rem;
  opacity: 0.8;
}

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

.copyright a:hover {
  text-decoration: underline;
  color: var(--light);
}

/* ================= ANIMATIONS ================= */
@keyframes tactical-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 185, 35, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(232, 185, 35, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(232, 185, 35, 0);
  }
}

/* ================= RESPONSIVE STYLES ================= */
@media (max-width: 992px) {
  .hamburger {
    display: block;
    order: 3;
  }

  .nav-menu {
    position: fixed;
    top: 56px;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: calc(100vh - 56px);
    background: linear-gradient(
      to bottom,
      rgba(26, 26, 26, 0.98),
      rgba(18, 18, 18, 0.95)
    );
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border-top: 2px solid var(--primary);
    box-shadow: 3px 0 14px rgba(0, 0, 0, 0.7);
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
    left: 0;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 10px 0;
    width: 100%;
    text-align: left;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--primary);
    background: rgba(232, 185, 35, 0.15);
    padding-left: 12px;
  }

  .auth-links {
    margin-left: 0;
    margin-top: 16px;
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .auth-state {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .auth-btn {
    width: 100%;
    justify-content: center;
    padding: 10px;
    height: 38px;
  }

  .user-info {
    width: 100%;
    justify-content: center;
    padding: 10px;
  }

  .site-header .container {
    padding: 8px 12px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    padding: 12px;
  }
}

@media (max-width: 768px) {
  .site-title {
    font-size: 1.4rem;
  }

  .logo {
    height: 40px;
  }

  .hamburger i {
    font-size: 1.6rem;
  }

  .nav-menu {
    max-width: 280px;
  }

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

  .cta-title {
    font-size: 2.2rem;
  }

  .cta-description {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .site-title {
    font-size: 1.1rem;
  }

  .logo {
    height: 32px;
  }

  .nav-menu {
    max-width: 220px;
    padding: 16px;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .auth-btn {
    font-size: 0.85rem;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-heading {
    font-size: 1.2rem;
  }

  .footer-about {
    font-size: 0.9rem;
  }

  .contact-info li {
    font-size: 0.9rem;
  }

  .footer-column {
    max-width: 100%;
  }
}

.working-hours {
  margin-top: -20px;
}

.working-hours h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #fff; /* یا رنگ دلخواه */
}

.working-hours p {
  margin: 3px 0;
  font-size: 0.95rem;
  color: #ccc;
}

.working-hours .status {
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.working-hours .open {
  background-color: #28a745; /* سبز */
  color: #fff;
}

.working-hours .closed {
  background-color: #dc3545; /* قرمز */
  color: #fff;
}
