/* Root Variables for Theme Toggle */
:root {
  --bg-primary: linear-gradient(135deg, #0B0C10 0%, #1F2833 50%, #0B0C10 100%);
  --bg-secondary: rgba(15, 20, 25, 0.95);
  --bg-card: rgba(25, 30, 35, 0.95);
  --text-primary: #ffffff;
  --text-secondary: #C5C6C7;
  --text-muted: #8892B0;
  --accent-teal: #4ECDC4;
  --accent-gold: #F7DC6F;
  --accent-gold-light: #F9E79F;
  --accent-blue: #66FCF1;
  --gradient-primary: linear-gradient(135deg, #4ECDC4 0%, #44A08D 50%, #F7DC6F 100%);
  --gradient-secondary: linear-gradient(135deg, #66FCF1 0%, #4ECDC4 50%, #F7DC6F 100%);
  --border-color: rgba(78, 205, 196, 0.2);
  --shadow: 0 8px 32px rgba(78, 205, 196, 0.15);
  --glow: 0 0 20px rgba(78, 205, 196, 0.3);
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f2f5 100%);
  --bg-secondary: rgba(248, 249, 250, 0.95);
  --bg-card: rgba(255, 255, 255, 0.98);
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --accent-teal: #319795;
  --accent-gold: #D69E2E;
  --accent-blue: #3182ce;
  --gradient-primary: linear-gradient(135deg, #319795 0%, #38B2AC 50%, #D69E2E 100%);
  --gradient-secondary: linear-gradient(135deg, #4FD1C7 0%, #319795 50%, #ECC94B 100%);
  --border-color: rgba(49, 151, 149, 0.2);
  --shadow: 0 8px 32px rgba(49, 151, 149, 0.15);
  --glow: 0 0 20px rgba(49, 151, 149, 0.25);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-secondary);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 15px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.nav-logo {
  font-size: 28px;
  font-weight: 700;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
  animation: gradientShift 4s ease-in-out infinite;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--accent-gold);
}

.theme-toggle {
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--accent-gold);
  color: #000;
}

/* Social Sidebar */
.social-sidebar {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: var(--accent-gold);
  color: #000;
  transform: translateX(-5px);
}

/* Sections */
section {
  min-height: 100vh;
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-primary);
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: 5.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 3px;
  animation: gradientShift 4s ease-in-out infinite, glow 2s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 30px rgba(78, 205, 196, 0.5));
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent-gold);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent-gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* About Section */
.about {
  background: var(--bg-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 80px;
}

.profile-image {
  width: 200px;
  height: 200px;
  background: var(--gradient-primary);
  background-size: 200% 200%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  animation: gradientShift 6s ease-in-out infinite, float 3s ease-in-out infinite, morphProfileBlob 15s ease-in-out infinite;
  box-shadow: var(--glow), inset 0 0 20px rgba(0, 0, 0, 0.3);
  border: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

.profile-image::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  z-index: -1;
  animation: gradientShift 4s ease-in-out infinite reverse;
}

.initials {
  font-size: 4.5rem;
  font-weight: 700;
  color: #1a1a1a;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.badge {
  background: var(--gradient-primary);
  background-size: 200% 200%;
  color: #0B0C10;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: gradientShift 5s ease-in-out infinite;
  box-shadow: var(--glow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.badge:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 30px rgba(78, 205, 196, 0.6);
}

.badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

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

.about-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat h3 {
  font-size: 3rem;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  animation: pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(78, 205, 196, 0.4));
}

.stat p {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* Education Section */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 40px;
}

.education-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.education-card:hover {
  transform: translateY(-5px);
}

.education-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.year {
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 10px;
}

.institution {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: var(--accent-blue);
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
}

/* Skills Section */
.skills {
  background: var(--bg-secondary);
}

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

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
}

.skill-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  background-size: 200% 200%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: gradientShift 4s ease-in-out infinite;
  box-shadow: var(--glow);
  transition: all 0.3s ease;
}

.skill-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(78, 205, 196, 0.6);
}

.skill-icon i {
  font-size: 2rem;
  color: #000;
}

.skill-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.skill-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Projects Section */
.project-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.project-title {
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 10px;
  letter-spacing: 3px;
}

.project-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.project-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 30px;
}

