* {
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #d2d0ce;
    --secondary-color: #3a4750;
    --tertiary-color: #dadbdd;

    --dark-color: #141e2a;
    --white-color: #fbfafa;
    --accent: #f95959;
    --accent-soft: #240a0a;

    --container-normal: 1100px;
    --container-wide: 1400px;
    --container-narrow: 700px;
}
html{
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing:antialiased;
    font-family: "Roboto", sans-serif;
    margin:0;
    padding:0;
    letter-spacing: 0.5px;
}

h1{
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 3px;
}

h2{
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

h3{
    font-size: 1.5rem;
    text-align: center;
    font-weight: 500;
    font-style: italic;
}

h4{
    font-size: 1.5rem;
    text-align: center;
    font-weight: 700;
    padding: 20px 0;
}

h5{
    font-size: 1.25rem;
    text-align: center;
    font-weight: 700;
    padding: 20px 0;
}

p {
    font-size: 1.25rem;
    margin: 1rem 0;
}

a {
    text-decoration: none;
    color: var(--dark-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent);
    opacity:0.8;
    cursor: pointer;
    border: 1px solid var(--dark-color);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    transition: transform 0.1s ease;
    color:var(--white-color);
    text-transform: uppercase;
    font-weight: 900;
}

.btn:hover {
    transform: translateY(-1px);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 4px 4px var(--accent-soft);
    opacity: .9;
}

.btn:active{
    transform: scale(0.9);
}

.italic {
    font-style: italic;
}

i{
    color:var(--dark-color);
}

.btn i {
    padding-right: 5px;
    color: var(--white-color);
}

/*------------------------------*/
/*      Structure               */
/*------------------------------*/

.section {
    margin: 0;
    padding: 4rem 0;
}

.container {
    max-width: var(--container-normal);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-lg {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid{
    display:grid;
    gap:2rem;
    align-items:center;
    align-items: start; /* Aligns all grid items to the top */
}

.col-1{
    grid-template-columns: 1fr;
}
.col-2{
    grid-template-columns: repeat(2, 1fr);
    
}
.col-3{
    grid-template-columns: repeat(3, 1fr);
}
.col-4{
    grid-template-columns: repeat(4, 1fr);
}
.col-auto{
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.flex {
    display: flex;
}
.align-center{
    align-items: center;
}
.align-start{
    align-items: start;
}

/*------------------------------*/
/*      Utility               */
/*------------------------------*/
.bg-primary {
    background: var(--primary-color);
    color: var(--dark-color);
}

.bg-dark {
    background: var(--dark-color);
    color: var(--primary-color);
}
.bg-dark i{
    color: var(--primary-color);
}

.bg-darker {
    background: var(--dark-color);
    color: var(--white-color);
}

.bg-dark .bg-primary {
    padding: 0 0.3rem;
}

.justify-centre{
    justify-items:center;
}

/*------------------------------------------*/
/* Animation                                */
/*------------------------------------------*/
.fade-in {
  opacity: 0;
  transform: translateY(20px); /* slightly pushed down */
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }
.fade-in:nth-child(5) { transition-delay: 0.5s; }
.fade-in:nth-child(6) { transition-delay: 0.6s; }
.fade-in:nth-child(7) { transition-delay: 0.7s; }
.fade-in:nth-child(8) { transition-delay: 0.8s; }
.fade-in:nth-child(9) { transition-delay: 0.9s; }
.fade-in:nth-child(10) { transition-delay: 1.0s; }

/*------------------------------------------*/
/* Section Header */
/*------------------------------------------*/
.section-header {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 50px;
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-header h3 {
    padding-top: 2rem;
}

.heading-border {
    width: 64px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto;
}

/*------------------------------------------*/
/* Navbar */
/*------------------------------------------*/
.navbar {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    font-weight: 700;
    z-index: 1000;
    transition: background-color 0.5s ease-in-out;
}

.navbar.navbar-scroll {
    background-color: rgba(25, 25, 25, 0.7);
    backdrop-filter: blur(10px);
}

.navbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar img {
    width: 81px;
    height: 32px;
}

.navbar .main-menu-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar a {
    color: var(--primary-color);
}

.navbar a:hover {
    opacity: 0.8;
}

.navbar a.active{
    opacity:1;
    border-bottom:2px solid var(--accent);
}
/*------------------------------------------*/
/* Hero */
/*------------------------------------------*/

.hero {
    background-color:  #05070d;
}

.hero h1 {
    padding-bottom: 2.5rem;
    color:var(--primary-color);
    text-transform: capitalize;
}

.hero h2 {
    padding-bottom: 2rem;
    color:var(--primary-color);
}

.hero .hero-content p {
    padding-bottom: 2rem;
    color:var(--primary-color);
    text-align: center;
}

.hero .btn {
    display: inline-block;
    margin-top: 2rem;
}

.hero {
  position: relative;
  min-height: 500px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #111111; /* Dark fallback background */
  overflow: hidden;
}

/* Pseudo-element creates the low-opacity background layer */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("/img/update.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.50; /* Sets exactly 20% opacity */
  z-index: 1;
}

/* Ensures content stays completely sharp and readable on top */
.hero-content {
  position: relative;
  z-index: 2;
    padding-top: 6rem;
    text-align: center;
    color: var(--primary-color);
}

/*------------------------------*/
/*    roadmap Section            */
/*------------------------------*/

.roadmap-content{
    padding: 2rem 0;
}
.roadmap h3{
    text-align: left;
    text-decoration: underline;
    padding-bottom: 5px;
}
.roadmap-content p{
    text-align: left;
}

.roadmap ul{
    padding-bottom: 2rem ;
}

.roadmap ul li i{
    padding-right: 1rem ;
     color: var(--white-color);
}
.roadmap ul li {
    padding-bottom:1rem;
    color: var(--white-color);
    text-align: left;
    font-size: 1.25rem;
}

/*------------------------------*/
/*     technology Section      */
/*------------------------------*/
.technology-item img {
    border-radius: 10px;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.3);
}

.technology-item:hover {
    opacity: 0.9;
}

.technology-item {
    position: relative;
}

.technology-item .technology-info {
    transition: 0.5s ease;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

.technology-item img:hover {
    cursor: grab;
}

.technology-item:hover .technology-image {
    opacity: 0.5;
    transition: 0.5s ease;
}

.technology-item:hover .technology-info {
    opacity: 1;
}

.technology-item .technology-text {
    background-color: var(--dark-color);
    color: var(--primary-color);
    font-size: 1rem;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.7);
}

/*------------------------------*/
/*     how Section          */
/*------------------------------*/

/* Card */
.card {
    padding: 2rem 1.75rem;
    background: var(--primary-color);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.3);
    min-height: 425px;
}

.card h4{
    font-size: 1.75rem;
}
.card p{
    text-align: center;
}

.card:hover{
    transform: translateY(-6px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    cursor:grab;
}

.card .icon-holder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-holder{
    transition: transform 0.3s ease;
}

.card:hover .icon-holder{
    transform:rotate(8deg)
}

.card i {
    margin-right: 5px;
    padding: 0;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
justify-content: center;
padding:30px 0;
}

.tech-tag {
  padding: 0.3rem 0.7rem;
  border-radius: 999px; /* makes it pill shaped */
  font-size: 0.85rem;
  font-weight: 500;
  transition: transform 0.2s ease;
  background: var(--accent-soft);
  color: var(--dark-color);
  font-style: italic;
  letter-spacing: 1px;
   box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.tech-tag:hover {
  cursor:grab;
  transform: scale(1.15);
}

/*------------------------------------------*/
/* Project Update                           */
/*------------------------------------------*/

.video-wrapper {
    position: relative;

/* Fades edges smoothly to transparent, exposing the page background beneath */
  mask-image: radial-gradient(circle, black 1%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle, black 1%, transparent 100%);
}
.video-wrapper img {
    width: 100%;
    max-width: 900px;
    display: block;
}

.video-button{
    position: absolute;
    inset:0;
    padding:0;
    background: none;
    border:none;
    padding:0;
}

/*------------------------------------------*/
/* Play Button Container */
/*------------------------------------------*/
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

/*------------------------------------------*/
/* Play Button Circle */
/*------------------------------------------*/
.video-play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
    background: var(--accent);
    height: 4.375rem;
    width: 4.375rem;
    border-radius: 50%;
    display: block;
    transition: all 200ms;
    padding:0;
    border:none;
    background: none;
}
/*------------------------------------------*/
/* Play Button Triangle */
/*------------------------------------------*/
.video-play-button span {
    position: relative;
    display: block;
    z-index: 3;
    top: 0.1rem;
    left: 0.1rem;
    width: 0;
    height: 0;
    border-left: 1.625rem solid var(--primary-color);
    border-top: 1rem solid transparent;
    border-bottom: 1rem solid transparent;
}

.video-play-button:hover span {
    cursor:grab;
}
/*------------------------------------------*/
/* Play Button Animation */
/*------------------------------------------*/
.video-play-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    display: block;
    width: 4.75rem;
    height: 4.75rem;
    background: var(--accent);
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) scale(1.5);
        opacity: 0;
    }
}

/*------------------------------------------*/
/* Modal                                    */
/*------------------------------------------*/
.modal {
    display: none;
    position: fixed;
    z-index: 900;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal__content {
    position: relative; /* FIX: Tells the close button to position itself relative to this box */
    margin:10% auto;
    padding: 50px;
    background: black;
    border: 1px solid var(--secondary-color);
    width:700px;
    height: 400px;
}

#videoPlayer {
width:100%;
height: 100%;
object-fit: cover;
display: block;
}


/* Mobile (Screens smaller than 576px) */
@media (max-width: 576px) {
  .modal__content {
    width: 90%;               /* Expands the box to fit mobile screens nicely */
    height: auto;             /* Allows the height to scale naturally with the video ratio */
    aspect-ratio: 16 / 9;     /* Maintains a clean landscape video shape */
    margin: 30% auto;         /* Centers the modal box vertically on phone viewports */
    padding: 0;               /* Keeps video flush to the edges */
  }

  #videoPlayer {
    width: 100%;              /* FIX: Scales video to fill the full container width */
    height: 100%;             /* FIX: Scales video to fill the full container height */
  }
}

