/* =========================
   GLOBAL RESET & BASE
========================= */
* {
  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;
  opacity: 0;
  animation: fadeInNav 1.5s ease-out forwards;
}

/* 🍊 Small bouncing logo in navbar */
.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 ===== */
.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;
}

/* =========================
   INDEX PAGE (Centered logo)
========================= */
.center-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-height: 100vh;
  text-align: center;
}

.logo {
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: 6px;
  text-transform: uppercase;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 0.05em;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInLogo 1.8s ease-out forwards;
  animation-delay: 0.3s;
}

.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;
  animation-delay: 2s;
  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);
}

/* =========================
   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;
}

/* =========================
   ABOUT PAGE
========================= */
.about-section {
  margin-top: 8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 4rem;
  min-height: 80vh;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 1200px;
  width: 100%;
}

.about-photo img {
  width: 350px;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

.about-text {
  flex: 1;
  max-width: 600px;
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

.about-text h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.about-text a {
  color: #cc5500;
  text-decoration: none;
  border-bottom: 1px solid #cc5500;
  transition: opacity 0.3s;
}

.about-text a:hover {
  opacity: 0.7;
}

/* ===== Fade-in effect ===== */
.fade-in {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInContent 1.6s ease-out forwards;
}

@keyframes fadeInContent {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes fadeInLogo {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInNav {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   MOBILE STYLES
========================= */
@media (max-width: 768px) {
  /* Navbar menu */
  .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;
  }

  /* Portfolio grid */
  .grid {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 0.25rem;
  }

  /* About page */
  .about-section {
    padding: 6rem 1.5rem 3rem;
  }

  .about-container {
    flex-direction: column;
    gap: 2rem;
  }

  .about-photo img {
    width: 80%;
    max-width: 300px;
  }

  .about-text {
    text-align: center;
  }
}
