* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(120deg, #0f2027, #203a43, #2c5364);
  color: #fff;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 1rem;
  text-align: center;
  z-index: 1000;
}

nav a {
  color: #00ffe5;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: white;
}

header {
  padding: 6rem 2rem 2rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 8rem; /* extra space for fixed nav */
}

.right img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 5px solid #00ffe5;
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.section {
  padding: 6rem 2rem 2rem; /* padding-top adjusted for nav overlap */
}

.section h2 {
  color: #00ffe5;
  margin-bottom: 1rem;
  border-bottom: 2px solid #00ffe5;
  display: inline-block;
}

.skills span,
.projects li {
  background-color: #00ffe5;
  color: #000;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin: 5px;
  display: inline-block;
}

form {
  max-width: 400px;
  display: flex;
  flex-direction: column;
}

form input,
form textarea {
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
}

form button {
  padding: 0.8rem;
  background-color: #00ffe5;
  color: #000;
  border: none;
  border-radius: 5px;
  font-weight: bold;
}

/* Timeline for Education */
.timeline {
  position: relative;
  margin-left: 30px;
  padding-left: 2rem;
  border-left: 2px solid #00ffe5;
}

.edu-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 30px;
}

.edu-item .dot {
  position: absolute;
  left: -23px;
  top: 4px;
  width: 18px;
  height: 18px;
  background-color: #00ffe5;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 8px rgba(0, 255, 229, 0.7);
}

.edu-item::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 24px;
  height: calc(100% - 24px);
  width: 2px;
  background: #00ffe5;
}

.edu-item h3 {
  font-size: 1.3rem;
  color: #00ffe5;
  margin-bottom: 0.2rem;
}

.edu-item p {
  color: #ccc;
  margin: 0.2rem 0;
  font-size: 0.95rem;
}

.edu-item p em {
  color: #aaa;
  font-style: normal;
  margin-right: 0.5rem;
}

/* About Section */
#about {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 900px;
  box-shadow: 0 0 15px rgba(0, 255, 229, 0.2);
}

.about-content {
  font-size: 1.1rem;
  color: #e0e0e0;
  line-height: 1.8;
}

.about-content strong {
  color: #00ffe5;
  font-weight: 600;
}

/* Social Buttons (GitHub, LinkedIn, Resume) */
.social-links {
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  margin: 10px 10px 0 0;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  background-color: #00ffe5;
  color: #000;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  background-color: #00c2ae;
}

.social-links i {
  font-size: 20px; /* Larger icons for GitHub and LinkedIn */
  margin-right: 8px;
}

.github-btn {
  background-color: #333;
}

.github-btn:hover {
  background-color: #444;
}

.linkedin-btn {
  background-color: #0077b5;
}

.linkedin-btn:hover {
  background-color: #005f88;
}

.resume-btn {
  background-color: #00ffe5;
  font-size: 18px;
  padding: 12px 20px;
}

/* Contact Section Styling */
#contact {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 700px;
  box-shadow: 0 0 15px rgba(0, 255, 229, 0.1);
}

#contact h2 {
  text-align: center;
}

/* Project Section Styling */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.projects {
  list-style: none;
  padding: 0;
}

.project-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 255, 229, 0.1);
  user-select: none;
}

.project-item:hover {
  transform: translateY(-5px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-title {
  color: #000;
  font-weight: bold;
  margin-bottom: 0;
  font-size: 1.1rem;
}

.arrow {
  font-size: 1.3rem;
  color: #00ffe5;
  transition: transform 0.3s ease;
}

.project-item.active .arrow {
  transform: rotate(90deg);
}

/* Project Details (toggle click) */
.project-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  font-size: 0.95rem;
  color: #000;
  margin-top: 4px;
  padding-top: 0;
}

.project-item.active .project-details {
  max-height: 200px;
  padding-top: 0.5rem;
  margin-top: 4px;
}

.section {
  padding: 80px 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  margin: 40px auto;
  max-width: 1000px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
}

/* Certifications Scroll Section (carousel) */
.carousel-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 20px;
  padding: 10px;
  justify-content: flex-start; /* start from left */
  scrollbar-width: thin;
  scrollbar-color: #00ffe5 rgba(255, 255, 255, 0.1);
}

.carousel-container::-webkit-scrollbar {
  height: 8px;
}

.carousel-container::-webkit-scrollbar-thumb {
  background: #00ffe5;
  border-radius: 10px;
}

.carousel-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.certificate-card {
  flex: 0 0 calc(50% - 10px); /* desktop: 2 cards */
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  cursor: grab;
  padding-bottom: 15px;
}

.certificate-card:active {
  cursor: grabbing;
}

.certificate-card:hover {
  transform: scale(1.04);
}

.certificate-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
}

.verify-btn {
  display: block;
  text-align: center;
  margin-top: 12px;
  padding: 10px 0;
  background: #00ffe5;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 12px rgba(0, 255, 229, 0.2);
  transition: all 0.3s ease;
}

.verify-btn:hover {
  background: #00c2ae;
  transform: scale(1.05);
}

/* Responsive: Mobile = 1 certificate fully visible */
@media (max-width: 768px) {
  .certificate-card {
    flex: 0 0 90%; /* one card fully fits */
    scroll-snap-align: start;
  }

  .carousel-container {
    justify-content: flex-start;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
}



/* New: Responsive About Me with Image */
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.about-image {
  flex: 0 0 230px; /* was 180px — gives more presence */
  text-align: center;
}

.about-image img {
  width: 230px;   /* increased size */
  height: 230px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #00ffe5;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.06);
  box-shadow: 0 0 35px rgba(0, 255, 255, 0.6);
}


.about-text {
  flex: 1;
  min-width: 250px;
}

/* Responsive stack on smaller screens */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    min-width: unset;
  }
}
.hamburger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: #00ffe5;
  position: absolute;
  right: 20px;
  top: 16px;
  z-index: 1100;
  cursor: pointer;
}

/* Responsive Menu */
#nav-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }

  #nav-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
  }

  #nav-menu.show {
    display: flex;
  }

  #nav-menu a {
    display: block;
    padding: 8px 0;
    font-size: 18px;
  }
}
