/* ============================================
   Mantri Square Mall - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
  --primary: #1A365D;
  --secondary: #F59E0B;
  --background: #F8FAFC;
  --text: #333333;
  --white: #FFFFFF;
  --light-gray: #E5E7EB;
  --dark-gray: #4B5563;
  --success: #10B981;
  --error: #EF4444;
  
  /* Easing Functions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
  --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s var(--ease-out-quart);
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p {
  margin-bottom: 1rem;
}

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-back);
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

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

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all 0.3s var(--ease-out-quart);
}

.navbar.scrolled {
  height: 60px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
}

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

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.25s var(--ease-out-expo);
  transform: translateX(-50%);
}

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

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s var(--ease-out-quart);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background: var(--white);
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out-expo);
  z-index: 999;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  border-bottom: 1px solid var(--light-gray);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s var(--ease-in-out-circ);
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 6s ease-out forwards;
}

@keyframes kenBurns {
  0% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 54, 93, 0.9) 0%,
    rgba(26, 54, 93, 0.7) 50%,
    rgba(26, 54, 93, 0.5) 100%
  );
  z-index: -1;
  animation: gradientShift 12s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.95; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  color: var(--white);
  padding-top: 70px;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(60px);
  animation: slideUp 0.8s var(--ease-out-expo) 0.5s forwards;
}

.hero-content .subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 500;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(40px);
  animation: slideUp 0.6s var(--ease-out-quart) 0.7s forwards;
}

.hero-content .description {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.5s var(--ease-out-quart) 0.9s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn 0.4s var(--ease-elastic) 1.1s forwards;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 100px;
  right: 5%;
  display: flex;
  gap: 0.75rem;
  z-index: 2;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-quart);
}

.slider-dot.active {
  background: var(--secondary);
  transform: scale(1.2);
}

.slider-dot:hover {
  background: var(--white);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-size: 0.875rem;
  opacity: 0.7;
  animation: bounce 1.5s ease-in-out infinite;
  z-index: 2;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
}

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

/* ============================================
   Features Section
   ============================================ */
.features {
  padding: 100px 0;
  background: var(--background);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--dark-gray);
  font-size: 1.125rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.4s var(--ease-out-back);
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(26, 54, 93, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary) 0%, #2D4A6F 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  transition: all 0.3s var(--ease-out-back);
  animation: iconFloat 4s ease-in-out infinite;
}

.feature-card:nth-child(2) .feature-icon { animation-delay: 0.5s; }
.feature-card:nth-child(3) .feature-icon { animation-delay: 1s; }
.feature-card:nth-child(4) .feature-icon { animation-delay: 0.3s; }
.feature-card:nth-child(5) .feature-icon { animation-delay: 0.8s; }
.feature-card:nth-child(6) .feature-icon { animation-delay: 0.2s; }

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

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--secondary);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--dark-gray);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   About Section
   ============================================ */
.about {
  padding: 120px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content {
  position: relative;
  z-index: 1;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--dark-gray);
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--dark-gray);
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(26, 54, 93, 0.2);
}

.accent-circle {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.accent-circle-1 {
  width: 150px;
  height: 150px;
  background: rgba(245, 158, 11, 0.2);
  top: -30px;
  right: -30px;
  animation: float1 6s ease-in-out infinite;
}

.accent-circle-2 {
  width: 100px;
  height: 100px;
  background: rgba(26, 54, 93, 0.1);
  bottom: 50px;
  left: -40px;
  animation: float2 8s ease-in-out infinite;
}

.accent-circle-3 {
  width: 60px;
  height: 60px;
  background: rgba(245, 158, 11, 0.3);
  bottom: -20px;
  right: 50px;
  animation: float3 5s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.05); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(0.95); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); }
}

/* ============================================
   Shopping Guide Section
   ============================================ */
.shopping-guide {
  padding: 120px 0;
  background: linear-gradient(to bottom, var(--background) 0%, var(--white) 100%);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.category-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 350px;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-back);
}

.category-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(26, 54, 93, 0.2);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease-out;
}

.category-card:hover img {
  transform: scale(1.15);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 54, 93, 0.9) 0%, rgba(26, 54, 93, 0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: background 0.4s ease;
}

.category-card:hover .category-overlay {
  background: linear-gradient(to top, rgba(26, 54, 93, 0.95) 0%, rgba(26, 54, 93, 0.5) 60%, transparent 100%);
}

.category-icon {
  width: 50px;
  height: 50px;
  background: var(--secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 1rem;
  transition: all 0.3s var(--ease-out-back);
}

.category-card:hover .category-icon {
  transform: rotate(10deg) scale(1.1);
}

.category-icon svg {
  width: 24px;
  height: 24px;
}

.category-overlay h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.category-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  margin: 0;
}

/* ============================================
   Gallery Section
   ============================================ */
.mini-gallery {
  padding: 100px 0;
  background: var(--white);
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.gallery-header .section-header {
  text-align: left;
  margin: 0;
}

.gallery-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: none;
}

.gallery-scroll::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 350px;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-back);
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-quart);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 54, 93, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-item-overlay svg {
  width: 48px;
  height: 48px;
  color: var(--white);
}

/* ============================================
   FAQ Section
   ============================================ */