.modal__close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 3rem;
    cursor: grab;
    color: var(--white-color);
    line-height: 1;          /* Prevents font box height from stretching down */
    z-index: 10;             /* Ensures it floats safely above the video file layer */
    text-shadow: 0 0 10px rgba(0,0,0,0.8); /* Makes it clear to read if overlaying a bright video frame */
}

/*------------------------------*/
/*     about Section            */
/*------------------------------*/

.about {
  display: flex;
  flex-direction: row;
  gap: 50px;
  align-items: flex-start;
}

.about img {
  max-width: 300px;
  width: 50%;
  height: auto;
    border-radius: 50%;
    border: 2px solid var(--dark-color);
    background: var(--white-color);
}

.about-content{
  flex: 1;
}

.about__list-title {
    font-weight: 600;
    padding-bottom: 5px;
    text-align: left;
}

.about__list-item {
    margin:5rem auto;
    width:600px;
    overflow: visible;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 3.5rem;
    padding: 1.5rem;
    border-radius: 20px;
    background: var(--white-color);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.3);
}

.about__list-item:hover{
    transform: translateY(-6px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    cursor:grab;
}

.about__list-description i {
      color:var(--primary-color);
      padding: 0 10px 0 10px;
      opacity: 0.5;
}

@media (max-width: 768px) {
  .about {
    flex-direction: column;
  }
  
  .about img {
    max-width: 100%;
    margin: 0 auto;
  }
}

/*------------------------------------------*/
/* Contact                                  */
/*------------------------------------------*/

.contact{
    padding-bottom:5rem;
}

/* Reserves structural space for the map before the Google API loads */
.map-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3; /* Matches the 600x450 scale proportion */
  overflow: hidden;
}

