/* Reset & basic styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

body {
  background: #f9fafc;
  color: #333;
  line-height: 1.6;
  transition: background 0.3s ease;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #1e293b;
  color: #fff;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  animation: fadeIn 1s ease-in;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
  color: #38bdf8;
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #fff;
  animation: fadeIn 1.5s ease-in;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: slideDown 1s ease forwards;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInText 1.5s forwards 0.5s;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: #fff;
  color: #2563eb;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
  background: #f3f4f6;
}

/* Portfolio Cards */
.portfolio {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem;
}

.portfolio h1 {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeIn 1s ease;
}

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

.card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card h2 {
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

.card:hover h2 {
  color: #2563eb;
}

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

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .nav-links { flex-direction: column; gap: 1rem; margin-top: 1rem; }
}

