/* Import modern premium typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* CSS Custom Variables for Theme Control */
:root {
  /* Dark Theme Default Variables */
  --bg-primary: #0a0b10;
  --bg-secondary: #12131a;
  --bg-glass: rgba(18, 19, 26, 0.65);
  --border-glass: rgba(255, 255, 255, 0.07);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent-primary: #6366f1;
  --accent-secondary: #a855f7;
  --accent-gradient: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  --shadow-color: rgba(0, 0, 0, 0.5);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --navbar-height: 80px;
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 8px;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Light Theme Variables */
body.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --border-glass: rgba(0, 0, 0, 0.06);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent-primary: #4f46e5;
  --accent-secondary: #9333ea;
  --accent-gradient: linear-gradient(135deg, #4f46e5, #9333ea, #db2777);
  --shadow-color: rgba(15, 23, 42, 0.08);
  --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* Background Ambient Glows */
.ambient-glows {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  transition: var(--transition-smooth);
}

body.light-theme .glow {
  opacity: 0.08;
}

.glow-1 {
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--accent-primary);
  animation: float 20s ease-in-out infinite alternate;
}

.glow-2 {
  bottom: -10%;
  left: -10%;
  width: 45vw;
  height: 45vw;
  background: var(--accent-secondary);
  animation: float 25s ease-in-out infinite alternate-reverse;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 5%) scale(1.1); }
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  transition: var(--transition-smooth);
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  background: rgba(0, 0, 0, 0.1);
  padding: 0.4rem;
  border-radius: 100px;
  border: 1px solid var(--border-glass);
}

body.light-theme .nav-links {
  background: rgba(255, 255, 255, 0.4);
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  cursor: pointer;
  display: block;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: #ffffff;
  background: var(--accent-gradient);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

body.light-theme .nav-link.active {
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}

/* Controls (Theme Switcher) */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  outline: none;
}

.theme-toggle:hover {
  transform: scale(1.05);
  border-color: var(--accent-primary);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.sun-icon {
  display: none;
}

body.light-theme .moon-icon {
  display: none;
}

body.light-theme .sun-icon {
  display: block;
}

/* Main Content Container */
.main-content {
  margin-top: var(--navbar-height);
  flex-grow: 1;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Sections */
.section {
  display: none;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.active-section {
  display: block;
  animation: fadeInUp 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

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

/* Back Navigation Button */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-bottom: 1.5rem;
  text-decoration: none;
  width: fit-content;
}

.btn-back:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
  transform: translateX(-4px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}

body.light-theme .btn-back:hover {
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.15);
}

.btn-back svg {
  transition: var(--transition-smooth);
}

.btn-back:hover svg {
  transform: translateX(-2px);
}

/* Section Headings */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* Section 1: Carousel Gallery */
.carousel-container {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-glass);
  background: #000;
}

.carousel-track-container {
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.3, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: zoom-in;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.carousel-slide:hover img {
  transform: scale(1.03);
}

.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2rem 2rem 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.carousel-slide-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.5s ease 0.2s;
}

.carousel-slide-desc {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  line-height: 1.5;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.5s ease 0.3s;
}

/* Active slide animated text */
.carousel-slide.active-slide .carousel-slide-title,
.carousel-slide.active-slide .carousel-slide-desc {
  transform: translateY(0);
  opacity: 1;
}

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn-prev {
  left: 20px;
}

.carousel-btn-next {
  right: 20px;
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Carousel Indicators (Dots) */
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.carousel-indicator:hover {
  background: var(--text-secondary);
}

.carousel-indicator.active-dot {
  background: var(--accent-primary);
  width: 28px;
  border-radius: 100px;
}

/* Descriptive Text Below Carousel */
.carousel-description {
  margin-top: 3rem;
  background: var(--bg-glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-glass);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  line-height: 1.8;
  color: var(--text-secondary);
}

.carousel-description p {
  margin-bottom: 1.2rem;
}

.carousel-description p:last-child {
  margin-bottom: 0;
}

.carousel-description strong {
  color: var(--text-primary);
}

/* Section Showcase Styles (Two-column layout) */
.grid-showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 2rem;
}

.showcase-image-container, .architecture-image-container {
  height: 450px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-glass);
  position: relative;
  cursor: zoom-in;
  background: #000;
}

.showcase-image-container img, .architecture-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.showcase-image-container:hover img, .architecture-image-container:hover img {
  transform: scale(1.04);
}

.showcase-content, .architecture-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.showcase-title {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.showcase-text, .architecture-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.showcase-caption-text, .architecture-caption {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-glass);
  padding-top: 1.5rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.showcase-caption-text::before, .architecture-caption::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent-secondary);
  border-radius: 50%;
}

.badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Click Hint Indicator */
.click-hint {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(10, 11, 16, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  opacity: 0.85;
  transition: var(--transition-smooth);
  z-index: 10;
}

.showcase-image-container:hover .click-hint,
.carousel-container:hover .click-hint {
  opacity: 1;
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

body.light-theme .click-hint {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
}

body.light-theme .showcase-image-container:hover .click-hint,
body.light-theme .carousel-container:hover .click-hint {
  color: #ffffff;
}

/* Active Slide Text Transitions (Documental Carousel) */
#nature-slide-title, #nature-slide-desc {
  transition: opacity 0.25s ease-in-out;
}

/* Fullscreen Lightbox Modal (For Maximum Resolution) */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 6, 8, 0.96);
  backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.lightbox-image-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.lightbox-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.lightbox-caption {
  color: #e5e7eb;
  font-family: 'Inter', sans-serif;
  text-align: left;
  font-size: 1.05rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  max-width: 100%;
  line-height: 1.7;
}

.lightbox-instruction {
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  opacity: 0.6;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.lightbox:hover .lightbox-instruction {
  opacity: 0.9;
  color: var(--text-secondary);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08) rotate(90deg);
}

.lightbox-close svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ==========================================================================
   NUEVOS ESTILOS PREMIUM (HERO, PROGRESS BAR, GRID GENERAL, LIGHTBOX NAV)
   ========================================================================== */

/* Hero Section */
.hero-section {
  padding: 5rem 2rem 2.5rem 2rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 650px;
  line-height: 1.7;
  font-weight: 400;
}

/* Carousel Counter & Progress Bar */
.carousel-counter {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(10, 11, 16, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10;
  letter-spacing: 0.05em;
}

.carousel-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.carousel-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  transition: width 0.1s linear;
}

/* Gallery Showcase Grid (General Exhibition) */
.gallery-section {
  margin-top: 5rem;
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-glass);
  box-shadow: var(--card-shadow);
  cursor: pointer;
  background: #0d0e14;
  transition: var(--transition-smooth);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--accent-primary);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.25);
}

body.light-theme .gallery-card:hover {
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.18);
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(10, 11, 16, 0.95) 0%, rgba(10, 11, 16, 0.4) 60%, transparent 100%);
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

body.light-theme .gallery-card-overlay {
  background: linear-gradient(to top, rgba(248, 250, 252, 0.95) 0%, rgba(248, 250, 252, 0.4) 60%, transparent 100%);
  color: var(--text-primary);
}

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

.gallery-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #fff;
}

body.light-theme .gallery-card-title {
  color: var(--text-primary);
}

.gallery-card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-secondary);
  font-weight: 700;
}

/* Lightbox Navigation Buttons */
.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 2010;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.08);
  border-color: var(--accent-primary);
}

.lightbox-btn-prev {
  left: 30px;
}

.lightbox-btn-next {
  right: 30px;
}

.lightbox-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Footer Section */
.footer {
  margin-top: auto;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.8rem;
  display: inline-block;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .navbar {
    padding: 0 2rem;
  }
  
  .grid-showcase {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .showcase-image-container, .architecture-image-container, .carousel-container {
    height: 380px;
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 70px;
  }
  
  .navbar {
    padding: 0 1rem;
  }
  
  .nav-logo span {
    display: none;
  }
  
  .nav-logo {
    font-size: 1.2rem;
  }
  
  .nav-links {
    gap: 0.5rem;
    padding: 0.25rem;
  }
  
  .nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
  
  .hero-title {
    font-size: 2.6rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .showcase-image-container, .architecture-image-container, .carousel-container {
    height: 320px;
  }
  
  .carousel-btn {
    width: 44px;
    height: 44px;
  }
  
  .carousel-btn-prev {
    left: 10px;
  }
  
  .carousel-btn-next {
    right: 10px;
  }
  
  .carousel-overlay {
    padding: 2rem 1rem 1rem 1rem;
  }
  
  .carousel-slide-title {
    font-size: 1.3rem;
  }
  
  .carousel-slide-desc {
    font-size: 0.85rem;
  }
  
  .showcase-title {
    font-size: 1.7rem;
  }
  
  .lightbox-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  
  .lightbox-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-height: 95vh;
  }
  
  .lightbox-img {
    max-height: 55vh;
  }
  
  .lightbox-caption {
    text-align: center;
    font-size: 0.95rem;
  }
  
  .lightbox-instruction {
    text-align: center;
  }
  
  .lightbox-btn {
    width: 44px;
    height: 44px;
  }
  
  .lightbox-btn-prev {
    left: 10px;
  }
  
  .lightbox-btn-next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .navbar {
    flex-direction: column;
    height: auto;
    padding: 1rem;
    gap: 0.8rem;
  }
  
  .main-content {
    margin-top: 130px;
  }
  
  .nav-links {
    width: 100%;
    justify-content: center;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .showcase-image-container, .architecture-image-container, .carousel-container {
    height: 250px;
  }
  
  .lightbox-img {
    max-height: 45vh;
  }
  
  .lightbox-btn {
    top: auto;
    bottom: 20px;
    transform: none;
  }
  
  .lightbox-btn:hover {
    transform: scale(1.05);
  }
  
  .lightbox-btn-prev {
    left: 20px;
  }
  
  .lightbox-btn-next {
    right: 20px;
  }
}
