/* General Styles */

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ensures footer stays at the bottom */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header */
header {
  background: #2c3e50; /* Dark blue */
  color: #fff;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  height: 110px;
  border: 4px solid #1abc9c;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.profile {
  display: flex;
  align-items: center;
}

.profile img {
  width: 80px;
  height: 100px;
  border-radius: 15%;
  margin-right: 15px;
  border: 3px solid #1abc9c; /* Teal border */
}

.profile-info h1 {
  font-size: 24px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile-info p {
  font-size: 14px;
  margin: 3px 0 0;
  color: #ccc;
}

.profile-info .additional-text {
  font-size: 13px;
  margin: 5px 0 0;
  color: #1beb4f;
  font-style: italic;
}

.menu-toggle {
  background: #0df9aa;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 15px;
  cursor: pointer;
  display: none; /* Hidden on desktop */
  transition: background 0.3s ease-in-out;
}

.menu-toggle:hover {
  background: #e82cc6;
}

/* Side Panel */
.side-panel {
  width: 250px;
  background: #2c3e50; /* Dark blue */
  color: #fff;
  height: calc(100vh - 110px); /* Adjusted height to fit between header and footer */
  position: fixed;
  left: 0;
  top: 150px; /* Starts below the header */
  transition: transform 0.3s ease-in-out;
  z-index: 999; /* Lower z-index than header to avoid overlap */
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto; /* Add scroll if content overflows */
  border: 4px solid #1abc9c;
}

.panel-content {
  padding: 20px;
}

.side-panel nav ul {
  list-style: none;
  padding: 0;
}

.side-panel nav ul li {
  margin: 15px 0;
}

.side-panel nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  transition: transform 0.3s, color 0.3s ease-in-out;
}

.side-panel nav ul li a i {
  margin-right: 10px;
  font-size: 18px;
  color: #007bff; /* Icon color */
}

.side-panel nav ul li a.active {
  font-weight: bold;
  color: #007bff;
  transform: translateX(10px);
}

.side-panel nav ul li a:hover {
  color: #007bff;
  transform: translateX(10px);
}

/* Main Content */
.main-content {
  margin-left: 250px;
  padding: 40px 20px;
  flex: 1; /* Ensures footer stays at the bottom */
  transition: margin-left 0.3s ease-in-out;
}

/* General Section Styling */
.page {
  display: none; /* Hide all sections by default */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.page.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}


/* Home Section */
#home {
  padding: 60px 0 100px; /* Reduced top and bottom padding */
  background: linear-gradient(135deg, #1c1e22, #2c3e50); /* Dark gradient background */
  color: #fff; /* White text for contrast */
}

#home .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#home .home-content {
  display: flex;
  align-items: center; /* Center content vertically */
  justify-content: space-between;
  gap: 40px;
}

#home h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #fff; /* White text */
}

#home h1 .highlight {
  color: #1abc9c; /* Highlight color */
}

#home p {
  font-size: 18px;
  max-width: 600px;
  margin-bottom: 30px;
  color: #ccc; /* Light gray text */
}

#home p .highlight {
  color: #1abc9c; /* Highlight color */
}

#home .buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  text-align: center;
}

/* Button Styling */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px; /* Space between icon and text */
  padding: 12px 24px;
  color: #1abc9c; /* Text color */
  background: transparent; /* Transparent background */
  border: 2px solid #1abc9c; /* Border color */
  border-radius: 30px; /* Rounded corners */
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.btn:hover {
  background: #1abc9c; /* Solid background on hover */
  color: #fff; /* White text on hover */
  transform: translateY(-3px); /* Lift effect */
  box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3); /* Subtle shadow */
}

.btn i {
  font-size: 18px; /* Icon size */
}


/* Social Links */
#home .social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

#home .social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#home .social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

#home .social-link i {
  font-size: 20px;
}

/* Image Content */
#home .image-content {
  flex: 1;
  text-align: center;
}

#home .profile-img {
  width: 250px;
  height: 250px;
  border-radius: 50%; /* Round shape */
  border: 4px solid transparent; /* Transparent border */
  animation: rotate-border 5s infinite linear; /* Rotating border animation */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

