@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

hr {
    color: #122A52;
}
h1 {
    text-align: center;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background: #0A1931;
    color: white;
    padding: 15px 0;
    text-align: center;
}

body {
   margin: 0;
   font-family: Arial, sans-serif;
}

header {
   background-color: white;
   padding: 20px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgb(175, 175, 175);
    height: 20px;
    padding: 5px 20px;
 }
 
 .nav-left {
   display: flex;
   align-items: center;
 }
 
 .logo-img {
   height: 70px;
   margin-right: 10px;
 }
 
 .logo-text {
   font-size: 20px;
   font-weight: bold;
   color: black;
 }
 
 nav ul {
   list-style: none;
   display: flex;
   gap: 20px;
 }
 
 nav ul li {
   position: relative;
 }
 
 nav ul li a {
   text-decoration: none;
   color: black;
   font-size: 18px;
 }
 
 ul li a:hover {
   color: rgb(9, 164, 242);
   text-decoration: underline;
   font-weight: bold;
 }
 
 nav ul li:last-child a {
   background-color: #0A1931; /* Dark Blue */
   color: white; 
   padding: 8px 15px;
   border-radius: 5px;
   font-weight: bold;
   transition: background-color 0.3s ease;
 }
 
 nav ul li:last-child a:hover {
   background-color: #122A52; /* Slightly lighter blue on hover */
   text-decoration: none;
 }
 
 /* Dropdown Styling */
 .dropdown-menu {
   display: none;
   position: absolute;
   top: 100%;
   left: 0;
   background: white;
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
   padding: 10px 0;
   list-style: none;
   min-width: 150px;
   z-index: 100;
   border-radius: 5px;
 }
 
 .dropdown-menu li {
   padding: 8px 15px;
   white-space: nowrap;
 }
 
 /* Core Team & Tech Team Styling */
 .dropdown-menu li a {
   text-decoration: none;
   color: black;
   display: block;
   font-size: 18px; /* Same size as nav links */
   padding: 8px 15px;
 }
 
 .dropdown-menu li a:hover {
   background-color: rgb(9, 164, 242);
   color: white;
   font-weight: bold;
   border-radius: 5px;
 }
 
 /* Show dropdown on hover */
 .dropdown:hover .dropdown-menu {
   display: block;
 } 

/* Dropdown Styling */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    list-style: none;
    min-width: 150px;
}

.dropdown-menu li {
    padding: 5px 10px;
}

.dropdown-menu li a {
    text-decoration: none;
    color: black;
    display: block;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/*hero content*/
.hero {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url("IMG/heroimg.jpg") no-repeat center center/cover;
    position: relative;
    overflow: hidden;
}

/* Dark overlay */
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff; /* Brighter text for better contrast */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Adds depth and readability */
    padding: 20px;
    backdrop-filter: blur(5px); /* Softens the background */
    font-size: large;
}

h1 {
    font-size: 50px;
    font-weight: bold;
}

p {
    font-size: 22px;
    margin-bottom: 20px;
}

/* Icons */
.icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.icons div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}

.icons i {
    font-size: 22px;
}

/* Button Styling */
.btn {
    display: inline-block;
    padding: 12px 30px;  /* Increased padding for uniform size */
    font-size: 18px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-align: center;
    min-width: 140px;  /* Ensures both buttons have the same width */
}

/* Primary Button */
.btn-primary {
    background: white;
    color: black;
    border: 2px solid white;
}

/* Outline Button */
.btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
}

/* Hover Effect - Increases size */
.btn:hover {
    transform: scale(1.1);
}

/* Additional hover effects */
.btn-primary:hover {
    background: #ddd;
    border-color: #ddd;
}

.btn-outline:hover {
    background: white;
    color: black;
}


/* Social Icons */
.social-icons {
    margin-top: 30px;
    font-size: 24px;
    display: flex;  /* Ensures flexbox is applied */
    justify-content: center;  /* Centers icons horizontally */
    align-items: center;  /* Centers icons vertically */
    gap: 15px;  /* Adds spacing between icons */
}

