:root {
  --brand: #2d6df6;
  --brand-2: #2dc8f6;
  --dark: #0f172a;
  --muted: #64748b;
  --bg: #0b1022;
  --card: #0f1530;
  --radius: 1.25rem;
  --radius-full: 999px;
  --transition: all 1s ease;
}

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

body {
  font-family: "Arial", "Tahoma", sans-serif;
  background: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
  padding-top: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Animated Background Elements */
.bg-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  animation: floatComplex 12s ease-in-out infinite;
  opacity: 0.06;
}

.shape:nth-child(1) {
  width: 320px;
  height: 320px;
  background: #239cb6;
  top: 5%;
  right: -160px;
  animation-delay: 0s;
}

.shape:nth-child(2) {
  width: 250px;
  height: 250px;
  background: #f9b43a;
  bottom: 20%;
  left: -125px;
  animation-delay: -4s;
}

.shape:nth-child(3) {
  width: 180px;
  height: 180px;
  background: #7c320c;
  top: 40%;
  right: 15%;
  animation-delay: -8s;
}

.shape:nth-child(4) {
  width: 140px;
  height: 140px;
  background: #239cb6;
  top: 70%;
  left: 20%;
  animation-delay: -2s;
}

@keyframes floatComplex {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }

  25% {
    transform: translateY(-30px) rotate(90deg) scale(1.1);
  }

  50% {
    transform: translateY(-15px) rotate(180deg) scale(0.9);
  }

  75% {
    transform: translateY(-25px) rotate(270deg) scale(1.05);
  }
}

/* ====== NAVBAR ====== */
.navbar {
  position: sticky !important;
  top: 0;
  right: 0;
  z-index: 1000;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background-color: rgba(35, 155, 182, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

/* Logo */
.navbar img {
  position: relative;
  top: 5px;
  right: 210px;
  width: 60px;
  height: auto;
}
@media (max-width: 992px) {
  .navbar img {
    display: block;
    position: absolute;
    top: -10px;
    right: 180px;
    margin-inline-end: 0.75rem;
  }
}

/* Brand text */
.navbar-brand {
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff !important;
  margin-inline-end: 4.5rem;
}

/* Links */
.navbar-nav .nav-link {
  font-weight: 500;
  color: #f0f4f8 !important;
  transition: var(--transition);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
  color: #f9b43a !important;
}

/* Dropdown */
.dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.dropdown-item {
  font-weight: 500;
  color: #222;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.dropdown-item:hover {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff !important;
}

/* Submenu RTL fix */
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu > .dropdown-menu {
  top: 0;
  right: 100%;
  left: auto;
  margin-top: -0.25rem;
}
@media (min-width: 992px) {
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
}

/* Navbar when scrolled */
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.285) !important;
}

