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

:root {
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-200: #e9d5ff;
  --purple-300: #d8b4fe;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --purple-800: #6b21a8;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --dark-bg: #13111C;
  --dark-card: #1a1625;
  --dark-border: #2d2639;
  --text-primary: #a6a6a6;
  --text-secondary: #a6a6a6;
}

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

/* Floating Background Animation */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.03) 0%, transparent 50%);
  animation: bgShift 15s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes bgShift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 30px); }
}

/* Side Decorations */
.side-decoration {
  position: fixed;
  top: 0;
  width: 150px;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.side-decoration.left {
  left: 0;
  background: linear-gradient(to right, rgba(168, 85, 247, 0.08), transparent);
  border-right: 2px dashed rgba(168, 85, 247, 0.1);
  box-shadow: inset -20px 0 40px rgba(168, 85, 247, 0.05);
}

.side-decoration.right {
  right: 0;
  background: linear-gradient(to left, rgba(168, 85, 247, 0.08), transparent);
  border-left: 2px dashed rgba(168, 85, 247, 0.1);
  box-shadow: inset 20px 0 40px rgba(168, 85, 247, 0.05);
}

/* Floating Shapes */
.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  opacity: 0.15;
  mix-blend-mode: screen;
}

.shape-1 {
  width: 60px;
  height: 60px;
  top: 10%;
  left: 5%;
  animation: float 8s ease-in-out infinite, moveHeart1 15s ease-in-out infinite;
  font-size: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(168, 85, 247, 0.8);
}

.shape-1::before {
  content: '♥';
}

.shape-2 {
  width: 50px;
  height: 50px;
  bottom: 15%;
  right: 8%;
  font-size: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(236, 72, 153, 0.8);
  animation: float 10s ease-in-out infinite reverse, moveHeart2 18s ease-in-out infinite;
  animation-delay: 1s;
}

.shape-2::before {
  content: '♥';
}

.shape-3 {
  width: 40px;
  height: 40px;
  top: 50%;
  left: 2%;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(168, 85, 247, 0.8);
  animation: float 12s ease-in-out infinite, moveHeart3 20s ease-in-out infinite;
  animation-delay: 2s;
}

.shape-3::before {
  content: '♥';
}

.shape-4 {
  width: 55px;
  height: 55px;
  top: 30%;
  right: 3%;
  font-size: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(168, 85, 247, 0.8);
  animation: float 9s ease-in-out infinite reverse, moveHeart4 17s ease-in-out infinite;
  animation-delay: 1.5s;
}

.shape-4::before {
  content: '♥';
}

.shape-5 {
  width: 45px;
  height: 45px;
  bottom: 25%;
  left: 10%;
  font-size: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(236, 72, 153, 0.8);
  animation: float 11s ease-in-out infinite, moveHeart5 19s ease-in-out infinite;
  animation-delay: 2.5s;
}

.shape-5::before {
  content: '♥';
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-30px) rotate(10deg); }
  66% { transform: translateY(30px) rotate(-10deg); }
}

@keyframes moveHeart1 {
  0% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(100px) translateY(-50px); }
  50% { transform: translateX(50px) translateY(0); }
  75% { transform: translateX(-50px) translateY(50px); }
  100% { transform: translateX(0) translateY(0); }
}

@keyframes moveHeart2 {
  0% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(-80px) translateY(60px); }
  50% { transform: translateX(-30px) translateY(0); }
  75% { transform: translateX(60px) translateY(-50px); }
  100% { transform: translateX(0) translateY(0); }
}

@keyframes moveHeart3 {
  0% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(90px) translateY(40px); }
  50% { transform: translateX(0) translateY(80px); }
  75% { transform: translateX(-70px) translateY(-30px); }
  100% { transform: translateX(0) translateY(0); }
}

@keyframes moveHeart4 {
  0% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(-100px) translateY(-60px); }
  50% { transform: translateX(-50px) translateY(50px); }
  75% { transform: translateX(70px) translateY(20px); }
  100% { transform: translateX(0) translateY(0); }
}

@keyframes moveHeart5 {
  0% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(70px) translateY(-70px); }
  50% { transform: translateX(-60px) translateY(-20px); }
  75% { transform: translateX(40px) translateY(60px); }
  100% { transform: translateX(0) translateY(0); }
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
}

