/* 
=======================================================================================================
                        STYLE.CSS - MAIN STYLESHEET FOR P360 NGO WEBSITE                              =
CSS is intentionally used for the entire style of the website for consistency and maintainability.    =
=======================================================================================================
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "montserrat", sans-serif;
}

/* ===== HEADER & FOOTER STYLES ===== */

/* Base Variables */
:root {
  --primary-color: #008080;
  --primary-light: rgba(0, 128, 128, 0.1);
  --primary-dark: #006666;
  --text-dark: #333;
  --text-light: #666;
  --white: #ffffff;
  --background-light: #fafafa;
  --border-color: #e0e0e0;
  --shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  --radius: 8px;
}

/* ===== WELCOME & TRANSLATION BAR ===== */
.subheading-container {
  background: var(--background-light);
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.welcome-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-icon {
  color: var(--primary-color);
  font-size: 1rem;
}

.welcome-text {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

/* Translation Section */
.translation-section {
  position: relative;
}

.translate-btn {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.translate-btn:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
}

.translate-icon {
  color: var(--primary-color);
  font-size: 1rem;
}

#currentLang {
  font-weight: 500;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 10px 0;
  min-width: 180px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1000;
  margin-top: 5px;
}

.language-dropdown.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.language-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.language-list li {
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-dark);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-list li:hover {
  background: var(--primary-light);
  color: var(--primary-color);
}

.language-list li.active {
  background: var(--primary-light);
  color: var(--primary-color);
  font-weight: 500;
}

.language-list li i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

/* ===== MAIN HEADER ===== */
.header {
  background: var(--white);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.9;
}

.logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo-texts h1 {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  line-height: 1;
}

.logo-texts p {
  color: var(--text-light);
  font-size: 0.85rem;
  margin: 0;
  font-weight: 500;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-links li a:hover {
  color: var(--primary-color);
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Dropdown (if you enable it later) */
.nav-links li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 10px 0;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1000;
    list-style-type: none;
}

.nav-links li:hover ul {
  display: block;
  animation: fadeIn 0.3s ease;
}

.nav-links li ul li {
  width: 100%;
}

.nav-links li ul li a {
  padding: 12px 20px;
  display: block;
  color: var(--text-dark);
  font-size: 0.95rem;

}

.nav-links li ul li a:hover {
  background: var(--primary-light);
  color: var(--primary-color);
}

.dropdown-icon {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.nav-links li:hover .dropdown-icon {
  transform: rotate(180deg);
}

/* Header Button */
.header-btn a {
  background: var(--primary-color);
  color: var(--white);
  padding: 12px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
  border: 2px solid var(--primary-color);
}

.header-btn a:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 128, 128, 0.2);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
  color: var(--primary-color);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--background-light);
  padding: 80px 20px 40px;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 60px;
  margin-bottom: 60px;
}

/* Footer About */
.footer-about {
  max-width: 350px;
}

.footer-logo img {
  height: 60px;
  width: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.footer-about p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 30px;
  font-size: 1rem;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}

.social-links i {
  font-size: 1.1rem;
}

/* Footer Links */
.footer-links h4 {
  color: var(--text-dark);
  margin-bottom: 25px;
  font-size: 1.2rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links li a {
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: inline-block;
  padding: 4px 0;
  position: relative;
}

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

.footer-links li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.footer-links li a:hover::after {
  width: 100%;
}

/* Footer Bottom */
.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.footer-bottom a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .nav-links {
    gap: 30px;
  }

  .footer-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .subheading-container {
    padding: 10px 15px;
  }

  .welcome-text {
    font-size: 0.85rem;
  }

  .translate-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .header {
    padding: 15px 0;
  }

  .nav-container {
    padding: 0 15px;
  }

  .mobile-menu-btn {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  nav.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links li a {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-links li a::after {
    display: none;
  }

  .nav-links li ul {
    position: static;
    border: none;
    box-shadow: none;
    padding-left: 20px;
    display: none;
  }

  .nav-links li ul.active {
    display: block;
  }

  .nav-links li ul li a {
    padding: 12px 0;
    font-size: 0.9rem;
  }

  .header-btn {
    display: none;
  }

  /* Overlay for mobile menu */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
  }

  .nav-overlay.active {
    display: block;
  }

  .footer {
    padding: 60px 15px 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-about {
    max-width: 100%;
    text-align: center;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    padding-top: 30px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 40px;
  }

  .logo-texts h1 {
    font-size: 1.5rem;
  }

  .logo-texts p {
    font-size: 0.75rem;
  }

  .footer {
    padding: 40px 15px 20px;
  }

  .footer-logo img {
    height: 50px;
  }

  .social-links a {
    width: 35px;
    height: 35px;
  }

  .social-links i {
    font-size: 1rem;
  }

  .footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }

  .footer-links li a {
    font-size: 0.9rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Logo animation on hover */
.logo {
  position: relative;
  overflow: hidden;
}

.logo::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 128, 128, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.logo:hover::after {
  left: 100%;
}

/* Social icons animation */
.social-links a {
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-color);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.social-links a:hover::before {
  transform: scale(1);
}

.social-links a i {
  position: relative;
  z-index: 1;
}

/* Mobile menu icon animation */
.mobile-menu-btn {
  position: relative;
  width: 30px;
  height: 30px;
}

.mobile-menu-btn i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.mobile-menu-btn .fa-times {
  opacity: 0;
}

.mobile-menu-btn.active .fa-bars {
  opacity: 0;
}

.mobile-menu-btn.active .fa-times {
  opacity: 1;
}

/* Language dropdown arrow animation */
.translate-btn .fa-chevron-down {
  transition: transform 0.3s ease;
}

.translate-btn.active .fa-chevron-down {
  transform: rotate(180deg);
}

/* Additional Styles */
/* Sticky header animation */
.header,
.subheading-container {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Active navigation link style */
.nav-links li a.active {
  color: var(--primary-color);
}

.nav-links li a.active::after {
  width: 100%;
}

/* Translation notification styles */
.translation-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: var(--white);
  padding: 15px 20px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 128, 128, 0.3);
  z-index: 10000;
  animation: slideInRight 0.3s ease;
  max-width: 300px;
}

@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

/* Add these styles to style.css */

/* Mobile menu overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: none;
}

.nav-overlay.active {
  display: block;
}

/* Mobile menu close button */
.mobile-menu-btn .fa-times {
  display: none;
}

.mobile-menu-btn.active .fa-bars {
  display: none;
}

.mobile-menu-btn.active .fa-times {
  display: inline-block;
}

/* Language dropdown arrow animation */
.translate-btn .fa-chevron-down {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.translate-btn.active .fa-chevron-down {
  transform: rotate(180deg);
}

/* Ensure dropdown is above other content */
.language-dropdown {
  z-index: 1001;
}

/* Fix for mobile menu positioning */
@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

  nav.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links li a {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .header-btn {
    display: none;
  }

  /* Add overlay when menu is open */
  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .nav-overlay {
    display: block;
  }
}
