/* Modern Portfolio CSS - Enhanced with Professional Animations */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  scroll-behavior: smooth;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode */
body.dark-mode {
  background-color: #0a0a1a;
  color: #e0e0e0;
}

body.dark-mode .sticky-nav {
  background: rgba(15, 15, 35, 0.95);
  border-bottom: 1px solid rgba(0, 198, 255, 0.2);
}

body.dark-mode .sticky-nav ul li a {
  color: #e0e0e0;
}

body.dark-mode .sticky-nav ul li a:hover,
body.dark-mode .sticky-nav ul li a.active {
  color: #00c6ff;
}

body.dark-mode .menu-toggle {
  color: #e0e0e0;
}

body.dark-mode section:nth-child(even) {
  background: #121225;
}

body.dark-mode section:nth-child(odd) {
  background: #0a0a1a;
}

body.dark-mode section h2 {
  color: #00c6ff;
}

body.dark-mode .timeline-content {
  background: #1a1a35;
  color: #e0e0e0;
}

body.dark-mode .timeline-content h3 {
  color: #00c6ff;
}

body.dark-mode .timeline-content p {
  color: #b0b0b0;
}

body.dark-mode .experience-item {
  background: #1a1a35;
  color: #e0e0e0;
}

body.dark-mode .experience-item h3 {
  color: #00c6ff;
}

body.dark-mode .experience-item p {
  color: #b0b0b0;
}

body.dark-mode .project-item {
  background: #1a1a35;
  color: #e0e0e0;
}

body.dark-mode .project-item h3 {
  color: #00c6ff;
}

body.dark-mode .project-item p {
  color: #b0b0b0;
}

body.dark-mode .certification-item {
  background: #1a1a35;
  color: #e0e0e0;
}

body.dark-mode .certification-item h4 {
  color: #00c6ff;
}

body.dark-mode .certification-item p {
  color: #b0b0b0;
}

body.dark-mode .skill-item {
  background: #1a1a35;
  color: #e0e0e0;
}

body.dark-mode .skill-item:hover {
  background: linear-gradient(45deg, #1a1a35, #222245);
}

body.dark-mode .skill-name {
  color: #e0e0e0;
}

body.dark-mode .soft-skills li {
  background: #1a1a35;
  color: #e0e0e0;
}

body.dark-mode .soft-skills li:hover {
  background: linear-gradient(90deg, rgba(0, 198, 255, 0.2), rgba(0, 114, 255, 0.2));
}

body.dark-mode .workshop-item {
  background: #1a1a35;
  color: #e0e0e0;
}

body.dark-mode .workshop-item h3 {
  color: #00c6ff;
}

body.dark-mode .workshop-item p {
  color: #b0b0b0;
}

body.dark-mode #interests li {
  background: #1a1a35;
  color: #e0e0e0;
}

body.dark-mode #interests li:hover {
  background: linear-gradient(45deg, #00c6ff, #0072ff);
}

body.dark-mode .contact-info p {
  color: #e0e0e0;
}

body.dark-mode .contact-info a {
  color: #b0b0b0;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
  background: #1a1a35;
  color: #e0e0e0;
  border: 2px solid #2a2a4a;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
  border-color: #00c6ff;
  box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.2);
}

body.dark-mode .form-success {
  background: #2ecc71;
  color: white;
}

body.dark-mode .form-error {
  background: #e74c3c;
  color: white;
}

body.dark-mode .theme-toggle {
  background: #00c6ff;
  color: #0a0a1a;
}

body.dark-mode .theme-toggle i.fa-moon::before {
  content: "\f185";
}

body.dark-mode .scroll-to-top {
  background: #00c6ff;
  color: #0a0a1a;
}

/* AI/ML/DL Theme Elements */
.ai-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(0, 198, 255, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(0, 114, 255, 0.1) 0%, transparent 20%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
}

body.dark-mode .ai-background {
  opacity: 0.5;
}

.neural-network {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.1;
}

