/* style.css - shared for both versions */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  /* background-color: #f9f9fb; */
  background: linear-gradient(-45deg, #667eea, #764ba2, #6b8dd6, #8e37d7);
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
  color: whitesmoke;
  scroll-behavior: smooth;
  /* Wrapper ensures footer stays at bottom even if content is short */
  display: flex;
  flex-direction: column;
  min-height: 100vh;

}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* background-color: #ffffff; */
  background: linear-gradient(-45deg, #667eea, #764ba2, #6b8dd6, #8e37d7);
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
  padding: 1rem 3rem;
  box-shadow: 0 2px 5px rgba(5, 5, 5, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.logo {
  font-weight: bold;
  color: whitesmoke;
  font-size: 1.2rem;
  filter: drop-shadow(1px 1px 20px black);
}

/* Align menu perfectly to right */
.navbar ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  flex: 1;
}

.navbar ul li a {
  text-decoration: none;
  color: whitesmoke;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar ul li a.active,
.navbar ul li a:hover {
  color: blanchedalmond;
}

/* Hamburger icon */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  user-select: none;
}

/* Theme button - removed */
.theme-btn { display:none; }

section {
  margin-top: 50px;
  padding: 2rem;
}

/* Home Section */
section.home { text-align: center; }

.profile-pic {
  width: 250px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.btn {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: whitesmoke;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 8px;
  margin-top: 1rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover { 
  transform: translateY(-3px); 
  opacity:0.95; 
}

/* .about h2 {
  color: black;
}

.skills h2 {
  color: black;
}
.projects h2 {
  color: black;
} */

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.project-list { 
  display: grid; 
  gap: 1rem;

}

.project {
  padding: 1rem;
  border-radius: 8px;
  /* box-shadow: 0 2px 20px white; */
  box-shadow: 0 4px 60px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
  transform: scale(1.02);
   box-shadow: 0 2px 20px white;
  /* box-shadow: 0 4px 12px rgba(0,0,0,0.1); */
}

.contact h2 {
  text-align: center;
}

 .contact-form { 
  display: flex; 
  flex-direction: column; 
  gap: 1rem; 
  max-width: 500px; 
  margin: 0 auto; 
}
.contact-form input, .contact-form textarea {
  padding: 10px; 
  border: 1px solid #ccc; 
  border-radius: 6px; 
  font-size: 1rem;
}

.contact-footer {
  /* background: linear-gradient(-45deg, #667eea, #764ba2, #6b8dd6, #8e37d7);
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite; */
  background: black;
  box-shadow: 0 2px 5px rgba(5, 5, 5, 0.1);
  color: #fff;
  padding: 10px 0;
  text-align: center;
  width: 100%;
  margin-top: 75px;
}

.contact-list {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.contact-list a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-list a:hover {
  color: white; /* nice cyan hover */
}

.contact-list i {
  color: white;
  font-size: 1.2rem;
}


 /* Fade-in animation
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }  */

/* Navbar shrink effect */
.navbar.shrink { 
  padding: 0.5rem 3rem; 
  box-shadow: 0 1px 4px rgba(0,0,0,0.08); 
  background-color:#fff; 
}

/* Responsive Menu */
@media (max-width: 768px) {
  .menu-toggle { 
    display: block; 
  }

  .navbar ul { 
    display: none; 
    flex-direction: column; 
    position: absolute; 
    top: 60px; 
    left: 0; 
    width: 100%; 
    background: linear-gradient(-45deg, #667eea, #764ba2, #6b8dd6, #8e37d7);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
    text-align: center; 
    padding: 1rem 0; 
  }
  
  .navbar ul.show { 
    display: flex; 
  }

  .navbar ul li { 
    margin: 0.5rem 0; 
  }

  .profile-pic { 
    width: 200px; 
  }

  .contact-list {
    flex-direction: row;
    gap: 10px;
  }

  .contact-list li {
    font-size: 0.95rem;
  }

  .contact-footer {
    margin-top: 140px;
    /* padding-bottom: 10px; */
  }
}

/* status messages */
.status-message { margin-top: 1rem; font-weight: 500; text-align:center; }
.status-message.success { color: #fad0c4; }
.status-message.error { color: red; }

/* small helper to avoid horizontal scroll */
html, body { 
  /* height: 100%; */
  width:100%; 
  overflow-x:hidden; 
}


/* CONTACT GLASS MORPHISM */

.contact {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  margin: 100px auto; /* centers the glass card */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Heading style */
.contact h2 {
  color: #fff;
  margin-bottom: 1.2rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* Contact form layout */
.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

/* Inputs and textarea glass style */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

/* Button with frosted look */
.contact-form .btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.contact-form .btn:hover {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}