/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and Header */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0; /* Background color to show when page shifts */
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #0088ff;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Logo Styling */
.logo a {
    display: flex; /* Ensures proper alignment */
    align-items: center;
}

.logo img {
    height: 50px; /* Default for Windows (desktop) */
    width: auto; /* Keeps the aspect ratio */
    max-width: 100%; /* Prevents the image from overflowing */
}



/* For mobile devices */
@media (max-width: 768px) {
    .logo img {
        height: 40px; /* Adjust size for mobile */
    }
}

/* Ensure the logo and navigation align properly */
.logo {
    display: flex;
    align-items: center;
}

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background-color: white;
  color: white;
  font-family: Arial, sans-serif;
}

header a {
  text-decoration: none;
}

header {
  padding: 0 20px;
  background-color: #0088ff;
  height: 80px; /* ← increased from 50px to 80px */
  display: flex;
  justify-content: space-between;
  align-items: center; /* ← vertically centers items */
}


#brand {
  font-weight: bold;
  font-size: 18px;
  display: flex;
  align-items: center;
}

#brand a {
  color: #09c372;
}

ul {
  list-style: none;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

ul a {
  color: white;
}

ul li {
  padding: 5px;
  margin-left: 10px;
}

ul li:hover {
  transform: scale(1.1);
  transition: 0.3s;
}

/* Navigation */
.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center; /* ensures vertical centering */
  padding: 20px 50px;
  background-color: #0088ff;
  box-shadow: 0 2px 10px rgba(0, 136, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

body.light-mode .navigation {
  background-color: #0088ff;
  box-shadow: 0 2px 10px rgba(0, 136, 255, 0.1);
}

.navigation .logo img {
  max-height: 50px;
}

.navigation ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.navigation ul li a {
  text-decoration: none;
  color: inherit;
  padding: 12px 25px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: block;
}

.navigation ul li a:hover,
.navigation ul li a.active {
  background-color: #0090ff;
  color: #ffffff;
}

/* Hamburger menu styles */
#hamburger-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 20px;
  width: 25px;
  cursor: pointer;
  margin-left: auto;
  z-index: 2000;
}

#hamburger-icon div {
  width: 100%;
  height: 3px;
  background-color: #0088ff; /* Blue hamburger bars */
  margin: 3px 0; /* spacing */
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger open animation */
#hamburger-icon.open .bar1 {
  transform: rotate(-48deg) translate(-5px, 6px);
}

#hamburger-icon.open .bar2 {
  opacity: 0;
}

#hamburger-icon.open .bar3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Custom animated dropdown styles */
@media (min-width: 769px) {
  .desktop-dropdown {
    position: relative;
  }

  .desktop-dropdown .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #e3f2fd; /* Light blue background */
    border: none;
    box-shadow: 0 4px 10px rgba(0, 136, 255, 0.2);
    padding: 10px 0;
    border-radius: 8px;
    min-width: 180px;
    z-index: 1001;
    color: #003366; /* Dark blue text */
  }

  .desktop-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .desktop-dropdown .dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.6rem;
  }

  .dropdown-item {
    color: #003366;
    padding: 10px 20px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    white-space: nowrap;
  }

  .dropdown-item:hover {
    background-color: rgba(0, 136, 255, 0.2);
    color: #0088ff;
  }

  body.light-mode .dropdown-menu {
    background-color: #e3f2fd;
    color: #003366;
  }

  body.light-mode .dropdown-item {
    color: #003366;
  }

  body.light-mode .dropdown-item:hover {
    background-color: rgba(0, 136, 255, 0.2);
    color: #0088ff;
  }
}

/* Mobile menu base styles (light blue theme) */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 60px; /* below the header */
  right: 20px;
  background-color: #e3f2fd; /* Light blue background */
  color: #003366; /* Dark blue text */
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 136, 255, 0.3);
  z-index: 1100;
  max-width: 220px;
  max-height: 300px;
  overflow-y: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

/* Show mobile menu */
.mobile-menu.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu li {
  margin: 12px 0;
  border-bottom: 1px solid rgba(0, 136, 255, 0.3); /* subtle border */
}

