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

body {
  font-family: 'Inter', sans-serif;
  background: #f8fafc;
  color: #0f172a;
  line-height: 1.5;
  overflow-x: hidden;
}

/* animated gradient background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: linear-gradient(125deg, #f8fafc 0%, #eef2ff 50%, #f8fafc 100%);
}

.animated-bg::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(circle, rgba(250,204,21,0.08) 0%, rgba(248,250,252,0) 70%);
  animation: slowDrift 20s ease-in-out infinite;
}

@keyframes slowDrift {
  0% { transform: translate(0%, 0%) rotate(0deg); }
  50% { transform: translate(3%, 2%) rotate(2deg); }
  100% { transform: translate(0%, 0%) rotate(0deg); }
}

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

@keyframes fadeInScale {
  0% { opacity: 0; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1); }
}

.glass-card, .project-card, .info-card {
  animation: fadeInScale 0.5s ease backwards;
  transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.glass-card:hover, .project-card:hover, .info-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 30px 45px -20px rgba(0, 0, 0, 0.2);
}

/* hero section */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 3rem 0 4rem 0;
  border-radius: 0 0 2.5rem 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(250,204,21,0.15) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroGlow {
  0% { opacity: 0.3; transform: translateX(-10%) translateY(-10%); }
  50% { opacity: 0.8; transform: translateX(5%) translateY(5%); }
  100% { opacity: 0.3; transform: translateX(-10%) translateY(-10%); }
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, #facc15 80%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: textGlow 2s ease infinite alternate;
}

@keyframes textGlow {
  0% { filter: drop-shadow(0 0 2px rgba(250,204,21,0.3)); }
  100% { filter: drop-shadow(0 0 8px rgba(250,204,21,0.6)); }
}

.highlight {
  color: #facc15;
  border-left: 4px solid #facc15;
  padding-left: 0.75rem;
  margin: 0.75rem 0;
  font-weight: 500;
}

.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.2rem 0;
}

.badge {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s;
  border: 1px solid rgba(255,255,255,0.2);
}

.badge:hover {
  transform: scale(1.05);
  background: #facc15;
  color: #0f172a;
  border-color: #facc15;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  border-radius: 40px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

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

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

.btn-primary {
  background: #facc15;
  color: #0f172a;
  box-shadow: 0 8px 20px rgba(250,204,21,0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(250,204,21,0.4);
}

.btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: white;
  background: transparent;
}

.btn-outline-light:hover {
  border-color: #facc15;
  background: rgba(250,204,21,0.15);
  transform: translateY(-2px);
}

.hero-image {
  background: rgba(255,255,255,0.05);
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  border: 2px solid rgba(250,204,21,0.5);
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(250,204,21,0.4); border-color: rgba(250,204,21,0.4);}
  70% { box-shadow: 0 0 0 15px rgba(250,204,21,0); border-color: #facc15;}
  100% { box-shadow: 0 0 0 0 rgba(250,204,21,0); border-color: rgba(250,204,21,0.4);}
}

.hero-image i {
  font-size: 4.2rem;
  color: #facc15;
}

section {
  margin: 3.5rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title i {
  color: #facc15;
  font-size: 1.8rem;
  animation: bounceSoft 2s infinite;
}

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

.grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.info-card {
  padding: 1.6rem;
  background: white;
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
}

.skill-tag {
  background: linear-gradient(135deg, #f1f5f9, #ffffff);
  padding: 0.35rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin: 0.25rem 0.4rem;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.skill-tag:hover {
  background: #facc15;
  color: #0f172a;
  transform: translateY(-2px) scale(1.02);
}

.project-card {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.02);
  border: 1px solid #eef2ff;
  position: relative;
}

.project-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #facc15, #f97316);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.project-card:hover::after {
  transform: scaleX(1);
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.project-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2563eb;
  transition: all 0.2s;
}

.project-links a:hover {
  color: #facc15;
  gap: 10px;
}

.edu-item {
  margin-bottom: 1.2rem;
  border-left: 3px solid #facc15;
  padding-left: 1rem;
  transition: transform 0.2s;
}

.edu-item:hover {
  transform: translateX(6px);
}

/* Contact Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

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

.modal-content {
  background: white;
  border-radius: 2rem;
  max-width: 450px;
  width: 90%;
  padding: 2rem;
  position: relative;
  animation: slideUp 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

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

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 1.8rem;
  cursor: pointer;
  color: #94a3b8;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #0f172a;
}

.contact-details {
  margin-top: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.contact-item i {
  width: 35px;
  font-size: 1.3rem;
  color: #facc15;
}

.contact-item a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 2rem 0;
  margin-top: 3rem;
  border-radius: 1.5rem 1.5rem 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .hero-text h1 { font-size: 2.2rem; }
  .section-title { font-size: 1.7rem; }
  .hero-image { width: 100px; height: 100px; }
  .hero-image i { font-size: 3rem; }
  .container { padding: 0 1.2rem; }
  .grid-2col { gap: 1.2rem; }
}

@media (max-width: 480px) {
  .hero { padding: 2rem 0 2.5rem 0; }
  .hero-text h1 { font-size: 1.7rem; }
  .badge { font-size: 0.75rem; padding: 0.3rem 0.8rem; }
  .btn { padding: 0.5rem 1.2rem; font-size: 0.8rem; }
  .project-title { font-size: 1.2rem; }
}