/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    background: none;
    min-height: 100vh;
    overflow-x: hidden; 
}

#lottieContainer {
    position: fixed;
    top: 0;
    object-fit: contain;
    left: 0;
    width: 100%; /* Full width of the viewport */
    z-index: -1; /* Push it behind other elements */
    overflow: hidden;
    pointer-events: none; /* Prevent interaction with the animation */
}

dotlottie-player {
    width: 100%;
    overflow: hidden;	
    height: 100%;
    object-fit: contain;  /* Ensures it fills the container without distortion */
    display: block;
}

@media (max-width: 767px) { /* Example breakpoint: typical mobile screen width */
    #lottieContainer {
        height: 100%;
        transform: scale(1.5);
        transform-origin: center; 
        object-fit: contain; 
        width: 100%; /* Add height back for mobile */
    }
}

header {
    background-color: rgba(0, 0, 0, 0.5); /* Darker, semi-transparent header */
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Darker shadow */
    position: relative;
    z-index: 2;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2; /* Ensure navbar is above lottie */
}

.nav-container {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-right: 20px;
    z-index: 1001;
}

.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000; /* Behind the menu but above other content */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Light hover on menu toggle */
}

.bar {
    width: 25px;
    height: 3px;
    background-color:  #dea51f; /* White bars */
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
    color: white; /* Gold logo */
}

/* Navigation Links */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: white; /* White link text */
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Light hover background */
    color: #dea51f; /* Gold on hover */
}

@media (max-width: 768px) {
    .nav-links {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 200px;
        height: 100%;
       1background-color: rgba(0, 0, 0, 0.5);; /* Dark background for mobile menu */
        padding: 20px;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease;
        z-index: 1002;
        overflow-y: auto;
        transform: translateX(-100%);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: flex;
        z-index: 1003;
        transition: opacity 0.3s ease;
    }

    .menu-toggle.active {
        opacity: 0;
        pointer-events: none;
    }

    .nav-backdrop {
        background-color: rgba(0, 0, 0, 0.7); /* Darker backdrop on mobile */
        z-index: 1000;
    }
}

main h2 {
  text-align: center;
  margin-bottom: 80px;
  font-size: 3.5em;
  color: white; /* White text */
  font-weight: 700;
}

#emotions-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 60px;
}

.emotion-card {
  background-color: rgba(0, 0, 0, 0.5);; /* Dark background */
  padding: 30px;
  border-radius: 12px;
  color: white; /* White text */
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.1); /* White shadow */
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.emotion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); /* Darker shadow on hover */
}

.emotion-card h3 {
  font-size: 2em;
  color: #dea51f; /* White text */
  margin-bottom: 25px;
  font-weight: 600;
}

.emotion-card .meaning {
  font-family: 'Merriweather', serif;
  line-height: 1.7;
  font-size: 1.15em;
  color: #dea51f; /* Gold text */
  font-weight: 600;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  text-align: justify;
}

.emotion-card .origins {
  font-family: 'Roboto', sans-serif;
  font-style: italic;
  color: #ccc; /* Light gray text */
  font-weight: 600;
  margin-top: 15px;
  font-size: 1em;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.emotion-card p {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.7;
  font-size: 1.1em;
  color: #ccc; /* Light gray text */
  font-weight: 600;
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  text-align: justify;
}

.emotion-card.show .meaning,
.emotion-card.show .origins,
.emotion-card.show p {
  opacity: 1;
  transform: translateY(0);
}

footer {
    background-color: #3d3c37;
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
    position: relative; /* For z-index */
    z-index: 1; /* Ensure it's above the Lottie animation */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle white border */
}

.footer-content {
    max-width: 1200px;
    margin: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    margin-bottom: 10px;
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #dea51f; /* Gold link color */
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.8em;
}

.social-links a:hover {
    color: white; /* White link color on hover */
}

.social-links img {
    width: 30px;
    height: 30px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.social-links img:hover {
    opacity: 1;
}

footer p {
    font-size: 0.9em;
    color: #ddd; /* Slightly lighter gray for copyright text */
}
