/* Make About section headshot image circular */

/* General Reset */
body {
  font-family: 'Poppins', Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 1.6;
  scroll-behavior: smooth;
}

* {
  font-family: inherit;
}

/* Header Section */
header {
  background: linear-gradient(135deg, deepskyblue, #0077be);
  color: whitesmoke;
  text-align: center;
  padding: 1.5rem 0;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 4rem;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

header h1, 
header p,
header .typed {
  position: relative;
  z-index: 2;
  margin: 0;
}

header h1 {
  font-size: 3rem;
  animation: fadeInDown 1s ease-out;
}

header p {
  font-size: 1.3rem;
  margin-top: 0.5rem;
  animation: fadeInUp 1s ease-out;
}

/* Add animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Styles */
section {
  padding: 2rem;
  margin: 1rem auto;
  max-width: 800px;
}

section h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  border-bottom: none;
  padding-bottom: 0.5rem;
  position: relative;
  color: #2c3e50;
}

section h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, deepskyblue, #0077be);
  border-radius: 2px;
}

/* About Section Layout */
#about {
  display: flex; /* Use flexbox for layout */
  align-items: flex-start; /* Align items to the top for better text flow */
  gap: 2.5rem; /* Spacing between the content and image sections */
  text-align: left; /* Align text to the left */
  padding: 3rem 0; /* Add some vertical padding */
}

.content-section {
  flex: 2; /* Take up more space for the text content */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 65%; /* Make the content section wider */
}

.image-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex: 1; /* Take up less space than the content */
  flex-shrink: 0; /* Prevent image section from shrinking */
  max-width: 35%; /* Limit the image section width */
}

#about img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  object-position: center 20%; /* Move the image up to show more of the top */
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

#about img:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

#about p {
  margin: 0; /* Remove unnecessary margin */
  line-height: 1.7; /* Improved line height for better readability */
}

#about h2 {
  text-align: left; /* Align heading with the text */
  margin-top: 0; /* Remove top margin */
  margin-bottom: 1.5rem; /* Add consistent bottom margin */
}

/* Download Buttons Styles */
.download-buttons {
  display: flex;
  flex-direction: column; /* Stack buttons vertically */
  gap: 0.8rem;
  margin-bottom: 0; /* Remove bottom margin since they're now under the image */
  justify-content: center; /* Center the buttons under the image */
  align-items: center;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  width: 150px; /* Fixed width to ensure both buttons are the same size */
  min-width: 150px;
  background: linear-gradient(135deg, deepskyblue, #0077be);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  flex: 0 0 auto;
  white-space: nowrap;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #0077be, deepskyblue);
}

.download-btn i {
  font-size: 1rem;
}

.download-btn span {
  font-size: 0.85rem;
}

/* Responsive download buttons */
@media (max-width: 768px) {
  .download-buttons {
    flex-direction: column; /* Keep buttons stacked vertically on mobile */
    gap: 0.6rem; /* Slightly larger gap on mobile for easier touch */
    justify-content: center; /* Center the buttons on mobile */
  }
  
  .download-btn {
    justify-content: center;
    padding: 0.4rem 0.6rem; /* Smaller padding on mobile */
    font-size: 0.8rem; /* Smaller text on mobile */
    width: 140px; /* Fixed width for mobile consistency */
    min-width: 140px;
  }
}

/* About Section Dropdown Styles */
.about-card {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.about-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding-bottom: 0.5rem;
}

.about-main {
  flex-grow: 1;
}

.about-main p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #2c3e50;
}

.about-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  border-top: 1px solid transparent;
}

.about-card.active .about-content {
  max-height: 800px;
  transition: max-height 0.5s ease-in;
  border-top: 1px solid #eee;
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.about-card.active .dropdown-arrow {
  transform: rotate(180deg);
}

.about-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #555;
}

/* Add hover effect for clickable header */
.about-header:hover {
  background-color: #f8fbff;
  border-radius: 8px;
}

/* Education Section */
#education .education-card {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

#education .education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
  background-color: #f8fbff;
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.education-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #2c3e50;
}

.education-date {
  color: #666;
  font-weight: 500;
  white-space: nowrap; /* Prevent line breaking */
  flex-shrink: 0; /* Prevent shrinking */
}

.education-degree {
  color: #0077be;
  font-size: 1.2rem;
  margin: 0.5rem 0;
  font-weight: 500;
}

.education-location {
  color: #666;
  font-style: italic;
  margin: 0.25rem 0;
  font-size: 0.95rem;
}

