/* ===== Global Styles ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #0d0d0d;
  color: #fff;
  line-height: 1.6;
  text-align: center; /* Center all text by default */
}

/* ===== Navbar ===== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  color: #ff9800;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: 0.3s;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background: #ff9800;
  bottom: -4px;
  left: 0;
  transition: 0.3s;
}

nav a:hover::after { width: 100%; }
nav a:hover { color: #fff; }

/* ===== Hero ===== */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 150px 20px;
  min-height: 100vh;
  background: linear-gradient(135deg, #ff9800,#e65100);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  text-shadow: 0 0 20px #ff9800,0 0 40px #e65100;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  text-shadow: 0 0 10px #ff9800;
}

.hero-buttons a { margin: 0 10px; }

/* ===== Animated Gradient Background ===== */
@keyframes gradientShift {
  0% { background-position:0% 50%; }
  50% { background-position:100% 50%; }
  100% { background-position:0% 50%; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  background: #ff9800;
  color: #fff;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 20px #ff9800,0 0 40px #ff9800;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #e65100;
  transform: scale(1.1);
  box-shadow: 0 0 30px #ff9800,0 0 60px #ff9800;
}

/* Ownership Grid */
.owners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin: 50px 20px;
}

/* Ownership Card */
.owner-card {
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  width: 220px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 0 20px rgba(255,152,0,0.4);
  transition: all 0.5s ease;
  perspective: 1000px; /* for tilt effect */
}

.owner-card:hover {
  transform: rotateY(10deg) rotateX(5deg) scale(1.05);
  box-shadow: 0 0 40px rgba(255,152,0,0.7), 0 10px 20px rgba(0,0,0,0.2);
}

/* Inner content for smooth hover */
.owner-inner {
  transition: transform 0.5s ease;
}

/* Owner image */
.owner-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 2px solid #ff9800;
  box-shadow: 0 0 10px #ff9800;
}

/* Owner name */
.owner-card h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

/* Owner role */
.owner-card p {
  font-size: 1rem;
  color: #ffb74d;
  margin-bottom: 0;
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 30px 20px;
  background: #111;
  color: #ff9800;
  text-shadow: 0 0 10px #ff9800;
}

/* ===== Section Centering for Pages ===== */
section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 20px;
}

/* ===== Responsive ===== */
@media(max-width:768px) {
  nav { flex-direction: column; gap: 10px; }
  nav ul { flex-direction: column; gap: 15px; }
  .hero h1 { font-size: 2.8rem; }
  .hero p { font-size: 1.1rem; }
}

/* ===== Departments Grid ===== */
.departments-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin: 50px 20px;
}

/* Department Card */
.department-card {
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  width: 220px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 0 20px rgba(255,152,0,0.4);
  transition: all 0.5s ease;
  perspective: 1000px;
}

.department-card:hover {
  transform: rotateY(10deg) rotateX(5deg) scale(1.05);
  box-shadow: 0 0 40px rgba(255,152,0,0.7), 0 10px 20px rgba(0,0,0,0.2);
}

/* Inner content for smooth hover */
.department-inner {
  transition: transform 0.5s ease;
}

/* Department image */
.department-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 2px solid #ff9800;
  box-shadow: 0 0 10px #ff9800;
}

/* Department name */
.department-card h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

/* Department role/description */
.department-card p {
  font-size: 1rem;
  color: #ffb74d;
  margin-bottom: 0;
}

/* Reveal Animation (same as owner) */
.departments-grid .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.departments-grid .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Apply Section ===== */
.apply {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  gap: 30px;
}

.apply h2 {
  font-size: 2.5rem;
  color: #ff9800;
  text-shadow: 0 0 15px #ff9800;
}

.apply p {
  font-size: 1.2rem;
  max-width: 700px;
  margin-bottom: 20px;
  color: #fff;
}

.apply-benefits ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #ffb74d;
  font-weight: 600;
}

.apply-benefits li::before {
  content: "✔ ";
  color: #ff9800;
  font-weight: bold;
}

/* Embedded Form Styling */
.apply-form {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(255,152,0,0.4);
  transition: all 0.5s ease;
  max-width: 700px;
  width: 100%;
}

.apply-form iframe {
  width: 100%;
  height: 900px;
  border-radius: 15px;
  border: none;
  box-shadow: 0 0 15px #ff9800;
}

/* Hover effect */
.apply-form:hover {
  transform: scale(1.02);
  box-shadow: 0 0 40px #ff9800;
}

/* Responsive */
@media(max-width:768px) {
  .apply h2 { font-size: 2rem; }
  .apply p { font-size: 1rem; }
  .apply-form iframe { height: 800px; }
}

/* ===== Stats Section ===== */
.stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 20px;
  gap: 40px;
}

.stats h2 {
  font-size: 2.5rem;
  color: #ff9800;
  text-shadow: 0 0 15px #ff9800;
  margin-bottom: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 2200px;
}

.stat-card {
  background: rgba(255,255,255,0.05);
  border-radius: 30px;
  padding: 30px 20px;
  box-shadow: 0 0 20px rgba(255,152,0,0.4);
  transition: all 0.5s ease;
  text-align: center;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,152,0,0.2);
}

.stat-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px #ff9800, 0 10px 20px rgba(0,0,0,0.2);
}

