/* style.css */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f5faff;
  color: #1e3a5f;
  transition: background 0.3s ease, color 0.3s ease;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(90deg, #1e90ff, #00c9a7);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0; /* Prevents the title from shrinking */
}

header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid white;
  /* To help center the image, we can use absolute positioning within the flex container */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-right {
  display: flex;
  align-items: center;
}

#theme-toggle {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: white;
  margin-left: 3rem; /* Add some space between icons and button */
}

/* Social Icons Styles */
.social-icons {
  display: flex;
  align-items: center;
}

.social-icons a {
  color: white;
  font-size: 1.3rem;
  margin: 0 0.7rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #e0f7f5;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(180deg, #f5faff, #e0f7f5);
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1e3a5f;
}

.hero p {
  font-size: 1.2rem;
  color: #444;
  max-width: 600px;
}

.projects {
  padding: 4rem 2rem;
  background: white;
}

.projects h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1e3a5f;
}

.project-grid a {
  text-decoration: none;
}


/* Styles for the new About Me section */
.about-me {
  padding: 4rem 2rem;
  background: #f5faff; /* Light theme background */
}

.about-me h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1e3a5f;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}


.about-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
  opacity: 0;
  transform: translateY(40px);
}

.about-card:hover {
  transform: translateY(-10px);
}

.about-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.about-card-content {
  padding: 1.5rem;
}

.about-card-content h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #1e3a5f;
}

.about-card-content p {
  font-size: 1rem;
  color: #444;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: #f5faff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  perspective: 1000px;
  opacity: 0;
  transform: translateY(40px);
}

.card:hover {
  transform: rotateY(8deg) rotateX(8deg) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.card h4 {
  margin-top: 0;
  color: #1e3a5f;
  font-size: 1.2rem;
}

.coming-soon {
  color: #ff9800;
  font-weight: 600;
  margin-top: 0.5rem;
}

footer {
  text-align: center;
  padding: 1.5rem;
  background: #1e3a5f;
  color: white;
  margin-top: 3rem;
  opacity: 0;
  transform: translateY(40px);
}

/* Animations */
.fade-in, .slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible, .slide-up.visible, footer.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Dark Mode */
.dark-mode {
  background: #121212;
  color: #f5faff;
}

.dark-mode header {
  background: linear-gradient(90deg, #333, #444);
  color: #f5faff;
}

.dark-mode footer {
  background: #333;
  color: #f5faff;
}

.dark-mode .hero {
  background: linear-gradient(180deg, #1e1e1e, #2a2a2a);
}

.dark-mode .projects {
  background: #1e1e1e;
}

/* Dark mode styles for the new About Me section */
.dark-mode .about-me {
  background: #121212;
}

.dark-mode .about-me h3 {
  color: #f5faff;
}

.dark-mode .about-card {
  background: #2a2a2a;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.dark-mode .about-card-content h4,
.dark-mode .about-card-content p {
  color: #f5faff;
}

.dark-mode .card {
  background: #2a2a2a;
  color: #f5faff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  header img {
    display: none; /* Hide the image on smaller screens to prevent overlap */
  }
}

@media (max-width: 600px) {
  .hero h2 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
  header {
    flex-direction: column;
    padding: 1rem;
  }
  .header-right {
    margin-top: 0.5rem;
  }
}

