:root {
  --primary: #222;
  --light: #fff;
  --accent: #ff9800;
  --bg: #f9f9f9;
}

body {
  background: var(--bg);
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}

/* Navbar */
nav {
  background: var(--primary);
  padding: 0.8rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  transition: max-height .3s ease;
}
nav a {
  color: var(--light);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}
nav a.active, nav a:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  position: absolute;
  right: 1.2rem;
  top: 0.7rem;
  cursor: pointer;
  z-index: 101;
}

/* Responsive Menu */
@media (max-width: 700px) {
  nav {
    padding: 0.7rem 0;
    position: relative;
    right: 0;
    box-shadow: none;
  }
  .nav-toggle {
    display: block;
  }
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    background: var(--primary);
    position: relative;
    top: 60px;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
    transition: max-height 0.4s ease;
  }
  nav ul.open {
    max-height: 400px;
    padding-bottom: 0.7rem;
  }
  nav ul li {
    width: 100%;
  }
  nav ul li a {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 0;
    transition: background 0.3s ease;
  }
  nav ul li a:hover {
    background: var(--accent);
    color: var(--primary);
  }
}

/* Album Section */
.contain {
  padding: 20px;
}
.add {
  display: flex;
  align-items: center;
  gap: 15px;
}
.add button {
  font-size: 24px;
  padding: 8px 14px;
  border: none;
  background: var(--accent);
  color: var(--light);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}
.add button:hover {
  background: #ffac33;
  transform: rotate(90deg) scale(1.1);
}
.add h1 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

/* Album Cards */
.main ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 20px;
}
.main li {
  width: 180px;
  text-align: center;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  animation: fadeIn 0.6s ease forwards;
}
.main li:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.main img {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.4s ease;
}
.main li:hover img {
  transform: scale(1.05);
}
.main h3 {
  margin-top: 10px;
  font-size: 1rem;
  color: #444;
}
.main span {
  font-weight: bold;
  color: var(--accent);
}

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