/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f4f4f9;
  color: #333;
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #222;
  color: #fff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.navbar .nav-links a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.navbar .nav-links a:hover {
  color: #ff9800;
}

/* Hero Section with Background */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  background: url("mejpyija8tc8fv.jpeg") no-repeat center center/cover;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.55);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 2rem;
}

.hero-content {
  flex: 1 1 400px;
  z-index: 2;
}

.hero h1 span {
  color: #ff9800;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background: #ff9800;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #e68900;
}

/* Hero image */
.hero-image {
  flex: 1 1 300px;
  text-align: center;
  z-index: 2;
}

.hero-image img {
  max-width: 300px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
}

/* About */
.about {
  text-align: center;
  padding: 4rem 2rem;
}

.profile-pic {
  width: 150px;
  border-radius: 50%;
  border: 3px solid #2575fc;
}

/* Education */
.education {
  padding: 4rem 2rem;
  background: #f4f4f9;
  text-align: center;
}

.education h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #2575fc;
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.edu-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.edu-image {
  position: relative;
}

.edu-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.edu-card:hover img {
  transform: scale(1.1);
}

.edu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  padding: 1rem;
  transition: opacity 0.4s ease;
}

.edu-card:hover .edu-overlay {
  opacity: 1;
}

.edu-overlay h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #ff9800;
}

.edu-overlay p {
  margin: 0.3rem 0;
  font-size: 1rem;
}

/* Projects */
.projects {
  padding: 4rem 2rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.project-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Skills */
.skills {
  padding: 4rem 2rem;
  text-align: center;
}

.skills-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.skill-item img {
  width: 60px;
  margin-bottom: 0.5rem;
}

/* Contact */
.contact {
  padding: 4rem 2rem;
  background: #fff;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #2575fc;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f4f4f9;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: 0.3s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contact-btn:hover {
  background: #2575fc;
  color: #fff;
  transform: translateY(-4px);
}

.contact-btn span {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.3rem;
}

.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  padding: 0.8rem;
  border: none;
  background: #2575fc;
  color: #fff;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #1b5fd9;
}

#form-status {
  margin-top: 1rem;
  font-weight: 500;
  text-align: center;
}
#form-status.success { color: green; }
#form-status.error { color: red; }
#form-status.loading { color: #2575fc; }

/* ✅ Back to Top button */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  padding: 8px 12px;
  cursor: pointer;
  background: #2575fc;
  color: #fff;
  border: none;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: 0.3s;
}
#back-to-top:hover {
  background: #1b5fd9;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: #222;
  color: #fff;
  margin-top: 2rem;
}
