* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f4f6f8;
}

/* ===== Layout ===== */
.page {
  display: flex;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
.side {
  width: 220px;
  background-color: #3e6842;
  padding: 20px;
}

.logo {
  color: white;
  text-align: center;
  margin-bottom: 30px;
  font-size: 18px;
}

.side ul {
  list-style: none;
}

.side li {
  margin-bottom: 10px;
}

.side a {
  display: block;
  padding: 12px;
  color: #e5e7eb;
  text-decoration: none;
  border-radius: 6px;
}

.side a:hover {
  background-color: #2f5233;
  color: white;
}

/* ===== Main Content ===== */
.details {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.details-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== Footer ===== */
.footer {
  background-color: #636463;
  color: #e9e1e1;
  text-align: center;
  padding: 20px;
}

/* ===== Skills ===== */
.skill-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.skill {
  background: #ffffff;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  font-weight: bold;
}

/* ===== Projects ===== */
.project-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 20px;
}

.project-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* ===== About ===== */
.about-card {
  max-width: 600px;
  margin: auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.profile-pic {
  width: 200px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.contact a {
  margin: 0 10px;
  color: #2563eb;
  text-decoration: none;
}


/* Mobile */
@media (max-width: 768px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
}


/* ===============================
   Mobile layout (phones & small tablets)
   =============================== */
@media (max-width: 768px) {

  /* Stack sidebar on top */
  .page {
    flex-direction: column;
  }

  /* Sidebar becomes top bar */
  .side {
    width: 100%;
    min-height: auto;
  }

  .side ul {
    display: flex;
    justify-content: space-around;
  }

  .side li {
    margin-bottom: 0;
  }

  /* Content spacing */
  .details-content {
    padding: 20px;
  }

  /* Projects grid */
  .project-page {
    grid-template-columns: 1fr;
  }

  /* Skills list */
  .skill-page {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Download buttons */
  .download-grid {
    grid-template-columns: 1fr;
  }

  /* About cards */
  .about {
    flex-direction: column;
    align-items: center;
  }

  .about-card {
    width: 100%;
    max-width: 400px;
  }

  /* Images scale properly */
  img {
    max-width: 100%;
    height: auto;
  }
}

/* ===== Downloads Page ===== */

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.download-btn {
  display: block;
  padding: 16px;
  background-color: #3e6842;
  color: #ffffff !important;
  text-decoration: none !important;
  text-align: center;
  font-weight: bold;
  border-radius: 10px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.download-btn:hover {
  background-color: #2f5233;
  transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 768px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Booking Form Layout ===== */

.booking-form {
  max-width: 650px;
  width: 100%;
  margin-top: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.form-group textarea {
  resize: vertical;
}

.full-width {
  grid-column: span 2;
}

/* Submit button */
.book-btn {
  margin-top: 25px;
  width: 100%;
  padding: 14px;
  background-color: #3e6842;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

.book-btn:hover {
  background-color: #2f5233;
}

/* Mobile layout */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: span 1;
  }
}

