*{
  margin: 0;
  padding: 0;
  /* font-family: "Garamond", Serif; */
  box-sizing: border-box;
}

body{
  margin: 0;
  padding: 0;
  background: #f3edee;
  perspective: 1px;
  transform-style: preserve-3d;
  overflow-x: hidden;
  overflow-y: scroll;
}


/* ------- The main nav bar -------- */
#nav-wrapper {
  position: sticky; 
  top: 0;
  display: flex;
  align-items: center;
  width: 100%;
  height: 2%;
  padding: 0 2%;
  transition: box-shadow 0.1s ease-in-out;
  z-index: 9999;
  background-color: #f3edee;
}

#nav-wrapper.shadow {
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* ------- left nav bar -------- */
.left-nav {
  display: flex;
  align-items: center;
}

/* ------- Logo -------- */
#logo img {
  /* height: 100px; */
  width: 40%;
  margin: 2% 10% 2% 10%;
}


/* ------- right nav bar -------- */
.right-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: 40%;
  /* margin-right: 200%; */
  /* right: 0; */
}

.right-nav.show {
  display: block;
}

/* ------- nav bar -------- */
#nav {
  display: flex;
  justify-content: flex-end;
}

#nav-list {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 30%;
}

.nav-item a {
  text-decoration: none;
  color: #0b31af; 
  font-size: 1.5rem;
  font-weight: 500;
}

.nav-link {
  display: block;
  position: relative;
}
.nav-item a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #000;
  transition: width 0.3s;
  position: absolute;
  left: 0;
}

.nav-item a:hover::after {
  width: 100%;
}
/* ----- Hamburger Menu ------- */
.hamburger {
  display: none;
  position: sticky;
  top: 0;
  margin-left: 5%;
  margin-top: 0%;
}

.bar {
  display: block;
  width: 30px;
  height: 4px;
  margin: 5px;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}


/* ----- header ------- */
#header {
  display: flex; 
  justify-content: center; 
  align-items: center; 
  height: 90vh; 
  padding: 10% 0 10% 0;
  width: 100%;
  /* background: #d0cfd7; */
}

#header .container {
  width: 85%;
  max-width: 1200px;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 10%;
}

.header-image {
  width: 45%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
}

.header-text {
  flex: 1;
  color: #0e275c;
  line-height: 1.5;
}

.header-text h1 {
  font-size: 4rem;
  font-weight: 600;
  margin-bottom: 1%;
}

.header-text h2 {
  font-size: 2rem;
  font-weight: 600;
  text-align: justify;
}

.header-text p {
  font-size: 1.5rem;
  font-weight:400;
  text-align: justify;
}


/* -------------about section--------------*/
#about {
  display: flex; 
  justify-content: center; 
  align-items: center; 
  height: 75vh; 
  padding: 50% 0 10% 0;
  width: 100%;
  /* background: #d0cfd7; */
}

#about .container {
  width: 80%;
  max-width: 1200px;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 5%;
}

.about-image {
  width: 40%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
}

.about-text {
  flex: 1;
  color: #0e275c;
  line-height: 1.5;
}

.about-text h1 {
  font-size: 4rem;
  font-weight: bold;
  color: #0e275c;
  /* border-bottom: 2px solid #85586F; */
  margin-bottom: 1%;
}

.about-text p {
  font-size: 1.35rem;
  font-weight: 600;
  text-align: justify;
  color: #0e275c;
}

/* -------------Projects section-------------- */
#Projects {
  max-width: 80%;
  margin: 0 auto;
  padding: 1rem 1rem;
}

.projects-text {
  color:#0e275c;
  text-align: center;
  margin-bottom: 2rem;
}

.projects-text h1 {
  color:#0e275c;
  font-size: 2.5rem;
  font-weight: 700;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.projectContainer {
  display: block;
  text-decoration: none;
  color: #0e275c;
  background-color: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: transform 0.3s ease-in-out;
}

.projectContainer:hover {
  transform: translateY(-5px);
}

.project-image {
  width: 100%;
  height: auto;
  display: block; 
  object-fit: cover;
}


.projectInfo {
  padding: 1rem;
  line-height: 1.4;
}

.projectInfo h2 {
  color:#0e275c;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.projectInfo p {
  color:#030303;
  margin: 0.25rem 0;
  font-size: 1rem;
}

/* -------------Contact Section--------------*/
#contact {
  max-width: 80%;
  margin: 0 auto;
  padding: 10% 0%;
}
.contact-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 5%;
  gap: 2%;
  color:#0e275c;
}

/* Left side: Contact Info */
.contact-content {
  flex: 1;
}

/* .contact-info {
  color: #295f98;
} */

.contact-info h1 {
  font-size: 3rem;
  padding-bottom: 1rem;
}