.social-icons i {
    cursor: pointer;
    transition: 0.3s;
}

.social-icons i:hover {
    color: #00aaff;
}

/* Join Form Section */
.join-form {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.form-container {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.form-container h2 {
    font-size: 24px;
    color: #0047ab;
    margin-bottom: 10px;
}

.form-container p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

input, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    transition: 0.3s ease-in-out;
}

input:focus, select:focus {
    border-color: #0047ab;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 71, 171, 0.5);
}

.btn-primary {
    background: #0047ab;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.btn-primary:hover {
    background: #003580;
}

/* Responsive Design */
@media (max-width: 600px) {
    .form-container {
        padding: 20px;
    }

    .btn-primary {
        font-size: 14px;
    }
}

footer {
    background-color: #24282f;
    color: white;
    padding: 40px 0;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    }
    
    .footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: auto;
    }
    
    .footer-section {
    width: 30%;
    min-width: 250px;
    text-align: left;
    }
    
    .footer-logo {
    height: 60px;
    margin-bottom: 10px;
    }
    
    .footer-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
    }
    
    .footer-section p {
    font-size: 14px;
    line-height: 1.5;
    }
    
    .footer-section a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    }
    
    .footer-section a:hover {
    text-decoration: underline;
    }
    
    .social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    }
    
    .social-icons a {
    color: white;
    font-size: 20px;
    transition: 0.3s;
    }
    
    .social-icons a:hover {
    color: #1E90FF;
    }
    
    .footer-bottom {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #fff;
    }
    
    .footer-bottom p {
    font-size: 12px;
    margin: 5px 0;
    }
    
    
    


    @media (max-width: 600px) {

        /* Menu Toggle Button */
        .menu-toggle {
        background: #0A1931;
        color: white;
        padding: 8px 16px;
        border-radius: 5px;
        font-size: 15px;
        font-weight: bold;
        cursor: pointer;
        display: block;
        }
        
        /* Hide other menu items */
        nav ul li {
        display: none;     /* Hide all items */
        }
        
        /* Show ONLY Home */
        nav ul li:first-child {
        display: block;    /* Show Home only */
        }
        
        /* Home button style */
        nav ul li:first-child a {
        display: block;
        padding: 12px 18px;
        font-size: 15px;
        background: white;
        color: black;
        border-radius: 8px;
        text-align: left;
        }
        
        /* Mobile Menu Box */
        nav ul {
        display: none;
        position: absolute;
        top: 60px;
        right: 12px;
        width: 180px;
        background: white;
        flex-direction: column;
        padding: 10px 0;
        border-radius: 10px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.2);
        }
        
        /* Show menu when toggled */
        nav.show-menu ul {
        display: flex;
        }
        
        }
        
/* ---------------- MOBILE VIEW (max-width: 600px) ---------------- */
@media (max-width: 600px) {

    .desktop-menu {
    display: none;        /* hide desktop menu */
    }
    
    .mobile-home {
    display: block;
    background: #0A1931;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    }
    
    nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    }
    
    }
    
    /* ---------------- DESKTOP VIEW (min-width: 601px) ---------------- */
    @media (min-width: 601px) {
    .mobile-home {
    display: none !important;   /* FIX */
    }
    }
    
        
        @media (max-width: 420px) {
      
          .logo-img {
              height: 40px;
          }
          
          .logo-text {
              font-size: 12px;
          }
          
          nav ul {
              width: 140px;
              padding: 6px 0;
          }
          
          nav ul li a {
              font-size: 12px;
              padding: 6px 8px;
          }
          
          nav ul li:last-child a {
              padding: 6px 10px;
              font-size: 12px;
          }
          
          .dropdown-menu li a {
              font-size: 11px;
              padding: 5px 10px;
          }
          }

    

