/*
 * styles.css
 *
 * This stylesheet defines the look and feel of the Future Forward Food & AI
 * demonstration site. The palette is built around a slate blue and lavender
 * theme, with gentle pastels and plenty of whitespace to keep things
 * contemporary and calming. Layouts are responsive and adapt from mobile
 * devices up to large desktops.
 */

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

/* Colour palette variables */
:root {
  --primary-color: #627fc6; /* pastel slate blue */
  --accent-color: #b68cc3; /* creamy lavender */
  --light-bg: #f7f8fc;
  --dark-text: #1d2435;
  --light-text: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: var(--light-bg);
  color: var(--dark-text);
  overflow-x: hidden;
}

/* Container utility */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header and Navigation */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--primary-color);
  color: var(--light-text);
  box-shadow: 0 2px 4px var(--shadow);
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background-color: var(--accent-color);
  color: var(--light-text);
  border: none;
  padding: 0.5rem 0.75rem;
  font-size: 1.2rem;
  border-radius: 4px;
  cursor: pointer;
}

.nav {
  display: flex;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 1.25rem;
}
.nav-list li a {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-list li a:hover {
  color: var(--accent-color);
}

/* Highlight active navigation link */
.nav-list li a.active {
  color: var(--accent-color);
}

/* Hero section */
.hero {
  position: relative;
  height: 100vh;
  background-image: url('bokeh-background.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-text);
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 1rem;
}
.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--light-text);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
}
.cta-button:hover {
  background-color: var(--primary-color);
}
.cta-button:active {
  transform: scale(0.96);
}

/* Sections */
.section {
  padding: 4rem 0;
}
.about-section {
  background-color: var(--light-bg);
}
.showcase-section {
  background-color: #ffffff;
}
.contact-section {
  background-color: var(--light-bg);
}

.section h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}
.section p {
  font-size: 1rem;
  line-height: 1.7;
}

/* Gallery */
.gallery {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.gallery-item {
  background-color: var(--light-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px var(--shadow);
  transition: transform 0.2s ease;
}
.gallery-item:hover {
  transform: translateY(-4px);
}
.gallery-image {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  filter: brightness(0.85);
}
.gallery-caption {
  padding: 1rem;
  text-align: left;
}
.gallery-caption h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}
.gallery-caption p {
  font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Video grid styles */
.video-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 1.5rem;
}
.video-grid iframe {
  width: 100%;
  height: 200px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 6px var(--shadow);
}

/* Social buttons inside contact */
.social-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 2rem;
}
.social-btn {
  padding: 0.6rem 1rem;
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}
.social-btn:hover {
  opacity: 0.85;
}
.social-btn.youtube { background-color: #FF0000; }
.social-btn.youtube:hover { background-color: #CC0000; }
.social-btn.instagram { background-color: #E1306C; }
.social-btn.instagram:hover { background-color: #B22658; }
.social-btn.facebook { background-color: #4267B2; }
.social-btn.facebook:hover { background-color: #375A9B; }
.social-btn.threads { background-color: #000000; }
.social-btn.threads:hover { background-color: #333333; }
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group label {
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.form-group input,
.form-group textarea {
  padding: 0.6rem;
  border: 1px solid #ccd1e4;
  border-radius: 4px;
  background-color: #fff;
  font-size: 0.95rem;
  color: var(--dark-text);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(98, 127, 198, 0.2);
}

/* Secret Easter Egg */
#secret-trigger {
  /*
   * Hidden easter‑egg trigger
   *
   * To further reduce accidental activations, the trigger has been
   * relocated away from the primary scroll areas. It now sits in the
   * extreme top‑left corner with a small footprint and a slight
   * margin. Most users rarely move the cursor here when reading or
   * scrolling, so discovering the secret requires purposeful intent.
   */
  position: fixed;
  bottom: 10px;
  right: 10px;
  /* Small, nearly invisible hit area that floats above all content. We
     intentionally position it away from common scroll areas and ensure
     it's layered on top of the header (via a high z‑index) so it
     remains accessible without interfering with site navigation. */
  width: 16px;
  height: 16px;
  opacity: 0;
  cursor: pointer;
  z-index: 2000;
}

.secret-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.secret-message .secret-content {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 2rem;
  border-radius: 8px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 12px var(--shadow);
}
.secret-message h4 {
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}
.secret-message p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Click Counter */
.click-counter {
  position: fixed;
  bottom: 10px;
  left: 10px;
  background-color: rgba(98, 127, 198, 0.9); /* use primary colour with transparency */
  color: var(--light-text);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  z-index: 2000;
  pointer-events: none; /* ensure clicks pass through to underlying elements */
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--primary-color);
    width: 180px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom-left-radius: 6px;
  }
  .nav-list {
    flex-direction: column;
    gap: 0;
  }
  .nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  .nav-list li:last-child {
    border-bottom: none;
  }
  .nav-list li a {
    padding: 0.75rem 1rem;
    display: block;
  }
  .nav-toggle {
    display: block;
  }
  .nav.open {
    max-height: 200px;
  }
}