.faq {
  padding: 120px 0;
  background: var(--background);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  transition: all 0.2s ease;
}

.faq-question:hover {
  background: #FAFBFC;
}

.faq-question svg {
  width: 24px;
  height: 24px;
  transition: transform 0.4s var(--ease-out-quart);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out-quart);
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  color: var(--dark-gray);
  margin: 0;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand .logo-icon {
  background: var(--secondary);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out-back);
}

.social-links a:hover {
  background: var(--secondary);
  transform: translateY(-5px) scale(1.1);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

.footer-links h4 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.newsletter h4 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 0.9375rem;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
  padding: 0.75rem 1.25rem;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-back);
}

.newsletter-form button:hover {
  background: #D97706;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin: 0;
}

/* ============================================
   Page Header (for inner pages)
   ============================================ */
.page-header {
  padding: 150px 0 80px;
  background: linear-gradient(135deg, var(--primary) 0%, #2D4A6F 100%);
  color: var(--white);
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a:hover {
  color: var(--secondary);
}

.breadcrumbs span {
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumbs .current {
  color: var(--white);
}

/* ============================================
   Gallery Page (Masonry + Lightbox)
   ============================================ */
.gallery-page {
  padding: 80px 0;
  background: var(--background);
}

.gallery-masonry {
  column-count: 3;
  column-gap: 1.5rem;
}

.gallery-masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: all 0.3s var(--ease-out-back);
}

.gallery-masonry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s var(--ease-out-quart);
}

.gallery-masonry-item:hover img {
  transform: scale(1.05);
}

.gallery-masonry-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 54, 93, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-masonry-item:hover .gallery-masonry-overlay {
  opacity: 1;
}

.gallery-masonry-overlay svg {
  width: 40px;
  height: 40px;
  color: var(--white);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.9);
  transition: transform 0.3s var(--ease-out-back);
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: var(--secondary);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  background: var(--secondary);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ============================================
   Updates Page
   ============================================ */
.updates-page {
  padding: 80px 0;
  background: var(--background);
}

.updates-list {
  max-width: 900px;
  margin: 0 auto;
}

.update-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1.5rem;
  transition: all 0.3s var(--ease-out-back);
  border-left: 4px solid transparent;
}

.update-card:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-left-color: var(--secondary);
}

.update-date {
  flex-shrink: 0;
  text-align: center;
  min-width: 70px;
}

.update-date .day {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.update-date .month {
  font-size: 0.875rem;
  color: var(--dark-gray);
  text-transform: uppercase;
}

.update-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.update-content p {
  color: var(--dark-gray);
  margin-bottom: 0.75rem;
}

.update-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--background);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
}

.update-tag.announcement { background: rgba(26, 54, 93, 0.1); }
.update-tag.event { background: rgba(245, 158, 11, 0.15); color: var(--secondary); }
.update-tag.sale { background: rgba(16, 185, 129, 0.15); color: var(--success); }

/* ============================================
   Information Page (Article Hub)
   ============================================ */
.info-page {
  padding: 80px 0;
  background: var(--background);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.article-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-back);
}

.article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.article-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-quart);
}

.article-card:hover img {
  transform: scale(1.05);
}

.article-content {
  padding: 1.5rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--dark-gray);
}

.article-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.article-content p {
  color: var(--dark-gray);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: var(--secondary);
  gap: 0.75rem;
}

.read-more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.read-more:hover svg {
  transform: translateX(4px);
}

/* Article Detail Page */
.article-detail {
  padding: 80px 0;
  background: var(--white);
}

.article-header {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.article-header h1 {
  margin-bottom: 1rem;
}

.article-header .article-meta {
  justify-content: center;
}

.article-image {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 3rem;
  border-radius: 20px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: auto;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
}

.article-body h2 {
  margin: 2rem 0 1rem;
}

.article-body p {
  margin-bottom: 1.25rem;
  color: var(--dark-gray);
  font-size: 1.0625rem;
}

.article-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-body ul li {
  margin-bottom: 0.5rem;
  color: var(--dark-gray);
}

/* ============================================
   About Page
   ============================================ */
.about-page {
  padding: 80px 0;
  background: var(--white);
}

.about-section {
  margin-bottom: 4rem;
}

.about-section h2 {
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.about-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

.about-section p {
  color: var(--dark-gray);
  font-size: 1.0625rem;
  margin-bottom: 1rem;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--light-gray);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 15px;
  height: 15px;
  background: var(--secondary);
  border-radius: 50%;
  transform: translateX(-6px);
}

.timeline-item h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.timeline-item p {
  margin: 0;
}

.highlight-box {
  background: var(--background);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  border-left: 4px solid var(--secondary);
}

.highlight-box h4 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.highlight-box p {
  margin: 0;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .about .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-image {
    order: -1;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-masonry {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero-content {
    text-align: center;
    padding: 0 1rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .category-card {
    height: 280px;
  }
  
  .gallery-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .gallery-item {
    flex: 0 0 280px;
    height: 220px;
  }
  
  .about-stats {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .gallery-masonry {
    column-count: 1;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .update-card {
    flex-direction: column;
    gap: 1rem;
  }
  
  .update-date {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    text-align: left;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .slider-controls {
    bottom: 80px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .page-header {
    padding: 120px 0 60px;
  }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