/* Links inherit color from parent */
.mobile-menu li a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.mobile-menu li a:hover {
  background-color: rgba(0, 136, 255, 0.2);
  color: #0088ff; /* highlight color on hover */
}

/* Mobile submenu */
.mobile-dropdown .submenu {
  display: none;
  padding-left: 15px;
  margin-top: 5px;
}

.mobile-dropdown .submenu li {
  padding: 5px 0;
  font-weight: normal;
}

/* Toggle Button */
.toggle-mode {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #0088ff;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  z-index: 1100;
}

.toggle-mode:hover {
  background-color: #006bbd;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navigation ul {
    display: none; /* Hide desktop nav */
  }
  #hamburger-icon {
    display: flex; /* Show hamburger */
  }
}

h2 {
  text-align: center;
  margin: 30px 0 20px 0;
  font-weight: 700;
  color: #0088ff;
  letter-spacing: 1.5px;
}

/* Default hamburger bars (desktop or general) */
#hamburger-icon div {
  width: 100%;
  height: 3px;
  background-color: #0088ff; /* Blue by default */
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* On small screens, change hamburger bars to white */
@media (max-width: 768px) {
  #hamburger-icon div {
    background-color: white;
  }
}


/* Footer Section */
footer {
    background-color: #ffffff;
    color: white;
    padding: 20px;
    text-align: center;
}

footer a {
    color: #0088ff;
    text-decoration: none;
}

footer a:hover {
    color: #0088ff;
}

/* Social Media Container */
#socials-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
}

#socials-container a {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Style for social icons */
.socials {
    display: flex; /* Aligns icons horizontally */
    justify-content: center; /* Centers the icons */
    gap: 20px; /* Space between icons */
  }
  
  .social-icon {
    width: 40px; /* Fixed width for all icons */
    height: 40px; /* Fixed height for all icons */
    object-fit: contain; /* Ensures icons are not distorted */
    transition: transform 0.3s ease; /* Optional: Adds a smooth hover effect */
  }
  
  .social-icon:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
  }

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    #socials-container {
        gap: 15px;
    }

    .social-icon {
        width: 30px;
        height: 30px;
    }
}

/* Supporters section removed */

/* Media Query for Mobile (screen widths less than 768px) */
@media (max-width: 768px) {
    .hero {
        background-position: left center; /* Show the left side of the image */
        height: 50vh; /* Optional: You can adjust the height for mobile */
    }
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    flex-direction: row; /* Change to row to arrange the image and content side by side */
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 65vh;
    color: #ffffff;
    z-index: 1;
}

/* Content styling */
.hero .content {
    z-index: 1;
    padding-left: 20px; /* Add padding to give space between text and image */
}

/* Fullscreen background */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 40, 0.5);
  animation: fadeInBg 0.6s ease-in-out;
}

/* Modal content fly-in */
.modal-content {
  background: #ffffff;
  margin: 10% auto;
  padding: 30px 30px 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  position: relative;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  animation: flyIn 0.6s ease-out;
  font-family: 'Helvetica Neue', sans-serif;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  color: #888;
  cursor: pointer;
  transition: 0.3s;
}
.close-btn:hover {
  color: #333;
}

/* Review message */
.modal-content h2 {
  margin-bottom: 10px;
  font-size: 20px;
  color: #003366;
}

.modal-content p {
  font-size: 15px;
  color: #555;
}

html {
  scroll-behavior: smooth;
}

/* Smooth theme transitions to reduce eye strain */
@media (prefers-reduced-motion: no-preference) {
  html, body, header, .navigation, .news-hero, .news-card, .modal-content, footer, .toggle-mode {
    transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
  }
  .btn-cta, .dropdown-menu, .mobile-menu, .supporter-item {
    transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease, transform 250ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  html, body, header, .navigation, .news-hero, .news-card, .modal-content, footer, .toggle-mode,
  .btn-cta, .dropdown-menu, .mobile-menu, .supporter-item {
    transition: none !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

[id] {
  scroll-margin-top: 100px; /* or match your fixed header height */
}