/* Header Section */
.header {
  text-align: center;
  margin-bottom: 5rem;
  animation: fadeIn 0.8s ease-out;
  /* keep header in normal flow; prevent parallax overlap */
  position: relative;
  z-index: 1;
  transform: none !important;
  will-change: auto;
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  border: 3px solid var(--purple-300);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.15);
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.2);
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

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

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.25);
  border-color: var(--purple-500);
}

/* Soft glow pulse for profile ring */
.profile-image {
  box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.0), 0 0 0 0 rgba(236, 72, 153, 0.0);
  animation: float 3s ease-in-out infinite, ringGlow 4s ease-in-out infinite;
}

@keyframes ringGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168,85,247,0.15), 0 0 0 0 rgba(236,72,153,0.08); }
  50% { box-shadow: 0 0 32px 4px rgba(168,85,247,0.25), 0 0 16px 2px rgba(236,72,153,0.14); }
}

.name {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #a855f7, #ec4899, #a855f7);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 2rem;
}

.intro {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Section Styling */
.section {
  margin-bottom: 5rem;
  animation: fadeInUp 0.8s ease-out;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.section:nth-child(1) { animation-delay: 0s; }
.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }
.section:nth-child(5) { animation-delay: 0.4s; }
.section:nth-child(6) { animation-delay: 0.5s; }
.section:nth-child(7) { animation-delay: 0.6s; }

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
}

.section-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--purple-300), transparent);
}

/* About Section */
.about-content {
  background: var(--dark-card);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--dark-border);
  box-shadow: 0 2px 8px rgba(179, 175, 175, 0.2);
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--dark-card);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--dark-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.2);
  border-color: var(--purple-400);
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.skill-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.skill-desc {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Interests */
.interests-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.interest-tag {
  background: var(--dark-card);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: 1px solid var(--dark-border);
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  animation: fadeInUp 0.5s ease-out;
}

.interest-tag:hover {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
  border-color: var(--purple-400);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 16px rgba(168, 85, 247, 0.3);
  color: white;
}

/* Certifications Section */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.cert-card {
  background: var(--dark-card);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--dark-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.2);
  border-color: var(--purple-400);
}

.cert-card:hover::before {
  opacity: 1;
}

.cert-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.cert-issuer {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cert-card .btn {
  display: inline-block;
  margin: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.cert-card .btn-primary {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-700));
  color: white;
  border: 1px solid var(--purple-600);
}

.cert-card .btn-secondary {
  background: var(--dark-card);
  color: var(--purple-400);
  border: 1px solid var(--dark-border);
}

.cert-card .btn:hover {
  transform: translateY(-2px);
}

.cert-card .btn-primary:hover {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-800));
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
}

.cert-card .btn-secondary:hover {
  background: var(--dark-card);
  border-color: var(--purple-600);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.15);
}

/* Portfolio Section */
.portfolio-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.view-toggle {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.view-toggle:hover {
  background: var(--purple-600);
  color: white;
  border-color: var(--purple-600);
}

.portfolio-container {
  position: relative;
  margin: 0 -2rem;
  padding: 0 2rem;
}

/* Portfolio Grid */
.portfolio-grid {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem 0;
}

.portfolio-grid::-webkit-scrollbar {
  display: none;
}

.portfolio-grid.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  overflow-x: visible;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple-600);
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7); }
  50% { box-shadow: 0 0 0 10px rgba(168, 85, 247, 0); }
}

.scroll-btn:hover {
  background: var(--purple-700);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4);
}

.scroll-left {
  left: 0;
}

.scroll-right {
  right: 0;
}

.project-card {
  background: var(--dark-card);
  border-radius: 12px;
  border: 1px solid var(--dark-border);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  flex: 0 0 400px;
  max-width: 400px;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
  border-color: var(--purple-300);
}

.project-card:hover::before {
  opacity: 1;
}

.project-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.project-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content {
  padding: 2rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

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

.tech-tag {
  background: rgba(168, 85, 247, 0.1);
  color: var(--purple-400);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-link {
  color: var(--purple-600);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  margin-top: auto;
  position: relative;
}

.project-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--purple-600), var(--purple-400));
  transition: width 0.3s ease;
}

.project-link:hover {
  color: var(--purple-400);
  gap: 1rem;
}

