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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  text-align: center;
  color: white;
  margin-bottom: 60px;
  animation: slideDown 0.8s ease-out;
}

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

header h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.95;
}

/* Navigation */
nav {
  margin-bottom: 50px;
  text-align: center;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 20px;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  border-bottom: 2px solid white;
  transform: translateY(-2px);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.project-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
  animation: fadeIn 0.6s ease-out backwards;
}

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

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

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

.project-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #667eea;
}

.project-card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-badge {
  display: inline-block;
  background: #f0f0f0;
  color: #667eea;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-button {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.project-button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.project-button:active {
  transform: scale(0.98);
}

/* Footer */
footer {
  text-align: center;
  color: white;
  padding: 40px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 60px;
  animation: slideUp 0.8s ease-out;
}

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

footer p {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.social-links {
  margin-top: 15px;
}

.social-links a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  transition: all 0.3s ease;
  display: inline-block;
}

.social-links a:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.5rem;
  }

  header p {
    font-size: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  nav a {
    display: block;
    margin: 10px 0;
  }

  body {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 2rem;
  }

  .project-card {
    padding: 20px;
  }

  .project-button {
    width: 100%;
    text-align: center;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 40px;
}

/* Smooth Transitions */
a, button {
  transition: all 0.3s ease;
}