@keyframes rotate-border {
  0% {
    border-color: #1abc9c; /* Teal */
  }
  25% {
    border-color: #3498db; /* Blue */
  }
  50% {
    border-color: #e74c3c; /* Red */
  }
  75% {
    border-color: #9b59b6; /* Purple */
  }
  100% {
    border-color: #1abc9c; /* Teal */
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  #home {
    padding: 40px 0 20px; /* Further reduced top and bottom padding */
  }

  #home .home-content {
    flex-direction: column;
    text-align: center;
    gap: 20px; /* Reduced gap between elements */
  }

  #home .image-content {
    order: -1; /* Move image to the top on mobile */
    margin-bottom: 20px;
  }

  #home .profile-img {
    width: 200px;
    height: 200px;
  }

  #home h1 {
    font-size: 36px;
  }

  #home p {
    font-size: 16px;
  }

  #home .buttons {
    flex-direction: column;
    gap: 10px;
    align-items: center; /* Center buttons in mobile view */
  }

  #home .btn {
    padding: 10px 20px; /* Reduced padding for smaller buttons */
    font-size: 14px; /* Smaller font size */
    width: 150px; /* Fixed width for equal size */
    text-align: center; /* Center text inside buttons */
  }

  #home .social-links {
    justify-content: center;
  }
}

/* About Section */
#about {
  padding: 20px 0; /* Top padding 20px */
  background: #c9dff6; /* Soft light blue background */
  color: #333; /* Dark text for contrast */
}

#about h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: #2c3e50; /* Dark blue for heading */
}

/* Industry Icons */
#about .industry-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

#about .industry-icons .icon {
  text-align: center;
  padding: 20px;
  background: #ffffff; /* White background */
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: all 0.3s ease-in-out;
}

#about .industry-icons .icon:hover {
  transform: translateY(-5px); /* Lift effect */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

#about .industry-icons .icon i {
  font-size: 32px;
  color: #1abc9c; /* Teal icon color */
}

#about .industry-icons .icon span {
  display: block;
  font-size: 14px;
  margin-top: 10px;
  color: #555; /* Gray text */
}

/* Subsection Styling */
#about .subsection {
  background: #ffffff; /* White background */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  border: 2px solid transparent; /* Transparent border */
  transition: all 0.3s ease-in-out;
  margin-bottom: 20px;
}

#about .subsection:hover {
  border-color: #1abc9c; /* Teal border on hover */
  transform: translateY(-5px); /* Lift effect */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

#about .subsection h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #2c3e50; /* Dark blue for subsection headings */
}

#about .subsection p {
  font-size: 16px;
  line-height: 1.8;
  color: #555; /* Gray text for readability */
}

#about .subsection ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

#about .subsection ul li {
  font-size: 14px;
  margin-bottom: 5px;
  color: #555;
}

#about .subsection ul li strong {
  color: #2c3e50; /* Dark blue for strong text */
}

#about .subsection .highlight {
  color: #1abc9c; /* Teal highlight color */
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  #about h2 {
    font-size: 28px;
  }

  #about .industry-icons .icon {
    padding: 15px;
  }

  #about .industry-icons .icon i {
    font-size: 24px;
  }

  #about .industry-icons .icon span {
    font-size: 12px;
  }

  #about .subsection h3 {
    font-size: 20px;
  }

  #about .subsection p {
    font-size: 14px;
  }
}

/* Skills Section */
#skills {
  padding: 20px 20px;
  background: #c9dff6; /* Soft light blue background */
  color: #333; /* Dark text for contrast */
}

#skills h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: #2c3e50; /* Dark blue for heading */
}

/* Subsection Styling */
#skills .subsection {
  margin-bottom: 40px;
  text-align: center; /* Center the subsection content */
}

