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

:root {
  --bg: #fffaf7;
  --brass: #d4af37;
  --beige: #f7eee8;
  --ink: #111111;
  --muted: #666666;
  --border: #e6e1dc;
  --primary-dark: #2c3e50;
  --primary-light: #f5f3f0;
  --accent-gold: #c9a961;
  --copper: #b87333;
  --primary-gold: #d4a574;
  --dark-gold: #b8935f;
  --light-gold: #f4e4c1;
  --brass: #b5985a;
  --text-dark: #2c2416;
  --light-warm: #fff8f0;
  --text-gray: #666;
  --white: #ffffff;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--primary-dark);
  background: var(--primary-light);
  overflow-x: hidden;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}

/* Navigation Base Styles */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

nav.scrolled {
  padding: 1rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: -1px;
  color: var(--primary-dark);
  text-decoration: none;
  transition: var(--transition);
  z-index: 1002;
}

.logo span {
  background: linear-gradient(135deg, var(--copper), var(--brass));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-gray);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--copper), var(--brass));
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary-dark);
}

/* Burger Menu Button */
.burger {
  display: none;
  cursor: pointer;
  z-index: 1002;
  padding: 5px;
}

.burger div {
  width: 25px;
  height: 2px;
  background: var(--primary-dark);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Burger Animation */
.burger.active .line1 {
  transform: rotate(-45deg) translate(-5px, 5px);
  background: var(--copper);
}

.burger.active .line2 {
  opacity: 0;
}

.burger.active .line3 {
  transform: rotate(45deg) translate(-5px, -5px);
  background: var(--copper);
}

/* Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .burger {
    display: block;
  }

  .nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
  }

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

  .nav-links a {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
  }

  .nav-links a::after {
    bottom: -2px;
  }
}

@media screen and (max-width: 480px) {
  nav {
    padding: 1rem 0;
  }

  nav.scrolled {
    padding: 0.8rem 0;
  }

  .nav-links {
    width: 80%;
    max-width: none;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  /* background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--white) 100%
  ); */
  background-color: rgba(0, 0, 0, 0.6);
  background-blend-mode: multiply;
  background-image: url('/img/bg-porto.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;

  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 80%;
  height: 80%;
  background: radial-gradient(
    circle,
    rgba(184, 115, 51, 0.08) 0%,
    transparent 70%
  );
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--white) 100%
  );
  padding: 4rem;
  border-radius: 10%;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: slideInLeft 1s ease-out;
}

.hero-content h1 span {
  display: block;
  font-weight: 500;
  background: linear-gradient(135deg, var(--copper), var(--brass));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 0.5rem;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
  max-width: 500px;
  animation: slideInLeft 1s ease-out 0.2s backwards;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  animation: slideInLeft 1s ease-out 0.4s backwards;
}

.btn {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--copper), var(--brass));
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(184, 115, 51, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
}

.btn-secondary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-images {
  display: grid;
  position: relative;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  animation: slideInRight 1s ease-out 0.5s backwards;
}

.floating-badge {
  position: absolute;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: float 3s ease-in-out infinite;
}

.badge-1 {
  top: 10%;
  right: -5%;
}

.badge-2 {
  bottom: 20%;
  left: -5%;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.image-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--copper), var(--brass));
}

.image-card img {
  width: 100%;
}

.image-card:nth-child(2) {
  margin-top: 2rem;
}

.image-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.image-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Product Categories */
.categories {
  padding: 5rem 2rem 0.5rem 2rem;
  background: var(--white);
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--brass));
}

.category-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border: 2px solid transparent;
  background: var(--primary-light);
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, var(--copper), var(--brass));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(184, 115, 51, 0.3);
}

/* Portfolio Grid */
.portfolio {
  padding: 5rem 2rem;
  background: var(--primary-light);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.portfolio-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e8e3dc, #d4cfc8);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-item.copper {
  background: linear-gradient(135deg, var(--copper), #a0622d);
}

.portfolio-item.brass {
  background: linear-gradient(135deg, var(--brass), #9b8347);
}

.portfolio-item:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.portfolio-icon img {
  width: 400px;
}

.portfolio-item:hover .portfolio-icon {
  transform: translate(-50%, -50%) scale(1.2);
  color: rgba(255, 255, 255, 0.5);
}

.portfolio-overlay h3 {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: var(--transition);
}

.portfolio-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transform: translateY(20px);
  transition: var(--transition) 0.1s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
  transform: translateY(0);
}

.portfolio-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-gold);
  color: var(--white);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  z-index: 10;
}

