/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #cdb4db, #ffb4a2, #a2d2ff);
  color: #222;
  line-height: 1.8;
  overflow-x: hidden;
  padding: 20px;
}

/* Header */
header {
  text-align: center;
  padding: 70px 20px;
  animation: fadeInDown 1.5s ease;
}
header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #6a4c93;
  text-shadow: 0 0 10px #cdb4db, 0 0 20px #6a4c93;
  animation: glowPulse 3s infinite, floatBounce 4s infinite ease-in-out;
}
header h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 12px;
  color: #0077b6;
  text-shadow: 0 0 8px #a2d2ff;
  animation: fadeInUp 2s ease;
}
.contact {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: 500;
  color: #d62828;
  text-shadow: 0 0 6px #ffb4a2;
  animation: fadeIn 2s ease, pulseText 3s infinite;
}

/* Sections */
section {
  max-width: 950px;
  margin: 55px auto;
  padding: 35px;
  background: rgba(255,255,255,0.85);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
  color: #222;
  opacity: 0;
  transform: translateY(40px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}
section.visible {
  opacity: 1;
  transform: translateY(0);
}
section:hover { 
  transform: scale(1.03) rotate(1deg);
  background: rgba(255,255,255,0.95);
}

/* Headings */
h3 {
  font-size: 2rem;
  margin-bottom: 22px;
  color: #6a4c93;
  border-bottom: 2px solid #a2d2ff;
  display: inline-block;
  padding-bottom: 6px;
  animation: slideInLeft 1.2s ease;
}
h4 {
  font-size: 1.3rem;
  margin: 25px 0 12px;
  color: #ff6b6b;
  animation: slideInRight 1.2s ease;
}

/* Lists */
ul { margin-left: 28px; margin-top: 12px; }
li { 
  margin-bottom: 14px; 
  color: #333;
  transition: color 0.3s ease, transform 0.3s ease;
  animation: fadeInUp 1.5s ease;
}
li:hover { 
  color: #6a4c93;
  transform: translateX(5px) scale(1.05);
}

/* Skill bars */
.skill-bar {
  background: rgba(0,0,0,0.1);
  border-radius: 10px;
  margin: 12px 0;
  overflow: hidden;
}
.skill-fill {
  height: 12px;
  width: 0;
  background: linear-gradient(90deg, #cdb4db, #ffb4a2, #a2d2ff);
  border-radius: 10px;
  animation: fillBar 2s forwards;
}

/* Footer */
footer {
  text-align: center;
  padding: 45px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #6a4c93;
  text-shadow: 0 0 8px #a2d2ff, 0 0 12px #ffb4a2;
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
  animation: fadeInUp 2s ease, shimmer 6s infinite linear;
}
footer:hover {
  color: #d62828;
  text-shadow: 0 0 12px #ffb4a2, 0 0 20px #a2d2ff;
  transform: scale(1.05);
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 10px #ffb4a2; }
  50% { text-shadow: 0 0 20px #cdb4db, 0 0 30px #a2d2ff; }
}
@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulseText {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fillBar {
  to { width: 85%; }
}
@keyframes shimmer {
  0% { background-position: -200px center; }
  100% { background-position: 200% center; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
