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

body {
  font-family: "Poppins", sans-serif;
  color: #fff;
  background: #050524;
  padding-top: 60px;
}


header {
  position: fixed;
  width: 100%;
  height: 60px;
  top: 0;
  background: #222260;
  z-index: 1000;
}

nav {
  max-width: 1000px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
}

nav a {
  color: #3e44de;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #00b4ff;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #3e44de;
}


.hero {
  padding: 30px 10px;
  background: linear-gradient(135deg, #4a6cf7, #3b4cca);
  color: #fff;
  text-align: center;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.hero-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 10px;
  flex-wrap: wrap;
}

.hero-flex .title {
  width: 450px;
  height: 400px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hero-flex .title:hover {
  transform: scale(1.05) rotate(2deg);
}

.hero-text {
  max-width: 500px;
  color:#2c3e50;
;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-title span {
  color: #00b4ff;
}

.hero-subtitle {
  font-size: 1.5rem;
  line-height: 1.5;
  color: #2c3e50;
}


section {
  padding: 4rem 1rem;
  max-width: 1000px;
  margin: auto;
}

h2 {
  font-size: 2.7rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #3238cd;
}


.about-flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 20px;
}

.about-img {
  width: 400px;
  height: 350px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.about-text {
  flex: 1;
  min-width: 250px;
  max-width: 600px;
  color: #f0ebeb;
  line-height: 1.6;
}

.about-text h2 {
  font-size: 2.7rem;
  color: #3e44de;
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}


.project-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.project-card {
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background-color: #1a1a2e;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  overflow: hidden; 
  min-height: 500px;
  height: 100%;
  
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.project-card img {
  display: block;
  margin: 0;
  /* aspect-ratio: 16/9;  */
  object-fit: cover;
  width: 100%;
  height: 200px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.image {
  flex-shrink: 0;
  line-height: 0;
  /* overflow: hidden;
  margin: 0;
  padding: 0; */
  
}

.project-modal {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  padding: 1.2rem;
  background: #0f1624;
  color: #fff;
  
}

.project-title {
  font-size: 1.3rem;
  margin: 0.7rem 0;
  color: #3b4cca;
  font-weight: 700;
}

.project-subtitle {
  font-weight: bold;
  color: #00b4ff;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.project-description {
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0.5rem 0;
  max-height: 4.5em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-modal .link {
  margin-top: auto;
  padding-top: 1rem;
}

.project-modal p,
.project-modal h3,
.project-modal h2 {
  margin: 0.5rem 0;
}

.link {
  margin-top: auto;
}

.link a {
  display: inline-block;
  margin-top: 0.7rem;
  padding: 0.6rem 1.2rem;
  color: #fff;
  background-color: #3b4cca;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(59, 76, 202, 0.3);
}

.link a:hover {
  background-color: #2734a3;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(59, 76, 202, 0.5);
}


.project-card:nth-child(n+4) {
  display: none;
}


.project-grid.show-all-projects .project-card {
  display: block;
}


.show-more-wrapper {
  text-align: center;
  margin-top: 2rem;
}

.show-more-btn {
  background-color: #3b4cca;
  color: #fff;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.show-more-btn:hover {
  background-color: #2a38a3;
  transform: scale(1.05);
}


.contact-media {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 2rem;
}

.contact-media a img {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease, filter 0.3s ease;
  background-color: #3498db;
  border-radius: 7px;
}

.contact-media a:hover img {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.contact-form {
  max-width: 500px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #1a1a2e;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0, 128, 255, 0.1);
}

.contact-form label {
  color: #ccc;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #0f1624;
  color: #fff;
  font-size: 1rem;
  transition: outline 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #3b4cca;
}

.contact-form button {
  background-color: #3b4cca;
  color: #fff;
  border: none;
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contact-form button:hover {
  background-color: #2931af;
}


.form-message {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  color: #00ffcc;
  margin-top: 1rem;
  text-align: center;
  pointer-events: none;
}

.form-message.show {
  opacity: 1;
  transform: translateY(0);
}


footer {
  text-align: center;
  padding: 1.5rem 0;
  background: #222260;
  color: #ccc;
  font-size: 0.9rem;
}


@media (max-width: 700px) {
  .hero-flex,
  .about-flex {
    flex-direction: column;
    text-align: center;
  }

  .hero-flex .title,
  .about-img {
    width: 80%;
    max-width: 300px;
    height: auto;
  }

  .hero-text,
  .about-text {
    max-width: 100%;
  }
}

@media (max-width: 500px) {
  .project-card {
    height: 400px;
  }
  .project-card img {
    height: 150px;
  }
  .project-title {
    font-size: 1.1rem;
  }
  .project-subtitle {
    font-size: 1.3rem;
  }
}
