:root {
  --bg-dark: #0f1724;
  --bg-darker: #080c13;
  --game-bg: #162032;
  --accent: #f4b740;
  --accent-hover: #dca335;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --glass: rgba(15, 23, 36, 0.7);
  --success: #10b981;
  --error: #ef4444;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(at 0% 0%, rgba(244, 183, 64, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(15, 23, 36, 0.5) 0px, transparent 50%);
  min-height: 100vh;
  line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  margin-top: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5vw;
  background: rgba(15, 23, 36, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: padding 0.3s ease;
}

.site-header.scrolled {
  padding: 12px 5vw;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.brand h1 {
  font-size: 28px;
  margin: 0;
  letter-spacing: 1px;
}

.brand p {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-main);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 80px;
}

.hero-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6) contrast(1.1);
  transform: scale(1.1);
  will-change: transform;
}

.hero-overlay {
  position: relative;
  z-index: 10;
  padding: 0 8vw;
  max-width: 800px;
}

.hero-overlay h2 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, #f4b740);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1s ease forwards 0.3s;
}

.hero-overlay p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1s ease forwards 0.5s;
}

.cta {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(244, 183, 64, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1s ease forwards 0.7s;
}

.cta:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Common Section Styles */
section {
  padding: 80px 8vw;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

section h3 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-align: center;
}

section>p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
  color: var(--text-muted);
}

/* Menu */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: var(--game-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--accent);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card-body {
  padding: 24px;
}

.card-body h4 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: #fff;
}

.price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 15px;
}

/* About & Butterflies */
.about {
  position: relative;
  background: linear-gradient(180deg, var(--bg-dark), var(--game-bg));
}

.butterflies {
  position: absolute;
  top: 10%;
  right: 10%;
  opacity: 0.1;
  pointer-events: none;
}

.butterfly {
  width: 60px;
  height: 60px;
  fill: var(--accent);
  animation: float 6s ease-in-out infinite;
}

.butterfly:nth-child(2) {
  animation-delay: -2s;
  width: 40px;
  height: 40px;
  top: 40px;
  left: 80px;
  position: absolute;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

/* Breakfast Cards */
.breakfast-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.bf-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 15px;
  border-radius: 12px;
  display: flex;
  gap: 15px;
  align-items: center;
  transition: background 0.3s;
}

.bf-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.bf-card img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.bf-body h5 {
  font-size: 1.1rem;
  margin: 0 0 5px;
  color: #fff;
}

.bf-body p {
  font-size: 0.9rem;
  margin: 0 0 5px;
  color: var(--text-muted);
}

/* Sudoku Game */
.game-section {
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.game-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-header {
  text-align: center;
  margin-bottom: 30px;
  width: 100%;
}

.game-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

select {
  background: var(--game-bg);
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-game {
  background: var(--accent);
  border: none;
  color: #000;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-game:hover {
  transform: scale(1.05);
}

.game-timer {
  font-family: monospace;
  font-size: 1.2rem;
  padding: 8px;
  color: var(--text-muted);
}

.game-board-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: center;
}

.sudoku-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  width: 90vw;
  max-width: 450px;
  aspect-ratio: 1;
  background: var(--border);
  border: 2px solid var(--text-muted);
  gap: 1px;
}

.sudoku-cell {
  background: var(--game-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}

.sudoku-cell:hover {
  background: rgba(255, 255, 255, 0.05);
}

.sudoku-cell.selected {
  background: rgba(244, 183, 64, 0.2);
}

.sudoku-cell.highlighted {
  background: rgba(255, 255, 255, 0.08);
  /* Row/Col highlight */
}

.sudoku-cell.initial {
  font-weight: 700;
  color: var(--text-muted);
  /* Darker/different color for pre-filled */
}

.sudoku-cell.error {
  color: var(--error);
  background: rgba(239, 68, 68, 0.1);
}

/* Thicker borders for 3x3 blocks */
.sudoku-cell.border-right {
  border-right: 2px solid var(--text-muted);
}

.sudoku-cell.border-bottom {
  border-bottom: 2px solid var(--text-muted);
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 200px;
}

.key {
  aspect-ratio: 1;
  background: var(--game-bg);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.key:hover {
  background: var(--border);
  color: var(--accent);
}

.key.action-key {
  color: var(--error);
  border-color: rgba(239, 68, 68, 0.3);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.gallery-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
  filter: grayscale(0.2);
}

.gallery-img:hover {
  transform: scale(1.03);
  filter: grayscale(0);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--border);
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  z-index: 1001;
}

/* Socials */
.socials {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.social-link:hover {
  background: var(--game-bg);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.fb-logo {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.site-footer {
  text-align: center;
  padding: 40px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .site-header {
    padding: 15px;
  }

  nav {
    display: none;
    /* In a real app, integrate a hamburger menu */
  }

  /* Simple mobile nav for now */
  .site-header {
    flex-wrap: wrap;
  }

  nav {
    width: 100%;
    justify-content: center;
    margin-top: 15px;
    display: flex;
    gap: 15px;
  }

  .hero-overlay h2 {
    font-size: 2.5rem;
  }

  .game-board-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .keypad {
    width: 100%;
    max-width: 450px;
    grid-template-columns: repeat(5, 1fr);
  }

  .key {
    aspect-ratio: auto;
    padding: 15px 0;
  }
}