body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: #f6f7f9;
  color: #2e2e2e;
  line-height: 1.65;
  scroll-behavior: smooth;
}

/* entrance */
.fade-in-up { animation: fadeUp 600ms cubic-bezier(.2,.9,.2,1) both; }
@keyframes fadeUp { from {opacity:0; transform:translateY(20px);} to {opacity:1; transform:none;} }

/* Navigation */
.navbar {
  background: #1f2933;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.navbar li {
  margin: 0 1.5rem;
}

.navbar a {
  color: #f9fafb;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.navbar a:hover {
  color: #c08497;
}

/* Hero */
.hero {
  background: linear-gradient(120deg, #0f1724 0%, #0b1220 40%, #111827 100%);
  color: #ffffff;
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.profile-pic {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.12);
  margin: 0 auto 1rem;
  box-shadow: 0 8px 30px rgba(12,18,28,0.6);
  transition: transform 0.45s cubic-bezier(.2,.9,.2,1);
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
  opacity: 0.9;
}

.hero-title { margin: 0.4rem 0 0.2rem; font-size: 2.8rem; letter-spacing: -0.5px; }
.gradient-text {
  background: linear-gradient(90deg,#f472b6,#7c3aed,#06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.typed-text { font-weight:600; opacity:0.95; margin-bottom:0.6rem; min-height:1.4em; }
.typed-text .cursor { border-left:2px solid rgba(255,255,255,0.9); margin-left:6px; display:inline-block; animation: blink 1s steps(2,end) infinite; }
@keyframes blink { from {opacity:1} to {opacity:0} }

/* Buttons */
.cta-btn {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.75rem 1.6rem;
  background: #ffffff;
  color: #1f2933;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.cta-btn:focus { outline:3px solid rgba(124,58,237,0.18); outline-offset:3px; }

.cta-btn.secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.6);
}

.cta-btn:hover {
  transform: translateY(-3px);
  background: #c08497;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(192,132,151,0.3);
}

/* Sections */
section {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 2.5rem;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  text-align: center;
}

h2 {
  margin-bottom: 1.5rem;
  font-size: 1.9rem;
  color: #1f2933;
  font-weight: 700;
}

/* About */
#about p {
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 1rem;
}

/* Skills */
.skill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1rem;
}

.skill {
  background: #1f2933;
  color: #ffffff;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.skill:hover {
  background: #c08497;
  transform: translateY(-2px);
}

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

.skills-grid div {
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.skills-grid div:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(124,58,237,0.1);
  border-color: #d8d8e8;
}

.skills-grid h3 {
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-size: 1.15rem;
  color: #1f2933;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.skills-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  align-items: center;
}

.skills-grid li {
  background: linear-gradient(135deg, #f0f9ff, #f3e8ff);
  border: 1.5px solid #d8d8e8;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: all 0.3s cubic-bezier(.2,.9,.2,1);
  white-space: nowrap;
}

.skills-grid li:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 14px rgba(124,58,237,0.15);
  border-color: #7c3aed;
  background: linear-gradient(135deg, #e0f2fe, #ede9fe);
}

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

.project-card {
  background: #f9fafb;
  border-radius: 14px;
  padding: 1.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #e5e7eb;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.project-card ul {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
}

.project-card li {
  background: linear-gradient(135deg, #fef3c7, #fecaca);
  border: 1px solid #fde68a;
  padding: 0.6rem 1rem;
  margin: 0.4rem 0;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: all 0.3s cubic-bezier(.2,.9,.2,1);
}

.project-card li:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(251,146,60,0.2);
  border-color: #fb923c;
}

.project-card a {
  display: inline-block;
  margin-top: 0.8rem;
  text-decoration: none;
  background: #1f2933;
  color: #ffffff;
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.25s ease;
}

.project-card a:hover {
  background: #c08497;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.8rem;
  margin-top: 2.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.2rem 1.8rem;
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  text-decoration: none;
  color: #1f2933;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(.2,.9,.2,1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  pointer-events: auto;
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(6,182,212,0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(124,58,237,0.2);
  border-color: #7c3aed;
}

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

.contact-icon {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
  transition: transform 0.4s cubic-bezier(.2,.9,.2,1);
  display: block;
  z-index: 1;
  pointer-events: none;
}

.contact-card:hover .contact-icon {
  transform: scale(1.2) rotate(8deg);
}

.contact-label {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  z-index: 1;
  pointer-events: none;
}

.contact-hint {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
  opacity: 0.8;
  transition: all 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.contact-card:hover .contact-hint {
  color: #7c3aed;
  opacity: 1;
}

/* Footer */
footer {
  background: #1f2933;
  color: #9ca3af;
  text-align: center;
  padding: 1.4rem;
  font-size: 0.85rem;
}

/* decorative floating blobs in hero */
.hero-blobs { position:absolute; inset:0; pointer-events:none; z-index:0; }
.blob { position:absolute; border-radius:50%; filter:blur(40px); opacity:0.65; transform: translate3d(0,0,0); }
.blob.b1 { width:420px; height:420px; background: radial-gradient(circle at 30% 30%, #7c3aed, #4f46e5); left:-100px; top:-80px; animation: float1 12s ease-in-out infinite; }
.blob.b2 { width:300px; height:300px; background: radial-gradient(circle at 30% 30%, #06b6d4, #0891b2); right:-80px; top:-40px; animation: float2 16s ease-in-out infinite; }
.blob.b3 { width:220px; height:220px; background: radial-gradient(circle at 20% 20%, #f472b6, #fb7185); left:20%; bottom:-60px; animation: float3 14s ease-in-out infinite; }
@keyframes float1 { 0%{transform:translateY(0) rotate(0deg);}50%{transform:translateY(-32px) rotate(18deg);}100%{transform:translateY(0) rotate(0deg);} }
@keyframes float2 { 0%{transform:translateY(0) rotate(0deg);}50%{transform:translateY(-40px) rotate(-12deg);}100%{transform:translateY(0) rotate(0deg);} }
@keyframes float3 { 0%{transform:translateY(0) rotate(0deg);}50%{transform:translateY(-28px) rotate(10deg);}100%{transform:translateY(0) rotate(0deg);} }

/* ensure content sits above blobs */
.hero-content { position:relative; z-index:2; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .blob, .profile-pic { animation: none !important; }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  section {
    margin: 1.5rem;
    padding: 2rem;
  }

  .profile-pic {
    width: 130px;
    height: 130px;
  }
}
