:root {
  --primary-color: #ff6b00;
  --secondary-color: #ffffff;
  --text-color: #333333;
  --background-color: #ffffff;
  --header-bg: #ffffff;
  --footer-bg: #f5f5f5;
}

[data-theme="dark"] {
  --primary-color: #ff6b00;
  --secondary-color: #1a1a1a;
  --text-color: #ffffff;
  --background-color: #1a1a1a;
  --header-bg: #1a1a1a;
  --footer-bg: #2a2a2a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

/* Header Styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--header-bg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

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

.logo h1 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex: 2;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: var(--secondary-color);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: all 0.3s;
  border-radius: 4px;
}

.dropbtn:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--header-bg);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-radius: 5px;
  padding: 0.5rem 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.dropdown-content.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-content a {
  color: var(--text-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s;
}

.dropdown-content a:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
}

/* Removed hover rule - using JavaScript click events instead */

.header-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.theme-toggle {
  display: flex;
  align-items: center;
}

.theme-btn {
  background: none;
  border: 1px solid var(--primary-color);
  cursor: pointer;
  padding: 0.5rem;
  color: var(--primary-color);
  transition: all 0.3s;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.theme-btn:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
}

.language-toggle {
  position: relative;
}

.language-btn {
  background: none;
  border: 1px solid var(--primary-color);
  cursor: pointer;
  padding: 0.5rem 1rem;
  color: var(--primary-color);
  transition: all 0.3s;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-btn:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
}

.language-btn i {
  font-size: 1rem;
}

.language-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--header-bg);
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  padding: 0.5rem 0;
  min-width: 200px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.language-toggle:hover .language-dropdown {
  display: block;
}

.language-dropdown li {
  padding: 0.5rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
}

.language-dropdown li:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
}

.language-dropdown .flag {
  margin-right: 0.5rem;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 1rem;
  }

  .nav-links {
    margin: 1rem 0;
    flex-direction: column;
    gap: 1rem;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
  }

  .header-controls {
    margin-top: 1rem;
  }
}

/* Main Content Styles */
main {
  padding: 2rem 5%;
}

.services-carousel {
  margin: 2rem 0;
  overflow: hidden;
  perspective: 1000px;
}

.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  animation: scroll 30s linear infinite;
  transform-style: preserve-3d;
}

.carousel-item {
  flex: 0 0 300px;
  margin: 0 1rem;
  text-align: center;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.carousel-item:hover {
  transform: rotateY(180deg);
}

.carousel-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  backface-visibility: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel-item h3 {
  margin-top: 1rem;
  color: var(--primary-color);
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 5px;
  border-radius: 5px;
  transform: translateZ(20px);
}

@keyframes scroll {
  0% {
    transform: translateX(0) rotateY(0);
  }
  100% {
    transform: translateX(-50%) rotateY(0);
  }
}

.carousel-item:nth-child(odd) {
  animation: flipOdd 3s infinite;
}

.carousel-item:nth-child(even) {
  animation: flipEven 3s infinite;
}

@keyframes flipOdd {
  0% {
    transform: rotateY(0);
  }
  50% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes flipEven {
  0% {
    transform: rotateY(180deg);
  }
  50% {
    transform: rotateY(360deg);
  }
  100% {
    transform: rotateY(540deg);
  }
}

/* Footer Styles */
footer {
  background-color: var(--footer-bg);
  padding: 3rem 5%;
  margin-top: 8rem;
  position: relative;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 5%;
  background-color: var(--footer-bg);
  flex-wrap: nowrap;
  gap: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background-color: var(--primary-color);
  border-radius: 5px;
}

.footer-bottom p {
  color: var(--secondary-color);
  font-weight: bold;
  margin: 0;
}

.footer-bottom .copyright {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.footer-bottom .designer {
  color: var(--primary-color);
  font-style: italic;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Animations */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .header-controls {
    margin-top: 1rem;
  }

  .carousel-item {
    flex: 0 0 250px;
  }

  .logo {
    flex-direction: column;
    gap: 0.5rem;
  }

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

/* Add cursor styles */
.dropbtn:hover,
.lang-btn:hover,
.theme-btn:hover,
.carousel-item:hover,
.social-link:hover,
.member-social a:hover,
.stakeholder-social a:hover {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewport='0 0 100 100' style='fill:black;font-size:24px;'><circle cx='16' cy='16' r='16' fill='%23ff6b00' stroke='white' stroke-width='2'/></svg>")
      16 16,
    auto;
}

/* Add hover effect for all interactive elements */
.dropbtn:hover,
.lang-btn:hover,
.theme-btn:hover,
.carousel-item:hover,
.social-link:hover,
.member-social a:hover,
.stakeholder-social a:hover {
  color: #ff6b00;
  transition: color 0.3s ease;
}

.footer-section .dropdown {
  position: relative;
  display: inline-block;
}

.footer-section .dropbtn {
  background-color: transparent;
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: color 0.3s ease;
}

.footer-section .dropbtn:hover {
  color: var(--primary-color);
}

.footer-section .dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--footer-bg);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-radius: 5px;
  padding: 0.5rem 0;
  top: 100%;
  left: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.footer-section .dropdown-content a {
  color: var(--text-color);
  padding: 8px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.footer-section .dropdown-content a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Create a hover area that includes both button and dropdown */
.footer-section .dropdown:hover .dropdown-content,
.footer-section .dropdown-content:hover {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* Add a small invisible area to prevent the dropdown from disappearing */
.footer-section .dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

@media (max-width: 768px) {
  .footer-section .dropdown-content {
    position: static;
    box-shadow: none;
    width: 100%;
    min-width: auto;
    opacity: 1;
    pointer-events: auto;
  }
}

/* Content Section Styles */
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.centered-title {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.chart-icon {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
}

.chart-icon svg {
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
}

.subtitle-orange {
  text-align: center;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 1rem 2rem;
  border-radius: 5px;
  margin: 1rem 0 2rem 0;
  display: inline-block;
  width: 100%;
}

.content-block {
  background-color: var(--background-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.content-block p {
  line-height: 1.6;
  margin-top: 1rem;
}

.globe-icon {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
}

.globe-icon svg {
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
}
