/* Base Styles */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f4f8;
  color: #333;
}

header {
  background-color: #0d1117;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInDown 0.8s ease-out forwards;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

header p {
  margin: 0.5rem 0 0;
  font-size: 1.1rem;
}

main {
  padding: 2rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

section {
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

section:nth-child(1) { animation-delay: 0.3s; }
section:nth-child(2) { animation-delay: 0.5s; }

h2 {
  color: #0d1117;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0d1117;
  transition: width 0.4s ease;
}

h2:hover::after {
  width: 100%;
}

.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.project {
  background: #fff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0;
  transform: scale(0.95);
  animation: fadeInScale 0.6s ease-out forwards;
}

.project:nth-child(1) { animation-delay: 0.7s; }
.project:nth-child(2) { animation-delay: 0.9s; }

.project:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.project h3 {
  color: #0d1117;
  margin-top: 0;
  transition: color 0.3s ease;
}

.project:hover h3 {
  color: #2f81f7;
}

footer {
  text-align: center;
  padding: 1.5rem;
  background-color: #0d1117;
  color: #fff;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 1s forwards;
}

.social-links a {
  margin: 0 0.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.social-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #2f81f7;
  transition: width 0.3s ease;
}

.social-links a:hover {
  color: #2f81f7;
}

.social-links a:hover::after {
  width: 100%;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .projects {
    grid-template-columns: 1fr;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  header p {
    font-size: 1rem;
  }
  
  .project {
    animation-delay: 0.5s !important;
  }
  
  .project:nth-child(2) {
    animation-delay: 0.7s !important;
  }
}
