/* style.css */

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

body {
  font-family: Arial, sans-serif;
  background: #0f172a;
  color: white;
  line-height: 1.6;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 10%;
  background: #111827;
  position: sticky;
  top: 0;
}

nav h1 {
  color: #38bdf8;
}

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

nav a {
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

nav a:hover {
  color: #38bdf8;
}

.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  text-align: center;
}

.hero h2 {
  font-size: 4rem;
  margin-bottom: 20px;
}

.hero p {
  max-width: 700px;
  font-size: 1.2rem;
  margin-bottom: 30px;
}

button {
  padding: 14px 28px;
  border: none;
  background: #38bdf8;
  color: black;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  transform: scale(1.05);
}

section {
  padding: 100px 10%;
}

section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
}

.about-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card,
.project-card,
.contact-box {
  background: #1e293b;
  padding: 30px;
  border-radius: 20px;
  transition: 0.3s;
}

.card:hover,
.project-card:hover {
  transform: translateY(-10px);
}

.card h3,
.project-card h3 {
  margin-bottom: 15px;
  color: #38bdf8;
}

.contact-box {
  max-width: 700px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

input,
textarea {
  padding: 15px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
}

textarea {
  min-height: 150px;
}

#output {
  margin-top: 10px;
  color: #38bdf8;
}

footer {
  text-align: center;
  padding: 30px;
  background: #111827;
}.achievement {
  position: fixed;
  top: 25px;
  right: 25px;
  background: #1e293b;
  color: #38bdf8;
  padding: 18px 25px;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
  font-weight: bold;
  z-index: 9999;
  animation: slideIn 0.5s ease, fadeOut 0.5s ease 4s forwards;
}

.hidden {
  display: none;
}

@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(120%);
  }
}