/* Matrix Code Rain Effect */
.matrix-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
  opacity: 0.05;
  background: transparent;
}

/* Circuit Board Pattern */
.circuit-board {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -4;
  pointer-events: none;
  opacity: 0.03;
  background-image: 
    linear-gradient(90deg, rgba(0, 198, 255, 0.3) 1px, transparent 1px),
    linear-gradient(rgba(0, 114, 255, 0.3) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

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

/* Hero Section */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  overflow: hidden;
  padding: 20px;
}

body.dark-mode #hero {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInDown 1s ease-out;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  animation: slideInUp 0.8s ease-out;
  background: linear-gradient(90deg, #ffd700, #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-mode .hero-content h1 {
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content .typed-text-container {
  min-height: 60px;
  margin-bottom: 20px;
  position: relative;
}

.hero-content .typed-text-container::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 70%;
  background: #ffd700;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-content .typed-text {
  font-size: 1.8rem;
  font-weight: 500;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  letter-spacing: 1px;
}

body.dark-mode .hero-content .typed-text {
  color: #00c6ff;
  text-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.9;
  text-shadow: 0 0 5px rgba(0,0,0,0.3);
  animation: fadeIn 1.2s ease-out;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  animation: fadeIn 1.5s ease-out;
}

.btn {
  display: inline-block;
  padding: 15px 35px;
  background: #fff;
  color: #667eea;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline:hover {
  background: #fff;
  color: #667eea;
}

.social-media {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 40px;
  animation: fadeIn 1.8s ease-out;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.social-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: -1;
}

.social-icon:hover::before {
  opacity: 1;
}

.social-icon:hover {
  color: #667eea;
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1001;
  border: 2px solid white;
}

.theme-toggle:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  border: 2px solid white;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Navigation */
.sticky-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.4s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sticky-nav.scrolled {
  padding: 10px 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.sticky-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.sticky-nav ul li {
  margin: 0 15px;
}

.sticky-nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 20px 0;
  display: block;
  transition: all 0.3s ease;
  position: relative;
}

.sticky-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #667eea;
  transition: width 0.3s ease;
}

.sticky-nav ul li a:hover::after,
.sticky-nav ul li a.active::after {
  width: 100%;
}

.sticky-nav ul li a:hover,
.sticky-nav ul li a.active {
  color: #667eea;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
  padding: 15px;
  position: absolute;
  right: 15px;
  top: 15px;
  z-index: 1001;
}

/* Sections */
section {
  padding: 120px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

section:nth-child(even) {
  background: #f8f9fa;
}

section:nth-child(odd) {
  background: #fff;
}

section h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 60px;
  position: relative;
  color: #333;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* About Section */
#about {
  position: relative;
  overflow: hidden;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.profile-pic {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  border: 5px solid #fff;
  animation: float 6s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.profile-pic::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: rotate(45deg) translateX(-100%);
  }
  100% {
    transform: rotate(45deg) translateX(100%);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.about-description h2 {
  text-align: left;
  margin-bottom: 20px;
  font-size: 2.2rem;
  color: #667eea;
}

.about-description p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
}

/* Qualifications Section */
#qualifications {
  position: relative;
  overflow: hidden;
}

.qualification-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.qualification-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #667eea;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

.qualification-item {
  position: relative;
  margin-bottom: 50px;
  width: 100%;
}

.qualification-item:nth-child(odd) {
  padding-right: calc(50% + 30px);
  text-align: right;
}

.qualification-item:nth-child(even) {
  padding-left: calc(50% + 30px);
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #667eea;
  border: 4px solid #fff;
  border-radius: 50%;
  top: 15px;
  left: 50%;
  margin-left: -10px;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.3);
  z-index: 1;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  top: 5px;
  left: 5px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.3;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.7;
  }
}

