* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Make nav fixed */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 40px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    height: 100px;
}

/* Logo */
#logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 40px;
    font-family: 'Montserrat', sans-serif;
    color: rgb(71, 70, 70);
    position: relative;
    right: 20px;
}

/* Search bar inside nav */
#nav-search {
    flex: 1;
    text-align: center;
}
#nav-search input {
    width: 100%;
    max-width: 2000px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
}

#nav-search input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Nav buttons desktop */
#navbtns {
    display: flex;
    align-items: center;
    gap: 40px;
}
#navbtns ul {
    display: flex;
    list-style-type: none;
    gap: 25px;
}
#navbtns ul a {
    text-decoration: none;
    color: black;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
}
.navbtnsunderline {
    background-color: white;
    height: 3px;
    margin-top: 3px;
    border-radius: 10px;
}
#navbtns ul li:hover .navbtnsunderline {
    width: 100%;
    background-color: green;
    transition: 0.4s;
}

/* Propose button */
#proposebtn {
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    font-size: 18px;
    border-radius: 10px;
    background: linear-gradient(to right, rgb(0, 121, 0), rgb(23, 185, 23));
    transition: 0.3s;
    letter-spacing: 1px;
    font-family: 'Monserrat', sans-serif;
}
#proposebtn:hover {
    box-shadow: 0 0 10px green;
    scale: 1.1;
}

#menu-icon {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

#menu-icon:hover {
    color: green;
}

#mobileMenu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: fit-content;
    background: white;
    box-shadow: -2px 0 6px rgba(0,0,0,0.1);
    padding: 20px;
    padding-bottom: 50px;
    transition: 0.3s;
    z-index: 2000;
}
#mobileMenu ul {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
}
#mobileMenu ul a {
    text-decoration: none;
    font-size: 18px;
    color: black;
    font-family: 'Poppins', sans-serif;
}

#mobileMenu ul li:hover .navbtnsunderline {
    width: 100%;
    background-color: green;
    transition: 0.4s;
}

#closeMenu {
    font-size: 28px;
    cursor: pointer;
    float: right;
}

#closeMenu:hover {
    color: green;
}

#proposebtn-mobile {
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 10px;
    background: linear-gradient(to right, rgb(0, 121, 0), rgb(23, 185, 23));
    transition: 0.3s;
    width: 200px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    width: 170px;
}

#proposebtn-mobile:hover {
    box-shadow: 0 0 10px green;
    scale: 1.05;
}

/* Responsive Nav */
@media (min-width: 1200px) {
    nav {
        padding: 50px 60px;
    }
    #logo {
        scale: 1;
        margin-left: 0px;
    }
    #nav-search {
      margin-left: 0px;
    } 
    #nav-search input {
        width: 70%;
        font-size: 17px;
    }
    #navbtns {
        display: flex;
    }
    #menu-icon {
        display: none;
    }
}

@media (max-width: 1199px) and (min-width: 787px) {
    nav {
        padding: 40px 45px;
    }
    #logo {
        scale: 0.9;
        margin-left: -15px;
    }
    #nav-search {
      margin-left: -15px;
    } 
    #nav-search input {
        width: 80%;
        font-size: 16px;
    }
    #navbtns {
        display: none;
    }
    #menu-icon {
        display: block;
    }
}

@media (max-width: 786px) and (min-width: 576px) {
    nav {
        padding: 30px 35px;
    }
    #logo {
        scale: 0.75;
        margin-left: -30px;
    }
    #nav-search {
      margin-left: -30px;
    } 
    #nav-search input {
        width: 90%;
        font-size: 15px;
    }
    #navbtns {
        display: none;
    }
    #menu-icon {
        display: block;
    }
}

