/* === style.css (Dark Mode Redesign) === */

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #1e1e2f, #121212);
  color: #e0e0e0;
  line-height: 1.6;
  padding-top: 80px; /* offset for fixed header */
}

/* === Typography === */
h1, h2, h3 {
  color: #ffd479;
}

/* === Header & Navigation === */
header {
  background: linear-gradient(to right, #0f0f0f, #1e1e2f);
  color: #fff;
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffb703;
}

.menu-icon {
  font-size: 1.8rem;
  cursor: pointer;
  display: none; /* shown on small screens */
}

/* === Main Layout === */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 15px;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  background: linear-gradient(135deg, #2c2c3a, #1a1a24);
}

.hero-content h1 {
  font-size: 2.5rem;
  color: #ffdd99;
}

.hero-content .highlight {
  color: #00bfa6;
}

.btn-resume {
  display: inline-block;
  background-color: #00bfa6;
  color: #fff;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-resume:hover {
  background-color: #009e88;
}

/* === Sections === */
.about,
.projects,
.contact {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: auto;
}

/* === Contact Form === */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form h1 {
  color: #ffe082;
  margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #444;
  border-radius: 6px;
  background-color: #2a2a2a;
  color: #fff;
  font-size: 1rem;
}

.contact-form button {
  background-color: #00bfa6;
  color: white;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  border-radius: 6px;
}

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

/* === Projects === */
.project-card {
  background: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-info {
  padding: 1rem;
  text-align: center;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.btn-primary {
  background-color: #00bfa6;
  color: #fff;
}

.btn-secondary {
  background-color: #ffa500;
  color: #fff;
}

.btn:hover {
  opacity: 0.9;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #121212;
  color: #aaa;
  font-size: 0.9rem;
  margin-top: 4rem;
}

/* === Scroll Button === */
#scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #00bfa6;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 50px;
  display: none;
  cursor: pointer;
  z-index: 99;
  transition: opacity 0.3s;
}

#scroll-to-top.show {
  display: block;
  opacity: 1;
}

/* === Profile Image === */
.profile-photo {
  text-align: center;
  margin-top: 2rem;
}

.profile-photo img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
  border: 4px solid #444;
  transition: transform 0.3s ease;
}

.profile-photo img:hover {
  transform: scale(1.05);
}

.caption {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffb703;
}

/* === Responsive Design === */
@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .menu-icon {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #1e1e2f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 9;
  }

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

  .nav-links li {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #333;
  }

  .nav-links li a {
    color: #fff;
    font-size: 1.2rem;
  }

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

  .hero {
    flex-direction: column;
    padding: 6rem 1rem 2rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .btn-resume {
    margin-top: 1rem;
  }
}

.notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 5px;
  color: white;
  font-size: 16px;
  z-index: 9999;
}

.notification.success {
  background-color: green;
}

.notification.error {
  background-color: red;
}