.map-wrapper iframe {
  width: 100% !important;
  height: 100% !important;
}

.map-wrapper iframe {
  width: 100% !important;
  height: 100% !important;
  display: block;         /* This removes the bottom gap on its own */
  box-sizing: border-box; /* This keeps dimensions contained */
}

/*------------------------------------------*/
/* Footer                                   */
/*------------------------------------------*/
.footer {
    border-top: 1px solid var(--dark-color);
    padding: 1rem 1.5rem;
    margin: 0;
    background-color: #3a4750;
}

.footer .footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.footer p {
    font-size: 1rem;
    margin: 0;
    padding: 0;
    text-align: center;
    color: var(--white-color);
}

.footer .privacy a{
    color: var(--white-color);
    text-decoration: underline;
    padding: 0 10px;
    font-size: 1rem;
}
.footer .privacy a:hover{
    text-decoration: none;
}

.footer .socials i {
    padding-right: 0.5rem;
    color: var(--white-color);
}
.footer .socials i:hover {
    opacity: 0.75;
}

.footer .facebook i{
    color: #1877F2;
}
.footer .youtube i{
    color: #FF0000;
    color:var(--white-color);
}
.footer .instagram i{
    color: #E1306C;
}
.footer .linkedin i{
    color: #0A66C2;
      color:var(--white-color);
}

