/* 1.All start */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  opacity: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: black;
  transition: opacity 0.3s ease-in;
}

body, 
.navbar, 
.nav-menu, 
.button-cover,
.about-section,
.vision-card, 
.mission-card,
.section-title,
.about-text,
.subsection-title, 
.footer,
.footer-bottom {
  transition: background-color 0.2s ease, color 0.2s ease;
}


.wrapper {
  transform: translateY(40px);
  transition: transform 0.3s ease-out;
}

body.loaded {
  opacity: 1;
}

body.loaded .wrapper {
  transform: translateY(0px);
}
/* 1.All end */

/* 2.Navbar start */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #A90C2C;
  color: white;
  padding: 10px 20px;
  flex-wrap: wrap;
  font-weight: 600;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
}

.brand img {
  height: 50px;
  margin-right: 10px;
}

.brand-text span {
  font-weight: bold;
  display: block;
}

.brand-text small {
  font-size: 14px;
}

.menu-toggle {
  font-size: 28px;
  color: white;
  background: none;
  border: none;
  display: none;
  cursor: pointer;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

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

.menu-text {
  color: white;
  text-decoration: none;
  position: relative;
}

.menu-text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.menu-text:hover::after,
.menu-text.current-page::after {
  transform: scaleX(1);
}

.button-cover {
  background: #464646;
  color: white;
  padding: 8px 16px;
  border-radius: 30px;
  border: none;
  text-decoration: none;
}

.button-cover:hover {
  font-weight: bold;
}

.theme-toggle-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: white;
}

/* Responsivity for navbar  */
@media (max-width: 872px) {
  .menu-toggle {
    display: block;
  }

  .button-cover {
    padding: 0px 0px !important;
    padding-left: 15px !important;
    background: none !important;
  }
  
  .nav-menu {
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    width: 100%;
    background: #A90C2C;
    margin-top: 10px;
    padding-bottom: 10px;
    opacity: 0;
    transform: translateY(-10px); 
    transition: max-height 0.3s ease, opacity 0.2s ease, transform 0.3s ease;
  }

  .nav-menu li a {
    display: block;
    padding: 12px 16px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    color: white;
    text-decoration: none;
  }

  .nav-menu.show {
    transform: translateY(0px); 
    max-height: 300px; 
    opacity: 1;
  }

  .theme-toggle-btn {
    padding-left: 10px;
  }
}
/* 2.Navbar End */

/* 3.About Section Start */
.about-section {
  padding: 120px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.section-title {
  font-size: 32px;
  margin-bottom: 40px;
  color: #333;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-bottom: 60px;
  text-align: center;
}

.about-text {
  text-align: justify;
  max-width: 850px;
  font-size: 18px;
  line-height: 1.6;
  color: #444;
}

.about-image {
  flex: 1 1 300px;
  max-width: 450px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.subsection-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #222;
}

.vision-cards, .mission-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.vision-card, .mission-card {
  background-color: #ffffff;
  padding: 20px;
  width: 280px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

.vision-card .icon, .mission-card .icon {
  font-size: 32px;
  color: #e63946; 
  margin-bottom: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
}

.vision-card:hover .icon, .mission-card:hover .icon {
  transform: translateY(-5px);
}

/* 3.About Section End */

/* 4.Footer Start */
.footer {
  background-color: #a90c2c; 
  color: white;
  padding: 40px 20px 20px;
  font-family: 'Montserrat', sans-serif;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-left {
  text-align: center;
  justify-content: center;
}

.footer-logo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-logo-title img {
  height: 40px;
  width: auto;
}

.footer-title {
  font-size: 24px;
  margin-bottom: 10px;
}

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

.social-label {
  color: #f5d442; 
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
}

.footer-social {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-social a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #f5d442;
}

.footer-bottom {
  text-align: center;
  margin-top: 50px;
  font-size: 14px;
  color: #f0f0f0;
}

/* Responsivity for footer */
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    max-width: 1100px;
    margin: 0 auto;
  }

  .footer-left,
  .footer-right {
    flex: 1;
  }
}
/* 4.Footer End */


/* DARK MODE CHANGES */

/* 1.All Start */
body.dark-mode {
  background-color: #121212;
  color: white;
}
/* 1.All End */

/* 2.Navbar Start */
body.dark-mode .navbar {
  background-color: #1e1e1e;
}

body.dark-mode .nav-menu {
  background-color: #1e1e1e;
}

body.dark-mode .button-cover {
  background-color: #333;
}
/* 2.Navbar End*/

/* 3.About Section Start */
body.dark-mode .about-section {
  background-color: #1a1a1a;
  color: white;
}

body.dark-mode .section-title {
  color: white;
}

body.dark-mode .about-text {
  color: white;
}

body.dark-mode .subsection-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: white;
}

body.dark-mode .vision-card,
body.dark-mode .mission-card {
  background-color: #2b2b2b;
  color: white;
}

/* 3.About Section End */

/* 4.Footer Start */
body.dark-mode .footer {
  background-color: #1e1e1e;
}

body.dark-mode .footer-bottom {
  color: #aaa;
}

body.dark-mode .footer-social a:hover {
  color: #f5d442;
}
/* 4.Footer End */



