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

body {
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #f9fafb, #e0f2fe);
  color: #333;
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(30, 58, 138, 0.95);
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0px 4px 15px rgba(0,0,0,0.2);
  z-index: 1000;
}

.navbar nav a {
  margin-left: 20px;
  color: #ffeb3b;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}
.navbar nav a:hover { color: white; }

/* Hero */
.hero {
  padding: 120px 20px 60px;
  text-align: center;
}
.profile-pic {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #2563eb;
  margin-bottom: 20px;
  animation: pop 1.5s ease;
}
.hero h2 { font-size: 2.5rem; color: #1e3a8a; margin-bottom: 10px; }
.hero p { max-width: 600px; margin: auto; margin-bottom: 20px; }

.buttons a {
  display: inline-block;
  margin: 8px;
  padding: 12px 25px;
  border-radius: 30px;
  background: #2563eb;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
}
.buttons a:hover {
  background: #1e3a8a;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0px 8px 20px rgba(0,0,0,0.3);
}

/* Sections */
section { padding: 60px 20px; text-align: center; }
.section-title { font-size: 2rem; margin-bottom: 30px; color: #1e3a8a; }

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background:white;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0px 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.4s, box-shadow 0.4s;
}
.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0px 8px 25px rgba(0,0,0,0.2);
}
.card h3 { color: #2563eb; margin-bottom: 10px; }

/* Footer */
footer {
  padding: 20px;
  background: #1e3a8a;
  color: white;
}

/* Animations */
@keyframes pop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}

.fade-in, .slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.show, .slide-up.show {
  opacity: 1;
  transform: translateY(0);
}
.delay1 { transition-delay: 0.2s; }
.delay2 { transition-delay: 0.4s; }
.delay3 { transition-delay: 0.6s; }
.delay4 { transition-delay: 0.8s; }
