/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f0f0;
  color: #333;
}

/* ===== HEADER STYLING ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #111;
  padding: 1rem 2rem;
  color: white;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.logo h1 {
  font-size: 1.5rem;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: #00ff99;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: 3rem 2rem;
  background-color: #ffffff;
  color: #222;
}

.about-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: #111;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
  text-align: center;
}

.about-content p {
  margin-bottom: 1.5rem;
}

/* ===== HERO SECTION ===== */
.hero {
  height: 100vh;
  background: linear-gradient(to right, #1a1a1a, #333);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.hero button {
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  background-color: #00ff99;
  color: black;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hero button:hover {
  background-color: #00cc7a;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: 3rem 2rem;
  background-color: #ffffff;
  color: #222;
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #111;
}

.contact-details {
  max-width: 600px;
  margin: 0 auto;
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.contact-details p {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 1rem;
}

.contact-details a {
  color: #007BFF;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* ===== SKILLS SECTION ===== */
.skills-section {
  padding: 3rem 2rem;
  background-color: #fff;
  color: #222;
}

.skills-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #111;
}

.skills-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  width: 300px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
}

.skill-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.skill-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.skill-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
  padding: 3rem 2rem;
  background-color: #fff;
  color: #222;
}

.projects-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #111;
}

.projects-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  width: 300px;
  position: relative;
}

.project-card input[type="checkbox"] {
  display: none;
}

.card-front {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
  display: block;
}

.card-front img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.card-front h3 {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  color: #222;
}

.project-card input[type="checkbox"]:checked ~ .card-details {
  display: block;
}

.card-details {
  display: none;
  background-color: #ffffff;
  margin-top: 0.5rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
footer {
  background-color: #111;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero button {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  .skills-container,
  .projects-container {
    flex-direction: column;
    align-items: center;
  }

  .skill-card,
  .project-card {
    width: 90%;
  }

  .contact-details {
    width: 90%;
  }

  .about-content {
    font-size: 1rem;
    padding: 0 1rem;
  }
}
