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

body {
  font-family: 'Merriweather', serif;
  background-color: #fff;
  color: #000;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
  border: none;
  box-shadow: none;
}

/* 🍊 Small Logo */
.nav-logo-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.nav-logo {
  display: inline-block;
  position: relative;
  width: 1em;
  height: 1em;
  background-color: #cc5500;
  border-radius: 50%;
  animation: bounce 2.5s infinite ease-in-out;
}

.nav-logo::after {
  content: "";
  position: absolute;
  top: -0.22em;
  right: 0.12em;
  width: 0.25em;
  height: 0.12em;
  background-color: #000;
  border-radius: 80% 0 80% 0;
  transform: rotate(-40deg);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.6;
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  width: 24px;
  height: 18px;
  gap: 5px;
  margin-left: 1rem;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #000;
  border-radius: 1px;
}

/* ===== MAIN CONTENT ===== */
main {
  margin-top: 7rem;
  text-align: center;
  flex: 1;
}

/* ===== LOGO (MEGURONI) ===== */
.logo {
  font-size: clamp(1.5rem, 6vw, 3rem);
  letter-spacing: 6px;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.05em;
}

.logo span {
  position: relative;
  display: inline-block;
}

.logo .orange {
  width: 0.65em;
  height: 0.65em;
  background-color: #cc5500;
  border-radius: 50%;
  color: transparent;
  vertical-align: middle;
  animation: bounce 2.5s infinite ease-in-out;
  margin-left: 0.05em;
  margin-right: 0.15em;
}

.logo .orange::after {
  content: "";
  position: absolute;
  top: -0.15em;
  right: 0.1em;
  width: 0.18em;
  height: 0.08em;
  background-color: #000;
  border-radius: 80% 0 80% 0;
  transform: rotate(-40deg);
}

/* 🍊 Bounce animation shared */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-0.2em); }
  60% { transform: translateY(-0.08em); }
}

/* ===== PORTFOLIO GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  width: 100%;
  max-width: 100vw;
  margin: 0 auto 6rem auto;
  padding: 0 0.5rem;
}

.grid-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.grid-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.grid-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: opacity 0.3s ease;
}

.grid-item:hover img {
  opacity: 0.5;
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 0.25rem;
  }

  .nav-links {
    position: fixed;
    top: 40px;
    right: -100%;
    background: #fff;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    padding: 2rem 0;
    transition: right 0.3s ease;
  }

  .nav-links.open {
    right: 0;
  }

  .menu-toggle {
    display: flex;
  }
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 1rem;
  color: #888;
  font-size: 0.9rem;
}