.project-link:hover::after {
  width: 100%;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  background: var(--dark-card);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--dark-border);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.1), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.2);
  border-color: var(--purple-400);
}

.contact-icon {
  font-size: 2rem;
  color: var(--purple-600);
  margin-bottom: 1rem;
}

.contact-label {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.contact-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
  word-break: break-word;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.9rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-700));
  color: white;
  border: 2px solid var(--purple-600);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-800));
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-800));
  border-color: var(--purple-700);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
  background: var(--dark-card);
  color: var(--purple-400);
  border: 2px solid var(--dark-border);
}

.btn-secondary:hover {
  background: var(--dark-card);
  border-color: var(--purple-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.15);
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: white;
  border: 1px solid var(--purple-200);
  border-radius: 12px;
  color: var(--purple-600);
  font-size: 1.25rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--purple-600);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  z-index: -1;
}

.social-link:hover {
  color: white;
  border-color: var(--purple-600);
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4);
}

.social-link:hover::before {
  width: 100%;
  height: 100%;
}

/* Sparkle shimmer for buttons and social links */
.btn, .social-link {
  position: relative;
  overflow: hidden;
}

.btn::after, .social-link::after {
  content: '';
  position: absolute;
  top: -150%;
  left: -50%;
  width: 50%;
  height: 400%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  transform: rotate(25deg);
  opacity: 0;
  pointer-events: none;
}

.btn:hover::after, .social-link:hover::after {
  animation: shimmerSweep 0.9s ease forwards;
}

@keyframes shimmerSweep {
  0% { transform: translateX(-120%) rotate(25deg); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateX(220%) rotate(25deg); opacity: 0; }
}

/* Footer */
.footer {
  text-align: center;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--purple-100);
  margin-top: 5rem;
}

.footer-text {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.footer-text .heart {
  color: var(--purple-600);
  display: inline-block;
  animation: heartbeat 2s ease-in-out infinite;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Hide side accents on narrower desktop to avoid broken edges */
@media (max-width: 1200px) {
  .side-decoration.left,
  .side-decoration.right {
    display: none !important;
  }
}

/* Optional: hide floating shapes as width shrinks to reduce clutter */
@media (max-width: 992px) {
  .floating-shapes { display: none !important; }
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 3rem 1.5rem;
  }

  /* Hide side decorations on mobile */
  .side-decoration { display: none !important; }

  .side-decoration {
    width: 80px;
  }

  .name {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .section {
    margin-bottom: 3.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .about-content {
    padding: 2rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid.grid-view {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Make portfolio cards fit mobile screens for horizontal scrolling */
  .portfolio-container {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
  }

  .portfolio-grid {
    gap: 1rem;
    padding: 0 1.5rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding: 1.5rem;
  }

  /* Make cards consistently thin in both scroll and grid views */
  .project-card {
    flex: 0 0 280px;
    max-width: 280px;
    margin: 0 auto;
    scroll-snap-align: center;
  }

  /* Make images proportional to card width */
  .project-image {
    height: 180px;
  }

  .project-content {
    padding: 1.5rem;
  }

  /* Show and size scroll buttons on mobile so users can tap to move projects */
  .scroll-btn {
    display: flex;
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: var(--purple-600);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  }

  .scroll-left { left: 8px; }
  .scroll-right { right: 8px; }
}

/* Add interactive hover effect to all buttons */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Add bounce effect to profile image */
.profile-image {
  cursor: pointer;
}

.profile-image:hover {
  animation: excitedBounce 0.5s ease;
}

@keyframes excitedBounce {
  0%, 100% { transform: scale(1.05) translateY(0); }
  25% { transform: scale(1.05) translateY(-15px); }
  50% { transform: scale(1.05) translateY(0); }
  75% { transform: scale(1.05) translateY(-7px); }
}

/* Add wiggle effect to section titles */
.section-title {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.section-title:hover {
  animation: wiggle 0.5s ease;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(2deg); }
  75% { transform: rotate(-2deg); }
}

/* Add cute hover effect to certification cards */
.cert-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-8px) rotate(2deg);
}

.skill-card:hover {
  transform: translateY(-8px) rotate(-2deg);
}

.project-card:hover {
  transform: translateY(-8px) rotate(1deg);
}
