/* === Global Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(120deg, #1e3c72, #2a5298);
  color: #fdfdfd;
  min-height: 100vh;
  line-height: 1.6;
  background-attachment: fixed;
}

/* === Navigation === */
header {
  background: rgba(0, 0, 0, 0.6);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

nav {
  max-width: 1100px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav h1 {
  font-size: 1.7rem;
  color: #ffffff;
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #00eaff;
}

/* === Shared Section Layout === */
section {
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Headings === */
h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 30px;
  color: #ffffff;
  text-shadow: 1px 1px 3px #00000088;
}

/* === Home Page === */
.home {
  text-align: center;
}

.home img.profile {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #00eaff;
  box-shadow: 0 0 25px #00eaff88;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.home img.profile:hover {
  transform: scale(1.05);
}

.home h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.home p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, #00eaff, #00bfff);
  color: #1e1e2f;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  background: linear-gradient(135deg, #00bfff, #00eaff);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* === About Page === */
.about h3 {
  margin-top: 25px;
  font-size: 1.6rem;
  color: #00eaff;
}

.about p {
  margin-bottom: 15px;
  color: #e0e0e0;
}

/* === Projects Page === */
.projects {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px;
}

.projects h2 {
  margin-bottom: 20px;
  font-size: 2.5rem;
  color: #ffffff;
  text-align: center;
  width: 100%;
}

.project-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.project-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #00eaff33;
  border-radius: 20px;
  padding: 20px;
  max-width: 360px;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.project-card h3 {
  margin-bottom: 10px;
  color: #00eaff;
  font-size: 1.4rem;
}

.project-card p {
  color: #e0e0e0;
  font-size: 1rem;
  margin-bottom: 15px;
}

/* === Contact Page === */
.contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact input,
.contact textarea {
  padding: 14px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #00eaff55;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: #ccc;
}

.contact input:focus,
.contact textarea:focus {
  border: 1px solid #00eaff;
  background: rgba(0, 0, 0, 0.3);
}

.contact textarea {
  height: 120px;
  resize: vertical;
}

.contact .btn {
  align-self: flex-start;
}
.footer {
  text-align: center;
  margin-top: 50px;
  margin-bottom: auto;
  padding: 20px;
  font-size: 0.9rem;
  color: #ccc;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid #00eaff33;
}

.footer a {
  color: #00eaff;
  text-decoration: none;
  margin: 0 8px;
}

.footer a:hover {
  text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  section {
    margin: 30px 10px;
    padding: 15px;
  }

  .home h2 {
    font-size: 2rem;
  }

  .projects {
    gap: 30px;
  }

  .project-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .project-card {
    width: 90%;
  }
}