#skills .subsection h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #ffffff; /* White text */
  background: #2c3e50; /* Dark blue background for heading box */
  padding: 10px 20px;
  border-radius: 10px; /* Rounded corners */
  display: inline-block; /* Fit content width */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.skill {
  text-align: center;
  padding: 20px;
  background: #ffffff; /* White background for skill cards */
  border-radius: 10px;
  border: 2px solid #1abc9c; /* Teal border */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.skill:hover {
  transform: translateY(-5px); /* Lift effect */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.skill-icon {
  font-size: 48px; /* Icon size */
  color: #2c3e50; /* Dark blue icon color */
  margin-bottom: 10px;
}

.skill h4 {
  font-size: 18px;
  margin-top: 10px;
  color: #333; /* Dark text */
}

/* Skill List for Python Libraries */
.skill-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  font-size: 14px;
  color: #555; /* Gray text */
}

.skill-list li {
  margin-bottom: 5px;
}

/* Projects Section */
#projects {
  padding: 20px 0; /* Top padding 20px */
  background: #c9dff6; /* Soft light blue background */
  color: #333; /* Dark text for contrast */
}

#projects h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: #2c3e50; /* Dark blue for heading */
}

/* Subsection Styling */
#projects .subsection {
  margin-bottom: 40px;
}

#projects .subsection h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #ffffff; /* White text */
  background: #2c3e50; /* Dark blue background for heading box */
  padding: 10px 20px;
  border-radius: 10px; /* Rounded corners */
  display: inline-block; /* Fit content width */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Project Box Styling */
.project-box {
  background: #ffffff; /* White background */
  padding: 20px;
  border-radius: 10px;
  border: 2px solid #1abc9c; /* Teal border */
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.project-box:hover {
  transform: translateY(-5px); /* Lift effect */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.project-box h4 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #2c3e50; /* Dark blue for project title */
}

.project-details h5 {
  font-size: 18px;
  margin-top: 15px;
  margin-bottom: 10px;
  color: #1abc9c; /* Teal for subheadings */
}

.project-details p {
  font-size: 16px;
  line-height: 1.6;
  color: #555; /* Gray text for readability */
  margin-bottom: 15px;
}

.project-details ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.project-details ul li {
  font-size: 14px;
  margin-bottom: 8px;
  color: #555;
}

.project-details ul li strong {
  color: #2c3e50; /* Dark blue for strong text */
}

/* Certifications Section */
#certifications {
  padding: 20px 0; /* Top padding 20px */
  background: #c9dff6; /* Soft light blue background */
  color: #333; /* Dark text for contrast */
}

#certifications h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: #2c3e50; /* Dark blue for heading */
}

/* Subsection Styling */
#certifications .subsection {
  margin-bottom: 40px;
}

#certifications .subsection h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #ffffff; /* White text */
  background: #2c3e50; /* Dark blue background for heading box */
  padding: 10px 20px;
  border-radius: 10px; /* Rounded corners */
  display: inline-block; /* Fit content width */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Certifications Grid */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Equal width for all boxes */
  gap: 20px; /* Space between boxes */
}

/* Certification Box Styling */
.certification-box {
  background: #ffffff; /* White background */
  padding: 20px;
  border-radius: 10px;
  border: 2px solid #1abc9c; /* Teal border */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ensure content is spaced evenly */
}

.certification-box:hover {
  transform: translateY(-5px); /* Lift effect */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.certification-img img {
  width: 100%; /* Full width for the image */
  border-radius: 10px;
  margin-bottom: 15px;
}

.certification-details h4 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #2c3e50; /* Dark blue for certification title */
}

.certification-details ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.certification-details ul li {
  font-size: 14px;
  margin-bottom: 8px;
  color: #555;
}

.certification-details ul li strong {
  color: #2c3e50; /* Dark blue for strong text */
}

/* Responsive Design */
@media (max-width: 768px) {
  .certifications-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }
}

/* Experience Section */
#experience {
  padding: 20px 0; /* Top padding 20px */
  background: #c9dff6; /* Soft light blue background */
  color: #333; /* Dark text for contrast */
}

#experience h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: #2c3e50; /* Dark blue for heading */
}

/* Experience Container */
.experience-container {
  display: flex;
  gap: 20px; /* Space between image box and details box */
  align-items: stretch; /* Ensure both boxes have the same height */
  margin-bottom: 30px; /* ✅ Added spacing between boxes */
}

