@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Open+Sans:wght@300;400;600&display=swap');

/*
 * Global variables define the colour palette, typography and spacing for the
 * Holden Events site. Colours draw from rich purples and pinks to mirror
 * modern cocktail bars while still feeling unique and approachable. The
 * background stays dark so content and imagery pop.
 */
:root {
  --background-color: #0a0a0a;
  --surface-color: #1d1333;
  --primary-color: #372f5c;
  --secondary-color: #5246a6;
  --accent-color: #d65a90;
  --text-color: #f5f5f5;
  --text-muted: #b8a8d4;
  --border-radius: 8px;
  --transition-speed: 0.3s;
  --heading-font: 'Poppins', sans-serif;
  --body-font: 'Open Sans', sans-serif;
}

/* Reset and base styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--body-font);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

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

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

h1, h2, h3, h4, h5 {
  font-family: var(--heading-font);
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

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

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav li {
  font-size: 1rem;
  font-weight: 600;
}

nav a {
  color: var(--text-muted);
  transition: color var(--transition-speed);
}

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

/* Hero section */
.hero {
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 6rem; /* account for fixed header */
  background: url('images/hero-bg.png') center/cover no-repeat;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.95) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 2rem;
}

.hero-content img {
  width: 300px;
  margin: 0 auto 1rem auto;
  /* Add a subtle drop shadow so the logo contrasts against the hero background */
  filter: drop-shadow(0 0 12px rgba(214, 90, 144, 0.7));
}

/* Logo container for spill animation */
.logo-container {
  position: relative;
  display: inline-block;
  padding: 1rem;
}

.logo-container::before {
  /* Create a colourful spill behind the logo. The radial gradient and irregular
     border‑radius hint at a cocktail spilling across the bar. */
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 350px;
  height: 350px;
  background: radial-gradient(circle at 40% 40%, rgba(214, 90, 144, 0.7) 0%, rgba(82, 70, 166, 0.6) 60%, rgba(29, 19, 51, 0.4) 100%);
  border-radius: 60% 40% 55% 45% / 50% 60% 45% 55%;
  z-index: -1;
  animation: spill 6s ease-in-out infinite;
}

@keyframes spill {
  0% {
    transform: translate(-50%, -50%) scale(0.1);
    opacity: 0;
  }
  40% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
  80% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
}

/* Illustration images */
.illustration {
  max-width: 180px;
  margin: 1rem auto;
}

/* CTA section layout */
.cta-section .cta-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.cta-section .illustration {
  max-width: 150px;
  height: 150px;
  margin: 0;
  object-fit: cover;
  object-position: 30% 50%;
  clip-path: ellipse(45% 60% at 50% 60%);
}


/* Blog post card backgrounds for specific cocktails */
.post-card.margarita {
  background: url('images/margarita.png') center/cover no-repeat;
}

.post-card.old-fashioned {
  background: url('images/old-fashioned.png') center/cover no-repeat;
}


/*
 * Animated logo effect: overlay subtle moving stripes to create a sense of
 * motion similar to the Silver Lyan branding. The stripes move horizontally
 * across the logo and blend with the underlying image. Adjust the opacity
 * and stripe width to taste.
 */

/* Floating user photos */
.animated-photo {
  width: 200px;
  border-radius: var(--border-radius);
  overflow: hidden;
  animation: floatUpDown 6s ease-in-out infinite;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

@keyframes floatUpDown {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--accent-color);
  color: var(--background-color);
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: background-color var(--transition-speed);
}

.btn:hover {
  background-color: var(--secondary-color);
}

/* Section styling */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-title::after {
  content: '';
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  display: block;
  margin: 0.5rem auto 0;
}

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

.service-card {
  background-color: var(--surface-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.service-card h3 {
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
}

/* Blog / Cocktail Corner */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.post-card {
  background: url('images/swirl-bg.png') center/cover no-repeat;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  min-height: 320px;
  color: #fff;
}

.post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: background-color var(--transition-speed);
}

.post-card:hover .post-overlay {
  background: linear-gradient(180deg, rgba(10,10,10,0.1) 0%, rgba(10,10,10,0.7) 100%);
}

.post-overlay h4 {
  margin-bottom: 0.5rem;
}

.post-overlay a {
  color: var(--accent-color);
  font-weight: 600;
  margin-top: 0.5rem;
  display: inline-block;
}

/* Contact form */
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  gap: 1rem;
}

.contact-container input,
.contact-container textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255,255,255,0.2);
  background-color: var(--surface-color);
  color: var(--text-color);
  resize: vertical;
}

.contact-container button {
  align-self: flex-start;
  margin-top: 1rem;
}

/* Footer */
footer {
  background-color: var(--surface-color);
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  nav ul {
    gap: 1rem;
  }
  .service-card {
    padding: 1.5rem;
  }
}

/* Page load animation: colourful liquid pour */
#preload {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background: linear-gradient(180deg, rgba(214, 90, 144, 1) 0%, rgba(82, 70, 166, 1) 60%, rgba(29, 19, 51, 1) 100%);
  transform: translateY(-100%);
  animation: pourDown 2.5s ease-out forwards;
  pointer-events: none;
}

@keyframes pourDown {
  from {
    transform: translateY(-100%);
    opacity: 1;
  }
  50% {
    transform: translateY(0%);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}