.education-gpa {
  color: #2c3e50;
  font-weight: 600;
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.education-major-minor {
  color: #0077be;
  margin: 0.5rem 0;
  font-weight: 500;
  font-size: 1.05rem;
}

.education-minor {
  color: #666;
  margin: 0.5rem 0;
}

.education-details {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.education-details li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.education-details li::before {
  content: "•";
  color: deepskyblue;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Add responsive styling for education section */
@media (max-width: 768px) {
  .education-header {
    flex-direction: row; /* Keep horizontal layout on mobile */
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
  
  .education-header h3 {
    font-size: 1.2rem; /* Slightly smaller on mobile */
    line-height: 1.2;
  }
  
  .education-date {
    font-size: 0.9rem;
    white-space: nowrap; /* Ensure date stays on one line on mobile too */
  }
}

/* Skills Section */
#skills ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

#skills li {
  background-color: #f4f4f4;
  margin: 0.5rem 0;
  padding: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 4px solid deepskyblue;
}

#skills li:hover {
  transform: translateX(10px);
  background-color: #e8f4ff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Projects Section */
.project {
  background-color: #ffffff;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
  background-color: #f8fbff;
}

.project h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #2c3e50;
}

/* Contact Section */
#contact a {
  color: #0066cc;
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}

/* Footer Section */
footer {
  background: linear-gradient(135deg, #2c3e50, #3498db);
  color: #fff;
  padding: 1.5rem 0;
  margin-top: 3rem;
  text-align: center;
}

@media (max-width: 768px) {
  #about {
    flex-direction: column; /* Stack items vertically */
    text-align: center; /* Center-align content */
    align-items: center; /* Center align all items */
    gap: 2rem; /* Maintain spacing */
  }

  .content-section {
    max-width: 100%; /* Full width on mobile */
    order: 1; /* Content comes after image on mobile */
  }

  .image-section {
    order: -1; /* Move image section to the top */
    margin-bottom: 0; /* Remove bottom margin */
    max-width: 100%; /* Full width on mobile */
  }

  #about img {
    width: 200px; /* Adjusted for mobile - slightly smaller than desktop */
    height: 200px;
  }

  #about h2 {
    text-align: center; /* Center heading on mobile */
    margin-bottom: 1rem;
  }
}

/* Contact Section */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #f4f4f4;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.contact-item:hover {
    background-color: #e8f4ff;
    transform: translateX(10px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 1.5rem;
    color: deepskyblue;
    width: 2rem;
    text-align: center;
}

.contact-item span {
    font-size: 1.1rem;
}

/* Make contact section responsive */
@media (max-width: 768px) {
    .contact-links {
        gap: 1rem;
    }
    
    .contact-item {
        padding: 0.8rem;
    }
}

/* Add scroll-to-top button */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: deepskyblue;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.scroll-top.visible {
    opacity: 1;
}

/* Navigation Menu */
.nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  backdrop-filter: blur(5px);
  padding: 0 1rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.nav-links li {
  padding: 1rem 0;
}

.nav-links a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: deepskyblue;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: deepskyblue;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 1rem 0;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-menu span {
  width: 25px;
  height: 3px;
  background-color: #2c3e50;
  margin: 3px 0;
  transition: 0.3s;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .hamburger-menu {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    padding: 0.8rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 1rem;
    display: block;
  }
}

/* Involvement Section */
#involvement .involvement-card {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #eee;
  margin-bottom: 1.5rem;
}

#involvement .involvement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
  background-color: #f8fbff;
}

.involvement-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.involvement-card h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #2c3e50;
}

.involvement-date {
  color: #666;
  font-weight: 500;
}

.involvement-role {
  color: #0077be;
  font-size: 1.1rem;
  margin: 0.5rem 0;
  font-weight: 500;
}

.involvement-details {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.involvement-details li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.involvement-details li::before {
  content: "•";
  color: deepskyblue;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Add responsive styling for involvement section */
@media (max-width: 768px) {
  .involvement-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .involvement-date {
    font-size: 0.9rem;
  }
}

/* Work Experience Section */
#experience .experience-card {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #eee;
  margin-bottom: 1.5rem;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding-bottom: 0.5rem;
}

.header-main {
  flex-grow: 1;
}

.experience-card h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #2c3e50;
}

.experience-role {
  color: #0077be;
  font-size: 1.1rem;
  margin: 0.5rem 0 0 0;
  font-weight: 500;
}

.experience-location {
  color: #666;
  font-size: 0.95rem;
  margin: 0.25rem 0 0 0;
  font-style: italic;
}

.dropdown-arrow {
  margin-left: 1rem;
  transition: transform 0.3s ease;
}

.dropdown-arrow i {
  color: #666;
}

.experience-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  border-top: 1px solid transparent;
}

.experience-card.active .experience-content {
  max-height: 500px;
  transition: max-height 0.5s ease-in;
  border-top: 1px solid #eee;
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.experience-card.active .dropdown-arrow {
  transform: rotate(180deg);
}

.experience-date {
  color: #666;
  font-weight: 500;
  display: block;
  margin-bottom: 1rem;
}

.experience-details {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.experience-details li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.experience-details li::before {
  content: "•";
  color: deepskyblue;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Add hover effect for clickable header */
.experience-header:hover {
  background-color: #f8fbff;
  border-radius: 8px;
}

/* Responsive styling */
@media (max-width: 768px) {
  .experience-header {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .experience-date {
    font-size: 0.9rem;
  }
}
