/* General Section Styling */
section {
  padding: 3rem 2rem;
  text-align: center;
}

h1, h2 {
  color: var(--text);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--text);
  color: var(--background);
  text-decoration: none;
  border-radius: 4px;
  margin-top: 1rem;
  transition: opacity 0.3s ease;
}

.btn:hover {
  opacity: 0.9;
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  /*background: url('../images/hero-bg.jpg') no-repeat center/cover; !* Placeholder - replace with your image *!*/
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for readability */
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff; /* White text for contrast */
}

.tagline {
  font-size: 1.2rem;
  font-style: italic;
}

.intro {
  max-width: 600px;
  margin: 1rem auto;
}

/* About Section */
.about {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  background: var(--card-bg);
  padding: 3rem;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-img img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  max-height: 400px;
}

/* Skills Section */
.skills {
  background: var(--background);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.skill-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
}

/* Projects Section */
.projects {
  background: var(--card-bg);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  text-align: left;
}

.project-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
}

.project-card h3 {
  font-size: 1.2rem;
  margin: 0.75rem 0;
}

.project-card p {
  font-size: 0.9rem;
}

/* Contact Section */
.contact {
  background: var(--background);
  padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .about {
    padding: 2rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  section {
    padding: 2rem 1rem;
  }

  .hero {
    height: 50vh;
  }

  h1 {
    font-size: 1.5rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .intro {
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.5rem 1rem;
  }
}
/* Fade-in animation for sections */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure project-card has position for hover effect */
.project-card {
  position: relative;
  overflow: hidden;
}