.timeline-content {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.timeline-content:hover::before {
  transform: translateX(100%);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.timeline-content h3 {
  color: #667eea;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.timeline-content p {
  margin-bottom: 5px;
  color: #666;
}

.timeline-content .duration {
  font-weight: 600;
  color: #764ba2;
}

/* Work Experience Section */
#work-experience {
  position: relative;
  overflow: hidden;
}

.experience-item {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border-left: 4px solid #667eea;
}

.experience-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.experience-item:hover::before {
  transform: translateX(100%);
}

.experience-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  border-left: 4px solid #764ba2;
}

.experience-item h3 {
  color: #667eea;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.experience-item p {
  margin-bottom: 15px;
  color: #666;
  line-height: 1.7;
}

.experience-item .duration {
  font-weight: 600;
  color: #764ba2;
  margin-bottom: 15px;
}

.experience-cert {
  text-align: center;
  margin-top: 20px;
}

.certificate-thumb {
  max-width: 200px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border: 2px solid #f0f0f0;
}

.certificate-thumb:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Projects Section */
#projects {
  position: relative;
  overflow: hidden;
}

.project-item {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border-left: 4px solid #667eea;
}

.project-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.project-item:hover::before {
  transform: translateX(100%);
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  border-left: 4px solid #764ba2;
}

.project-item h3 {
  color: #667eea;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.project-item p {
  margin-bottom: 20px;
  color: #666;
  line-height: 1.7;
}

.project-item a {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border: none;
}

.project-item a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Certifications Section */
#certifications {
  position: relative;
  overflow: hidden;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.certification-item {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}

.certification-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.05), transparent);
  transform: translate(-100%, -100%);
  transition: transform 0.6s ease;
}

.certification-item:hover::before {
  transform: translate(100%, 100%);
}

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

.certification-item img {
  max-width: 150px;
  border-radius: 10px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border: 2px solid #f0f0f0;
}

.certification-item img:hover {
  transform: scale(1.05) rotate(3deg);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.certification-item h4 {
  color: #667eea;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.certification-item p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Skills Section */
#skills {
  position: relative;
  overflow: hidden;
}

.skills-container {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.technical-skills {
  flex: 1;
  min-width: 300px;
}

.soft-skills {
  flex: 1;
  min-width: 300px;
}

.technical-skills h3,
.soft-skills h3 {
  margin-bottom: 30px;
  color: #667eea;
  text-align: center;
  font-size: 1.8rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.skill-item:hover::before {
  transform: translateX(100%);
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.skill-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.1));
  transition: all 0.3s ease;
}

.skill-icon:hover {
  transform: scale(1.1) rotate(10deg);
}

.skill-icon img {
  max-width: 100%;
  max-height: 100%;
}

.skill-name {
  font-weight: 500;
  color: #555;
  text-align: center;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  margin-top: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 4px;
  width: 0;
  transition: width 1s ease-in-out;
}

.soft-skills ul {
  list-style: none;
}

.soft-skills li {
  padding: 15px;
  background: #fff;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  position: relative;
  padding-left: 30px;
  border: 1px solid #f0f0f0;
}

.soft-skills li::before {
  content: '→';
  position: absolute;
  left: 10px;
  color: #667eea;
  font-weight: bold;
}

.soft-skills li:hover {
  transform: translateX(10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

/* Workshops Section */
#workshops {
  position: relative;
  overflow: hidden;
}

.workshop-item {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border-left: 4px solid #667eea;
}

.workshop-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.workshop-item:hover::before {
  transform: translateX(100%);
}

.workshop-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  border-left: 4px solid #764ba2;
}

.workshop-item h3 {
  color: #667eea;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.workshop-item p {
  margin-bottom: 20px;
  color: #666;
  line-height: 1.7;
}

.workshop-item .duration {
  font-weight: 600;
  color: #764ba2;
  margin-bottom: 15px;
}

.workshop-item a {
  display: inline-block;
  margin-right: 20px;
  padding: 12px 25px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-top: 10px;
  border: none;
}

.workshop-item a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Interests Section */
#interests {
  position: relative;
  overflow: hidden;
}

#interests ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  list-style: none;
  padding: 0;
}

#interests li {
  background: #fff;
  padding: 15px 30px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}

