/* ============================================================
   ثروة طيبة - Tharwa Taiba
   Main Stylesheet
   جمعية تقنيات الثروة الحيوانية التعاونية بالمدينة المنورة
   ============================================================ */

/* ============ CSS VARIABLES ============ */
:root {
  /* Primary Colors - Teal/Turquoise Theme */
  --primary-color: #006d77;
  --primary-dark: #004d55;
  --primary-light: #00858f;
  --primary-darker: #003d44;

  /* Accent Colors */
  --accent-color: #83c5be;
  --accent-light: #edf6f9;
  --gold: #24aaa5;
  --gold-light: #5dc4c0;

  /* Neutral Colors */
  --bg-color: #f8f9fa;
  --bg-alt: #ffffff;
  --text-color: #333333;
  --text-light: #666666;
  --text-muted: #888888;
  --white: #ffffff;
  --black: #000000;
  --border-color: #e0e0e0;

  /* State Colors */
  --success: #2ecc71;
  --warning: #f39c12;
  --error: #e74c3c;
  --info: #3498db;

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
  --gradient-dark: linear-gradient(
    135deg,
    var(--primary-darker) 0%,
    var(--primary-dark) 100%
  );
  --gradient-gold: linear-gradient(
    135deg,
    var(--gold) 0%,
    var(--gold-light) 100%
  );
  --gradient-accent: linear-gradient(135deg, #24aaa5 0%, #5dc4c0 100%);
  --gradient-overlay: linear-gradient(
    180deg,
    rgba(0, 77, 85, 0.7) 0%,
    rgba(0, 45, 50, 0.9) 100%
  );

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0, 109, 119, 0.08);
  --shadow: 0 4px 20px rgba(0, 109, 119, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 109, 119, 0.15);
  --shadow-xl: 0 20px 60px rgba(0, 109, 119, 0.2);
  --shadow-hover: 0 16px 48px rgba(0, 109, 119, 0.2);
  --shadow-card: 0 8px 32px rgba(0, 109, 119, 0.12);

  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Spacing System (8px grid) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 50%;

  /* Container */
  --container-max: 1400px;
  --container-padding: 20px;

  /* Navbar */
  --navbar-height: 80px;
}

/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family:
    "Tajawal",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open {
  overflow: hidden;
}

/* ============ TYPOGRAPHY ============ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cairo", "Tajawal", sans-serif;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-color);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}
h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}
h4 {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-light);
}

a {
  font-family: "Cairo", "Tajawal", sans-serif;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
}

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

ul {
  list-style: none;
}

/* ============ UTILITY CLASSES ============ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ SKIP LINK ============ */
.skip-link {
  position: absolute;
  top: -50px;
  right: 0;
  background: var(--primary-color);
  color: var(--white);
  padding: var(--space-sm) var(--space-md);
  z-index: 10000;
  transition: top 0.3s ease;
  border-radius: 0 0 0 var(--radius);
  font-weight: 500;
}

.skip-link:focus {
  top: 0;
  color: var(--white);
}

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  height: 3px;
  width: 0;
  background: var(--gradient-gold);
  z-index: 10001;
  transition: width 0.1s linear;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: "Cairo", "Tajawal", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.6s ease,
    height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}

.btn i {
  transition: var(--transition);
}

.btn:hover i {
  transform: translateX(-4px);
}

/* ============ SECTION STYLES ============ */
section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title {
  color: var(--primary-color);
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}

.section-line {
  width: 80px;
  height: 4px;
  background: var(--gradient-gold);
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-header-light .section-title {
  color: var(--white);
}

.section-header-light .section-subtitle {
  color: var(--accent-light);
}

.section-line-light {
  background: var(--gradient-gold);
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: var(--space-sm) 0;
}

.navbar .container {
  max-width: 100%;
  padding: 0 var(--space-2xl);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo img {
  height: 60px;
  width: auto;
  transition: var(--transition);
  /* White filter for dark backgrounds (before scroll) */
  filter: brightness(0) invert(1);
}

.navbar.scrolled .logo img {
  height: 50px;
  /* Normal colors for light background (after scroll) */
  filter: none;
}

/* Logo white filter for dark backgrounds */
.logo-white {
  filter: brightness(0) invert(1);
}

.logo-normal {
  filter: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  padding: var(--space-xs) 0;
}

.navbar.scrolled .nav-link {
  color: var(--text-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--primary-color);
}

.navbar.scrolled .nav-link::after {
  background: var(--primary-color);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--white);
  position: relative;
  transition: var(--transition);
  border-radius: 2px;
}

.navbar.scrolled .hamburger {
  background: var(--primary-color);
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

.mobile-toggle.active .hamburger {
  background: transparent;
}

.mobile-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--primary-color);
}

