/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Utility Classes */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary {
  background: white;
  color: #667eea;
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
  background: #f8fafc;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
  font-weight: 600;
}

.btn-secondary:hover {
  background: white;
  color: #667eea;
  transform: translateY(-2px);
}

.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease-out;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #718096;
  max-width: 600px;
  margin: 0 auto;
}

/* Navigation - Enhanced Responsiveness */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  position: relative;
}

.nav-logo a {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  z-index: 1001;
  position: relative;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: #2d3748;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 16px;
  border-radius: 8px;
}

.nav-link:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hamburger Menu - Enhanced */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  z-index: 1001;
  position: relative;
}

.hamburger:hover {
  background: rgba(102, 126, 234, 0.1);
}

.hamburger:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

.bar {
  width: 25px;
  height: 3px;
  background: #2d3748;
  margin: 3px 0;
  transition: 0.3s;
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section - Enhanced Responsiveness */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 50px 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.8) 0%,
    rgba(118, 75, 162, 0.8) 100%
  );
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: white;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: white;
  font-weight: 600;
  margin-bottom: 15px;
  animation: fadeInUp 1s ease-out 0.2s both;
  line-height: 1.4;
}

.hero-description {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: white;
  margin-bottom: 35px;
  line-height: 1.8;
  animation: fadeInUp 1s ease-out 0.4s both;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease-out 0.6s both;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.social-links a {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667eea;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
  background: #667eea;
  color: white;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container {
  position: relative;
  width: clamp(250px, 30vw, 350px);
  height: clamp(250px, 30vw, 350px);
}

.profile-img {
  width: clamp(220px, 25vw, 280px);
  height: clamp(220px, 25vw, 280px);
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: all 0.5s ease;
  animation: fadeInRight 1s ease-out 0.8s both;
  position: relative;
  z-index: 2;
}

.profile-img:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 25px 70px rgba(102, 126, 234, 0.3);
}

.image-bg {
  position: absolute;
  top: 35px;
  left: 35px;
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  z-index: 1;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-indicator a {
  color: #667eea;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* About Section */
.about {
  padding: 100px 0;
  background: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-card,
.education-card {
  background: #f8fafc;
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  animation: fadeInUp 0.6s ease-out;
}

.about-card h3,
.education-card h3 {
  color: #2d3748;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.about-card p {
  color: #718096;
  line-height: 1.8;
  margin-bottom: 15px;
}

.education-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.education-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 20px;
  font-size: 1.2rem;
}

.education-info h4 {
  color: #2d3748;
  margin-bottom: 5px;
}

.education-info p {
  color: #718096;
  margin-bottom: 5px;
}

.year {
  background: #667eea;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.2);
}

.stat-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
  color: white;
  transition: all 0.4s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotateY(180deg);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.stat-card h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2d3748;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card p {
  color: #718096;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* Projects Section */
.projects {
  padding: 100px 0;
  background: #f8fafc;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(102, 126, 234, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-link {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667eea;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.project-link:hover {
  transform: scale(1.1);
}

.project-content {
  padding: 30px;
}

.project-content h3 {
  color: #2d3748;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.project-content p {
  color: #718096;
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tag {
  background: #e2e8f0;
  color: #667eea;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Skills Section */
.skills {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 100px 0;
  position: relative;
}

.skills::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.skills-category {
  margin-bottom: 50px;
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.skills-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.skills-category h3 {
  color: #2d3748;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  position: relative;
}

.skills-category h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 15px;
  background: #f8fafc;
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.skill-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 126, 234, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.skill-item:hover::before {
  left: 100%;
}

.skill-item:hover {
  background: white;
  border-color: #667eea;
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
}

.skill-item i {
  font-size: 2.5rem;
  color: #667eea;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.skill-item:hover i {
  color: #764ba2;
  transform: scale(1.1);
}

.skill-item span {
  font-weight: 600;
  color: #2d3748;
  text-align: center;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.skill-item:hover span {
  color: #667eea;
}

/* Experience Section */
.experience {
  padding: 100px 0;
  background: #f8fafc;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #667eea;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 80px;
}

.timeline-dot {
  position: absolute;
  left: -12px;
  top: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  transition: all 0.3s ease;
}

.timeline-dot:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.timeline-badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.timeline-achievements {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.achievement-tag {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
}

.achievement-tag:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
}

.timeline-content {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  margin-left: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #667eea;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.timeline-content h3 {
  color: #2d3748;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.timeline-content h4 {
  color: #667eea;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-date {
  background: #f7fafc;
  color: #4a5568;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 15px;
}

.timeline-content p {
  color: #4a5568;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 15px;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 20px;
  font-size: 1.5rem;
}

.contact-details h3 {
  color: #2d3748;
  margin-bottom: 5px;
}

.contact-details p {
  color: #718096;
  cursor: pointer;
  transition: color 0.3s ease;
}

.contact-details p:hover {
  color: #667eea;
}

.contact-details p:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
  resize: vertical;
}

.contact-form {
  margin-top: 20px;
}

.contact-form .btn {
  width: 100%;
  padding: 15px;
  font-size: 16px;
}

/* Footer */
.footer {
  background: #2d3748;
  color: white;
  padding: 50px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.footer-left h3 {
  color: white;
  margin-bottom: 10px;
}

.footer-left p {
  color: #a0aec0;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: #4a5568;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: #667eea;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #4a5568;
  color: #a0aec0;
}

/* Responsive Design - Enhanced */
@media (max-width: 1024px) {
  .hero-content {
    gap: 40px;
    padding: 0 40px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .interests-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .container {
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 0;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    width: 100%;
    height: 100vh;
    text-align: center;
    transition: left 0.3s ease;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
    padding: 120px 20px 20px 20px;
    gap: 30px;
    justify-content: flex-start;
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 5px 0;
  }

  .hero {
    padding: 100px 0 50px 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding: 0 20px;
  }

  .hero-text {
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }

  .hero-description {
    font-size: clamp(0.9rem, 3vw, 1rem);
    max-width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    margin: 0 auto 40px auto;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
    padding: 15px 30px;
  }

  .social-links {
    justify-content: center;
  }

  .image-container {
    width: clamp(200px, 50vw, 280px);
    height: clamp(200px, 50vw, 280px);
  }

  .profile-img {
    width: clamp(180px, 45vw, 250px);
    height: clamp(180px, 45vw, 250px);
  }

  .image-bg {
    width: clamp(160px, 40vw, 230px);
    height: clamp(160px, 40vw, 230px);
    top: 20px;
    left: 20px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .interests-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .certifications-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 40px;
  }

  .timeline-dot {
    left: 8px;
  }

  .education-content {
    gap: 20px;
  }

  .education-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 15px;
  }

  .hero {
    padding: 90px 0 40px 0;
  }

  .hero-content {
    padding: 0 15px;
    gap: 30px;
  }

  .hero-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .hero-subtitle {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
  }

  .hero-description {
    font-size: clamp(0.85rem, 3vw, 0.95rem);
  }

  .hero-buttons {
    max-width: 280px;
  }

  .image-container {
    width: clamp(150px, 60vw, 220px);
    height: clamp(150px, 60vw, 220px);
  }

  .profile-img {
    width: clamp(130px, 55vw, 200px);
    height: clamp(130px, 55vw, 200px);
  }

  .image-bg {
    width: clamp(110px, 50vw, 180px);
    height: clamp(110px, 50vw, 180px);
    top: 15px;
    left: 15px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 15px;
  }

  .section-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  .interest-card {
    padding: 20px;
  }

  .cert-card {
    padding: 20px 15px;
  }

  .education-card {
    padding: 20px;
  }

  .timeline-content {
    margin-left: 10px;
    padding: 20px 15px;
  }

  .timeline-item {
    padding-left: 30px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-dot {
    left: 2px;
    width: 20px;
    height: 20px;
  }

  .contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    margin-top: 10px;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.skills-content {
  display: grid;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Education Section Updated */
.education {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.education-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.education-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.education-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.education-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.education-info {
  flex: 1;
}

.education-info h4 {
  color: #2d3748;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.education-info p {
  color: #4a5568;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.education-description {
  color: #718096 !important;
  font-size: 1rem !important;
  line-height: 1.7;
  margin: 15px 0 20px 0 !important;
}

.education-achievements {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.year {
  background: #667eea;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: inline-block;
}

/* Hobbies and Interests Section */
.interests {
  padding: 80px 0;
  background: white;
}

.interests-content {
  max-width: 1200px;
  margin: 0 auto;
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.interest-card {
  background: #f8fafc;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.interest-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.2);
  background: white;
}

.interest-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: white;
  transition: all 0.3s ease;
}

.interest-card:hover .interest-icon {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.interest-card h3 {
  color: #2d3748;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.interest-card p {
  color: #718096;
  line-height: 1.6;
  font-size: 1rem;
}

/* Certifications Section */
.certifications {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.cert-card {
  background: white;
  padding: 25px 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid #667eea;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.cert-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.5rem;
  color: white;
}

.cert-card h4 {
  color: #2d3748;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.cert-card p {
  color: #667eea;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Enhanced navigation link active state */
.nav-link.active {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.nav-link.active::after {
  width: 100%;
}

/* Smooth scroll behavior for all browsers */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary {
    background: #000;
    border: 2px solid #000;
  }

  .btn-secondary {
    border: 2px solid #000;
    color: #000;
  }
}

/* Improved button focus states */
.btn:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Non-hero section buttons (restore gradient) */
.contact-form .btn-primary,
.about .btn-primary,
.projects .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.contact-form .btn-primary:hover,
.about .btn-primary:hover,
.projects .btn-primary:hover {
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
  background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
}
