@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Color Palette — sampled directly from the Vibrant Events logo:
     violet-purple wordmark + orange-to-gold gradient mark.
     No deep blue/indigo anywhere in this palette. */
  --primary-color: #6D52E2; /* Logo violet-purple */
  --primary-light: #9B87F5;
  --primary-dark: #1B1330; /* Deep plum-black (NOT blue) — used for dark surfaces & heading text */

  --accent-color: #FE9100; /* Logo orange */
  --accent-light: #FFCE01; /* Logo gold */
  --accent-dark: #C96F00;

  --gradient-brand: linear-gradient(135deg, #FE9100 0%, #FFCE01 100%);
  --gradient-purple: linear-gradient(135deg, #6D52E2 0%, #9B87F5 100%);
  --gradient-deep: linear-gradient(160deg, #1B1330 0%, #2E1F4D 100%);

  --bg-color: #FAFAFA; /* Warm white */
  --bg-alt: #FFFFFF;
  --text-primary: #333333;
  --text-secondary: #555555;
  --text-light: #888888;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --section-padding: 5rem 2rem;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
  --shadow-glow: 0 12px 32px rgba(109, 82, 226, 0.25);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --transition-smooth: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

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

::selection {
  background: var(--accent-color);
  color: white;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-purple);
  border-radius: 10px;
}

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding);
}

.section-bg-alt {
  background-color: var(--bg-alt);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background: var(--gradient-brand);
  background-size: 200% 100%;
  margin: 1rem auto 0;
  border-radius: 2px;
  animation: shimmer 3s ease-in-out infinite;
}

.section-title::before {
  content: '✦';
  display: block;
  color: var(--accent-color);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

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

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

/* Buttons */
.btn {
  display: inline-block;
  position: relative;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.35) 50%, transparent 80%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: 1;
}

.btn:hover::before {
  transform: translateX(100%);
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-accent {
  background: var(--gradient-brand);
  background-size: 160% 100%;
  color: var(--primary-dark);
  font-weight: 600;
}

.btn-accent:hover {
  background-position: 100% 0;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(254, 145, 0, 0.35);
}

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

.btn-outline:hover {
  background: var(--gradient-purple);
  border-color: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* Header / Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 1rem 0;
  border-bottom: 1px solid transparent;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.site-header.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

.site-header.scrolled::after {
  transform: scaleX(1);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 50px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

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

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--gradient-brand);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  background: none;
  border: none;
}

/* Footer */
.site-footer {
  background: var(--gradient-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 3px;
  background: var(--gradient-brand);
}

.site-footer::after {
  content: '';
  position: absolute;
  bottom: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(254,145,0,0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--accent-color);
  font-family: var(--font-body);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  margin-bottom: 0.8rem;
}

.footer-col a:hover {
  color: var(--accent-color);
}

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

.social-links a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--accent-color);
  color: var(--primary-dark);
}

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

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  margin-top: 82px; /* Offset for header */
  color: white;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(115deg, rgba(27,19,48,0.92) 0%, rgba(46,31,77,0.55) 55%, rgba(254,145,0,0.25) 100%);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: 8%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255,206,1,0.35) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(10px);
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

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

.hero .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-left: 0;
}

.hero h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

.card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 3;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.card:hover::after {
  opacity: 1;
}

.card-img {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,19,48,0.55) 0%, transparent 45%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover .card-img::after {
  opacity: 1;
}

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

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

.card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card-content p {
  color: var(--text-secondary);
  flex-grow: 1;
}

/* Testimonials */
.testimonial-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
  border-bottom: 3px solid transparent;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--accent-color);
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--accent-color);
  opacity: 0.3;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}

.testimonial-stars {
  color: var(--accent-color);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--bg-alt);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(109, 82, 226, 0.15);
}

/* Sticky CTAs */
.sticky-ctas {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
}

.sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  text-decoration: none;
}

.sticky-btn:hover {
  transform: scale(1.1);
  color: white;
}

.sticky-call {
  background-color: var(--primary-color);
}

.sticky-whatsapp {
  background-color: #25D366; /* Official WhatsApp color */
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered cascade reveal for cards & testimonials */
.stagger-item {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger-item.stagger-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Scroll progress bar */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-brand);
  z-index: 2000;
  transition: width 0.1s ease-out;
}

/* Back-to-top button */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-purple);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: var(--shadow-glow);
}

@media (max-width: 768px) {
  #back-to-top {
    bottom: 60px;
    left: 1rem;
    width: 42px;
    height: 42px;
  }
}

/* Gallery Filters */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-pill {
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid var(--primary-dark);
  background: transparent;
  color: var(--primary-dark);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-pill:hover {
  background: rgba(109, 82, 226, 0.08);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.filter-pill.active {
  background: var(--gradient-purple);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

/* Masonry-style gallery: CSS columns instead of a fixed-height grid, so
   every photo displays at its natural aspect ratio with no cropping. */
.gallery-grid {
  display: block;
  column-count: 3;
  column-gap: 2rem;
}

.gallery-grid .gallery-card {
  break-inside: avoid;
  margin-bottom: 2rem;
  display: inline-block;
  width: 100%;
}

.gallery-grid .card-img {
  height: auto;
}

.gallery-grid .card-img img {
  width: 100%;
  height: auto;
  object-fit: unset;
}

.gallery-card {
  cursor: pointer;
}

@media (max-width: 900px) {
  .gallery-grid { column-count: 2; }
}

@media (max-width: 560px) {
  .gallery-grid { column-count: 1; }
}

.gallery-card.gallery-hidden {
  display: none;
}

.gallery-empty-msg {
  text-align: center;
  color: var(--text-light);
  padding: 2rem;
  grid-column: 1 / -1;
}

/* Blog */
.blog-card {
  text-decoration: none;
  display: flex;
}

.blog-card:hover .card-content h3 {
  color: var(--primary-color);
}

.blog-card .card-img {
  height: auto;
}

.blog-card .card-img img {
  height: auto;
  object-fit: unset;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.blog-card-category {
  background: rgba(109, 82, 226, 0.1);
  color: var(--primary-color);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-weight: 500;
}

.blog-read-more {
  color: var(--accent-color);
  font-weight: 600;
  margin-top: 0.5rem;
}

.blog-post-meta {
  opacity: 0.85;
  font-size: 1rem;
}

.blog-article {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.blog-article h2 {
  margin-top: 2.5rem;
  font-size: 1.7rem;
}

.blog-article p {
  color: var(--text-secondary);
  margin-bottom: 1.3rem;
}

.blog-article blockquote {
  border-left: 4px solid var(--accent-color);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.8rem; }
  .section { padding: 4rem 1.5rem; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
  }
  
  .main-nav.active {
    display: flex;
  }
  
  .main-nav a {
    padding: 1rem 1.5rem;
    display: block;
  }
  
  .main-nav a::after { display: none; }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero {
    min-height: 60vh;
    text-align: center;
  }
  
  .hero .container {
    margin: 0 auto;
  }
  
  .hero h1 { font-size: 2.2rem; }
  
  .sticky-ctas {
    flex-direction: row;
    bottom: 0;
    right: 0;
    width: 100%;
    gap: 0;
  }
  
  .sticky-btn {
    border-radius: 0;
    width: 50%;
    height: 50px;
    font-size: 1rem;
    gap: 0.5rem;
  }
  
  .sticky-btn::after {
    content: attr(aria-label);
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 500;
  }
}