.mobile-toggle.active .hamburger::after {
  bottom: 0;
  transform: rotate(-45deg);
  background: var(--primary-color);
}

/* ============ HERO SECTION ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-2xl);
  max-width: 900px;
}

.hero-logo {
  margin-bottom: var(--space-xl);
}

.hero-logo img {
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  filter: brightness(0) invert(1) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.hero-title {
  font-family: "Tajawal", sans-serif;
  color: #ddf3bc;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-description {
  color: var(--accent-light);
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: var(--space-2xl);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--white);
  opacity: 0.8;
  animation: bounce 2s ease-in-out infinite;
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--white);
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--white);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.85rem;
  font-weight: 500;
}

/* ============ REGISTRATION BANNER ============ */
.registration-banner {
  background: var(--white);
  padding: var(--space-2xl) 0;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 10;
}

.registration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.registration-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--accent-light);
  border-radius: var(--radius);
  transition: var(--transition);
}

.registration-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.registration-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.registration-content {
  display: flex;
  flex-direction: column;
}

.registration-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.registration-value {
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 700;
}

/* ============ ABOUT SECTION ============ */
.about {
  background: var(--bg-color);
}

.about-intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto var(--space-3xl);
}

.about-intro p {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-color);
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.about-card {
  background: var(--white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: var(--transition);
}

.about-card:hover::before {
  transform: scaleX(1);
}

.about-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
}

.about-card-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--primary-color);
  border-radius: var(--radius-full);
  font-size: 2rem;
  margin: 0 auto var(--space-lg);
  transition: var(--transition);
}

.about-card:hover .about-card-icon {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.1) rotate(5deg);
}

.about-card h3 {
  margin-bottom: var(--space-md);
  color: var(--primary-color);
}

.about-card p {
  color: var(--text-light);
  margin-bottom: 0;
}

.values-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.value-tag {
  background: var(--accent-light);
  color: var(--primary-color);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.about-card:hover .value-tag {
  background: var(--primary-color);
  color: var(--white);
}

/* ============ SERVICES SECTION ============ */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
}

.service-card {
  background: var(--bg-color);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.9);
}

.service-card.aos-animate {
  opacity: 1;
  transform: scale(1);
}

.service-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 0;
  background: var(--gradient-primary);
  transition: var(--transition-slow);
  z-index: 0;
}

.service-card:hover::before {
  height: 100%;
}

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

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 1.75rem;
  margin: 0 auto var(--space-md);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.15) rotate(10deg);
  background: var(--gold);
  box-shadow: 0 8px 25px rgba(212, 165, 116, 0.4);
}

.service-card h3 {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  color: var(--primary-color);
  transition: var(--transition);
}

.service-card:hover h3 {
  color: var(--white);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
  transition: var(--transition);
}

.service-card:hover p {
  color: var(--accent-light);
}

/* ============ GOALS SECTION ============ */
.goals {
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.goals::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.goals > .container {
  position: relative;
  z-index: 1;
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.goal-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.goal-card.aos-animate {
  opacity: 1;
  transform: translateY(0);
}

.goal-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-gold);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.goal-card:hover::before {
  opacity: 1;
}

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

.goal-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.goal-number {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.15);
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  transition: var(--transition);
  line-height: 1;
}

.goal-card:hover .goal-number {
  color: rgba(255, 255, 255, 0.3);
}

.goal-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  margin-top: var(--space-xl);
}

.goal-card p {
  color: var(--accent-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.goal-card:hover h3,
.goal-card:hover p {
  color: var(--white);
}

/* ============ MEMBERSHIP SECTION ============ */
.membership {
  background: var(--bg-color);
}

.membership-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  align-items: stretch;
}

.membership-card {
  background: var(--white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);
}

.membership-card.aos-animate {
  opacity: 1;
  transform: translateY(0);
}

.membership-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
}

.membership-card-featured {
  background: var(--gradient-primary);
  color: var(--white);
  transform: scale(1.05);
}

.membership-card-featured.aos-animate {
  transform: scale(1.05);
}

.membership-card-featured:hover {
  transform: scale(1.05) translateY(-12px);
}

.membership-badge {
  position: absolute;
  top: -12px;
  right: var(--space-xl);
  background: var(--gold);
  color: var(--white);
  padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 700;
}

.membership-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--primary-color);
  border-radius: var(--radius-full);
  font-size: 2rem;
  margin: 0 auto var(--space-lg);
  transition: var(--transition);
}