/* Image Box Styling */
.experience-img-box {
  flex: 1; /* Take 50% of the width */
  background: #ffffff; /* White background */
  padding: 20px;
  border-radius: 10px;
  border: 2px solid #1abc9c; /* Teal border */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  display: flex;
  align-items: center; /* Center the image vertically */
  justify-content: center; /* Center the image horizontally */
}

.experience-img-box:hover {
  transform: translateY(-5px); /* Lift effect */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.experience-img-box img {
  max-width: 100%; /* Ensure the image fits within the box */
  max-height: 100%; /* Ensure the image fits within the box */
  border-radius: 10px; /* Rounded corners for the image */
}

/* Details Box Styling */
.experience-details-box {
  flex: 1; /* Take 50% of the width */
  background: #ffffff; /* White background */
  padding: 20px;
  border-radius: 10px;
  border: 2px solid #1abc9c; /* Teal border */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.experience-details-box:hover {
  transform: translateY(-5px); /* Lift effect */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.experience-details-box h4 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #2c3e50; /* Dark blue for title */
}

.experience-details-box ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.experience-details-box ul li {
  font-size: 14px;
  margin-bottom: 8px;
  color: #555;
}

.experience-details-box ul li strong {
  color: #2c3e50; /* Dark blue for strong text */
}

.experience-details-box ul ul {
  margin-left: 20px; /* Indent nested lists */
}

/* Responsive Design */
@media (max-width: 768px) {
  .experience-container {
    flex-direction: column; /* Stack boxes vertically on mobile */
  }

  .experience-img-box,
  .experience-details-box {
    flex: none; /* Reset flex for mobile */
    width: 100%; /* Full width for both boxes on mobile */
  }
}

/* Events & Activities Section */
#events {
  padding: 20px 0;
  background: #c9dff6; /* Soft light blue background */
  color: #333; /* Dark text for contrast */
}

#events h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: #2c3e50; /* Dark blue for heading */
}

#events .subsection {
  margin-bottom: 40px;
}

#events .subsection h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #ffffff; /* White text */
  background: #2c3e50; /* Dark blue background for heading box */
  padding: 10px 20px;
  border-radius: 10px; /* Rounded corners */
  display: inline-block; /* Fit content width */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Equal width for all boxes */
  gap: 20px; /* Space between boxes */
}

.event-box {
  background: #ffffff; /* White background */
  padding: 20px;
  border-radius: 10px;
  border: 2px solid #1abc9c; /* Teal border */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.event-box:hover {
  transform: translateY(-5px); /* Lift effect */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.event-img img {
  width: 100%; /* Full width for the image */
  border-radius: 10px;
  margin-bottom: 15px;
}

.event-details h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #2c3e50; /* Dark blue for event title */
}

.event-details p {
  font-size: 14px;
  color: #555; /* Gray text for details */
  margin-bottom: 5px;
}

/* Blogs Section */
#blogs {
  padding: 20px 0;
  background: #c9dff6; /* Soft light blue background */
  color: #333; /* Dark text for contrast */
}

#blogs h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: #2c3e50; /* Dark blue for heading */
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Equal width for all blogs */
  gap: 20px; /* Space between blogs */
}

.blog {
  background: #ffffff; /* White background */
  padding: 20px;
  border-radius: 10px;
  border: 2px solid #1abc9c; /* Teal border */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.blog:hover {
  transform: translateY(-5px); /* Lift effect */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.blog h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #2c3e50; /* Dark blue for blog title */
}

.blog-content h4 {
  font-size: 20px;
  margin-top: 15px;
  margin-bottom: 10px;
  color: #1abc9c; /* Teal for subheadings */
}

.blog-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #555; /* Gray text for readability */
  margin-bottom: 15px;
}

.blog-content ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.blog-content ul li {
  font-size: 14px;
  margin-bottom: 8px;
  color: #555;
}

.blog-content ul li strong {
  color: #2c3e50; /* Dark blue for strong text */
}


/* Resume Section */
#resume {
  padding: 20px 0;
  background: #c9dff6; /* Soft light blue background */
  color: #333; /* Dark text for contrast */
}