/*------------------------------------------*/
/* supporting pages                           */
/*------------------------------------------*/
.policy-content h3{
    text-align: left;
    padding-top:50px;
}
.policy-content ul li{
font-size: 1.25rem;
padding: 5px 10px;
}
.policy-content ul li i{
padding-right: 5px;
}


/*------------------------------------------*/
/* video page                           */
/*------------------------------------------*/
.latest_video h3{
   text-align: left;
   padding: 1rem 0;
}
.responsive-video{
  width: 100%;
  max-width: 800px; /* Optional: Sets a maximum width */
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}
.myVideo iframe{
  width: 100%;
  max-width: 800px; /* Optional: Sets a maximum width */
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}
.video_Intro ul{
    padding: 2rem 0;
}

.latest_video ul li i{
    padding-right: 1rem ;
    
}
.latest_video ul li {
    padding-bottom:1rem;
    text-align: left;
    font-size: 1.25rem;
}

/*------------------------------------------*/
/* Media Queries                            */
/*------------------------------------------*/

/* Tablet */
@media (max-width: 992px) {
  .col-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .col-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about__list-item {
    width:400px;
  }
}

.about__list-description {
    font-style: italic;
    font-weight: 300;
}


/* Mobile */
@media (max-width: 576px) {
  .col-2,
  .col-3,
  .col-4
{
    grid-template-columns: 1fr;
  }



    .hero-content{
        order:2;
    }

    .hero img{
        order:1;
    }

    .navbar .navbar-flex{
        justify-content: center;
        align-items: center;
    }

    .navbar .main-menu-list{
        display:none;
    }



    .about img {
        justify-self: center;
    }
    .card{
        min-height: auto;

    }
    .contact{
    padding-bottom:1rem;
}
}


@media (max-width: 768px) {
  /* 1. Stack the layout into a single vertical column */
  .grid.col-2{
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* 2. Force the contact text to the first position at the top */
  .contact-detail{
    grid-row: 1;
  }

  /* 3. Force the map container to the second position at the bottom */
  .grid iframe {
    grid-row: 2;
    width: 100% !important;
    max-height: 300px;
  }
  .about__list-item {
    width:auto;
}
.footer .socials i {
    padding-right: 0;
}
}