.membership-card-featured .membership-icon {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.membership-card:hover .membership-icon {
  transform: scale(1.1) rotate(-5deg);
}

.membership-card h3 {
  margin-bottom: var(--space-lg);
  color: var(--primary-color);
}

.membership-card-featured h3 {
  color: var(--white);
}

.membership-features {
  text-align: right;
  margin-bottom: var(--space-xl);
  flex-grow: 1;
}

.membership-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

.membership-card-featured .membership-features li {
  color: var(--accent-light);
}

.membership-features li i {
  color: var(--success);
  font-size: 0.85rem;
}

.membership-card-featured .membership-features li i {
  color: var(--gold);
}

.membership-card .btn {
  width: 100%;
  justify-content: center;
}

.membership-card-featured .btn-primary {
  background: var(--white);
  color: var(--primary-color);
  border-color: var(--white);
}

.membership-card-featured .btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* ============ CONTACT SECTION ============ */
.contact {
  background: var(--white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-info {
  opacity: 0;
  transform: translateX(30px);
}

.contact-info.aos-animate {
  opacity: 1;
  transform: translateX(0);
}

.contact-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateX(-8px);
}

.contact-item:last-of-type {
  border-bottom: none;
}

.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(168, 196, 91, 0.15);
  color: #a8c45b;
  border-radius: var(--radius-full);
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-item:hover .contact-icon {
  background: #a8c45b;
  color: var(--white);
}

.contact-content h4 {
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.contact-content p,
.contact-content a {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.contact-content a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.social-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
  color: var(--text-color);
  border-radius: var(--radius-full);
  font-size: 1.25rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-5px) scale(1.1);
}

.social-link-whatsapp:hover {
  background: #25d366;
}

.contact-map {
  width: 100%;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  margin-top: var(--space-2xl);
  margin-bottom: calc(-1 * var(--space-4xl));
}

.contact-map.aos-animate {
  opacity: 1;
  transform: translateY(0);
}

.contact-map iframe {
  display: block;
  width: 100%;
  min-height: 450px;
}

/* ============ CONTACT FORM ============ */
.contact-form-wrapper {
  background: var(--bg-color);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(30px);
}

.contact-form-wrapper.aos-animate {
  opacity: 1;
  transform: translateY(0);
}

.form-title {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.form-title i {
  color: var(--gold);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-color);
}

.form-group label .required {
  color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--space-md);
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-color);
  color: var(--text-color);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 109, 119, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-left: 40px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-submit {
  align-self: flex-start;
  min-width: 200px;
}

.btn-submit.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-submit.loading i {
  animation: spin 1s linear infinite;
}

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

.form-status {
  padding: var(--space-md);
  border-radius: var(--radius);
  font-weight: 500;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(46, 204, 113, 0.1);
  color: var(--success);
  border: 1px solid var(--success);
}

.form-status.error {
  display: block;
  background: rgba(231, 76, 60, 0.1);
  color: var(--error);
  border: 1px solid var(--error);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--gradient-dark);
  padding: var(--space-4xl) 0 0;
  color: var(--white);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-logo {
  width: 100px;
  height: 50%;
  margin: 0 auto var(--space-md);
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  color: var(--accent-light);
  font-size: 0.95rem;
  margin-bottom: var(--space-xs);
}

.footer-registration {
  color: var(--gold) !important;
  font-weight: 500;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-links h4::after,
.footer-contact h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.footer-links ul li {
  margin-bottom: var(--space-sm);
}

.footer-links ul li a {
  font-family: "Tajawal", sans-serif;
  font-weight: 500;
  color: var(--accent-light);
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-block;
}

.footer-links ul li a:hover {
  color: var(--gold);
  transform: translateX(-5px);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  color: var(--accent-light);
  font-size: 0.95rem;
}

.footer-contact p i {
  color: var(--gold);
  width: 20px;
}

.footer-contact a {
  color: var(--accent-light);
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: #a8c45b;
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: var(--space-xl) 0;
}

.footer-bottom p {
  color: var(--accent-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ============ FLOATING BUTTONS ============ */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-xl);
  left: var(--space-xl);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 1.75rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: var(--white);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

/* ============ TEAL ACCENT GLOW & GRADIENT EFFECTS ============ */
@keyframes tealPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(36, 170, 165, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(36, 170, 165, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(36, 170, 165, 0);
  }
}

@keyframes tealShimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes tealGlow {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(36, 170, 165, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(36, 170, 165, 0.6);
  }
}

.section-line {
  position: relative;
  overflow: hidden;
}

.section-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  animation: tealShimmer 2.5s ease-in-out infinite;
}

.registration-icon {
  animation: tealPulse 3s ease-in-out infinite;
  background: var(--gold);
}

.about-card::before {
  background: linear-gradient(90deg, #24aaa5, #5dc4c0, #24aaa5);
  background-size: 200% auto;
}

.about-card:hover::before {
  animation: tealShimmer 1.5s linear infinite;
}

.service-card:hover .service-icon {
  background: var(--gold);
  box-shadow: 0 8px 25px rgba(36, 170, 165, 0.4);
  animation: tealGlow 2s ease-in-out infinite;
}

.goal-card:hover {
  border-color: #24aaa5;
}

.membership-badge {
  animation: tealPulse 2.5s ease-in-out infinite;
}

.btn-primary {
  position: relative;
  background-size: 200% auto;
  background-image: linear-gradient(
    135deg,
    #24aaa5 0%,
    #5dc4c0 50%,
    #24aaa5 100%
  );
  transition:
    background-position 0.5s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-primary:hover {
  background-position: right center;
  box-shadow: 0 8px 25px rgba(36, 170, 165, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #24aaa5;
  box-shadow: 0 0 0 4px rgba(36, 170, 165, 0.15);
}

.contact-item:hover .contact-icon {
  background: #a8c45b;
  animation: tealPulse 2s ease-in-out infinite;
}

.social-link:hover {
  background: #a8c45b;
}

.footer-social a:hover {
  background: #a8c45b;
}

.back-to-top:hover {
  background: #24aaa5;
  box-shadow: 0 8px 20px rgba(36, 170, 165, 0.4);
}

.scroll-progress {
  background: linear-gradient(90deg, #24aaa5, #5dc4c0);
}

/* ============ ANIMATIONS ============ */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

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

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation Classes */
.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in.delay-1 {
  animation-delay: 0.3s;
}

.animate-fade-in.delay-2 {
  animation-delay: 0.6s;
}

.animate-fade-in.delay-3 {
  animation-delay: 0.9s;
}

body.loaded .animate-fade-in {
  animation-play-state: running;
}

/* AOS-like animations */
[data-aos] {
  opacity: 0;
  transition: var(--transition-slow);
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-left"] {
  transform: translateX(30px);
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}

[data-aos="zoom-in"] {
  transform: scale(0.9);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* ============ FOCUS STATES ============ */
:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-float,
  .animate-fade-in,
  [data-aos] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============ PRINT STYLES ============ */
@media print {
  .navbar,
  .back-to-top,
  .whatsapp-float,
  .hero-buttons,
  .scroll-indicator,
  .scroll-progress {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 50px 20px;
  }

  section {
    page-break-inside: avoid;
  }

  body {
    font-size: 12pt;
    color: #000;
  }
}

/* ============ RESPONSIVE DESIGN ============ */

/* Large Tablets - 1200px */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .goals-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

/* Tablets - 1024px */
@media (max-width: 1024px) {
  :root {
    --navbar-height: 70px;
  }

  .navbar .container {
    padding: 0 var(--space-lg);
  }

  .about-cards {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .membership-cards {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .membership-card-featured {
    transform: none;
    order: -1;
  }

  .membership-card-featured.aos-animate {
    transform: none;
  }

  .membership-card-featured:hover {
    transform: translateY(-12px);
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .contact-form-wrapper {
    order: 2;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    grid-column: span 2;
  }
}

/* Mobile - 768px */
@media (max-width: 768px) {
  :root {
    --container-padding: 16px;
  }

  section {
    padding: var(--space-3xl) 0;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-2xl);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-link {
    color: var(--text-color);
    font-size: 1.2rem;
  }

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

  .hero-content {
    padding: var(--space-xl) var(--space-md);
  }

  .hero-logo img {
    max-width: 200px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .scroll-indicator {
    display: none;
  }

  .registration-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .registration-item {
    flex-direction: column;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .goals-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-map iframe {
    min-height: 300px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: auto;
  }

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

  .footer-brand {
    grid-column: auto;
  }

  .footer-links h4::after,
  .footer-contact h4::after {
    right: 50%;
    transform: translateX(50%);
  }

  .footer-links ul li a:hover {
    transform: none;
  }

  .footer-contact p {
    justify-content: center;
  }

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

  .whatsapp-float,
  .back-to-top {
    bottom: var(--space-lg);
  }

  .whatsapp-float {
    left: var(--space-lg);
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
  }

  .back-to-top {
    right: var(--space-lg);
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}

/* Small Phones - 480px */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .navbar .container {
    padding: 0 var(--space-md);
  }

  .logo img {
    height: 45px;
  }

  .navbar.scrolled .logo img {
    height: 40px;
  }

  .hero-logo img {
    max-width: 160px;
  }

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

  .hero-description {
    font-size: 0.95rem;
  }

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

  .registration-item {
    flex-direction: row;
    text-align: right;
  }

  .about-card,
  .service-card,
  .goal-card,
  .membership-card {
    padding: var(--space-lg);
  }

  .about-card-icon,
  .membership-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .service-icon {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
  }

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

  .social-link {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .btn {
    padding: var(--space-md) var(--space-lg);
    font-size: 0.95rem;
  }
}
