/* Base Styles */
body {
  background-color: rgb(75, 75, 75);
  margin: 0;
  padding: 60px 0;
  /* Space top & bottom */
  display: flex;
  justify-content: center;
  /* Center horizontally */
}

.side-menu {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 0 10px 10px 0;
  z-index: 1;
}

.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-menu li {
  margin: 15px 0;
}

.side-menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 12px;
  transition: 0.3s;
}

.side-menu a:hover {
  color: #00f;
}

/* Container for all cards */
.cards-container {
  display: flex;
  flex-direction: column;
  /* Stack vertically */
  align-items: center;
  gap: 40px;
  /* Space between cards */
}

.cont {
  width: 100%;
  height: 900px;
  padding: 50px 0;
}

/* Card Style */
.card {
  width: 100%;
  height: 600px;
  background: rgba(217, 217, 217, 0.58);
  box-shadow: 12px 17px 51px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(6px);
  border-radius: 17px;
  overflow: hidden;
  transition: 0.4s;
  margin: 40px 0;
}

.card:hover {
  transform: scale(1.03);
}

.card img {
  width: 100%;
  /* Full width of the card */
  height: 100%;
  /* Full height of the card */
  object-fit: cover;
  /* Fill the card completely, crop if needed */
  /* Match card border radius */
}

/* ------------------ Responsive ------------------ */

/* Tablets */
@media screen and (max-width: 992px) {
  .cards-container {
    gap: 30px;
  }

  .card {
    height: 500px;
  }

  .side-menu a {
    font-size: 11px;
  }
}

/* Mobile Devices */
@media screen and (max-width: 768px) {
  body {
    padding: 20px 0;
  }

  .cards-container {
    width: 95%;
  }

  .card {
    height: 400px;
  }

  /* Move side menu to top */
  .side-menu {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    margin-bottom: 20px;
  }

  .side-menu ul {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }

  .side-menu li {
    margin: 0;
  }

  .side-menu a {
    font-size: 10px;
  }
}

/* Extra Small Devices (Phones) */
@media screen and (max-width: 480px) {

  /* Shrink cards for small screens */
  .card {
    height: 200px;
    /* smaller height */
    width: 90%;
    /* shrink width a bit */
  }

  /* Keep Side Menu fixed on the left */
  .side-menu {
    position: fixed;
    /* stay on left */
    top: 90%;
    left: 0;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 0 10px 10px 0;
    z-index: 999;
  }

  /* Menu list items smaller */
  .side-menu ul {
    padding: 0;
    margin: 0;
  }

  .side-menu li {
    margin: 10px 0;
  }

  .side-menu a {
    font-size: 10px;
    /* smaller font for mobile */
    padding: 4px 8px;
  }

  .side-menu a:hover {
    color: #00f;
  }

  /* Container adjustments */
  .cards-container {
    gap: 20px;
    /* less gap between cards */
    padding-left: 60px;
    /* leave space for fixed menu */
  }
}

/* Smooth Scroll for anchor links */
html {
  scroll-behavior: smooth;
}