/* style.css - Aesthetic Minimalist Theme */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Playfair+Display:wght@500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  background: linear-gradient(to bottom right, #1e1e1e, #2b2b2b);
  color: #eaeaea;
  padding: 20px;
  line-height: 1.6;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px 0;
}

nav a {
  text-decoration: none;
  color: #d0d0d0;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 5px;
  transition: 0.3s;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff; /* Ensuring visibility of text on hover */
}

main {
  max-width: 800px;
  margin: auto;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: fadeIn 1s ease-in-out;
  transition: padding-top 0.3s ease; /* Smooth transition for padding-top */
}

section {
  margin-bottom: 40px;
}

h2 {
  font-family: 'Playfair Display', serif;
  color: #d8c2ff; /* soft lavender accent */
  font-size: 1.8em;
  margin-bottom: 15px;
}

ul {
  list-style: disc inside;
  padding-left: 20px;
}

footer {
  text-align: center;
  margin-top: 50px;
  font-size: 0.9em;
  color: #cccccc;
}

footer p {
  font-style: italic;
  color: rgba(204, 204, 204, 0.7); /* Slightly softer for better contrast */
}

button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 15px;
  font-size: 1em;
  border-radius: 10px;
  cursor: pointer;
  margin: 5px;
  transition: background 0.3s ease;
}

button:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

/* Body Measurements Table */
.measurements-chart {
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Softer border for cleaner look */
}

table th {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ececec;
}

table td {
  font-size: 1.1em;
  color: #d5d5d5;
}

/* Animation for elements */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hamburger Button Base Styles (Hidden on Desktop) */
.hamburger {
  display: none; /* Hidden by default */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001; /* Ensure it's above other elements */
}

.hamburger-bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #d0d0d0;
  transition: all 0.3s ease-in-out;
}

/* ---- Media Query for Mobile/Tablet View ---- */
@media (max-width: 768px) {
  nav ul#nav-list {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
    border-radius: 0 0 10px 10px;
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  nav ul#nav-list.active {
    display: flex; /* Show when active */
  }

  nav ul#nav-list li {
    width: 100%;
    text-align: center;
  }

  nav ul#nav-list a {
    padding: 15px 20px;
    display: block;
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  nav ul#nav-list li:last-child a {
    border-bottom: none; /* Remove border from last item */
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
  }

  /* Hamburger 'X' Animation */
  .hamburger.active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .hamburger-bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Adjust header/nav container */
  header {
    margin-bottom: 20px;
  }

  nav {
    position: relative;
    min-height: 60px;
    justify-content: flex-end;
    padding-right: 70px;
  }
}

/* Dashboard and Card Layout */
.dashboard {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  margin: 2rem auto;
  max-width: 1000px;
}

.card {
  flex: 1 1 250px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