/* Features Section */
.features {
  padding: 5rem 2rem;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  border-radius: 20px;
  background: var(--primary-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(184, 115, 51, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--copper), var(--brass));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-gray);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1a1a1a 100%);
  color: var(--white);
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 3rem;
  background: #25d366;
  color: var(--white);
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn img {
  width: 30px;
  height: 30px;
}

/* Footer */
footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 5% 1rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--primary-gold);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-section a:hover {
  opacity: 1;
  color: var(--primary-gold);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--primary-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: var(--transition);
  text-decoration: none;
  animation: pulse 2s infinite;
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.whatsapp-float:hover {
  transform: scale(1.2);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.7);
}

/* Responsive Design */
@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    margin: 0 auto 2rem;
  }

  .cta-buttons {
    justify-content: center;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}
@media (max-width: 428px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .portfolio-badge {
    font-size: 0.5rem;
    padding: 0.2rem 0.5rem;
  }
}

@media (max-width: 640px) {
  .cta-buttons .btn {
    padding: 0.5rem 1rem;
  }
  .hero-content {
    padding: 1rem;
  }
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-images {
    grid-template-columns: 1fr;
  }

  .image-card:nth-child(2) {
    margin-top: 0;
  }

  .category-filter {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.scroll-indicator::before {
  content: '↓';
  font-size: 1.5rem;
  color: var(--accent-gold);
}

/* Add aja */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}

/* Hero */
.hero-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
.hero-1 h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero-1 .sub {
  color: var(--muted);
  max-width: 38ch;
  font-size: 1rem;
  line-height: 1.7;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 12px;
  padding-bottom: 3px;
  border-bottom: 1.5px solid var(--ink);
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cta:hover {
  opacity: 0.8;
}

@media (min-width: 900px) {
  .hero-1 {
    grid-template-columns: 7fr 5fr;
  }
}

/* Slider */
.slider {
  position: relative;
  margin-top: 32px;
  padding: 16px;
  background: var(--beige);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}
.arrows {
  position: absolute;
  left: 16px;
  top: 16px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.btn-round {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #d9d4cf;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.btn-round:active {
  transform: scale(0.98);
}

.track {
  display: flex;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.slide {
  flex: 0 0 100%;
  padding: 0 8px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.card-grid img {
  width: 100%;
  height: clamp(220px, 40vw, 420px);
  object-fit: cover;
  border-radius: 16px;
  user-select: none;
  -webkit-user-drag: none;
}
/* Hide right image on small screens */
.card-grid img:nth-child(2) {
  display: none;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
  .card-grid img:nth-child(2) {
    display: block;
  }
}

.bottombar {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  color: var(--muted);
  font-size: 14px;
}
.dots {
  display: flex;
  gap: 8px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #bdbdbd;
  opacity: 0.65;
  border: 0;
  cursor: pointer;
}
.dot.active {
  width: 24px;
  background: var(--ink);
  opacity: 1;
  transition: width 0.25s ease;
}

/* Who We Are */
.who {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 80px;
}
.who img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.who h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0;
}
.who p {
  color: var(--muted);
  max-width: 55ch;
  line-height: 1.75;
}

@media (min-width: 900px) {
  .who {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .who .right {
    padding-left: 32px;
  }
}
/* End Add aja */

/* Loading Animation */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--light-warm);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--light-gold);
  border-top: 5px solid var(--primary-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Hero Carousel Section */
.hero-carousel {
  position: relative;
  margin-bottom: 60px;
  margin-top: 4.5rem;
  overflow: hidden;
}

.carousel-container {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: calc(33.333% - 14px);
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-slide:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.carousel-slide img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.carousel-content {
  padding: 20px;
}

.carousel-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.carousel-content p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Carousel Navigation Buttons */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.carousel-nav:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
  left: 5px;
}

.carousel-nav.next {
  right: 5px;
}

.carousel-nav svg {
  width: 20px;
  height: 20px;
  fill: #333;
}

/* Popular Posts Section */
.section-header-post {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.section-nav {
  display: flex;
  gap: 10px;
}

.section-nav button {
  width: 35px;
  height: 35px;
  border: 1px solid #e0e0e0;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.section-nav button:hover {
  border-color: #667eea;
  background: #f8f9ff;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.post-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 20px;
}

.post-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.post-content p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
}

.post-date {
  font-size: 0.75rem;
  color: #999;
}

.bookmark-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.3s ease;
}

.bookmark-btn:hover {
  transform: scale(1.2);
}

.bookmark-btn svg {
  width: 20px;
  height: 20px;
  stroke: #999;
  fill: none;
  stroke-width: 2;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .carousel-slide {
    min-width: calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  .carousel-slide {
    min-width: 100%;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
  }
}

/* Blog */
.container-blog {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 20px 20px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.main-content {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-bottom: 20px;
}

.action-btn {
  padding: 8px 16px;
  background: #f1f3f4;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.3s;
}

.action-btn:hover {
  background: #e8eaed;
}

h1 {
  font-size: 2.5em;
  font-weight: bold;
  color: #202124;
  margin-bottom: 30px;
  line-height: 1.2;
}

.hero-image {
  width: 100%;
  height: 400px;
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 400"><defs><linearGradient id="sky" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%2387CEEB;stop-opacity:1" /><stop offset="100%" style="stop-color:%23E0F6FF;stop-opacity:1" /></linearGradient><linearGradient id="water" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%234A90E2;stop-opacity:1" /><stop offset="100%" style="stop-color:%2300BFFF;stop-opacity:1" /></linearGradient></defs><rect width="800" height="200" fill="url(%23sky)"/><polygon points="0,150 200,100 400,120 600,80 800,90 800,200 0,200" fill="%23D3D3D3"/><rect y="200" width="800" height="200" fill="url(%23water)"/><ellipse cx="400" cy="350" rx="30" ry="8" fill="%234A90E2" opacity="0.7"/></svg>');
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-bottom: 20px;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.post-meta {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  color: #666;
  font-size: 14px;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.content-section {
  margin-bottom: 40px;
}

.content-section h2 {
  font-size: 1.4em;
  color: #202124;
  margin-bottom: 15px;
}

.content-section p {
  margin-bottom: 15px;
  text-align: justify;
  color: #555;
}

.content-image {
  width: 100%;
  height: 300px;
  background: linear-gradient(
    45deg,
    #ff6b6b,
    #4ecdc4,
    #45b7d1,
    #f9d71c,
    #dda0dd,
    #98d8c8
  );
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  border-radius: 8px;
  margin: 30px 0;
  position: relative;
  overflow: hidden;
}

.content-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 60%;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.8) 0px,
    rgba(255, 255, 255, 0.8) 20px,
    rgba(0, 0, 0, 0.1) 20px,
    rgba(0, 0, 0, 0.1) 40px
  );
  border-radius: 50px;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.author-card {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
}

.author-info h3 {
  color: #333;
  font-size: 16px;
  margin-bottom: 2px;
}

.author-info span {
  color: #666;
  font-size: 12px;
}

.follow-btn {
  background: #ff4757;
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  margin-left: auto;
  transition: background 0.3s;
}

.follow-btn:hover {
  background: #ff3742;
}

.sidebar-section {
  margin-bottom: 30px;
}

.sidebar-section h3 {
  color: #333;
  font-size: 18px;
  margin-bottom: 15px;
  border-left: 4px solid #ff4757;
  padding-left: 10px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #f1f3f4;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  transition: background 0.3s;
}

.tag:hover {
  background: #e8eaed;
}

.post-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.post-item:last-child {
  border-bottom: none;
}

.post-thumbnail {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  flex-shrink: 0;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.post-info h4 {
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
  line-height: 1.3;
}

.post-info span {
  font-size: 12px;
  color: #666;
}

.ad-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px 20px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 20px;
}

.ad-section h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.ad-section p {
  font-size: 12px;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .container-blog {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 2rem 10px 10px 10px;
  }

  .main-content,
  .sidebar {
    padding: 20px;
  }

  h1 {
    font-size: 2em;
  }

  .hero-image {
    height: 250px;
  }
}

.post-info a {
  font-size: 12px;
  line-height: 0;
}
