/* Luminaria - Premium Website Styles */
/* Bento Grid Layout with Day/Night Theme Support */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Source+Sans+Pro:wght@400;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ========== CSS CUSTOM PROPERTIES ========== */

:root[data-theme="dark"] {
  --bg-primary: #0a0e27;
  --bg-secondary: #141829;
  --bg-tertiary: #1a1f3a;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --accent-primary: #ff006e;
  --accent-secondary: #00f5ff;
  --accent-tertiary: #ffd60a;
  --border-color: #2a2f4a;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --glassmorphism-bg: rgba(20, 24, 41, 0.8);
}

:root[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f0f2f5;
  --text-primary: #1a1a2e;
  --text-secondary: #555555;
  --accent-primary: #e84c89;
  --accent-secondary: #00d9ff;
  --accent-tertiary: #ff9800;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --glassmorphism-bg: rgba(255, 255, 255, 0.9);
}

/* ========== BASE STYLES ========== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Source Sans Pro', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== TYPOGRAPHY ========== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-secondary);
}

a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

/* ========== LAYOUT & CONTAINERS ========== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  width: 100%;
}

/* ========== NAVBAR ========== */

.navbar-inverse {
  background-color: var(--bg-tertiary);
  border-color: var(--border-color);
  box-shadow: 0 2px 20px var(--shadow-color);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  color: var(--accent-secondary);
}

.navbar-nav > li > a {
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.navbar-nav > li > a:hover,
.navbar-nav > .active > a {
  color: var(--accent-secondary);
  border-bottom: 2px solid var(--accent-secondary);
}

.navbar-toggle {
  border-color: var(--text-primary);
}

.navbar-toggle .icon-bar {
  background-color: var(--text-primary);
  transition: all 0.3s ease;
}

/* Control Buttons in Navbar */
.navbar-btn {
  background: transparent;
  border: 1px solid var(--accent-secondary);
  color: var(--accent-secondary);
  padding: 8px 15px;
  margin-left: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'Source Sans Pro', sans-serif;
}

.navbar-btn:hover {
  background-color: var(--accent-secondary);
  color: var(--bg-primary);
}

/* ========== BUTTONS ========== */

.btn {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 8px;
  padding: 12px 30px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid;
}

.btn-primary-cta {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

.btn-primary-cta:hover {
  background-color: var(--accent-secondary);
  border-color: var(--accent-secondary);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px var(--shadow-color);
}

.btn-lg {
  padding: 15px 40px;
  font-size: 1.1rem;
}

/* ========== HERO SECTION ========== */

.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  padding: 40px 20px;
}

.hero-video-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.video-background {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.8) 0%, rgba(255, 0, 110, 0.3) 100%);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-content p {
  font-size: 1.5rem;
  color: var(--accent-secondary);
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-content .btn {
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

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

/* ========== BENTO GRID LAYOUT ========== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 60px 0;
}

.bento-grid-large {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 60px 0;
}

@media (max-width: 768px) {
  .bento-grid-large {
    grid-template-columns: 1fr;
  }
}

.bento-tile {
  background: var(--glassmorphism-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px 30px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.bento-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.bento-tile:hover::before {
  left: 100%;
}

.bento-tile:hover {
  border-color: var(--accent-secondary);
  transform: translateY(-8px);
  box-shadow: 0 25px 50px var(--shadow-color);
}

.bento-tile-large {
  grid-column: span 2;
  min-height: 300px;
}

.bento-tile-tall {
  grid-row: span 2;
  min-height: 500px;
}

@media (max-width: 768px) {
  .bento-tile-large,
  .bento-tile-tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ========== SECTION STYLES ========== */

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin: 80px 0 50px;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 2px;
}

.section-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* ========== SERVICE ITEMS ========== */

.service-item {
  text-align: center;
  padding: 40px 30px;
  background: var(--glassmorphism-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item:hover {
  border-color: var(--accent-secondary);
  transform: translateY(-8px);
  box-shadow: 0 25px 50px var(--shadow-color);
}

.service-item svg {
  width: 64px;
  height: 64px;
  fill: var(--accent-secondary);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.service-item:hover svg {
  fill: var(--accent-primary);
  transform: scale(1.1);
}

.service-item h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--accent-primary);
}

.service-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========== CARDS & PANELS ========== */

.card {
  background: var(--glassmorphism-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--accent-secondary);
  box-shadow: 0 15px 40px var(--shadow-color);
}

.panel-default {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: transparent;
}

.panel-default > .panel-heading {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
  border-radius: 12px 12px 0 0;
}

.panel-default > .panel-heading a {
  color: var(--text-primary);
  font-weight: 600;
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.panel-default > .panel-heading a:hover {
  color: var(--accent-secondary);
}

.panel-body {
  background: var(--glassmorphism-bg);
  border-color: var(--border-color);
  color: var(--text-primary);
  padding: 30px;
}

.panel-body p {
  line-height: 1.8;
}

/* ========== CAROUSEL ========== */

.carousel-inner {
  border-radius: 16px;
  overflow: hidden;
}

.carousel-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
}

.carousel-caption {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 30px;
  border-radius: 0 0 16px 16px;
  text-align: left;
}

.carousel-caption h3 {
  color: var(--accent-secondary);
  margin-bottom: 10px;
}

.carousel-caption p {
  color: #fff;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

/* ========== CTA BANNER ========== */

.cta-banner {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary);
  padding: 80px 0;
  text-align: center;
  margin: 80px 0;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-banner h2 {
  color: var(--bg-primary);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  font-size: 2.5rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.cta-banner .btn {
  background-color: var(--bg-primary);
  color: var(--accent-primary);
  border-color: var(--bg-primary);
  position: relative;
  z-index: 1;
}

.cta-banner .btn:hover {
  background-color: transparent;
  color: var(--bg-primary);
  border-color: var(--bg-primary);
}

/* ========== FOOTER ========== */

footer {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 60px 0 30px;
  margin-top: 100px;
  border-top: 1px solid var(--border-color);
}

footer h4 {
  color: var(--text-primary);
  font-family: 'Playfair Display', serif;
  margin-bottom: 20px;
}

footer a {
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--accent-secondary);
  text-decoration: none;
}

footer p {
  color: var(--text-secondary);
  margin-bottom: 10px;
}

address {
  color: var(--text-secondary);
  font-style: normal;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.9rem;
}

/* ========== COOKIE BANNER ========== */

#cookieConsentBanner {
  background: var(--bg-tertiary);
  border-top: 2px solid var(--accent-secondary);
  box-shadow: 0 -10px 40px var(--shadow-color);
  z-index: 1050;
}

#cookieConsentBanner p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-primary);
}

#cookieConsentBanner .btn {
  margin-top: 10px;
}

/* ========== IMAGES ========== */

img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  transition: all 0.3s ease;
}

img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px var(--shadow-color);
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 768px) {
  .hero-section {
    min-height: 60vh;
    padding: 20px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin: 50px 0 30px;
  }

  .bento-tile {
    padding: 25px 20px;
  }

  .cta-banner {
    padding: 50px 20px;
  }

  .cta-banner h2 {
    font-size: 1.8rem;
  }

  footer {
    padding: 40px 0 20px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .container {
    padding: 0 15px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .bento-tile {
    padding: 20px 15px;
  }
}

/* ========== ANIMATIONS ========== */

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.animate-slide-in {
  animation: slideIn 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ========== UTILITY CLASSES ========== */

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

.text-right {
  text-align: right;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mt-40 {
  margin-top: 40px;
}

.mt-80 {
  margin-top: 80px;
}

.hidden {
  display: none;
}
