/* ===== GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* ===== NAVBAR ===== */
nav {
  position: sticky;
  top: 0;
  width: 100%;
  height: 70px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
}
.logo img {
  width: 60px;
  border-radius: 50%;
}
.logo h2 {
  margin-left: 10px;
  color: #6f4e37;
  font-size: 22px;
  font-weight: bold;
}

.navbar {
  display: flex;
  gap: 40px;
  align-items: center;
}
.navbar a {
  text-decoration: none;
  color: #6f4e37;
  font-weight: 600;
  position: relative;
  padding: 10px 0;
  transition: color 0.3s ease, transform 0.3s ease;
}
.navbar a:hover,
.navbar a.active {
  color: #d9a066;
  transform: translateY(-2px);
}
.navbar a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(to right, #6f4e37, #d9a066);
  transition: width 0.3s ease;
}
.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

.nav-icons {
  display: flex;
  gap: 20px;
}
.nav-icons a {
  position: relative;
  font-size: 24px;
  color: #5d4037;
  transition: transform 0.3s ease, color 0.3s ease;
}
.nav-icons a:hover {
  color: #d9a066;
  transform: scale(1.2);
}
.nav-icons .badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: red;
  color: white;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
}

.profile-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #aca09c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.profile-icon:hover {
  background: #8d6e63;
  transform: rotate(10deg) scale(1.1);
}
.menu-icon {
  display: none;
  font-size: 30px;
  color: #6f4e37;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url("../img/home/00.png") no-repeat center/cover;
  color: white;
  text-align: center;
  padding: 20px;
}
.hero h1 { font-size: 40px; margin-bottom: 15px; }
.hero p { font-size: 18px; }

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.hero .btn {
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 25px;
  margin: 0 10px;
  font-weight: 600;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary { background: #6f4e37; }
.btn-secondary { background: #d9a066; }
.hero .btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(255,255,255,0.6);
}

/* ===== SECTIONS GENERAL ===== */
section {
  padding: 60px 20px;
}
section h2 {
  font-size: 2.5rem;
  color: #6f4e37;
  margin-bottom: 40px;
  text-align: center;
  font-weight: 700;
  position: relative;
  transition: transform 0.3s ease;
}
section h2:hover { transform: scale(1.02); }
section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #6f4e37, #d9a066);
  border-radius: 2px;
  transition: width 0.3s ease;
}
section h2:hover::after { width: 100px; }

/* ===== CARDS (reuse hover) ===== */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* ===== HISTORY TIMELINE ===== */
.history-timeline {
  display: grid;
  gap: 20px;
}
.timeline-item {
  display: flex;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
}
.timeline-icon {
  font-size: 40px;
  color: #d9a066;
}
.timeline-content h3 {
  margin-bottom: 10px;
  color: #6f4e37;
}

/* ===== SCIENCE ===== */
.science-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 20px;
}
.science-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease;
}
.science-card:hover { transform: scale(1.05); }
.science-icon {
  font-size: 40px;
  color: #6f4e37;
  margin-bottom: 10px;
}

/* ===== BREWING METHODS ===== */
.methods-container {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 20px;
}
.method-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.method-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.method-card:hover img { transform: scale(1.1); }
.method-info { padding: 15px; }
.method-info h3 { margin-bottom: 10px; color: #6f4e37; }
.method-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 14px;
  color: #555;
}

/* ===== CULTURE ===== */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 20px;
}
.culture-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.culture-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.culture-overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  width: 100%;
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.culture-card:hover img { transform: scale(1.1); }
.culture-card:hover .culture-overlay { transform: translateY(0); }

/* ===== SUSTAINABILITY ===== */
.sustainability-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}
.sustainability-text { flex: 1 1 300px; }
.sustainability-visual { flex: 1 1 300px; }
.sustainability-visual img {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.3s ease;
}
.sustainability-visual:hover img { transform: scale(1.05); }

/* ===== FOOTER ===== */
footer {
  background: #6f4e37;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}
footer ul {
  display: flex;
  gap: 15px;
  list-style: none;
}
footer ul li a {
  color: #fff;
  font-size: 24px;
  transition: transform 0.3s ease, color 0.3s ease;
}
footer ul li a:hover {
  transform: scale(1.2) rotate(-10deg);
  color: #ffcc70;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s forwards;
}
.fade-in.delay-1 { animation-delay: 0.5s; }
.fade-in.delay-2 { animation-delay: 0.8s; }
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}
.slide-up {
  opacity: 0;
  transform: translateY(40px);
  animation: slideUp 0.8s forwards;
}
@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    display: none;
  }
  .navbar.show { display: flex; }
  .menu-icon { display: block; }
  .nav-icons { display: none; }
  .sustainability-content { flex-direction: column; }

  /* Hero buttons responsive */
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 90%;
    font-size: 1.1rem;
  }
}
@media (max-width: 768px) {
  footer {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 20px;
  }

  footer ul {
    justify-content: center;
    flex-wrap: wrap; /* allow icons wrap */
  }

  footer .left,
  footer .right {
    font-size: 0.9rem;
  }
}