#interests li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

#interests li:hover::before {
  transform: translateX(100%);
}

#interests li:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: 1px solid #667eea;
}

/* Contact Section */
#contact {
  position: relative;
  overflow: hidden;
}

.contact-container {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-right: 15px;
  color: #667eea;
  width: 25px;
  font-size: 1.2rem;
}

.contact-info a {
  color: #555;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-info a:hover {
  color: #667eea;
  text-decoration: underline;
}

.contact-form {
  flex: 1;
  min-width: 300px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fff;
  color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group .error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.error-message {
  color: #e74c3c;
  font-size: 0.9rem;
  margin-top: 5px;
  display: none;
}

.submit-btn {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border: none;
  width: 100%;
}

.submit-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  background: #2ecc71;
  color: white;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: none;
}

.form-error {
  background: #e74c3c;
  color: white;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: none;
}

/* Footer */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 30px 20px;
}

footer p {
  margin-bottom: 10px;
}

/* Overlay for maximized images */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.full-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  border: 3px solid white;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

@keyframes pulse {
  0% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.2;
  }
}

.animate {
  animation: fadeInUp 0.8s ease forwards;
}

/* Responsive Design */

/* Large devices */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content .typed-text {
    font-size: 1.6rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
  
  section {
    padding: 100px 20px;
  }
  
  section h2 {
    font-size: 2.5rem;
  }
}

/* Medium devices */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content .typed-text {
    font-size: 1.4rem;
    min-height: 40px;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .btn {
    width: 80%;
    max-width: 250px;
  }
  
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-pic {
    width: 300px;
    height: 300px;
    margin: 0 auto;
  }
  
  .about-description h2 {
    text-align: center;
  }
  
  .skills-container {
    flex-direction: column;
  }
  
  .contact-container {
    flex-direction: column;
  }
  
  section {
    padding: 80px 20px;
  }
  
  section h2 {
    font-size: 2.2rem;
  }
  
  .qualification-timeline::before {
    left: 30px;
  }
  
  .qualification-item:nth-child(odd),
  .qualification-item:nth-child(even) {
    padding: 0 0 0 60px;
    text-align: left;
  }
  
  .timeline-dot {
    left: 30px;
  }
}

/* Small devices */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content .typed-text {
    font-size: 1.3rem;
    min-height: 35px;
  }
  
  .social-media {
    gap: 15px;
  }
  
  .social-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .sticky-nav ul {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .sticky-nav ul.show {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1000;
  }
  
  .sticky-nav ul.show li {
    margin: 10px 0;
    text-align: center;
  }
  
  .sticky-nav ul.show li a {
    display: block;
    padding: 15px 20px;
    font-size: 1.1rem;
  }
  
  .certifications-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  section {
    padding: 70px 15px;
  }
  
  section h2 {
    font-size: 2rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  
  .skill-icon {
    width: 70px;
    height: 70px;
  }
  
  .timeline-content {
    padding: 20px;
  }
  
  .timeline-content h3 {
    font-size: 1.3rem;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-content .typed-text {
    font-size: 1.1rem;
    min-height: 30px;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .social-icon {
    width: 45px;
    height: 45px;
  }
  
  section {
    padding: 60px 10px;
  }
  
  section h2 {
    font-size: 1.8rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
  
  .skill-icon {
    width: 60px;
    height: 60px;
  }
  
  .certification-item img {
    max-width: 120px;
  }
  
  .certification-item h4 {
    font-size: 0.95rem;
  }
  
  .project-item a,
  .workshop-item a {
    display: block;
    text-align: center;
    margin-bottom: 10px;
  }
  
  .btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
  
  .profile-pic {
    width: 250px;
    height: 250px;
  }
  
  .qualification-timeline::before {
    left: 20px;
  }
  
  .qualification-item:nth-child(odd),
  .qualification-item:nth-child(even) {
    padding: 0 0 0 40px;
  }
  
  .timeline-dot {
    left: 20px;
  }
}