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

body {
  /* Using min-height ensures the gradient covers the whole screen */
  min-height: 100vh;
  margin: 20px;
  /* Reduced margin for mobile */
  background-image: linear-gradient(rgb(224, 224, 224), rgb(0, 9, 73));
  font-family: sans-serif;
}

.main1 {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  transition: 0.7s;
  max-width: 1200px;
  margin: 0 auto;
  /* Centers the container */
}

/* Aesthetic hover from your original code */
.main1:hover {
  background-image: linear-gradient(rgb(224, 224, 224), rgb(0, 9, 73));
  color: white;
}


/* Navbar Responsiveness */
.navbar {
  display: flex;
  flex-direction: column;
  /* Stack on mobile by default */
  align-items: center;
  gap: 20px;
  padding: 10px;
  box-shadow: 0px 4px 10px rgba(0, 9, 73, 0.2);

  
}

/* --- 1. Nav Logo (TDS) --- */
.dusubar {
  cursor: pointer;
  transition: all 0.3s ease;
  /* Keep it subtle until hover */
  font-size: 40px;
  font-weight: bold;
  color: rgb(0, 9, 73);
  text-shadow: 1px 2px 5px rgb(0, 9, 73);
  /* Restored shadow */
  transition: 1s;
  cursor: pointer;
}

.dusubar:hover {
  color: #a52a2a;
  /* Brown */
  text-shadow: 0px 4px 8px rgb(0, 9, 73);
  transform: scale(1.05);
  /* Slight "pop" effect */
}


/* --- Nav Links Styling --- */
.navstat {
  display: flex;
  flex-wrap: wrap;
  /* Allows links to wrap to next line */
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.navstat a {
  text-decoration: none;
  /* Removes the underline */
  color: rgb(0, 9, 73);
  /* Navy */
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.navstat a:hover {
  color: white;
  /* Turns white on hover */
  text-decoration: none;
  /* Ensures underline stays gone */
  color: #a52a2a;
  /* Brown */
}

/* Adding a modern underline effect on hover */
.navstat a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #a52a2a;
  transition: width 0.3s ease;
}

.navstat a:hover::after {
  width: 100%;
}


/* Ensures links/logo are visible when the whole card background turns dark */
.main1:hover .navstat a {
  color: white;
}

/* Optional: Make links turn brown only when specifically hovered while main1 is active */
.main1:hover .navstat a:hover {
  color: brown;
}


/* --- 3. Contact Us Button --- */
.contactbar {
  cursor: pointer;
  transition: all 0.4s ease;
  /* Ensuring it has a distinct border to see it on white */
   padding: 12px 40px;
  /* Increased padding for "Large" feel */
  font-size: 1.2rem;
  /* Larger text */
  font-weight: bold;
  font-family: 'Trebuchet MS', sans-serif;
  color: rgb(0, 9, 73);
  background-color: white;
  border: none;
  border-radius: 50px;
  box-shadow: 0px 4px 10px rgba(0, 9, 73, 0.2);
}

.contactbar:hover {
  background-color: rgb(0, 9, 73);
  color: #ffffff !important;
  /* Forces white text on dark background */
  box-shadow: 0px 8px 15px rgba(0, 9, 73, 0.4);
    background-color: rgb(0, 9, 73);
  /* Navy background */
  transform: scale(1.05);
  /* Makes it pop */
}

/* Grid Responsiveness */
.main2 {
  display: grid;
  grid-template-columns: 1fr;
  /* 1 column on mobile */
  gap: 40px;
  margin-top: 30px;
  align-items: center;
}

.div1 {
  text-align: center;
}

.buttonmain {
  padding: 12px 25px;
  background-color: rgb(0, 9, 73);
  /* Navy */
  color: white;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 40px 10px;
  /* Restored unique shape */
  box-shadow: 0px 1px 10px rgb(0, 9, 73);
  cursor: pointer;
  transition: 0.3s ease;
  margin-top: 20px;
}

.buttonmain:hover {
  background-color: white;
  color: brown;
  /* Restored brown text on hover */
  outline: 1px solid brown;
}

.main1:hover .buttonmain{
   box-shadow: 0px 1px 10px white;
}

/* Image Container */
.div2 {
  padding: 20px;
}

.heroimg {
  width: 100%;
  max-width: 350px;
  /* Limits size on desktop */
  height: auto;
  border-radius: 10px;
  z-index: 100;
  box-shadow: 20px 20px rgb(0, 9, 73);
}

/* Footer Stats */
footer {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

footer div {
  flex: 1;
  min-width: 120px;
  /* Ensures they don't get too thin */
  padding: 15px;
  color: white;
  border-radius: 10px;
  padding: 15px 20px;
  background-color: rgb(0, 9, 73);
  /* Navy background */
  border-radius: 10px;
  box-shadow: 0px 1px 10px rgb(0, 9, 73);
  /* Subtle white glow */
  transition: 0.4s ease;
  cursor: pointer;
  text-align: center;
  flex: 1;
  /* Makes them equal width */
  min-width: 100px;
}

footer div:hover {
  background-color: white;
  /* Flips to white */
  color: rgb(0, 9, 73);
  /* Text flips to navy */
  transform: translateY(-5px);
  /* Adds a little "lift" */

}

.main1:hover footer div {
  box-shadow: 0px 1px 10px white;
}

footer h2 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

footer p {
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* --- Media Queries for Tablets and Desktops --- */

@media screen and (min-width: 768px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
  }

  .main2 {
    grid-template-columns: 1.2fr 0.8fr;
    /* 2 columns on larger screens */
    text-align: left;
  }

  .div1 {
    text-align: left;
  }
}



/* Re-adding your decorative boxes for desktop only */
@media screen and (min-width: 768px) {
  .yellow {
    background-image: linear-gradient(rgb(0, 9, 73), white);
    width: 100px;
    height: 100px;
    position: absolute;
    right: 10%;
    top: -10px;
    z-index: 1;
  }
}