.project-features {
  margin-bottom: 40px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.feature i {
  color: var(--accent-gold);
  font-size: 1.2rem;
}

.project-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.project-mockup {
  display: flex;
  justify-content: center;
}

.mockup-device {
  position: relative;
  width: 300px;
  height: 400px;
  background: var(--bg-card);
  border: 3px solid var(--accent-gold);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.mockup-screen {
  background: #000;
  height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.mockup-content h4 {
  color: var(--accent-gold);
  font-size: 2rem;
  margin-bottom: 10px;
}

.mockup-content p {
  color: #fff;
  font-size: 0.9rem;
}

.mockup-tab {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--accent-blue);
  color: white;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 0.8rem;
}

/* Milestones Section */
.milestones {
  background: var(--bg-secondary);
}

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

.milestone-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.milestone-card:hover {
  transform: translateY(-5px);
}

.milestone-card h3 {
  font-size: 2.5rem;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
  animation: pulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(78, 205, 196, 0.3));
}

.milestone-card p {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Certificates Section */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.certificate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.certificate-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
}

.cert-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  background-size: 200% 200%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: gradientShift 5s ease-in-out infinite;
  box-shadow: var(--glow);
  transition: all 0.3s ease;
}

.cert-icon:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px rgba(78, 205, 196, 0.6);
}

.cert-icon i {
  font-size: 2rem;
  color: #000;
}

.certificate-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.certificate-card p {
  color: var(--text-muted);
  font-style: italic;
}

