/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  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.8rem;
  font-weight: bold;
  color: #F14A00;
}

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

.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

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

/* Mobile Menu */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: white;
}

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

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

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

.btn {
  background-color: #C62300;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s;
}

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

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

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

  .menu-toggle {
    display: block;
  }
}

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

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

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

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

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

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

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

.project-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.project-card {
  background-color: #2A004E;
  border: 2px solid #C62300;
  border-radius: 12px;
  padding: 1.5rem;
  width: 280px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card h3 {
  color: #F14A00;
  margin-bottom: 0.8rem;
}

.project-card p {
  font-size: 1rem;
  color: #ddd;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(241, 74, 0, 0.3);
}

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

.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;
  color: #ccc;
}

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

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

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

.contact-form button {
  background-color: #C62300;
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

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

/* Contact Info Styling */
.contact-info {
  margin-top: 2rem;
  text-align: left;
  background-color: #500073;
  padding: 1.5rem;
  border-radius: 10px;
  border: 2px solid #C62300;
  color: #ddd;
}

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

.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;
  z-index: 100;
  background-color: #C62300;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: background-color 0.3s;
}

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

/* Profile Picture */
.profile-pic {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

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

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

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

  .menu-toggle {
    display: block;
  }

  /* Home Section */
  .home-content h1 {
    font-size: 2rem;
  }

  .home-content p {
    font-size: 1rem;
  }

  /* About Section */
  .about-container {
    padding: 0 1rem;
  }

  .about-container h2 {
    font-size: 2rem;
  }

  .about-container p {
    font-size: 1rem;
  }

  /* Profile Picture */
  .profile-pic img {
    width: 140px;
    height: 140px;
  }

  /* Projects */
  .project-cards {
    flex-direction: column;
    align-items: center;
  }

  .project-card {
    width: 90%;
  }

  /* Contact */
  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    width: 100%;
  }

  .contact-info {
    padding: 1rem;
    font-size: 0.95rem;
  }

  /* Scroll-to-Top Button */
  #scrollTopBtn {
    bottom: 20px;
    right: 20px;
    padding: 0.4rem 0.8rem;
    font-size: 1.2rem;
  }
}
