body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', Arial, sans-serif;
  background: #f8fafc;
  color: #22223b;
  transition: background 0.3s;
}

header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(127, 83, 172, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #7f53ac;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #22223b;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links li a:hover {
  color: #7f53ac;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 0.3rem;
}
.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #7f53ac;
  border-radius: 2px;
  display: block;
}

.section {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px 0 rgba(127, 83, 172, 0.07);
  max-width: 1100px;
  margin: 2rem auto;
  padding: 3rem 1.5rem;
  width: auto;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: none;
  }
}

.home-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #e0c3fc 0%, #f8fafc 100%);
}

.intro h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.intro h1 span {
  color: #7f53ac;
}
.intro h2 {
  font-size: 1.3rem;
  font-weight: 500;
  color: #7f53ac;
  margin-bottom: 1rem;
}
.intro p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.social-links {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: none;
  border: 2px solid currentColor;
  color: #7f53ac;
  font-weight: 600;
  text-decoration: none;
  margin: 0 0.3rem 0.7rem 0;
  font-size: 1.1em;
  box-shadow: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.social-link.linkedin { color: #0077b5; border-color: #0077b5; }
.social-link.github { color: #24292e; border-color: #24292e; }
.social-link.leetcode { color: #f89f1b; border-color: #f89f1b; }
.social-link.hackerrank { color: #2ec866; border-color: #2ec866; }
.social-link.credly { color: #ff6b00; border-color: #ff6b00; }
.social-link.codechef { color: #5b4638; border-color: #5b4638; }
.social-link.whatsapp { color: #25d366; border-color: #25d366; }
.social-link:hover {
  background: currentColor;
  color: #fff;
  box-shadow: 0 4px 16px rgba(127, 83, 172, 0.13);
  border-color: currentColor;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 1.1rem;
}

.projects-section .project {
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  background: #f8fafc;
  border-radius: 0.7rem;
  box-shadow: 0 2px 8px rgba(127, 83, 172, 0.04);
  transition: box-shadow 0.2s;
}
.projects-section .project:hover {
  box-shadow: 0 6px 24px rgba(127, 83, 172, 0.10);
}

.experience-section ul {
  padding-left: 1.2rem;
  font-size: 1.1rem;
}

.experience-section .timeline-event {
  display: flex !important;
  align-items: center !important;
  gap: 2rem !important;
  margin-bottom: 2.2rem;
}
.experience-section .timeline-event img {
  min-width: 80px;
  max-width: 128px;
  height: 128px;
  object-fit: contain;
  display: block;
}

.resume-download {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(90deg, #7f53ac 0%, #647dee 100%);
  color: #fff;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.resume-download:hover {
  background: linear-gradient(90deg, #647dee 0%, #7f53ac 100%);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #e0c3fc;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: #f8fafc;
  resize: none;
  transition: border 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border: 1.5px solid #7f53ac;
  outline: none;
}
.contact-form button {
  padding: 0.8rem;
  background: linear-gradient(90deg, #7f53ac 0%, #647dee 100%);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover {
  background: linear-gradient(90deg, #647dee 0%, #7f53ac 100%);
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.profile-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #e0c3fc;
  box-shadow: 0 4px 24px rgba(127, 83, 172, 0.12);
  margin-bottom: 1.2rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
}

:root {
  --accent: #a084e8;
  --accent-light: #e0c3fc;
  --pastel-bg: linear-gradient(135deg, #e0c3fc 0%, #f8fafc 100%);
}

body {
  background: var(--pastel-bg);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
  animation-delay: 0.2s;
  position: relative;
  z-index: 1;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--accent-light);
  border-radius: 2px;
  margin: 0.5rem auto 2rem auto;
  opacity: 0.7;
}

/* Typewriter effect for tagline */
.typewriter {
  display: inline-block;
  border-right: 2px solid var(--accent);
  white-space: nowrap;
  overflow: hidden;
  animation: typing 2.5s steps(30, end), blink-caret 0.75s step-end infinite;
  font-size: 1.1rem;
  color: #7f53ac;
  font-weight: 500;
  margin-bottom: 1.2rem;
}
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--accent); }
}

/* Project cards */
.project-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.project-card {
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(127, 83, 172, 0.04);
  margin: 0.5rem;
  background: #f8fafc;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}
.project-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(127, 83, 172, 0.16);
}
.project-card img, .project-card .project-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  object-fit: cover;
}
.project-card .project-links {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}
.project-card .project-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.project-card .project-link:hover {
  color: #7f53ac;
}

/* Skills badges and progress bars */
.skills-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  align-items: start;
  margin-bottom: 2rem;
}
.skills-badges h2 {
  grid-column: 1 / -1;
}
.skills-badges h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.skills-badges ul {
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-left: 1.2rem;
}
.skill-badge {
  background: var(--accent-light);
  color: #7f53ac;
  border-radius: 1.2rem;
  padding: 0.4rem 1.1rem;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(127, 83, 172, 0.04);
}
.skill-progress {
  width: 100%;
  background: #f3e8ff;
  border-radius: 0.5rem;
  margin-bottom: 0.7rem;
  height: 12px;
  overflow: hidden;
}
.skill-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 0.5rem;
  transition: width 1s;
}

/* Timeline for experience/achievements */
.timeline {
  position: relative;
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent-light);
}
.timeline-event {
  margin-bottom: 2rem;
  position: relative;
}
.timeline-event:before {
  content: '';
  position: absolute;
  left: -1.6rem;
  top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(127, 83, 172, 0.10);
}

/* Certification logos */
.certifications {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}
.cert-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}
.cert-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  display: block;
  text-align: center;
  margin-bottom: 1.2rem;
}
.cert-link:hover {
  color: #7f53ac;
}
.cert-logo[alt~="CCNA"], .cert-logo[alt~="Cisco"], .cert-logo[alt~="ccna"], .cert-logo[alt~="cisco"] {
  width: 128px;
  height: 128px;
}

/* Contact section enhancements */
.contact-section {
  background: #f8fafc;
  border: 2px solid var(--accent-light);
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px rgba(127, 83, 172, 0.07);
}
.contact-social {
  gap: 1.5rem;
}
.contact-social .social-link {
  width: 118px;
  height: 118px;
  font-size: 1.15em;
}
.contact-social .social-link:hover {
  background: var(--accent);
  color: #fff;
}

/* Consistent card width for all box elements */
.project-card,
.testimonial,
.timeline-event,
.cert-logo {
  max-width: 340px;
  min-width: 260px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.project-cards,
.carousel {
  justify-content: center;
  align-items: flex-start;
}

.hidden {
  display: none !important;
}
.project-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats-counters {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.stat {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(127, 83, 172, 0.08);
  padding: 1.2rem 2rem;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
  margin: 0.5rem;
}

.project-card {
  max-width: 900px;
  margin: 1.5rem auto;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(127, 83, 172, 0.04);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.certifications > div {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid #ececec;
}
.certifications > div:last-child {
  border-bottom: none;
}
.cert-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 0;
}
.certifications .cert-link {
  text-align: left;
  margin-bottom: 0.3rem;
}
@media (max-width: 700px) {
  .certifications > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 1.2rem 0;
  }
  .cert-logo {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 900px) {
  .section {
    max-width: 98vw;
    padding: 2rem 0.5rem;
  }
  .navbar {
    padding: 1rem 0.5rem;
  }
  .project-cards {
    flex-direction: column;
    align-items: center;
  }
  .certifications {
    flex-direction: column;
  }
  .project-card,
  .testimonial,
  .timeline-event {
    max-width: 95vw;
    min-width: 0;
    width: 100%;
  }
  .stat {
    min-width: 120px;
    max-width: 95vw;
    padding: 1rem;
  }
}
@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: #fff;
    flex-direction: column;
    width: 180px;
    box-shadow: 0 4px 24px rgba(127, 83, 172, 0.10);
    border-radius: 0 0 0.7rem 0.7rem;
    z-index: 99;
  }
  .nav-links.open {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
  .skills-badges {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .certifications > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1em;
  }
  .experience-section .timeline-event {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }
  .experience-section .timeline-event img {
    margin-bottom: 0.5rem;
    height: 80px;
    max-width: 80px;
  }
}
@media (max-width: 480px) {
  .intro h1 {
    font-size: 1.5rem;
  }
  .section {
    padding: 1.2rem 0.2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
  .profile-photo {
    width: 90px;
    height: 90px;
  }
  .section-title {
    font-size: 1.3rem;
  }
  .project-card {
    width: 95vw;
    padding: 1rem;
  }
  .cert-logo {
    width: 32px;
    height: 32px;
  }
} 