/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}



/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #3b82f6;
}

.logo span {
  color: #8b5cf6;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
  margin: 0 auto;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #3b82f6;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3b82f6;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Navigation Button */
.nav-btn {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24) !important;
  color: white !important;
  padding: 0.6rem 1.8rem !important;
  border-radius: 25px !important;
  transition: all 0.3s ease !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
  font-weight: 600 !important;
}

.nav-btn:hover {
  background: linear-gradient(45deg, #ee5a24, #ff6b6b) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4) !important;
  color: white !important;
}

.nav-btn::after {
  display: none !important;
}

/* Right Corner Logo */
.nav-corner-logo {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.corner-logo {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  object-fit: cover;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.corner-logo:hover {
  transform: scale(1.1) rotate(5deg);
  border-color: #3b82f6;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 968px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    gap: 1rem;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  
  .nav-links a {
    display: block;
    padding: 0.8rem 0;
  }
  
  .nav-btn {
    margin: 1rem 0 0 0 !important;
    padding: 1rem 2rem !important;
    width: 100%;
    text-align: center;
  }
  
  /* Mobile mein corner logo hide */
  .nav-corner-logo {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
}

/* Right Corner Text Logo */
.nav-corner-logo {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.corner-text-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  color: white;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.corner-text-logo:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Hero Section */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

#home .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  color: white;
  z-index: 2;
  position: relative;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  min-height: 4.2rem;
}

.hero-content h1 span {
  background: linear-gradient(45deg, #ffd89b, #19547b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
} 

/* Typing Animation */
.typing-text {
  border-right: 3px solid #ffd89b;
  animation: blink 1s infinite;
  padding-right: 5px;
}

@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: #ffd89b; }
}

.hero-content h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.8s forwards;
}

/* Social Links */
.social-links-home {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease 1.1s forwards;
}

.social-links-home a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links-home a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-links-home i {
  font-size: 1.2rem;
}

/* Social Links - Responsive Addition */
@media (max-width: 768px) {
  .social-links-home {
    justify-content: center;
    gap: 0.8rem;
  }
}

@media (max-width: 480px) {
  .social-links-home {
    gap: 0.6rem;
  }
  
  .social-links-home a {
    width: 42px;
    height: 42px;
  }
  
  .social-links-home i {
    font-size: 1.1rem;
  }
}

/* Sirf mobile pe center ke liye */
@media (max-width: 768px) {
  .social-links-home {
    justify-content: center;
  }
}

/* iPad Mini aur chote tablets ke liye */
@media (max-width: 768px) {
  .social-links-home {
    justify-content: center;
    gap: 0.8rem;
  }
}

/* Larger iPad screens ke liye */
@media (min-width: 769px) and (max-width: 1024px) {
  .social-links-home {
    justify-content: flex-start;
  }
}

/* Hero Buttons */
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s ease 1.4s forwards;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Hero Image */
.hero-image {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeInRight 1s ease 1s forwards;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 250px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 4px solid rgba(255, 255, 255, 0.1);
}

.hero-image:hover img {
  transform: scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Background Animation */
#home::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: float 20s linear infinite;
  z-index: 1;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(-50px, -50px) rotate(360deg);
  }
}

/* Floating animation for image */
@keyframes float-image {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

.hero-image img {
  animation: float-image 6s ease-in-out infinite;
}

/* About Section */
#about {
  padding: 100px 0;
  background: #f8fafc;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text h4 {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #64748b;
  font-weight: 400;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.about-image:hover img {
  transform: scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Experience Section */
#experience {
  padding: 100px 0;
  background: white;
}

#experience h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.experience-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.experience-item {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  border-left: 4px solid #3b82f6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.experience-header h3 {
  color: #1e293b;
  font-size: 1.3rem;
  margin: 0;
}

.company {
  color: #3b82f6;
  font-weight: 600;
  font-size: 1rem;
  flex-basis: 100%;
  margin-top: 0.5rem;
}

.duration {
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.experience-details {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.experience-details li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #475569;
  line-height: 1.6;
}

.experience-details li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: bold;
}

.tech-used {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-used .tech-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid #e2e8f0;
}

/* Education Section */
#education {
  padding: 100px 0;
  background: #f8fafc;
}

#education h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.education-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.education-item {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-left: 4px solid #10b981;
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.education-header h3 {
  color: #1e293b;
  font-size: 1.2rem;
  margin: 0;
}

.institute {
  color: #64748b;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.grade {
  color: #059669;
  font-weight: 600;
}

/* Certifications Section */
#certifications {
  padding: 100px 0;
  background: white;
}

