/* Global Reset & Base Styles */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  line-height: 1.6;
  background: #f4f4f9;
  color: #333;
  padding: 0 20px;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 1.5s ease-in-out; /* Added animation */
}

/* Fade-in animation for body */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Header Section */
header {
  width: 100%;
  background: url('https://images.pexels.com/photos/9669089/pexels-photo-9669089.jpeg?auto=compress&cs=tinysrgb&w=600') center/cover no-repeat;
  color: white;
  padding: 60px 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  animation: slideDown 1s ease-in-out; /* Added animation */
}

/* Slide-down animation for header */
@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2rem;
}

/* Profile Section */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -60px;
  z-index: 1;
  animation: zoomIn 1s ease-in-out; /* Added animation */
}

/* Zoom-in animation for profile */
@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #0a9396;
  margin-bottom: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.profile h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 5px;
}

.profile p {
  font-size: 1rem;
  color: #666;
  text-align: center;
  max-width: 600px;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

nav ul li {
  margin: 0 15px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s;
}

nav a:hover {
  color: #0a9396;
}

/* Main Content Section */
section {
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h2 {
  text-align: center;
  color: #0a9396;
  margin-bottom: 20px;
}

ul li {
  margin-bottom: 10px;
}

/* Project Section */
.project {
  background: #fff;
  margin: 20px 0;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeInUp 1s ease-in-out; /* Added animation */
}

/* Fade-in-up animation for projects */
@keyframes fadeInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.project:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.project-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 15px;
  border: 3px solid #eee;
}

figcaption {
  font-size: 1rem;
  text-align: center;
  color: #666;
  margin-top: 10px;
}
