/* Fade-in effect */
.fade-in {
  animation: fadeIn 2s ease-in-out;
}

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

/* Typewriter effect */
.typewriter {
  overflow: hidden;
  border-right: 2px solid #6366f1;
  white-space: nowrap;
  animation: typing 4s steps(40, end), blink 0.75s step-end infinite;
  display: inline-block;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}
@keyframes blink {
  from, to { border-color: transparent }
  50% { border-color: #6366f1 }
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 40px;
  color: #fff;
  position: relative;
}
.section-title::after {
  content: "";
  width: 70px;
  height: 4px;
  background: #6366f1;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Hero Profile Pic */
.hero-pic {
  width: 220px;
  height: 220px;
 border-radius: 50%;
  /* /object-fit: cover;  */
   object-position: 50% 30%;   
   object-fit: contain; 
   background-color: #98FF98;      
  border: 4px solid #6366f1;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  max-width: 100%;
}

@media (max-width: 768px) {
  .hero-pic {
    width: 120px;
    height: 120px;
  }
}


.hero-pic:hover {
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.9);
}


/* About Section */
#about {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  padding: 100px 20px;
  text-align: center;
  position: relative;
}

/* Title with glow underline */
#about .section-title {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 40px;
  color: #fff;
  position: relative;
  display: inline-block;
}

#about .section-title::after {
  content: "";
  width: 80px;
  height: 4px;
  background: #6366f1;
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.7);
}

/* About Card */
.about-card {
  max-width: 850px;
  margin: auto;
  background: rgba(15, 23, 42, 0.9); /* semi-transparent dark */
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.5);
}

/* Text */
.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #d1d5db;
  margin: 0;
  transition: color 0.3s;
}

.about-text:hover {
  color: #ffffff;
}

/* Optional Profile Image (About Section) */
.profile-pic {
  width: 130px;
  height: 130px;
  border-radius: 50%;           /* circle shape */
  object-fit: contain;          /* keeps full image inside circle */
  object-position: 50% 30%;     /* adjust face positioning like hero */
  background-color: #98FF98;    /* mint green background */
  border: 3px solid #6366f1;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
  transition: transform 0.4s ease;
}

.profile-pic:hover {
  transform: scale(1.08) rotate(2deg);
}



/* Project Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

/* Project Card */
.project-card {
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.6);
}

/* Image Overlay */
.project-img {
  position: relative;
}
.project-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card:hover img {
  transform: scale(1.05);
}
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(99,102,241,0.85);
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover .overlay {
  opacity: 1;
}

/* Glow Button */
.btn-glow {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(90deg, #6366f1, #4f46e5);
  color: #fff;
  border-radius: 10px;
  font-weight: bold;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.btn-glow:hover {
  box-shadow: 0 0 20px #6366f1;
  transform: scale(1.05);
}



/* Universal Project Card (All Projects same style) */
.project-card, .ai-studymate-card {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid #6366f1;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.project-card:hover, .ai-studymate-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.6);
}

/* Image */
.project-img {
  position: relative;
}
.project-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover img, .ai-studymate-card:hover img {
  transform: scale(1.08);
}

/* Overlay */
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(99,102,241,0.85);
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover .overlay, .ai-studymate-card:hover .overlay {
  opacity: 1;
}

/* Title */
.project-card h3, .ai-studymate-card h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
}

/* Text */
.project-card p, .ai-studymate-card p {
  font-size: 0.95rem;
  color: #d1d5db;
  line-height: 1.6;
}

/* Highlight */
.project-card p b, .ai-studymate-card p b {
  color: #6366f1;
}


/* View Resume Button (Blue Glow) */
.btn-view {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}
.btn-view:hover {
  box-shadow: 0 0 20px #3b82f6;
  transform: scale(1.05);
}

/* Download Resume Button (Green Glow) */
.btn-download {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}
.btn-download:hover {
  box-shadow: 0 0 20px #22c55e;
  transform: scale(1.05);
}

/* Resume Buttons (Equal Size) */
.btn-view, .btn-download {
  display: inline-block;
  min-width: 180px;   /* same width for both */
  text-align: center; /* center text */
  padding: 12px 30px;
  border-radius: 10px;
  font-weight: bold;
  color: #fff;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}


/* View Resume button (yellow) */
.btn.view {
  background: #ff9800;
}
.btn.view:hover {
  background: #e68900;
}

/* Download Resume button (green) */
.btn.download {
  background: #4caf50;
}
.btn.download:hover {
  background: #388e3c;
}


/* Modern Footer */
footer {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #d1d5db;
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
  border-top: 2px solid #6366f1;
  box-shadow: 0 -4px 15px rgba(99, 102, 241, 0.4);
  position: relative;
}

/* Footer text */
footer p {
  margin: 10px 0;
  font-size: 0.95rem;
}

/* Social Links with Icons */
footer .social-links {
  margin-top: 15px;
}

footer .social-links a {
  margin: 0 15px;
  font-size: 26px;
  color: #6366f1;
  transition: color 0.3s, transform 0.3s;
}

footer .social-links a:hover {
  color: #fff;
  transform: scale(1.3) rotate(8deg);
}

/* Small glow bar above footer */
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: #6366f1;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.7);
}

footer .social-links a {
  margin: 0 15px;
  font-size: 26px;
  color: #6366f1;  /* visible purple */
}



