/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: "Poppins", sans-serif;
  background: #121212;
  color: #e0e0e0;
  line-height: 1.6;
}

/* Container */
.container {
  width: 90%;
  margin: 0 auto;
}

/* Navbar */
.navbar {
  position: fixed;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  padding: 5px 5px;
  z-index: 1000;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar .logo {
  font-size: 1.8em;
  font-weight: 600;
  color: #d7aaff;
  text-decoration: none;
}
.logo img {
  width: 50px; /* Adjust as needed */
  height: auto;
  padding-top: 10px;
}
.nav-menu {
  list-style: none;
  display: flex;
}
.nav-menu li {
  margin-left: 20px;
}
.nav-menu li a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s;
}
.nav-menu li a:hover {
  color: #d7aaff;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.hamburger span {
  height: 3px;
  width: 25px;
  background: #e0e0e0;
  margin-bottom: 4px;
  border-radius: 5px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  background: url("assets/background2.jpg") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}
.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
}
.hero-content h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}
.hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
}
.btn {
  background: #d7aaff;
  color: #121212;
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
  cursor: pointer;
}
.btn:hover {
  background: #b58de0;
}
.small-btn {
  padding: 8px 20px;
  font-size: 0.9em;
}

/* About Section */
.about {
  padding: 80px 0;
  background: #1e1e1e;
}
.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}
.about-image img {
  width: 100%;
  max-width: 350px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.about-text {
  flex: 1;
}
.about-text h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
}
.about-text p {
  font-size: 1.1em;
  line-height: 1.8;
}

/* Projects Section */
.projects {
  padding: 80px 0;
}
.projects h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5em;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.project-card {
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s;
}
.project-card:hover {
  transform: translateY(-5px);
}
.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.project-info {
  padding: 20px;
  text-align: left;
}
.project-info h3 {
  margin-bottom: 10px;
  font-size: 1.5em;
}
.project-info p {
  font-size: 1em;
  margin-bottom: 15px;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: #1e1e1e;
  text-align: center;
}
.contact h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
}
.contact p {
  font-size: 1.1em;
  margin-bottom: 40px;
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
}
.contact-form button {
  align-self: center;
}

/* Footer */
.footer {
  background: #0d0d0d;
  padding: 30px 0;
  text-align: center;
}
.footer p {
  margin-bottom: 10px;
  font-size: 0.9em;
}
.footer .social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}
.footer .social-links a {
  color: #d7aaff;
  font-size: 1.5em;
  transition: color 0.3s;
}
.footer .social-links a:hover {
  color: #b58de0;
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #d7aaff;
  border: none;
  padding: 15px 17px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  z-index: 1000;
  transition: background 0.3s;
}
#backToTop:hover {
  background: #b58de0;
}

/* Responsive */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 20px;
    border-radius: 10px;
  }
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Optional: center items vertically if needed */
    text-align: center; /* Center text inside each item */
    position: absolute;
    top: 85px; /* Adjust this value as needed */
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    padding-top: 30px;
    margin: 0;
    border-radius: 50px;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
  .hamburger {
    display: flex;
  }
}

/* Project Page Styles */
.project-page {
  padding: 80px 0;
  background: #1e1e1e;
  color: #e0e0e0;
}

.project-page h1 {
  font-size: 2.8em;
  margin-top: 50px;
  margin-bottom: 20px;
  text-align: center;
}

.project-details {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 40px;
  text-align: left;
}

.project-details p {
  max-width: 800px;
  margin: 0 auto;
}

.project-screenshots {
  margin: 40px 0;
  text-align: center;
}

.project-screenshots h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

.project-screenshots img {
  width: 100%;
  max-width: 600px;
  margin: 10px auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  display: block;
}

.project-links {
  text-align: center;
  margin-top: 30px;
}

.project-links .btn {
  padding: 12px 30px;
  font-size: 1em;
  display: inline-block;
  background: #d7aaff;
  color: #121212;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.project-links .btn:hover {
  background: #b58de0;
}
/* Project Details Tweaks */
.project-details {
  max-width: 800px; /* Limit the width for better readability */
  margin: 0 auto; /* Center the content */
  padding: 20px; /* Add some breathing room */
  line-height: 1.6; /* Nice line spacing */
}

.project-details p {
  margin-bottom: 1em; /* Space between paragraphs */
}

.project-details strong {
  font-weight: 600; /* Make bold text stand out */
}

.project-details em {
  font-style: italic; /* Subtle emphasis for certain text */
}

.project-details ul {
  margin-left: 1.5em; /* Indent the list for clarity */
  list-style-type: disc; /* Use disc bullets */
  margin-bottom: 1em; /* Space after the list */
}

.project-details li {
  margin-bottom: 0.5em; /* Space between list items */
}

.project-details h2 {
  margin-top: 1.5em; /* Space above subheadings */
  margin-bottom: 0.5em; /* Space below subheadings */
  font-size: 1.8em; /* A bit bigger than normal text */
}
.contact-logo {
  display: block;
  margin: 0 auto 20px; /* Centers the logo and adds space below */
  width: 190px; /* Adjust the size as needed */
  height: auto;
}