#resume h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: #2c3e50; /* Dark blue for heading */
}

.resume-content {
  background: #ffffff; /* White background */
  padding: 20px;
  border-radius: 10px;
  border: 2px solid #1abc9c; /* Teal border */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  max-width: 600px; /* Limit width for better readability */
  margin: 0 auto; /* Center the content */
}

.resume-content:hover {
  transform: translateY(-5px); /* Lift effect */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.resume-text {
  text-align: center; /* Center the text */
}

.resume-text h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #2c3e50; /* Dark blue for title */
}

.resume-text p {
  font-size: 16px;
  line-height: 1.6;
  color: #555; /* Gray text for readability */
  margin-bottom: 20px;
}

.resume-text .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px; /* Space between icon and text */
  padding: 12px 24px;
  background: #1abc9c; /* Teal background */
  color: #fff; /* White text */
  border: none;
  border-radius: 30px; /* Rounded corners */
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.resume-text .btn:hover {
  background: #16a085; /* Darker teal on hover */
  transform: translateY(-3px); /* Lift effect */
  box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3); /* Subtle shadow */
}

.resume-text .btn i {
  font-size: 18px; /* Icon size */
}


/* Contact Section */
#contact {
  padding: 20px 0;
  background: #c9dff6; /* Soft light blue background */
  color: #333; /* Dark text for contrast */
}

#contact h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: #2c3e50; /* Dark blue for heading */
}

.contact-info-box {
  background: #ffffff; /* White background */
  padding: 20px;
  border-radius: 10px;
  border: 2px solid #1abc9c; /* Teal border */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  margin-bottom: 20px;
  text-align: center;
}

.contact-info-box h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #2c3e50; /* Dark blue for title */
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #555; /* Gray text for details */
}

.contact-item i {
  font-size: 20px;
  color: #1abc9c; /* Teal icon color */
}

.contact-item a {
  color: #2c3e50; /* Dark blue for links */
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

.contact-item a:hover {
  color: #1abc9c; /* Teal on hover */
}


#contact-form {
  background: #ffffff; /* White background */
  padding: 20px;
  border-radius: 10px;
  border: 2px solid #1abc9c; /* Teal border */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

#contact-form h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #2c3e50; /* Dark blue for title */
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 16px;
  transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: #1abc9c; /* Teal border on focus */
  box-shadow: 0 0 8px rgba(26, 188, 156, 0.3); /* Subtle shadow on focus */
  outline: none;
}

#contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

#contact-form button {
  width: 100%;
  padding: 12px;
  background: #1abc9c; /* Teal background */
  color: #fff; /* White text */
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#contact-form button:hover {
  background: #16a085; /* Darker teal on hover */
  transform: translateY(-3px); /* Lift effect */
  box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3); /* Subtle shadow on hover */
}

/* Copy Buttons */
.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #1abc9c; /* Teal color */
  margin-left: 10px;
  transition: color 0.3s ease-in-out;
}

.copy-btn:hover {
  color: #16a085; /* Darker teal on hover */
}

.copy-btn i {
  font-size: 16px;
}

/* Toast Notification - Centered in the Middle */
.toast {
  position: fixed;
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Center both horizontally and vertically */
  background: #2c3e50; /* Dark blue background */
  color: #fff; /* White text */
  padding: 12px 24px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0; /* Hidden by default */
  transition: opacity 0.3s ease-in-out;
  z-index: 1000; /* Ensure it appears above other content */
  text-align: center; /* Center the text */
}

.toast.show {
  opacity: 1; /* Show the toast */
}


/* Footer */
.copyright {
  text-align: center;
  font-size: 12px;
  color: #666;
  padding: 20px 0;
  margin-top: auto; /* Push to bottom */
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: block; /* Show toggle button on mobile */
  }

  .side-panel {
    transform: translateX(-250px);
  }

  .side-panel.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  #home h1 {
    font-size: 36px;
  }

  #home h2 {
    font-size: 24px;
  }

  #home p {
    font-size: 16px;
  }
}