@media (max-width: 575px) {
    nav {
        padding: 20px 25px;
    }
    #logo {
        scale: 0.65;
        margin-left: -35px;
    }
    #nav-search {
      margin-left: -50px;
    } 
    #nav-search input {
      scale: 0.9;
      
    }
    #navbtns {
        display: none;
    }
    #menu-icon {
        display: block;
    }
    #uploadModal {
        padding: 10px;
    }
    .form-modal-content {
        scale: 0.9;
    }
    .opendemo {
        width: 100px;
        text-align: center;
        margin-top: -10px;
        scale: 0.8;
        margin-right: -10px;
    }
    .datedemo {
        font-size: 10px;
        right: 5%;
        bottom: 8%;
    }
    .demo-img {
        scale: 0.8;
    }
    .demo-info {
        gap: 0px;
        margin-left: -30px;
    }
    .demo-item .demo-info{
        scale: 0.8;
    }
}


@media (max-width: 410px) {
    nav {
      height: 80px;
    }
    main {
      margin-top: -30px;
    }
    #logo {
        scale: 0.55;
        left: -28px;
    }
    #nav-search input {
        width: 135px;
        font-size: 11px;
        margin-left: -40px;
    }
    .demo-img {
        scale: 0.7;
    }
    .demo-info {
        margin-left: -45px;
    }
    .demo-item .demo-info{
        scale: 0.7;
    }
    .opendemo {
        width: 90px;
        text-align: center;
        scale: 0.7;
    }
    .demo-item img{
      margin-left: -10px;
    }
    .opendemo {
      margin-right: -12px;
    }
}


/* Projects Section */
#projects {
  margin-top: 150px;
}
.intro {
  text-align: center;
  padding: 10px 20px;
  margin-bottom: 20px;
}
.intro h2 {
  font-size: 27px;
  color: #065f46; 
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
}
.intro p {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
}

.projects-flex {
  display: flex;
  padding: 20px;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
  align-items: center;        
}

.card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  padding: 25px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  width: 400px;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.project-img {
  width: 100%;
  height: 200px;
  object-position: center;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.card h3 {
  font-size: 21px;
  margin-bottom: 12px;
  color: #064e3b; 
  font-weight: 600;
  font-family: 'roboto mono', monospace;
}

.card p {
  font-size: 14px;
  color: #444;
  margin-bottom: 16px;
  line-height: 1.6;
  font-family: 'poppins', sans-serif;
  height: 70px;         
  overflow-y: auto;          
  margin-bottom: 15px;       
  padding-right: 8px;
}

.tags {
  margin-bottom: 18px;
}

.tag {
  display: inline-block;
  background: #d1fae5; 
  color: #065f46;      
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  margin-right: 6px;
  font-weight: bold;
  font-family: 'roboto', sans-serif;
}

.btns {
  display: flex;
  gap: 10px;
}

.btn {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.25s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn.view {
  background: rgb(41, 169, 41);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
}

.btn.view:hover {
  background: rgb(255, 255, 255);
  color: green;
  border: 1px solid limegreen;
  color: black;
  box-shadow: 1px 0 15px rgb(144, 230, 144);
}

.btn.build {
  background: rgb(255, 255, 255);
  color: green;
  border: 1px solid limegreen;
  color: black;
  box-shadow: 1px 0 15px rgb(144, 230, 144);
  font-family: 'Montserrat', sans-serif;
}

.btn.build:hover {
    background: rgb(41, 169, 41); 
    color: #fff;
}

.btn:active {
  transform: translateY(-7px);
}

.author {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border-radius: 25px;
  margin-top: 25px;
  
}

.author-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  border: 2px solid green;
}

.author-name {
  font-size: 14px;
  font-weight: 500;
  color: black;
  font-family: 'montserrat', sans-serif; 
}

.author small {
  font-size: 11px;
  color: gray;
  font-family: 'roboto', sans-serif;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #ffffff;
  padding: 30px;
  border-radius: 14px;
  width: 90%;
  max-width: 600px;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.3s ease;
}

.modal-content h2 {
  margin-bottom: 20px;
  font-size: 20px;
  color: #065f46;
  font-family: 'Montserrat', sans-serif;
}

.close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}

