:root {
  --main-yellow: #ffdd00;
  --main-blue: #0072bd;
  --main-green: #00ad13;
  --main-white: #fff;
  --main-background: #0f1f2f;
}

body {
  margin:0;
  font-family:"Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, #0f2b45 0%, #0b5a2f 100%) !important;
  color:#fff;
}


/* NAVBAR */

#navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background-color: var(--main-background);
    transition: background-color 0.3s ease;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;

  }
  
  #navbar.scrolled {
    background-color: rgba(15, 31, 47, 0.6);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

/* 1.1 NavBar logo */ 
  
.navbar-left .logo {
    height: 2rem;
}

/* 1.2 NavBar Menu Options */ 
  
.navbar-center {
    flex: 1;
    text-align: center;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 1.5rem;
}

.nav-option{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none; /* Optional: remove underline */
    color: inherit; /* Optional: inherit text color */
}

.nav-option i{
    width: 1.5em;
    height: 1.5em;
    color: 	var(--main-yellow);
    font-size: 1.2rem;
}

.nav-option span{
    text-decoration: none;
    color: 	var(--main-yellow);
    font-weight: 500;
    font-size: 0.98em;
}

.nav-links li.active a span,
.nav-links li.active a i{
    color: 	var(--main-green);
}

/* 1.3 NavBar Language Flags */

.navbar-right {
    display: flex;
    align-items: center;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    background-color: var(--main-background);
    border: 1px solid #ccc;
    z-index: 10;
}

.lang-switcher {
    position: relative;
    display: inline-block;
}
  
.current-lang img {
    width: 2.5em;
    height: 2.5em;
    cursor: pointer;
}

.lang-switcher:hover .dropdown {
    display: block;
}

.dropdown img {
    width: 2.5em;
    height: 2.5em;
    margin: 5px;
}

.lang-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-color, #000);
  margin: 5px;
  font-size: 0.8rem;
}

.lang-option span {
  margin-top: 2px;
  color: var(--main-yellow);
}

.lang-option:hover span {
  text-decoration: underline;
}

.current-lang {
  display: flex;
  flex-direction: column;
  align-items: center;
}



@media(max-width:1000px){
  .nav-option i{
    font-size: 0.7rem;
  }

  .navbar-left{
    padding-right: 10px;
  }

  .nav-option span{
    font-size: 0.7rem
  }

  #navbar{
    padding-left: 10px;
    padding-right: 10px;
  }

}

/* FOOTER */