/* Mobile Responsive Design (320px - 460px) */
@media (min-width: 320px) and (max-width: 460px) {
  /* General Adjustments */
  body {
    font-size: 14px; /* Smaller font size for mobile */
  }

  .container {
    width: 100%; /* Full width for mobile */
    padding: 0 10px; /* Add some padding */
  }

  /* Header */
  header {
    height: 80px; /* Reduce header height */
    padding: 5px 0; /* Reduce padding */
  }

  .header-content {
    flex-direction: row; /* Keep content in a row */
    align-items: center; /* Center align vertically */
    justify-content: space-between; /* Space out elements */
    padding: 0 10px; /* Add some padding */
  }

  .profile {
    flex-direction: row; /* Keep profile image and info in a row */
    align-items: center; /* Center align vertically */
    gap: 8px; /* Reduce gap between image and text */
  }

  .profile img {
    width: 50px; /* Smaller profile image */
    height: 60px; /* Smaller profile image */
    margin-right: 0; /* Remove margin */
  }

  .profile-info h1 {
    font-size: 16px; /* Smaller font size for name */
    white-space: nowrap; /* Prevent name from wrapping */
    margin: 0; /* Remove margin */
  }

  .profile-info p {
    font-size: 10px; /* Smaller font size for role */
    margin: 2px 0 0; /* Adjust margin */
    white-space: nowrap; /* Prevent text from wrapping */
  }

  .profile-info .additional-text {
    font-size: 9px; /* Smaller font size for additional text */
    margin: 2px 0 0; /* Adjust margin */
    white-space: nowrap; /* Prevent text from wrapping */
  }

  .menu-toggle {
    padding: 8px 12px; /* Adjust padding */
    font-size: 14px; /* Smaller font size */
  }

  /* Side Panel */
  .side-panel {
    width: 100%; /* Full width for mobile */
    height: auto; /* Auto height */
    top: 80px; /* Adjust top position */
    transform: translateX(-100%); /* Hide by default */
  }

  .side-panel.open {
    transform: translateX(0); /* Show when open */
  }

  .side-panel nav ul li a {
    font-size: 14px; /* Smaller font size */
  }

  /* Main Content */
  .main-content {
    margin-left: 0; /* Remove margin for mobile */
    padding: 20px 10px; /* Adjust padding */
  }

  /* Home Section */
  #home {
    padding: 20px 0; /* Reduce padding */
  }

  #home .home-content {
    flex-direction: column; /* Stack content vertically */
    gap: 10px; /* Reduce gap */
  }

  #home h1 {
    font-size: 24px; /* Smaller font size */
  }

  #home p {
    font-size: 14px; /* Smaller font size */
  }

  #home .buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px; /* Reduce gap */
  }

  #home .btn {
    width: 100%; /* Full width buttons */
    font-size: 14px; /* Smaller font size */
  }

  #home .social-links {
    justify-content: center; /* Center align social links */
  }

  #home .social-link {
    width: 100%; /* Full width social links */
    justify-content: center; /* Center align */
  }

  #home .image-content {
    order: -1; /* Move image to the top */
    margin-bottom: 20px; /* Add bottom margin */
  }

  #home .profile-img {
    width: 150px; /* Smaller image */
    height: 150px; /* Smaller image */
  }

  /* About Section */
  #about h2 {
    font-size: 20px; /* Smaller font size */
  }

  #about .industry-icons {
    grid-template-columns: repeat(2, 1fr); /* Two columns for mobile */
    gap: 10px; /* Reduce gap */
  }

  #about .industry-icons .icon {
    padding: 10px; /* Reduce padding */
  }

  #about .industry-icons .icon i {
    font-size: 24px; /* Smaller icon size */
  }

  #about .industry-icons .icon span {
    font-size: 12px; /* Smaller font size */
  }

  #about .subsection {
    padding: 15px; /* Reduce padding */
  }

  #about .subsection h3 {
    font-size: 16px; /* Smaller font size */
  }

  #about .subsection p {
    font-size: 14px; /* Smaller font size */
  }

  /* Skills Section */
  #skills h2 {
    font-size: 20px; /* Smaller font size */
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr); /* Two columns for mobile */
    gap: 10px; /* Reduce gap */
  }

  .skill {
    padding: 15px; /* Reduce padding */
  }

  .skill-icon {
    font-size: 36px; /* Smaller icon size */
  }

  .skill h4 {
    font-size: 14px; /* Smaller font size */
  }

  /* Projects Section */
  #projects h2 {
    font-size: 20px; /* Smaller font size */
  }

  .project-box {
    padding: 15px; /* Reduce padding */
  }

  .project-box h4 {
    font-size: 16px; /* Smaller font size */
  }

  .project-details h5 {
    font-size: 14px; /* Smaller font size */
  }

  .project-details p {
    font-size: 12px; /* Smaller font size */
  }

  /* Certifications Section */
  #certifications h2 {
    font-size: 20px; /* Smaller font size */
  }

  .certifications-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
  }

  .certification-box {
    padding: 15px; /* Reduce padding */
  }

  .certification-details h4 {
    font-size: 16px; /* Smaller font size */
  }

  /* Experience Section */
  #experience h2 {
    font-size: 20px; /* Smaller font size */
  }

  .experience-container {
    flex-direction: column; /* Stack boxes vertically */
  }

  .experience-img-box,
  .experience-details-box {
    width: 100%; /* Full width for mobile */
  }

  /* Events & Activities Section */
  #events h2 {
    font-size: 20px; /* Smaller font size */
  }

  .events-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
  }

  /* Blogs Section */
  #blogs h2 {
    font-size: 20px; /* Smaller font size */
  }

  .blogs-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
  }

  /* Resume Section */
  #resume h2 {
    font-size: 20px; /* Smaller font size */
  }

  .resume-content {
    padding: 15px; /* Reduce padding */
  }

  /* Contact Section */
  #contact h2 {
    font-size: 20px; /* Smaller font size */
  }

  .contact-info-box {
    padding: 15px; /* Reduce padding */
  }

  #contact-form input,
  #contact-form textarea {
    font-size: 14px; /* Smaller font size */
  }

  #contact-form button {
    font-size: 14px; /* Smaller font size */
  }
}

