:root {
  --brand: #2d6df6;
  --brand-2: #2dc8f6;
  --dark: #0f172a;
  --muted: #94a3b8;
  --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: 0px;
}

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

/* ====== 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);
}

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

.intro-text {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 30px;
  text-align: justify;
  background: rgba(249, 180, 58, 0.1);
  padding: 20px;
  border-radius: 15px;
  border-right: 4px solid #f9b43a;
}

.shape {
  position: absolute;
  border-radius: 50%;
  animation: float 10s ease-in-out infinite;
  opacity: 0.08;
}

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

.shape:nth-child(2) {
  width: 280px;
  height: 280px;
  background: #f9b43a;
  bottom: 15%;
  left: -140px;
  animation-delay: -3s;
}

.shape:nth-child(3) {
  width: 200px;
  height: 200px;
  background: #7c320c;
  top: 35%;
  right: 12%;
  animation-delay: -6s;
}

.shape:nth-child(4) {
  width: 160px;
  height: 160px;
  background: #239cb6;
  top: 65%;
  left: 18%;
  animation-delay: -9s;
}

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

  33% {
    transform: translateY(-20px) rotate(120deg) scale(1.1);
  }

  66% {
    transform: translateY(-10px) rotate(240deg) scale(0.9);
  }
}

/* Reading Progress */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #f9b43a, #239cb6, #7c320c);
  z-index: 1000;
  transition: width 0.3s ease;
}

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

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

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

  to {
    text-shadow: 3px 3px 8px rgba(124, 50, 12, 0.3),
      0 0 40px rgba(249, 180, 58, 0.5);
  }
}

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

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

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

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

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

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

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

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

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

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

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

.section-icon {
  font-size: 3.5rem;
  animation: iconPulse 3s infinite;
  transition: all 0.3s ease;
}

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

  25% {
    transform: scale(1.1) rotate(5deg);
  }

  50% {
    transform: scale(1.05) rotate(-3deg);
  }

  75% {
    transform: scale(1.08) rotate(2deg);
  }
}

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

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

.value-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 25px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
}

.value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f9b43a, #239cb6);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.value-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  border-color: rgba(249, 180, 58, 0.3);
}

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

.value-icon {
  font-size: 3rem;
  margin-bottom: 18px;
  animation: valueIconFloat 4s ease-in-out infinite;
  display: inline-block;
}

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

  50% {
    transform: translateY(-8px) rotate(5deg);
  }
}

.value-card:hover .value-icon {
  animation-play-state: paused;
  transform: scale(1.2) rotate(10deg);
}

.value-card h3 {
  font-size: 1.5rem;
  color: #7c320c;
  margin-bottom: 18px;
  font-weight: 700;
}

.value-card p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Vision and Mission Cards */
.vm-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 25px;
  padding: 40px;
  margin-top: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.vm-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(249, 180, 58, 0.1) 0%,
    rgba(35, 156, 182, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.vm-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  position: relative;
  z-index: 2;
}

.vm-icon {
  font-size: 2.8rem;
  animation: vmIconSpin 8s linear infinite;
}

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

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

.vm-title {
  font-size: 2rem;
  color: #7c320c;
  font-weight: 700;
}

.vm-content {
  position: relative;
  z-index: 2;
}

.vm-text {
  font-size: 1.2rem;
  color: #333;
  line-height: 1.8;
  text-align: justify;
}

/* Mission List */
.mission-list {
  list-style: none;
  padding: 0;
  margin-top: 25px;
}

.mission-list li {
  padding: 15px 0;
  font-size: 1.15rem;
  color: #444;
  line-height: 1.8;
  position: relative;
  padding-right: 35px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.mission-list li:last-child {
  border-bottom: none;
}

.mission-list li::before {
  content: "★";
  position: absolute;
  right: 0;
  top: 15px;
  color: #f9b43a;
  font-size: 1.4rem;
  animation: starTwinkle 2s ease-in-out infinite;
}

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

  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

.mission-list li:hover {
  color: #222;
  background: rgba(249, 180, 58, 0.1);
  padding: 15px 20px;
  border-radius: 12px;
  margin: 8px 0;
  transform: translateX(-5px);
}

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

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

.highlight-blue {
  color: #239cb6;
  font-weight: 700;
  position: relative;
  padding: 2px 4px;
  border-radius: 4px;
  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 10px currentColor;
}

/* Responsive Design */
@media (max-width: 768px) {
  .logo {
    font-size: 2.8rem;
  }

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

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

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

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

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

  .vm-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

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

.section-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9800, #f7cc49);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-icon i {
  color: #fff;
  font-size: 28px;
}

.principle-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9800, #ffc107);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.principle-icon i {
  color: #fff;
  font-size: 28px;
}