/* ---------- HERO HEIGHT + TEXT SHRINK (max 1024px) ---------- */
@media (max-width: 1024px) {
    .hero {
        height: 40vh !important;
    }
    .hero-content h1 {
        font-size: 34px;
    }
    .hero-content p {
        font-size: 17px;
    }
    }
    
    /* ---------- HERO HEIGHT + TEXT SHRINK (max 768px) ---------- */
    @media (max-width: 768px) {
    .hero {
        height: 30vh !important;
    }
    .hero-content h1 {
        font-size: 28px;
    }
    .hero-content p {
        font-size: 15px;
    }
    }
    
    /* ---------- HERO HEIGHT + TEXT SHRINK (max 600px) ---------- */
    @media (max-width: 600px) {
    .hero {
        height: 22vh !important;
    }
    .hero-content h1 {
        font-size: 24px;
    }
    .hero-content p {
        font-size: 14px;
    }
    }
    
    /* ---------- HERO HEIGHT + TEXT SHRINK (max 480px) ---------- */
    @media (max-width: 480px) {
    .hero {
        height: 18vh !important;
    }
    .hero-content h1 {
        font-size: 20px;
    }
    .hero-content p {
        font-size: 12px;
    }
    }
    
    /* ---------- HERO HEIGHT + TEXT SHRINK (max 360px) ---------- */
    @media (max-width: 360px) {
    .hero {
        height: 14vh !important;
    }
    .hero-content h1 {
        font-size: 18px;
    }
    .hero-content p {
        font-size: 11px;
    }
    }
    
    
        /* ---------------- TEAM SECTION (max-width: 768px) ---------------- */
      @media (max-width: 768px) {
        .team-section {
            padding: 40px 15px;
        }
        .team-member {
            width: 250px;
        }
        .member-card img {
            height: 200px;
        }
        .member-card h3 {
            font-size: 1.1em;
        }
        }
        
        /* ---------------- TEAM (max-width: 600px) ---------------- */
        @media (max-width: 600px) {
        .team-member {
            width: 90%;
        }
        .member-card {
            padding: 20px;
        }
        .member-card img {
            height: 180px;
        }
        .member-card p {
            font-size: 14px;
        }
        }
        
        /* ---------------- TEAM (max-width: 420px) ---------------- */
        @media (max-width: 420px) {
        .member-card {
            padding: 15px;
        }
        .member-card img {
            height: 150px;
        }
        .member-card h3 {
            font-size: 1em;
        }
        .member-card p {
            font-size: 13px;
        }
        }
      
        /* ---------------- FOOTER (max-width: 768px) ---------------- */
      @media (max-width: 768px) {
        .footer-container {
            flex-direction: column;
            text-align: center;
            gap: 25px;
        }
        .footer-section {
            width: 100%;
        }
        }
        
        /* ---------------- FOOTER (max-width: 600px) ---------------- */
        @media (max-width: 600px) {
        .footer-section p, .footer-section a {
            font-size: 13px;
        }
        .footer-logo {
            height: 45px;
        }
        }
        
        /* ---------------- FOOTER (max-width: 420px) ---------------- */
        @media (max-width: 420px) {
        .footer-section h3 {
            font-size: 16px;
        }
        .footer-section p {
            font-size: 12px;
        }
        .social-icons a {
            font-size: 18px;
        }
        }
      
        /* ----------- TEAM IMAGE FIX (max-width: 600px) ----------- */
      @media (max-width: 600px) {
        .member-card img {
            height: 260px !important;   /* bigger height = face visible */
            object-fit: cover;
            object-position: top center !important;
        }
      }
      
      /* ----------- EXTRA SMALL FIX (max-width: 420px) ----------- */
      @media (max-width: 420px) {
        .member-card img {
            height: 300px !important;  /* even bigger for tiny screens */
            object-fit: cover;
            object-position: top center !important;
        }
      }
      