.stat-card h3 {
  font-size: 1.5rem;
  color: #ff9800;
  margin-bottom: 10px;
  text-shadow: 0 0 10px #ff9800;
}

.stat-card p {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 10px #ff9800;
}

/* Reveal Animation */
.stats-grid .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.stats-grid .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media(max-width:768px) {
  .stats h2 { font-size: 2rem; }
  .stat-card h3 { font-size: 1.3rem; }
  .stat-card p { font-size: 1.5rem; }
}

/* ===== Rules Section ===== */
.rules h2 {
  font-size: 2.8rem;
  color: #ff9800;
  text-shadow: 0 0 20px #ff9800;
  margin-bottom: 50px;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
}

.rule-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 152, 0, 0.2);
  border-radius: 20px;
  padding: 25px 20px;
  box-shadow: 0 0 15px rgba(255, 152, 0, 0.4);
  transition: all 0.4s ease;
  backdrop-filter: blur(5px);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.rule-card h3 {
  font-size: 1.6rem;
  color: #ff9800;
  margin-bottom: 15px;
  text-shadow: 0 0 10px #ff9800;
}

.rule-card p {
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.6;
}

/* Optional: Emoji icons styling */
.rule-card::before {
  content: attr(data-icon);
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
}

.rule-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 40px #ff9800, 0 10px 20px rgba(0,0,0,0.3);
}

/* Reveal Animation */
.rules-grid .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.rules-grid .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media(max-width:768px) {
  .rules h2 { font-size: 2.2rem; }
  .rule-card h3 { font-size: 1.4rem; }
  .rule-card p { font-size: 1rem; }
}

/* ===== Join Section ===== */
.join {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 20px;
  background: linear-gradient(135deg, #ff9800, #e65100, #ffb74d, #ff6f00);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  min-height: 70vh;
}

.join-card {
  background: rgba(0, 0, 0, 0.6);
  padding: 50px 30px;
  border-radius: 25px;
  box-shadow: 0 0 30px rgba(255, 152, 0, 0.5), 0 10px 20px rgba(0,0,0,0.5);
  max-width: 700px;
  text-align: center;
  transition: all 0.4s ease;
}

.join-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 50px rgba(255, 152, 0, 0.8), 0 15px 25px rgba(0,0,0,0.6);
}

.join-card h2 {
  font-size: 2.8rem;
  color: #ff9800;
  margin-bottom: 20px;
  text-shadow: 0 0 15px #ff9800;
}

.join-card p {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Join Buttons */
.join-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.join-buttons .btn {
  padding: 15px 35px;
  font-size: 1.1rem;
  border-radius: 50px;
  background: linear-gradient(45deg, #ff9800, #e65100);
  box-shadow: 0 0 20px #ff9800, 0 0 40px #ff9800;
  transition: all 0.4s ease;
}

.join-buttons .btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 50px #ff9800, 0 0 80px #ff9800;
  background: linear-gradient(45deg, #ffb74d, #ff6f00);
}

/* Reveal Animation */
.join-card.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.join-card.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media(max-width:768px) {
  .join-card h2 { font-size: 2.2rem; }
  .join-card p { font-size: 1rem; }
  .join-buttons .btn { font-size: 1rem; padding: 12px 25px; }
}

.hero img {
  max-width: 500px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Mission statements under owners */
.owner-inner .mission {
  font-size: 0.95rem;
  color: #fff;
  margin-top: 10px;
  line-height: 1.4;
  text-align: center;
  font-style: italic;
  opacity: 0.9;
}

/* Logo Styling */
.logo img { 
  width: 60px;   /* smaller size */
  height: auto;
  border-radius: 12px; /* keep rounded edges */
  box-shadow: 0 3px 8px rgba(0,0,0,0.25); /* subtle shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 12px rgba(0,0,0,0.35);
}

/* ===== Hamburger Styling ===== */
.hamburger, .menu-toggle {
  display: none; /* hidden on desktop */
}

.hamburger {
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: #ff9800;
  transition: 0.3s;
}

.menu-toggle {
  font-size: 2rem;
  background: none;
  border: none;
  color: #ff9800;
  cursor: pointer;
}

/* ===== Mobile adjustments ===== */
@media(max-width:768px) {
  .hamburger, .menu-toggle { display: flex; }

  nav ul {
    display: none; /* hidden by default on mobile */
    flex-direction: column;
    width: 100%;
    background: rgba(0,0,0,0.95);
    position: absolute;
    top: 70px; /* below nav bar */
    left: 0;
    padding: 20px 0;
    z-index: 1000;
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;
  }

  nav ul.show, nav ul.active {
    display: flex;
  }

  nav ul li {
    margin: 15px 0;
  }

  nav { position: relative; }
}

/* ===== Footer ===== */
footer {
  background: #111;
  padding: 3rem 2rem 1.5rem;
  color: #bbb;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-about {
  flex: 1 1 250px;
}

.footer-logo {
  max-width: 60px;
  margin-bottom: 1rem;
}

.footer-links,
.footer-socials {
  flex: 1 1 150px;
}

.footer-links h4,
.footer-socials h4 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-links ul,
.footer-socials ul {
  list-style: none;
  padding: 0;
}

.footer-links li,
.footer-socials li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.footer-socials a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-socials a:hover {
  color: #ff9800;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid #222;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #777;
}

.footer-bottom a {
  color: #ff9800;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #e65100;
}