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

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #2A004E;
  color: white;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #500073;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #C62300;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: white;
}

/* Home Section */
.home-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(to bottom right, #2A004E, #500073);
}

.home-content h1 {
  font-size: 3rem;
  color: #F14A00;
  margin-bottom: 1rem;
}

.home-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #ffffffd1;
}

.btn {
  padding: 0.8rem 1.5rem;
  background-color: #F14A00;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #C62300;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #500073;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    padding: 1rem;
    border-radius: 8px;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}

/* About Section */
.about-section {
  padding: 4rem 2rem;
  background-color: #2A004E;
  color: white;
}

.about-container {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.about-container h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #F14A00;
}

.about-container p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  color: #ffffffd8;
}

/* Projects Section */
.projects-section {
  padding: 4rem 2rem;
  background-color: #500073;
  color: white;
}

.projects-container {
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.projects-container h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #F14A00;
}

.project-card {
  background-color: #2A004E;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px #00000030;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px #C62300aa;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #F14A00;
}

.project-card p {
  font-size: 1rem;
  color: #ffffffd0;
  margin-bottom: 1.2rem;
}

/* Contact Section */
.contact-section {
  padding: 4rem 2rem;
  background-color: #2A004E;
  color: white;
}

.contact-container {
  max-width: 600px;
  margin: auto;
  text-align: center;
}

.contact-container h2 {
  font-size: 2.5rem;
  color: #F14A00;
  margin-bottom: 1rem;
}

.contact-container p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #ffffffd5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  background-color: #500073;
  color: white;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #ffffffa5;
}

.contact-form button {
  background-color: #F14A00;
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

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

/* Contact Info */
.contact-info {
  margin-top: 2rem;
  text-align: left;
  background-color: #500073;
  padding: 1.5rem;
  border-radius: 10px;
  color: #ffffffcc;
  font-size: 1rem;
}

.contact-info p {
  margin-bottom: 0.8rem;
}

.contact-info a {
  color: #F14A00;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Scroll-to-top button */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  font-size: 1.5rem;
  background-color: #F14A00;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#scrollTopBtn:hover {
  background-color: #C62300;
}

/* Active link styling */
.nav-links a.active {
  color: #F14A00;
  font-weight: bold;
}

.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-pic {
  margin-bottom: 1.5rem;
}

.profile-pic img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #F14A00;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-content {
    padding: 2rem 1rem;
    font-size: 1.2rem;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }

  .profile-pic img {
    width: 140px;
    height: 140px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }

  .contact-container {
    padding: 2rem 1rem;
  }

  #scrollTopBtn {
    bottom: 20px;
    right: 20px;
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
  }
}

h1, h2 {
  font-size: clamp(1.5rem, 5vw, 3rem);
}

p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}
#role {
  font-weight: bold;
  color: #ff6600;
  transition: all 0.5s ease;
}