/* Home Section - Mobile Responsive (320px - 460px) */
@media (min-width: 320px) and (max-width: 460px) {
  #home {
    padding: 10px 0; /* Reduce padding */
  }

  #home .home-content {
    flex-direction: column; /* Stack content vertically */
    gap: 10px; /* Reduce gap between elements */
    align-items: center; /* Center align content */
    text-align: center; /* Center text */
  }

  #home h1 {
    font-size: 22px; /* Smaller font size */
    margin-bottom: 5px; /* Reduce margin */
  }

  #home p {
    font-size: 12px; /* Smaller font size */
    margin-bottom: 15px; /* Reduce margin */
    max-width: 90%; /* Limit text width for better readability */
  }

  #home .buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 8px; /* Reduce gap between buttons */
    align-items: center; /* Center align buttons */
  }

  #home .btn {
    width: 100%; /* Full width buttons */
    font-size: 12px; /* Smaller font size */
    padding: 8px 16px; /* Adjust padding */
    text-align: center; /* Center text inside buttons */
  }

  #home .btn i {
    font-size: 14px; /* Smaller icon size */
  }

  #home .social-links {
    justify-content: center; /* Center align social links */
    gap: 8px; /* Reduce gap between social links */
  }

  #home .social-link {
    width: 100%; /* Full width social links */
    justify-content: center; /* Center align */
    padding: 6px 12px; /* Adjust padding */
    font-size: 12px; /* Smaller font size */
  }

  #home .social-link i {
    font-size: 16px; /* Smaller icon size */
  }

  #home .image-content {
    order: -1; /* Move image to the top */
    margin-bottom: 15px; /* Add bottom margin */
  }

  #home .profile-img {
    width: 120px; /* Smaller image */
    height: 120px; /* Smaller image */
  }
}



