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

body {
  background-color: #08074a;
  color: white;
  line-height: 1.6;
}

/* Header */
header {
  padding: 20px 40px;
  background: transparent; /* no static color */
  position: relative; /* not fixed */
  width: 100%;
  z-index: 10;
  color: white;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 600;
  font-size: 18px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.contact-btn {
  background: #0033ff;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}

@media (max-width: 768px) {
  .contact-btn {
    display: none;
  }
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  position: relative;
  padding: 0 20px;
}

.gradient {
  /*  Animated gradient background */
  background: linear-gradient(120deg, #08074a, #0a0a70, #10108c);
  background-size: 300% 300%;
  animation: gradientShift 20s ease infinite;
  overflow: hidden; /* Keeps curve clean */
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


.hero h1 {
  font-size: 64px;
  font-weight: 600;
  color: white;
  border-bottom: 2px solid transparent;
}

.hero p {
  margin-top: 20px;
  font-size: 18px;
  color: white;
  max-width: 600px;
}

.curve {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 120px;
  background: white;
  border-top-left-radius: 100% 60%;
  border-top-right-radius: 100% 60%;
}

/* Projects */
.projects {
  background: white;
  color: #08074a;
  text-align: center;
  padding: 40px 20px 110px 20px;
}

.projects h2 {
  font-size: 40px;
  margin-bottom: 100px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 projects per row */
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  justify-items: center;
}

@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr; /* 1 project per row on phones/tablets */
  }
}

.project-grid > :last-child:nth-child(odd) {
  grid-column: 1 / -1; /* makes last card span both columns */
  justify-self: center; /* centers it in the middle */
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-placeholder {
  width: 100%;
  max-width: 300px;
  height: 220px;
  background: #dcdcdc;
  border-radius: 8px;
  margin-bottom: 20px;
}

.project-card img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.project-card img:hover {
  transform: scale(1.03);
}

/* About */
.about {
  text-align: center;
  padding: 100px 20px;
}

.about h2 {
  font-size: 40px;
  margin-bottom: 20px;
}

.about form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 40px auto 0;
}

.about label {
  text-align: left;
  margin-top: 20px;
  font-weight: 500;
}

.about input,
.about textarea {
  padding: 12px;
  border: none;
  border-radius: 6px;
  margin-top: 6px;
  font-size: 15px;
}

.about button {
  background: #0033ff;
  color: white;
  padding: 14px;
  border: none;
  border-radius: 8px;
  margin-top: 30px;
  cursor: pointer;
  font-size: 16px;
}

.about button:hover {
  background: #0022aa;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px;
  font-size: 14px;
  color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 10px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero p {
    font-size: 16px;
  }

  .projects h2,
  .about h2 {
    font-size: 32px;
  }
}