.contact-info h2 {
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.info-item img {
  width: 2%;
  margin-right: 10px;
  transition: transform 0.3s;
}

.info-item img:hover {
  transform: scale(1.1);
}

.info-item a,
.info-item p {
  font-size: 1rem;
  margin: 0;
}

/* Right side: Contact Form inside a box with shadow */
/* .contact-form {
  width: 40%;
  display: flex;
  flex-direction: column;
  background-color: #dfe9ee;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
}

.contact-form h3 {
  font-size: 1.8rem;
  color: #000000;
  margin-bottom: 1rem;
}

.contact-form label {
  margin-top: 10px;
  color: #000000;
  font-size: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.contact-form button {
  margin-top: 20px;
  padding: 10px;
  background-color: black;
  color: white;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #8b6c7b;
} */



/* ============================== Mobile ============================== */
@media (max-width: 768px) {
  /* General adjustments */
  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
  }
  
  #nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    align-items: center;
    justify-content: space-between;
  }
  
  .hamburger-wrapper {
    position: sticky;
    display: flex;
    top: 0.75%;
    right: 6%;
    left : auto;
    z-index: 1001;

  }
  
  .hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
  }
  
  .hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: #0e275c;
    margin: 5px 0;
    transition: all 0.3s ease;
  }
  
  /* Hamburger Animation */
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(13px) rotate(-45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-13px) rotate(45deg);
  }
  
  #nav-list {
    display: none; /* Hide menu completely by default */
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    background-color: #f3edee;;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease, display 0s 0.3s;
    align-items: center;
    text-align: center;
  }
  
  #nav-list.active {
    display: flex; 
    transform: translateX(0);
    transition: transform 0.3s ease; 
  }
  
  .nav-item {
    padding: 1.2rem 0;
    font-size: 1.2rem;
  }
  
  .nav-item a {
    text-decoration: none;
    color: #0e275c;
    font-weight: 500;
  }
  
  /* Logo */
  #logo img {
    height: 60px;
    width: auto;
    margin-right: 0px;
  }
  

/* ----- Header Section Adjustments ----- */
  #header {
    height: auto;
    padding: 5% 0;
  }
  
  .header-content {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .header-image {
    width: 95%;
    margin-bottom: 2rem;
  }
  

  .header-text h1 {
    font-size: 2.5rem;
  }
  
  .header-text h2 {
    font-size: 1.5rem;
  }
  
  .header-text p {
    font-size: 1.2rem;
  }
  
  /* ----- About Section Adjustments ----- */
  /* #about {
    height: auto;
    padding: 5% 0;
  }
  
  .about-content {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .about-image {
    width: 80%;
    margin-bottom: 1.5rem;
  }
  
  .about-text h1 {
    font-size: 2.5rem;
  }
  
  .about-text p {
    font-size: 1rem;
  }
   */
  /* ----- Projects Section Adjustments ----- */
  #Projects {
    max-width: 100%;
    padding: 2rem 1rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;  /* Single column on mobile */
    gap: 1.5rem;
  }
  
  .projectInfo h2 {
    font-size: 1.2rem;
  }
  
  .projectInfo p {
    font-size: 1rem;
  }
  
  /* ----- Contact Section Adjustments ----- */
  #contact {
    max-width: 85%;
    padding: 25% 0 10% 0;
  }
  
  .contact-section {
    flex-direction: column;
    padding: 5%;
    gap: 2%;
  }
  
  /* Left side: Contact Info becomes full width */
  .contact-info {
    width: 100%;
    margin-bottom: 2rem;
  }
  
  .contact-info h1 {
    font-size: 2.5rem;
  }
  
  .contact-info h2 {
    font-size: 1.4rem;
  }
  
  .info-item {
    margin-bottom: 1rem;
  }
  
  .info-item img {
    width: 25px; /* Reduce icon size */
  }
  
  .info-item a,
  .info-item p {
    font-size: 1.2rem;
  }
  
  /* Right side: Contact Form - full width in its own box */
  .contact-form {
    width: 100%;
    padding: 1.5rem;
    margin: 0 auto;
  }
  
  .contact-form h3 {
    font-size: 1.5rem;
  }
  
  .contact-form label,
  .contact-form input,
  .contact-form textarea {
    font-size: 1rem;
  }
  
  .contact-form button {
    font-size: 1rem;
  }
}

/* ============================== Ipad ============================== */
@media (min-width: 769px) and (max-width: 1024px) {
  #nav-wrapper {
    padding: 1% 3%;
    height: auto;
  }
  
  /* ------- Logo -------- */
  #logo img {
    width: 40%;
    margin: 2% 0% 0% 0%;
  }
  
  
  /* ------- right nav bar -------- */
  .right-nav {
    margin-left: 5%;
    margin-right: 0%;
    right: 0;
  }

  
  #nav-list {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
  
  .nav-item {
    padding: 0 10%;
  }

  #header {
    height: auto;
    padding: 5% 0;
  }
  
  .header-content {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .header-image {
    width: 95%;
    margin-bottom: 2rem;
  }
  

  .header-text h1 {
    font-size: 2.5rem;
  }
  
  .header-text h2 {
    font-size: 1.5rem;
  }
  
  .header-text p {
    font-size: 1.2rem;
  }
}