/* FINAL RESPONSIVE FIX FOR HOME BUTTONS */

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  #home .home-content {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  #home .buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
  }

  #home .btn {
    width: 100%;
    max-width: 260px; /* Make sure it doesn't go beyond screen */
    box-sizing: border-box; /* Include padding in width */
    padding: 10px 16px;
    font-size: 14px;
    text-align: center;
    white-space: normal; /* Allow wrapping if needed */
  }

  #home .social-links {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 10px;
  }

  #home .social-link {
    width: 100%;
    max-width: 260px;
    box-sizing: border-box;
    justify-content: center;
  }

  #home .image-content {
    width: 100%;
  }

  #home .profile-img {
    max-width: 200px;
    width: 80%;
    height: auto;
  }
}

@media (max-width: 460px) {
  #home h1 {
    font-size: 26px;
  }

  #home p {
    font-size: 13px;
  }
}

/* CENTER BUTTONS + TEXT PERFECTLY */

@media (max-width: 768px) {
  #home .buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center within parent */
    width: 100%;
    gap: 10px;
  }

  #home .btn {
    width: 100%;
    max-width: 260px;
    padding: 12px 16px;
    font-size: 14px;
    text-align: center;
    white-space: normal;
    box-sizing: border-box;

    display: flex;               /* Enable flex for internal centering */
    justify-content: center;     /* Center icon + text horizontally */
    align-items: center;         /* Center icon + text vertically */
  }

  #home .social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
  }

  #home .social-link {
    width: 100%;
    max-width: 260px;
    justify-content: center;
    display: flex;
    align-items: center;
  }
}

/* === Responsive Box Fixes for Mobile View === */

@media (max-width: 768px) {
  /* Ensure all boxes and content fit within the viewport */
  .container,
  .subsection,
  .skills-grid,
  .certifications-grid,
  .events-grid,
  .contact-info-box,
  .experience-container,
  .resume-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 10px;
    overflow-x: hidden;
  }

  /* Contact form buttons stay inside */
  #contact-form button {
    width: 100%;
    max-width: 100%;
  }

  /* Fix for header to stay sticky and not shift content */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  }

  .main-content {
    margin-top: 110px; /* Offset the fixed header height */
  }

  /* Ensure toggle menu stays visible and doesn't overflow */
  .menu-toggle {
    z-index: 1001;
    position: relative;
  }

  /* Fix side panel on mobile: full height and scrollable */
  .side-panel {
    top: 110px; /* matches header height */
    height: calc(100vh - 110px);
    z-index: 1000;
  }

  /* Prevent horizontal scroll caused by large images or boxes */
  img, iframe, .profile-img, .event-img img, .certification-img img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Wrap long email/phone properly */
  .contact-item {
    word-break: break-word;
  }

  /* Make sure buttons like "Workshops", "Resume", etc. do not overflow */
  .btn,
  #home .btn,
  .resume-text .btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }
}

/* === FINAL Responsive Fix Patch for Layout Issues === */

@media (max-width: 768px) {
  /* 1. Center Home Section Image */
  #home .home-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  #home .image-content {
    margin: 0 auto;
    text-align: center;
  }

  #home .profile-img {
    display: block;
    margin: 0 auto;
  }


  /* 3. Experience Section: Fix image and layout on small screens */
  .experience-container {
    flex-direction: column;
    align-items: center;
  }

  .experience-img-box,
  .experience-details-box {
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
  }

  .experience-img-box img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  /* 4. Contact Form Fields Overflow Fix */
  #contact-form {
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
  }

  #contact-form input,
  #contact-form textarea,
  #contact-form button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Force button alignment inside */
  #contact-form button {
    display: block;
    margin: 0 auto;
  }
}

/* Also apply to large screens for Contact section issue */
#contact-form input,
#contact-form textarea,
#contact-form button {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Prevent horizontal scroll for all sections globally */
body {
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0 10px;
  }

  .skill {
    flex: 1 1 45%; /* flexible 2-in-row layout, auto-shrink */
    max-width: 150px;
    padding: 15px;
    box-sizing: border-box;
    text-align: center;
    background: #ffffff;
    border: 2px solid #1abc9c;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  }

  .skill:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }

  .skill h4 {
    font-size: 14px;
    word-break: break-word;
    margin-top: 8px;
    color: #333;
  }

  .skill-icon {
    font-size: 30px; /* reduce icon size on mobile */
  }
}
