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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'poppins', sans-serif;
}

body {
  scroll-behavior: smooth;
  line-height: 1.6;
  font-size: 16px;
}

.logo img {
  margin-top: 10px;
  width: 100px;
  height: auto;
}

.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #ffffff;
  color: #000;
  height: 100px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

/* Navbar list */
.navbar ul {
  font-size: 1.2rem;
  list-style: none;
  display: flex;
  gap: 40px;
}

.navbar ul li a {
  text-decoration: none;
  color: #000;
  transition: color 0.3s ease;
}


.navbar ul li a:hover {
  color: #ff6347;
}


button {
  border: none;
  outline: none;
  background: white;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #333;
}

.navbar ul li a:hover {
    color: #ff6347;
}

/* ✅ Active page color */
.navbar ul li a.active {
    color: #ff6347;   
    font-weight: bold;
    border-bottom: 2px solid #ff6347; 
}

@media (max-width: 840px) {

  .navbar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: absolute;
    top: 100px;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0;

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
  }

  .navbar ul.active {
    max-height: 500px;
    padding: 20px 0;
  }

  .menu-toggle {
    display: block;
    font-size: 28px;
    cursor: pointer;
    z-index: 1001;
  }


  .logo img {
    width: 80px;
  }

  .hero-section {
    height: auto;
    min-height: 70vh;
  }
}


/* ===============================
   Contact Section
=============================== */
.contact-section {
  background-color: #01173a;
  color: white;
  margin: auto;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 60px 80px;
  margin-top: 100px;
  gap: 40px;
  flex-wrap: wrap;
  /* allow wrap for small screens */
}

.contact-title {
  flex: 1 1 50%;
  min-width: 280px;
  padding: 20px;
}

.contact-section img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
}

.back-to-top-arrow {
  /* 1. Sticky Position and Location (as before) */
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s; 
  display: block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: #333; 
  color: white; 
  text-decoration: none; 
  border-radius: 50%;
  font-size: 18px;
}


.back-to-top-arrow.show-arrow {
  opacity: 1;
  visibility: visible;
}

/* ===============================
   Contact Form
=============================== */
.contact-map-container {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  width: 100%;
  margin: 40px auto;
  gap: 20px;
}


/* ===============================
   Map
=============================== */
.map-container {
  flex: 1 1 45%;
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

.map-container h2 {
  font-size: 30px;
  margin-bottom: 20px;
  color: #000d47;
}

/* ===============================
   Responsive Design
=============================== */

/* Tablets */
@media (max-width: 992px) {
  .contact-section {
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
  }


  .contact-form-container {
    flex-direction: column;
    align-items: center;
  }

  #contact-form,
  .map-container {
    width: 100%;
    max-width: 100%;
  }
}

/* Mobiles */
@media (max-width: 576px) {
  .contact-section {
    padding: 20px;
  }
  .map-container iframe {
    height: 250px;
  }
}


/* Main Section Styling */
.contact-sectionn {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Header Section */
.contact-header {
  background: linear-gradient(to right, #4a148c, #8860e0);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
  padding-bottom: 200px;
  /* Space for the card to overlap */
}

.contact-header h1 {
  font-size: 3em;
  font-weight: 700;
  margin: 0 0 20px;
}

.contact-header p {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.8;
}

/* Content Wrapper */
.contact-content-wrapper {
  position: relative;
  z-index: 1;
  margin-top: -150px;
  padding: 0 20px;
  display: flex;
  justify-content: center;
}

/* The Main Card Container */
.contact-card {
  background-color: #fff;
  display: flex;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  max-width: 1100px;
  width: 100%;
  overflow: hidden;
}

/* Form Section */
.contact-form-section {
  flex: 2;
  /* Takes up more space */
  padding: 40px;
}

.contact-form-section h2 {
  font-size: 2em;
  color: #333;
  margin-top: 0;
  margin-bottom: 30px;
  font-weight: 600;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

.send-message-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #7a60e0;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.send-message-btn:hover {
  background-color: #5d46c6;
}

/* Info Section */
.contact-info-section {
  flex: 1;
  /* Takes up less space */
  background-color: #d49201;
  color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-section h3 {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 600;
}

.contact-info-section address,
.contact-info-section a {
  color: #fff;
  font-style: normal;
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.9;
}

.contact-info-section a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: opacity 0.3s ease;
}

.contact-info-section a:hover {
  opacity: 1;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  font-size: 1.2em;
  width: 35px;
  height: 35px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

.social-icons a:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .contact-card {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .contact-form-section,
  .contact-info-section {
    padding: 30px 20px;
  }
}


/* --- Main Footer Container and Columns --- */
.site-footer {
    background-color: #00003b;
    padding: 60px 20px 20px;
}


.footer-container {
    max-width: 1000px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
}

.footer-column {
    margin: 10px auto;
    flex-basis: 22%;
    box-sizing: border-box;
    min-width: 200px;
}


.footer-column:nth-child(2),
.footer-column:nth-child(3),
.footer-column:nth-child(4) {
    max-width: 150px;
    display: flex;
    flex-direction: column;
}

.footer-heading {
    color: #ffbb00;
    /* A bright gold/yellow color */
    font-size: 1.15rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* --- Lists and Links --- */
ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.contact-list li,
.link-list li {
    font-size: 0.68rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-list li span {
    overflow-wrap: break-word;
    word-break: break-all;
    hyphens: auto;
}


.contact-list li a {
    color: white;
    text-decoration: none;
}

.link-list {
    display: flex;
    flex-direction: column;
}


.link-list a,
.contact-list span {
    overflow-wrap: break-word;
    word-wrap: break-word;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}


.link-list a:hover {
    color: #f7d268;
}


.icon {
    width: 20px;
    height: 20px;
    stroke: orange;
    margin-right: 4px;
    fill: none;
    flex-shrink: 0;
    vertical-align: middle;
}

/* --- Project Gallery Grid --- */
.gallery-grid {
    width: 150px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}


/* --- Copyright Section --- */
.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}


/* --- Media Queries for Responsiveness --- */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-column {
        min-width: 100%;
    }

    .contact-list,
    .link-list {
        text-align: left;
    }

    .gallery-grid {
        justify-items: center;
    }
}

/* ================== RESPONSIVE DESIGN ================== */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .navbar {
        padding: 10px 30px;
    }
}

/* Tablets */
@media (max-width: 840px) {

    .menu-toggle {
        display: block;
        font-size: 28px;
        cursor: pointer;
    }
  }

/* Mobiles */
@media (max-width: 768px) {
    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}