/* Contact Section */
.contact {
  background: var(--bg-secondary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 10px 0;
  border-radius: 8px;
}

.contact-item:hover {
  color: var(--accent-gold);
  transform: translateX(5px);
}

.contact-item i {
  color: var(--accent-gold);
  font-size: 1.5rem;
  width: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-input,
.form-textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 15px 20px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
}

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

.form-submit {
  width: 100%;
  margin-top: 10px;
}

.footer {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
}

/* AI-Style Animations */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes glow {
  0% { filter: drop-shadow(0 0 20px rgba(78, 205, 196, 0.3)); }
  100% { filter: drop-shadow(0 0 40px rgba(78, 205, 196, 0.8)); }
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes slideInLeft {
  0% { 
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% { 
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes typing {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes blink {
  0%, 50% { border-right-color: var(--accent-teal); }
  51%, 100% { border-right-color: transparent; }
}

@keyframes particleFloat {
  0%, 100% { 
    transform: translateY(0) rotate(0deg);
    opacity: 0.7;
  }
  50% { 
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}


/* Floating Particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: var(--gradient-primary);
  background-size: 200% 200%;
  border-radius: 50%;
  animation: particleFloat 6s ease-in-out infinite, gradientShift 4s ease-in-out infinite;
  opacity: 0.7;
  box-shadow: 0 0 10px rgba(78, 205, 196, 0.4);
  z-index: 1;
}

.particle:nth-child(1) {
  width: 8px;
  height: 8px;
  left: 10%;
  top: 20%;
  animation-delay: 0s;
  animation-duration: 8s;
}

.particle:nth-child(2) {
  width: 12px;
  height: 12px;
  left: 20%;
  top: 60%;
  animation-delay: 1s;
  animation-duration: 6s;
}

.particle:nth-child(3) {
  width: 6px;
  height: 6px;
  left: 30%;
  top: 80%;
  animation-delay: 2s;
  animation-duration: 10s;
}

.particle:nth-child(4) {
  width: 10px;
  height: 10px;
  left: 40%;
  top: 30%;
  animation-delay: 3s;
  animation-duration: 7s;
}

.particle:nth-child(5) {
  width: 9px;
  height: 9px;
  left: 50%;
  top: 70%;
  animation-delay: 4s;
  animation-duration: 9s;
}

.particle:nth-child(6) {
  width: 7px;
  height: 7px;
  left: 60%;
  top: 15%;
  animation-delay: 5s;
  animation-duration: 8s;
}

.particle:nth-child(7) {
  width: 5px;
  height: 5px;
  left: 70%;
  top: 50%;
  animation-delay: 6s;
  animation-duration: 6s;
}

.particle:nth-child(8) {
  width: 11px;
  height: 11px;
  left: 80%;
  top: 40%;
  animation-delay: 7s;
  animation-duration: 11s;
}

.particle:nth-child(9) {
  width: 8px;
  height: 8px;
  left: 90%;
  top: 75%;
  animation-delay: 8s;
  animation-duration: 7s;
}

/* Enhanced Card Animations */
.skill-card, .education-card, .milestone-card, .certificate-card {
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.2s;
  opacity: 0;
  transition: all 0.3s ease;
}

.skill-card:hover, .education-card:hover, .milestone-card:hover, .certificate-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--glow), 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-teal);
}

.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced Button Animations */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

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

.btn-primary {
  background: var(--gradient-primary);
  background-size: 200% 200%;
  animation: gradientShift 3s ease-in-out infinite;
  box-shadow: var(--glow);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 40px rgba(78, 205, 196, 0.8), 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Morphing Background Shapes */
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(ellipse 40% 60%, rgba(78, 205, 196, 0.15) 0%, rgba(78, 205, 196, 0.05) 40%, transparent 70%);
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  animation: morphBlob1 20s ease-in-out infinite, float 12s ease-in-out infinite;
  pointer-events: none;
  filter: blur(1px);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 15%;
  left: 8%;
  width: 250px;
  height: 250px;
  background: radial-gradient(ellipse 60% 40%, rgba(247, 220, 111, 0.12) 0%, rgba(247, 220, 111, 0.04) 50%, transparent 80%);
  clip-path: polygon(25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%);
  animation: morphBlob2 25s ease-in-out infinite reverse, float 15s ease-in-out infinite reverse;
  pointer-events: none;
  filter: blur(1px);
}

/* Additional floating blobs */
.about::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 5%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.08) 0%, transparent 60%);
  clip-path: polygon(40% 0%, 60% 0%, 100% 40%, 100% 60%, 60% 100%, 40% 100%, 0% 60%, 0% 40%);
  animation: morphBlob3 18s ease-in-out infinite, float 10s ease-in-out infinite;
  pointer-events: none;
  filter: blur(2px);
}

@keyframes morphBlob1 {
  0%, 100% { 
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    transform: rotate(0deg);
  }
  25% { 
    clip-path: polygon(20% 10%, 80% 5%, 90% 40%, 95% 80%, 60% 90%, 20% 95%, 5% 60%, 10% 20%);
    transform: rotate(90deg);
  }
  50% { 
    clip-path: polygon(40% 5%, 75% 15%, 85% 45%, 90% 75%, 65% 85%, 35% 90%, 15% 65%, 5% 35%);
    transform: rotate(180deg);
  }
  75% { 
    clip-path: polygon(25% 15%, 65% 10%, 95% 25%, 85% 65%, 75% 95%, 45% 85%, 10% 75%, 15% 45%);
    transform: rotate(270deg);
  }
}

@keyframes morphBlob2 {
  0%, 100% { 
    clip-path: polygon(25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%);
    transform: rotate(0deg) scale(1);
  }
  33% { 
    clip-path: polygon(15% 20%, 85% 10%, 90% 35%, 80% 85%, 55% 95%, 45% 90%, 10% 65%, 20% 15%);
    transform: rotate(120deg) scale(1.1);
  }
  66% { 
    clip-path: polygon(35% 15%, 80% 20%, 85% 55%, 75% 80%, 45% 85%, 25% 75%, 20% 45%, 25% 25%);
    transform: rotate(240deg) scale(0.9);
  }
}

@keyframes morphBlob3 {
  0%, 100% { 
    clip-path: polygon(40% 0%, 60% 0%, 100% 40%, 100% 60%, 60% 100%, 40% 100%, 0% 60%, 0% 40%);
    transform: scale(1);
  }
  50% { 
    clip-path: polygon(20% 20%, 80% 15%, 85% 80%, 75% 85%, 15% 80%, 20% 20%);
    transform: scale(1.2);
  }
}

/* Profile Image Morphing Animation */
@keyframes morphProfileBlob {
  0%, 100% { 
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    transform: rotate(0deg);
  }
  20% { 
    clip-path: polygon(25% 10%, 75% 5%, 95% 25%, 90% 75%, 65% 95%, 35% 90%, 10% 65%, 5% 35%);
    transform: rotate(72deg);
  }
  40% { 
    clip-path: polygon(20% 15%, 80% 10%, 90% 35%, 85% 80%, 60% 90%, 40% 85%, 15% 60%, 10% 20%);
    transform: rotate(144deg);
  }
  60% { 
    clip-path: polygon(35% 5%, 65% 15%, 85% 45%, 80% 85%, 55% 95%, 25% 90%, 5% 55%, 15% 25%);
    transform: rotate(216deg);
  }
  80% { 
    clip-path: polygon(40% 10%, 60% 20%, 90% 40%, 95% 60%, 75% 90%, 45% 85%, 20% 55%, 25% 15%);
    transform: rotate(288deg);
  }
}

/* Hero Subtitle - will be animated via JavaScript */
.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin: 0 auto 40px;
  font-weight: 300;
  min-height: 2rem;
}

/* AI-Style Section Transitions */
.section-title {
  animation: slideInLeft 0.8s ease-out;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: expandLine 1s ease-out 0.5s forwards;
}

@keyframes expandLine {
  0% { width: 0; }
  100% { width: 100px; }
}

/* Enhanced Navigation */
.navbar {
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.nav-menu a {
  position: relative;
  transition: all 0.3s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

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

/* Enhanced Social Sidebar */
.social-link {
  backdrop-filter: blur(10px) saturate(180%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
  background: var(--gradient-primary);
  transform: translateX(-10px) scale(1.1);
  box-shadow: var(--glow);
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-title {
    animation: none !important;
    background: var(--accent-teal) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
  }
  
  .particles {
    display: none !important;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .about-content,
  .project-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .social-sidebar {
    right: 10px;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .project-title {
    font-size: 2.5rem;
  }
}