footer {
    background-color: var(--main-background); /* black footer */
    color: white;
    padding: 1rem 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.footer-logo {
    width: 100px;
    height: 100px;
    overflow: hidden;
}

.footer-logo img{
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.contact-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.contact-info a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    color: inherit;          /* make it use the parent text color */
    text-decoration: none;   /* remove the underline */
}

.contact-info a i{
  padding-top: 5px;
  font-size: 1.2rem;
}

.contact-info a span{
  font-size: 1rem;
}

.icon {
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 4px;
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 0.5rem;
}


@media(max-width:500px){
  footer {
    padding: 1rem 0.5rem;
  }
}


/* Home page */
.visually-hidden {
  position: absolute !important; /* Take it out of the flow */
  width: 80px;                     /* Minimal width */
  height: 80px;                    /* Minimal height */
  margin: 0;
  padding: 0;
  overflow: hidden;               /* Hide overflow */
  clip: rect(0 0 0 0);            /* Clip it fully */
  white-space: nowrap;            /* Prevent wrapping */
  border: 0;
}

/* Hero Section */
.hero {
  position: relative;
  height: 60vh;
  width: 100%;
  top: 80px;
}

.hero-img{
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.hero-img img{
    height: 100%; 
    width: 100%;
    object-fit: cover;
    object-position: center 0%; /* 👈 move image up (lower focus) */
}

.hero-overlay {
  position: absolute;
  bottom: -130px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
}

/* Feature Cards */
.feature-card {
  background: #0f1f2f; /* darker card for contrast */
  border-radius: 12px;
  padding: 2rem 1.5rem;
  width: 250px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 8px solid var(--main-yellow); /* default, overridden individually */
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.feature-card i {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0.5rem 0;
  color: #fff;
  font-size: 1.2rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: #ddd;
  line-height: 1.4;
}

/* Assign different border colors for each card */
.feature-card:nth-child(1) { border-left-color: var(--main-yellow); }
.feature-card:nth-child(2) { border-left-color: var(--main-blue); }
.feature-card:nth-child(3) { border-left-color: var(--main-green); }

/* In the News Section */
.news {
  max-width: 1100px;
  margin: 6rem auto 3rem auto;
  padding: 0 1rem;
}

.news-header {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--main-yellow);
  text-align:center;
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.article-card {
  min-width: 100%;
  background: #0f1f2f;
  border-radius: 12px;
  box-shadow:0 6px 20px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.article-card img {
  width:100%;
  height:300px;
  object-fit:cover;
}

.article-card-content {
  padding:1.5rem;
}

.article-title{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.article-title h4 {
  margin:0 0 .5rem 0;
  color: var(--main-blue);
}


.article-title p{
  color: var(--main-green);
  font-size: 0.8rem;
  font-weight: 700;
  padding-bottom: 8px;
}


.article-card-content desc{
  margin:0;
  color:#ddd;
  line-height:1.5;
}

/* Carousel Arrows */
.carousel-arrow {
  position: absolute;
  top:50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color:#fff;
  border:none;
  font-size:1.5rem;
  padding:0.5rem 0.8rem;
  cursor:pointer;
  border-radius:50%;
  z-index:10;
}
.arrow-left { left:10px; }
.arrow-right { right:10px; }

/* About Preview Section */
.about-preview {
  max-width:1100px;
  margin:4rem auto;
  padding:0 1rem;
  text-align:center;
}

.about-preview p {
  max-width:700px;
  margin:0 auto 2rem auto;
  line-height:1.6;
  color:#ddd;
  font-size:1.05rem;
}

.home-button{
  background: var(--main-blue);
  color:#fff;
  border:none;
  padding:0.75rem 2rem;
  border-radius:8px;
  cursor:pointer;
  font-size:1rem;
  transition: background 0.3s ease;
}

.home-button:hover {
  background: var(--main-green);
}

.margin-top{
  margin-top: 40px;
}

/* Our Project Section */
.our-project {
  max-width:1100px;
  margin:15rem auto 3rem auto;
  padding:0 1rem;
  text-align:center;
}

.our-project h2 {
  color: var(--main-yellow);
  font-size:2rem;
  margin-bottom:2rem;
}

.project-carousel {
  position: relative;
  overflow: hidden;
  border-radius:12px;
}

.project-carousel-track {
  display:flex;
  transition:transform 0.5s ease;
}

.project-carousel-track img {
  width:100%;
  flex-shrink:0;
  object-fit:cover;
}

/* Responsive */
@media(max-width:1000px){
  .hero-overlay {
    display: block;
    bottom: -50px;
    gap: 5%;
  }


  .feature-card {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60vw;
    padding: 1rem 1rem;
    margin: 10px;
    gap: 20px;
  }

  .feature-card p{
    font-size: 0.5rem;
    padding-right: 10px;
  }

  .feature-card i{
    font-size: 1.5rem;
  }

  .feature-card h3{
    font-size: 0.7rem;
  }

  .our-project{
    margin: 10rem auto 3rem auto;
  }


  .article-card img { height:200px; }
}

/*PROJECT page*/

   .project-container{
      max-width:1100px;
      margin:3rem auto;
      padding:2rem;
    }

    .project-header{
      text-align:center;
      color:var(--main-yellow);
      font-size:2.6rem;
      margin-bottom:0.8rem;
    }

    .project-subtitle{
      color:#fff;
      text-align:center;
      max-width:820px;
      margin:0 auto 2.5rem;
      line-height:1.6;
      font-size:1.1rem;
    }

    .project-banner{
      width:100%;
      height:380px;
      border-radius:12px;
      overflow:hidden;
      margin-bottom:2rem;
      box-shadow:0 8px 24px rgba(0,0,0,0.18);
    }
    .project-banner img{
      width:100%;
      height:100%;
      object-fit:cover;
    }

    .project-card{
      background:var(--main-background);
      border-radius:12px;
      padding:2rem;
      box-shadow:0 8px 24px rgba(0,0,0,0.12);
      margin-bottom:2rem;
      border-left:8px solid var(--main-blue);
    }

    .project-card h2{
      margin-top:0;
      color:var(--main-blue);
      font-size:1.6rem;
    }

    .project-card p{
      color:var(--main-white);
      line-height:1.6;
    }

    .project-stats{
      display:flex;
      gap:1.5rem;
      flex-wrap:wrap;
      margin-top:1.5rem;
    }

    .stat{
      display:flex;
      align-items:center;
      gap:.6rem;
      color:#D3D3D3;
      font-size:.98rem;
      background:rgba(255, 255, 255, 0.03);
      padding:.6rem .9rem;
      border-radius:8px;
    }

    .stat i{
      color:var(--main-green);
      font-size:1.2rem;
      min-width:1.2rem;
      text-align:center;
    }

    @media(max-width:1000px){
      .project-stats{ flex-direction:column; gap:1rem; }
      .project-banner{ height:240px; }

      .stat{
        font-size:1.1rem;
      }

      .stat i{
        font-size:1.7rem;
      }

    }

/* About Us page */
       .about-container{
      max-width:1100px;
      margin:3rem auto;
      padding:2rem;
    }

    .about-heading{
      text-align:center;
      color:var(--main-yellow);
      font-size:2.6rem;
      letter-spacing:1px;
      margin-bottom:0.5rem;
    }

    .about-intro{
      color:#fff;
      text-align:center;
      max-width:820px;
      margin:0 auto 2.5rem;
      line-height:1.6;
    }

    .projects-title{
        font-size: 2rem;
        margin-bottom: 2rem;
        color: var(--main-yellow);
        text-align:center;
    }

    .about-projects{
      display:grid;
      gap:1.5rem;
    }

    .aboutProject-card{
      display:flex;
      background:#0f1f2f;
      border-radius:12px;
      overflow:hidden;
      box-shadow:0 8px 24px rgba(0,0,0,0.12);
      border-left:8px solid var(--main-yellow);
      transition:transform .22s ease, box-shadow .22s ease;
    }
    .aboutProject-card:hover{
      transform:translateY(-6px);
      box-shadow:0 18px 36px rgba(0,0,0,0.18);
    }

    .aboutProject-card img{
      width:40%;
      object-fit:cover;
      display:block;
      height:100%;
      transition:transform .6s ease;
    }
    .aboutProject-card:hover img{ transform:scale(1.06); }

    .aboutProject-content{
      padding:1.5rem;
      display:flex;
      flex-direction:column;
      justify-content:space-between;
      width:60%;
    }

    .aboutProject-content h2{
      margin:0 0 .6rem 0;
      color:var(--main-blue);
      font-size:1.4rem;
    }
    .aboutProject-content p{
      margin:0 0 1rem 0;
      color:var(--main-white);
      line-height:1.5;
    }

    .aboutProject-stats{
      display:flex;
      gap:1.5rem;
      flex-wrap:wrap;
    }

    /* Responsive */
    @media (max-width:1000px){
      .aboutProject-card{ flex-direction:column; }
      .aboutProject-card img{ width:100%; height:220px; }
      .aboutProject-content{ width:95%; }
      .about-projects{ gap:1rem; }
      .aboutProject-stats{ flex-direction:column; gap:1rem; }
    }

    @media (max-width:700px){
      .aboutProject-content{ width:90%; }
    }