#certifications h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.certifications-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.certification-item {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  border-left: 4px solid #8b5cf6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  transition: all 0.3s ease;
}

.certification-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.certification-content {
  flex: 1;
  min-width: 250px;
}

.certification-content h3 {
  color: #1e293b;
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.issuer {
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 0.8rem;
  display: block;
  font-size: 1rem;
}

.date {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
}

.certificate-view {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.certificate-view:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  color: white;
}

/* Skills Section */
#skills {
  padding: 100px 0;
  background: #f8fafc;
}

#skills h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 1px solid #e2e8f0;
}

.skill-category:hover {
  transform: translateY(-10px);
}

.skill-category h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-category h3 i {
  color: #3b82f6;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-item {
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-item:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Projects Section */
#projects {
  padding: 100px 0;
  background: #f8fafc;
}

#projects h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

.project-content p {
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background: #e2e8f0;
  color: #475569;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: #3b82f6;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.project-links a:hover {
  color: #1d4ed8;
}

/* Contact Section */
#contact {
  padding: 100px 0;
  background: white;
}

#contact h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h2 {
  text-align: left;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: #64748b;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item i {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-item h4 {
  color: #1e293b;
  margin-bottom: 0.3rem;
}

.contact-item p {
  color: #64748b;
  margin: 0;
}

.contact-form {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid #e2e8f0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #1e293b;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Footer */
footer {
  background: #1e293b;
  color: white;
  padding: 1.5rem 0 0.8rem;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.footer-content .logo {
  color: white;
}

.social-links-home {
  display: flex;
  gap: 0.8rem;
}

.social-links-home a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links-home a:hover {
  background: #3b82f6;
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 0.8rem;
  border-top: 1px solid #374151;
  color: #9ca3af;
  font-size: 0.85rem;
}

/* Message Styles */
#formMessages {
  margin-bottom: 20px;
}

.message {
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.5;
  border-left: 4px solid;
  animation: slideIn 0.3s ease-out;
}

.success-message {
  background: #d4edda;
  color: #155724;
  border-left-color: #28a745;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  border-left-color: #dc3545;
}

.btn-loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Cursor ONLY for H1 */
.hero-content h1 span.typing-text {
  border-right: 3px solid #ffd89b;
  animation: blink 1s infinite;
  padding-right: 5px;
}

/* H2 mein cursor bilkul nahi */
.hero-content h2 {
  border-right: none !important;
}

.hero-content h2.typing-text {
  border-right: none !important;
}

@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: #ffd89b; }
}

/* Ensure proper text display */
.hero-content h2 {
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
}

/* Animations */
@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);
  }
}

/* Responsive Design */
@media (max-width: 968px) {
  #home .container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .hamburger {
    display: block;
  }

  .experience-header,
  .education-header,
  .certification-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content h2 {
    font-size: 1.2rem;
  }
  
  #about h2,
  #experience h2,
  #education h2,
  #certifications h2,
  #skills h2,
  #projects h2,
  #contact h2 {
    font-size: 2.5rem;
  }
  
  .projects-container {
    grid-template-columns: 1fr;
  }
  
  .hero-image img,
  .about-image img {
    max-width: 300px;
    height: 300px;
  }
  
  .experience-item,
  .education-item,
  .certification-item {
    padding: 1.2rem;
  }
  
  .certification-content {
    min-width: auto;
    width: 100%;
  }
  
  .certificate-view {
    align-self: flex-start;
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 200px;
  }
  
  .skills-container {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .certificate-view {
    width: 100%;
    justify-content: center;
  }
}

/* Text Logo Style */
.nav-text-logo {
  margin-left: 1rem;
  border-left: 2px solid #e2e8f0;
  padding-left: 1rem;
}

.nav-text-logo span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  color: white;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.nav-text-logo span:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}