.close:hover {
  color: limegreen;
}

/* Demo list inside modal */
.demo-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.demo-item {
  display: flex;
  align-items: flex-start;
  background: #f9f9f9;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  gap: 10px;
  position: relative;
}

.opendemo {
  position: absolute;
  top: 17%;
  right: 2%;
  font-family: 'montserrat', sans-serif;
  border: 1px solid limegreen;
  padding: 7px 12px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  color: green;
  text-decoration: none;
  background-color: white;
}

.opendemo:hover {
    background: rgb(41, 169, 41); 
    border: none;
    color: #fff;
    box-shadow: 0 0 1px black;
}

.datedemo {
  position: absolute;
  right: 3%;
  bottom: 5%;
  font-size: 11px;
  color: gray;
  font-family: 'roboto mono', monospace;
}


.demo-img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
  border: 2px solid #10b981;
}

.demo-info strong {
  font-size: 15px;
  color: #064e3b;
  font-family: 'poppins', sans-serif;
  margin-top: 5px;
}

.demo-info p {
  margin: 3px 0;
  font-size: 13px;
  color: #555;
  font-family: 'roboto', sans-serif;
}
.email {
  color: grey;
}
.whatsapp {
  color: grey;
}
.email:hover i {
  color: black;
}

.whatsapp:hover i {
  color: #25D366;
}

.demo-info i {
  margin-right: 6px;
  color: #6b7280;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-10px);}
  to {opacity: 1; transform: translateY(0);}
}

/* Upload Modal Form Styling */
#uploadModal .form-modal-content {
  max-width: 500px;
  background-color: white;
  border-radius: 14px;
  padding: 35px;
  animation: fadeIn 0.3s ease;
}

#uploadModal h2 {
  margin-bottom: 20px;
  font-size: 22px;
  color: #065f46;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
}

#uploadForm label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
  color: #064e3b;
  font-family: 'poppins', sans-serif;
}

#uploadForm input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
  font-family: 'poppins', sans-serif;
  transition: border 0.2s, box-shadow 0.2s;
}

#uploadForm input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

#uploadForm button {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  background: rgb(41, 169, 41);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: 0.25s;
}

#uploadForm button:hover {
  background: #fff;
  color: green;
  border: 1px solid limegreen;
  box-shadow: 0 0 10px rgba(0, 128, 0, 0.3);
}

#uploadForm input[type="file"] {
  display: none;
}

#uploadForm label[for="demoFile"] {
  display: inline-block;
  padding: 12px;
  border: 2px dashed #10b981;
  border-radius: 10px;
  background: #f9fafb;
  color: #065f46;
  font-family: 'poppins', sans-serif;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  margin-bottom: 15px;
  transition: 0.25s;
  width: 100%;
}

#uploadForm label[for="demoFile"]:hover {
  background: #ecfdf5;
  border-color: #035a3e;
}

#uploadForm .file-chosen {
  display: block;
  margin-top: 0px;
  font-size: 13px;
  color: #555;
  font-family: 'poppins', sans-serif;
  margin-bottom: 30px;
}

#uploadForm label[for="profileImage"] {
  display: inline-block;
  padding: 12px;
  border: 2px dashed #10b981;
  border-radius: 10px;
  background: #f9fafb;
  color: #065f46;
  font-family: 'poppins', sans-serif;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  margin-bottom: 15px;
  transition: 0.25s;
  width: 100%;
}

#uploadForm label[for="profileImage"]:hover {
  background: #ecfdf5;
  border-color: #035a3e;
}

#uploadForm .img-chosen {
  display: block;
  margin-top: 0px;
  font-size: 13px;
  color: #555;
  font-family: 'poppins', sans-serif;
  margin-bottom: 30px;
}