 .contact-wrapper {
  width: 100%;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  box-sizing: border-box; /* ✅ ensures consistent sizing */
  overflow-x: hidden;     /* ✅ hides accidental overflows */
}

.contact-details {
  flex: 1 1 300px;
  min-width: 280px;
}

.contact-form {
  flex: 1 1 500px;
  min-width: 280px;
}

@media (max-width: 768px) {
  .contact-wrapper,
  .contact-form,
  .contact-details {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .contact-form,
  .contact-details {
    width: auto;
  }
}
 {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.body, html {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f6f8;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
header {
    background: #002c3e;
    padding: 15px 0;
    position: relative; /* 👈 Required to anchor absolutely-positioned .nav-links */
    z-index: 10;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    height: 50px;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}
.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}
.hamburger {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}
.section {
    padding: 60px 0;
}
.section-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #002c3e;
    text-align: center;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
}
.card h3 {
    margin-bottom: 10px;
    color: #0066cc;
}
.card p, .card ul {
    font-size: 0.95rem;
}
.card ul {
    padding-left: 20px;
}
footer {
    background: #002c3e;
    color: white;
    text-align: center;
    padding: 30px 15px;
    margin-top: 60px;
}
.footer-links {
    margin-top: 10px;
}
.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 8px;
}
.social-icons {
    margin-top: 10px;
}
.social-icons a {
    margin: 0 10px;
    display: inline-block;
}
.social-icons img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* Responsive nav */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #002c3e;
        position: absolute;
        top: 70px;
        right: 0;
        width: 220px;
        padding: 20px;
    }
    .nav-links li {
        margin-bottom: 12px;
    }
    .hamburger {
        display: block;
    }
    .hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0, 44, 62, 0.6),
        rgba(0, 44, 62, 0.6)
      ),
      url(‘homepage-background.jpg') no-repeat center center;
    background-size: cover;
    z-index: 0;
}

.hero-text {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 40px;
}



}


/* Animated Hamburger Menu */
#hamburger.is-active {
    transform: rotate(90deg);
    transition: transform 0.3s ease-in-out;
}

.nav-links.nav-open {
    display: flex !important;
    flex-direction: column;
    animation: slideDown 0.3s ease-in-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Ensure nav-links default to flex on desktop */
.nav-links {
    display: flex;
    gap: 20px;
}

/* Fix hamburger nav visibility and animation */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #002c3e;
        position: absolute;
        top: 70px;
        right: 0;
        width: 220px;
        padding: 20px;
    }

    .nav-links.nav-open {
        display: flex !important;
        animation: slideDown 0.3s ease-in-out forwards;
    }

    #hamburger {
        display: block;
    }
}


/* Ensure .hero background applies to all screen sizes */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0, 44, 62, 0.6),
        rgba(0, 44, 62, 0.6)
      ),
      url('homepage-background.jpg') no-repeat center center;
    background-size: cover;
    z-index: 0;
}

.hero-text {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 40px;
}

/* Responsive navigation and hamburger animation */
.nav-links {
    display: flex;
    gap: 20px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #002c3e;
        position: absolute;
        top: 70px;
        right: 0;
        width: 220px;
        padding: 20px;
    }

    .nav-links.nav-open {
        display: flex !important;
        animation: slideDown 0.3s ease-in-out forwards;
    }

    #hamburger {
        display: block;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 10px;
}

.btn-primary {
    background-color: #0066cc;
    color: white;
}

.btn-primary:hover {
    background-color: #004a99;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #00b894;
    color: white;
}

.btn-secondary:hover {
    background-color: #008e72;
    transform: translateY(-2px);
}

/* Full-width contact form fix */
.contact-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    width: 100%;
   align-items: center;
    max-width: 600px;
    margin: 40px auto;
    overflow-x: hidden; /* ✅ prevent horizontal scroll */
}

.contact-form,
 .form-group {
    margin-bottom: 20px;
    width: auto;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #002c3e;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.contact-form button.btn {
    background-color: #0066cc;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button.btn:hover {
    background-color: #004b99;
}


/* Responsive wrapper for contact page */
.contact-wrapper {
    width: 100%;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  overflow-x: hidden;
}

/* New Footer Styles */
.new-footer {
  background-color: #111;
  color: white;
  padding: 40px 20px;
  font-size: 0.95rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #fff;
}

.footer-col p, .footer-col li, .footer-col a {
  color: #ccc;
  line-height: 1.6;
  text-decoration: none;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
  border-bottom: 1px solid #333;
  padding-bottom: 5px;
}

.footer-logo {
  height: 50px;
  margin-bottom: 15px;
}

.footer-social img {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  filter: brightness(0) invert(1);
}

.footer-cta {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid white;
  color: white;
  text-transform: uppercase;
  margin-top: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.footer-cta:hover {
  background: white;
  color: black;
}

/* Dropdown menu for nav */
.nav-links .dropdown {
  position: relative;
}

.nav-links .dropdown-menu {
  display: none;
  position: absolute;
  background-color: #002c3e;
  top: 100%;
  left: 0;
  min-width: 180px;
  padding: 10px 0;
  z-index: 100;
  border-radius: 0 0 6px 6px;
}

.nav-links .dropdown-menu li {
  padding: 8px 16px;
}

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

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

/* Mobile dropdown support */
@media (max-width: 768px) {
  .nav-links .dropdown-menu {
    position: static;
    background-color: transparent;
    padding-left: 20px;
  }

  .nav-links .dropdown-menu li {
    border-bottom: 1px solid #ccc;
  }

  .nav-links .dropdown-menu li a {
    color: white;
  }
}
.horizontal-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 800px;
  margin: 20px auto;
  background: white;
}

/* Fix for horizontal cards in projects.html */
.card {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.card-img-side {
  width: 300px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 8px;
}
.input, textarea {
  max-width: 100%;
  width: 100%;
}


.card-text {
  flex: 1;
  padding: 10px;
}

/* Responsive stack for mobile */
@media (max-width: 768px) {
  .card {
    flex-direction: column;
  }

  .card-img-side {
    width: 100%;
    height: auto;
  }
}

