.nav-bar{
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.nav-list{
    display: flex;
    gap: 20px;
    list-style: none;
    font-size: 16px;
    font-family: cursive;
}
.nav-list li:hover{
 cursor: pointer;
 color: purple;
 /* font-weight: 600; */
 background-color: lightsalmon;
}

.fa-solid{
    font-size: 16px;
    color: white;
    margin-left: 10px;
}
.button{
    background-color: green;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
}
h1, h2
{
    font-family: cursive;
    color: purple;
}

h3
{
    font-family: cursive;
    color: green;
}

div.head{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: lightgray;
    padding: 0px;
}

div.hero{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: lightgray;
    padding: 0px;
}

body{
    background-color: darkgray;
    margin-top: 0;
}

.dropdown {
  position: relative; /* Keeps the dropdown menu anchored to this item */
  display: inline-block;
}

/* Main link styling */
.dropdown-toggle {
  text-decoration: none;
  color: #333;
  
  display: block;
}

/* Submenu - Hidden by default */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;            /* Positions submenu directly below parent */
  left: 0;
  background-color: #ffffff;
  min-width: 220px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  z-index: 1000;
}

/* Submenu links */
.dropdown-menu li a {
  color: #333;
  text-decoration: none;
  
  display: block;
  white-space: nowrap; /* Prevents long titles from wrapping awkwardly */
}

/* Hover effects */
.dropdown-menu li a:hover {
  background-color: #f1f1f1;
}

/* SHOW DROPDOWN ON HOVER */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* --- Global Styles --- */

* {
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/*body {
  background-color: #f8f9fa;
  color: #2b2d42;
  line-height: 1.6;
  padding: 20px;
}*/

/* --- Main Layout Grid --- */
.about-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr); /* 12-Column Base Grid */
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Hero Section --- */
.hero-section {
  grid-column: span 12;
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  color: #ffffff;
  text-align: center;
  padding: 60px 20px;
  border-radius: 12px;
}

.hero-section h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.hero-section p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* --- Mission & Vision Cards (Span 6 Columns Each) --- */
.card {
  background-color: #ffffff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
}

.mission-card {
  grid-column: span 6;
}

.vision-card {
  grid-column: span 6;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.card h2 {
  font-size: 1.6rem;
  color: #0d6efd;
  margin-bottom: 10px;
}

/* --- Company Story Section (Split Grid 7 / 5) --- */
.story-section {
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  align-items: center;
}

.story-content {
  grid-column: span 7;
}

.story-content h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #2b2d42;
}

.story-content p {
  margin-bottom: 12px;
  color: #4a5568;
}

.story-image {
  grid-column: span 5;
}

.placeholder-img {
  width: 100%;
  height: 480px;
  background-color: #e9ecef;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #6c757d;
  font-weight: 600;
  overflow: hidden; /* Ensures any overflowing content is clipped, also clips the image to the rounded corners */
}




/* Image Fit Setup */
.story-image img,
.placeholder-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* Scales image to crop cleanly without distortion */
  object-position: center; /* Keeps the center of the photo in view */
  display: block;
}


/* --- Core Values Section (Nested Auto-Fit Grid) --- */
.values-section {
  grid-column: span 12;
  text-align: center;
  margin-top: 10px;
}

.values-section h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}

/*.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}*/

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Forces exactly 3 equal columns */
  gap: 20px;
}



.value-box {
  background-color: #ffffff;
  padding: 24px;
  border-radius: 8px;
  border-top: 4px solid #0d6efd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.value-box h3 {
  margin-bottom: 8px;
}

/* --- Team Section --- */
.team-section {
  grid-column: span 12;
  text-align: center;
  margin-top: 10px;
}

.team-section h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}

/*.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}*/

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Forces exactly 4 equal columns */
  gap: 24px;
}

.team-card {
  background-color: #ffffff;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.team-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.team-socials a {
  color: #64748b;
  font-size: 1.1rem;
  text-decoration: none;
}

.team-socials a:hover {
  color: #2563eb;
}



.avatar-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: #dee2e6;
  margin: 0 auto 16px auto;
  display: grid;
  place-items: center;
  color: #6c757d;
}

.avatar-placeholder > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.team-card h3 {
  font-size: 1.2rem;
}

.team-card .role {
  color: #6c757d;
  font-size: 0.95rem;
}

/* Phone Link Styling */
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* Spaces out the icon and text */
  color: rgb(148, 75, 148);
  text-decoration: none;
  font-weight: 500;
}

/* Icon Specific Style */
.phone-link i {
  font-size: 1rem;
  color: rgb(165, 80, 165);
}

.phone-link:hover {
  color: blue; /* Changes color on hover */
}

.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.contact-section a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: purple;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 20px;
  background-color: #0f172a;
  color: #94a3b8;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: #94a3b8;
  font-size: 1.25rem;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: #2563eb; /* Highlight color on hover */
}





/* --- Responsive Adjustments (Mobile & Tablets) --- */
@media (max-width: 900px) {
  .mission-card,
  .vision-card {
    grid-column: span 12; /* Stack cards vertically */
  }

  .story-content,
  .story-image {
    grid-column: span 12; /* Stack story text and image */
  }
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */

/* --- TABLETS & SMALL LAPTOPS (Max-Width: 992px) --- */
@media screen and (max-width: 992px) {
  /* Navigation Bar Adjustments */
  .nav-bar {
    padding: 10px;
    gap: 15px;
  }
  
  .nav-list {
    gap: 12px;
    font-size: 15px;
  }

  /* Main Container Layout */
  .about-container {
    gap: 16px;
    padding: 0 16px;
  }

  /* Story Section Grid Split (Stack content above image) */
  .story-content {
    grid-column: span 12;
  }

  .story-image {
    grid-column: span 12;
  }

  .placeholder-img {
    height: 350px; /* Reduced fixed height for tablet views */
  }

  /* Values Grid: Adjust from 3 columns to 2 columns */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Team Grid: Adjust from 4 columns to 2 columns */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* --- MOBILE DEVICES (Max-Width: 768px) --- */
@media screen and (max-width: 768px) {
  /* Navigation Bar: Stack elements vertically */
  .nav-bar {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    padding-left: 0;
  }

  /* Hero Section Typography & Padding */
  .hero-section {
    padding: 40px 16px;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  /* Mission & Vision Cards: Stack full width */
  .mission-card {
    grid-column: span 12;
  }

  .vision-card {
    grid-column: span 12;
  }

  /* Story Section Padding */
  .story-section {
    padding: 24px 16px;
  }

  .placeholder-img {
    height: 260px; /* Scaling down height for phone screens */
  }

  /* Values Grid: Single column stack */
  .values-grid {
    grid-template-columns: 1fr;
  }

  /* Team Grid: Single column stack */
  .team-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 20px;
  }
}


/* --- SMALL MOBILE PHONES (Max-Width: 480px) --- */
@media screen and (max-width: 480px) {
  .hero-section h1 {
    font-size: 1.6rem;
  }

  .card h2, 
  .story-content h2, 
  .values-section h2, 
  .team-section h2 {
    font-size: 1.4rem;
  }

  .nav-list {
    font-size: 14px;
    gap: 8px;
  }

  .placeholder-img {
    height: 200px;
  }
}