/* Toggler */
.navbar-toggler {
  border: none;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-toggler-icon {
  filter: invert(1);
}

/* Reading Progress */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 5px;
  background: linear-gradient(90deg, #f9b43a, #239cb6, #7c320c, #f9b43a);
  background-size: 200% 100%;
  z-index: 1000;
  transition: width 0.3s ease;
  animation: progressGlow 3s ease-in-out infinite;
}

@keyframes progressGlow {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Header */
header {
  text-align: center;
  padding: 80px 20px 60px;
  position: relative;
}

.logo {
  font-size: 4rem;
  font-weight: bold;
  color: #7c320c;
  margin-bottom: 20px;
  text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
  animation: logoGlow 5s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  from {
    text-shadow: 4px 4px 10px rgba(124, 50, 12, 0.3),
      0 0 30px rgba(249, 180, 58, 0.2);
  }

  to {
    text-shadow: 4px 4px 10px rgba(124, 50, 12, 0.3),
      0 0 50px rgba(249, 180, 58, 0.6);
  }
}

.page-title {
  font-size: 2.2rem;
  color: #239cb6;
  font-weight: 700;
  margin-bottom: 10px;
}

.tagline {
  font-size: 1.2rem;
  color: #7c320c;
  opacity: 0.9;
  font-weight: 500;
}

/* Section Cards */
.section-card {
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  border-radius: 35px;
  margin: 40px 20px;
  padding: 50px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
  animation: slideUp 1.4s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

@keyframes slideUp {
  from {
    transform: translateY(80px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.section-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(90deg, #f9b43a, #239cb6, #7c320c, #f9b43a);
  border-radius: 35px 35px 0 0;
  background-size: 300% 100%;
  animation: gradientFlow 8s ease-in-out infinite;
}

@keyframes gradientFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 4px solid rgba(124, 50, 12, 0.12);
  position: relative;
}

.section-header::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #f9b43a, #239cb6);
  transition: width 1.5s ease-in-out;
}

.section-card:hover .section-header::after {
  width: 100%;
}

.section-icon {
  font-size: 4rem;
  animation: iconBounce 4s infinite;
  transition: all 0.4s ease;
}

@keyframes iconBounce {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  20% {
    transform: scale(1.15) rotate(10deg);
  }

  40% {
    transform: scale(1.05) rotate(-5deg);
  }

  60% {
    transform: scale(1.1) rotate(8deg);
  }

  80% {
    transform: scale(1.02) rotate(-3deg);
  }
}

.section-title {
  font-size: 2.4rem;
  color: #7c320c;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mission Section */
.mission-text {
  font-size: 1.25rem;
  color: #333;
  line-height: 1.9;
  text-align: justify;
  background: rgba(249, 180, 58, 0.12);
  padding: 30px;
  border-radius: 20px;
  border-right: 6px solid #f9b43a;
  margin-bottom: 30px;
  position: relative;
}

/* Values Section */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.value-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 35px;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  border-color: #f9b43a;
}

.value-card:nth-child(2):hover {
  border-color: #239cb6;
}

.value-card:nth-child(3):hover {
  border-color: #7c320c;
}

.value-card:nth-child(4):hover {
  border-color: #f9b43a;
}

.value-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: valueIconFloat 3s ease-in-out infinite;
}

.value-card:nth-child(2) .value-icon {
  animation-delay: -1s;
}

.value-card:nth-child(3) .value-icon {
  animation-delay: -2s;
}

.value-card:nth-child(4) .value-icon {
  animation-delay: -3s;
}

@keyframes valueIconFloat {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.value-title {
  font-size: 1.4rem;
  color: #7c320c;
  margin-bottom: 15px;
  font-weight: 700;
}

.value-description {
  color: #666;
  line-height: 1.6;
  font-size: 1.1rem;
}

/* Benefits Section */
.benefits-container {
  margin-top: 40px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 35px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  transition: all 0.4s ease;
  cursor: pointer;
}

.benefit-item:hover {
  background: rgba(249, 180, 58, 0.15);
  transform: translateX(-10px);
}

.benefit-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #239cb6;
  min-width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f9b43a, #239cb6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: numberPulse 2s infinite;
}

@keyframes numberPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.benefit-content h3 {
  font-size: 1.5rem;
  color: #7c320c;
  margin-bottom: 10px;
  font-weight: 700;
}

.benefit-content p {
  color: #555;
  line-height: 1.6;
  font-size: 1.1rem;
}

/* Document Section */
.document-intro {
  margin-bottom: 40px;
}

.document-text {
  font-size: 1.2rem;
  color: #333;
  line-height: 1.8;
  text-align: justify;
  background: rgba(35, 156, 182, 0.12);
  padding: 25px;
  border-radius: 18px;
  border-right: 6px solid #239cb6;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.content-item {
  background: rgba(255, 255, 255, 0.8);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.content-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
  border-color: #f9b43a;
}

.item-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: itemIconSpin 8s linear infinite;
}

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

  to {
    transform: rotate(360deg);
  }
}

.content-item h4 {
  font-size: 1.3rem;
  color: #7c320c;
  margin-bottom: 15px;
  font-weight: 700;
}

.content-item p {
  color: #666;
  line-height: 1.6;
  font-size: 1rem;
}

/* Spirit Section */
.spirit-content {
  display: grid;
  gap: 50px;
  align-items: center;
}

.spirit-text p {
  font-size: 1.25rem;
  color: #333;
  line-height: 1.8;
  text-align: justify;
  background: rgba(124, 50, 12, 0.12);
  padding: 30px;
  border-radius: 20px;
  border-right: 6px solid #7c320c;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Highlight Effects */
.highlight-orange {
  color: #f9b43a;
  font-weight: 700;
  position: relative;
  padding: 3px 6px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.highlight-brown {
  color: #7c320c;
  font-weight: 700;
  position: relative;
  padding: 3px 6px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.highlight-blue {
  color: #239cb6;
  font-weight: 700;
  position: relative;
  padding: 3px 6px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.highlight-orange:hover,
.highlight-brown:hover,
.highlight-blue:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
  text-shadow: 0 0 15px currentColor;
}

/* Responsive Design */
@media (max-width: 968px) {
  .spirit-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .logo {
    font-size: 3rem;
  }

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

  .section-card {
    margin: 30px 15px;
    padding: 35px 25px;
  }

  .section-header {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

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

  .values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .benefit-item {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

/* Loading animation */
.loaded {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9800, #fdd047);
  color: #fff;
  font-size: 28px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.section-icon:hover {
  transform: scale(1.1);
}

.item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9800, #ffc107);
  color: #fff;
  font-size: 28px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.item-icon:hover {
  transform: scale(1.1);
}
