/* =================== GENERAL PAGE SETUP =================== */
body {
  font-family: 'Poppins', Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #2c2c2c;
  background: #d8d8d8 url('./assets/pexels-pixabay-247431.jpg') center center / cover no-repeat fixed;
  overflow-y: scroll;
  scroll-behavior: smooth;
  transition: background 0.3s ease, color 0.3s ease;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
  pointer-events: none;
}

#particles-js {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: transparent;
}

/* =================== HEADER =================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: transparent;
  box-sizing: border-box;
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.5s ease, transform 0.5s ease;
  background-color: transparent;
}

.logo-container.hide-on-scroll {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  cursor: zoom-in;
  transition: all 0.3s ease;
}

.profile-pic.enlarged {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 200px;
  height: 200px;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  cursor: zoom-out;
}

header h1 {
  color: #a0522d;
  margin: 0;
  font-size: 1.5em;
  line-height: 1.2;
}

#intro-banner {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#intro-banner.hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}
/* =================== NAVIGATION =================== */
nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #a0522d;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #1f6feb;
}

/* =================== MAIN CONTENT =================== */
main {
  margin-top: 80px;
  padding: 20px;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.3s ease-out;
}

.section {
  min-height: 100vh;
  padding: 40px;
  text-align: center;
  animation: fadeIn 1.5s ease;
  color: #dcdcdc;
  
}

.project {
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  margin: 10px auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
  max-width: 600px;
  color: #141414;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.project:hover {
  transform: scale(1.05);
}
/* =================== ABOUT ===============*/


/* =================== ACADEMIC PROJECTS =================== */
#academic .project {
  background: rgba(255, 255, 240, 0.8);
  color: #111;
  padding: 20px;
  margin: 15px auto;
  border-radius: 8px;
}

/* =================== CONTACT SECTION =================== */
#contact a {
  color: #28a745;
  text-decoration: none;
  transition: color 0.3s ease;
}

#contact a:hover {
  color: #218838;
}

/* =================== DARK MODE =================== */

.dark-mode {
  background: url('./assets/Evolution.jpg') center center / cover no-repeat fixed !important;
  color: #ffffff !important;
}

.dark-mode header {
    background: transparent;
}

.dark-mode nav ul li a {
    color: #2c2c2c;
}

.dark-mode .section{
    color: #2c2c2c;
}
.dark-mode .project {
  color: #ffffff !important;
  background: rgba(52, 53, 65, 0.8) !important;
}

.dark-mode #nav-menu {
  background-color: transparent;
}

.dark-mode #nav-menu li a:hover,
.dark-mode #nav-menu li button:hover {
  color: #00ffff;
}

/* =================== DARK MODE TOGGLE BUTTON =================== */
#dark-mode-toggle {
  position: absolute;
  top: 10px;
  right: 20px;
  padding: 6px 12px;
  font-size: 12px;
  background-color: rgba(28, 185, 212, 0.7);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-family: 'Poppins', sans-serif;
  z-index: 1001;
}

#dark-mode-toggle:hover {
  background-color: #66c7e0;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(31, 111, 235, 0.6);
}

/* =================== PDF MODAL =================== */
#pdf-modal {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 800px;
  height: 600px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  z-index: 1002;
  transition: height 0.3s ease, width 0.3s ease;
}

#pdf-modal.minimized {
  height: 50px;
  width: 300px;
  overflow: hidden;
}

#pdf-header {
  background: #1f6feb;
  color: white;
  padding: 10px;
  font-weight: bold;
  cursor: grab;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px 10px 0 0;
}

#pdf-header button {
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  margin-left: 10px;
}

#pdf-viewer {
  width: 100%;
  height: 100%;
  border: none;
}

/* =================== GLASS TEXT EFFECT =================== */
.glass-text {
  font-family: "Times New Roman", Times, serif;
  font-size: 1em;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* =================== RESPONSIVE DESIGN =================== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    gap: 10px;
  }

  .logo-container {
    display: flex;
    flex-direction: row;
    align-items: center; 
    gap: 10px;
  }

  .name-container {
   display: flex;
   flex-direction: column;
   }

  .profile-pic {
    width: 80px;
    height: 80px;
    margin-right: 0;
  }

  header h1 {
    font-size: 1.2em;
    line-height: 0.7;
    margin: 0;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  nav ul li, nav ul li a {
    width: 100%;
    display: block;
    padding: 8px 0;
  }

  #dark-mode-toggle {
    position: relative;
    top: 0;
    right: 0;
    margin-top: 10px;
    font-size: 10px;
    padding: 5px 10px;
  }

  main {
    padding: 10px;
  }

  .section {
    padding: 10px 5px;
    text-align: left;
  }

  .project {
    width: 100%;
    margin: 10px 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  #pdf-modal {
    width: 95%;
    height: 80vh;
    top: 30px;
  }

  #pdf-modal.minimized {
    width: 200px;
    height: 40px;
  }

  #pdf-header {
    flex-direction: column;
    align-items: flex-start;
  }

  #pdf-header button {
    margin: 5px 0 0 0;
  }

  .glass-text {
     margin-top: 4px;
     font-size: 0.8em; 
     padding: 2px 4px; 
     display: inline-block;
     transform: scale(0.7);
     transform-origin: left center; 
  }
}

/* =================== HAMBURGER MENU =================== */
.hamburger {
  display: none;
  font-size: 10px;
  background: none;
  color: #a0522d;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
    position: absolute;
    top: 10px;
    right: 12px;
  }

  #nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.95);
  }

  #nav-menu.show {
    display: flex;
  }

  #nav-menu li {
    padding: 10px;
    text-align: center;
  }

  #nav-menu li a,
  #nav-menu li button {
    font-size: 1.1em;
    background: none;
    border: none;
    color: #a0522d;
    width: 100%;
    display: block;
    cursor: pointer;
  }
}

/* =================== ANIMATIONS =================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== FORM ================== */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-weight: 600;
  font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
  font-family: 'Poppins', sans-serif;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
}

.contact-form button {
  background-color: #0077cc;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.form-status {
  margin-top: 1rem;
  font-weight: 500;
  color: green;
  text-align: center;
}

.contact-icons {
  margin-top: 1em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  
  gap: 15px;
  text-align: center;
}

.contact-icons a {
  font-size: 1.8rem;
  color: #444;
  transition: color 0.2s ease;
}

.contact-icons a:hover {
  color: #007bff; 
}








