/* 
  V2 "High-End" Design System 
  Theme: Midnight Mesh / Deep Premium
*/

:root {
  /* Fonts */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Color Palette - Deep Premium Dark Blue Base (Default) */
  /* Using a dark theme by default for that "premium" feel, or a very rich light theme */

  /* Let's go with a rich dark theme as default for "Modern/Stylish" request unless light is preferred. 
     The user's screenshot showed a dark nav. Let's make the base bold. */

  --color-bg: #030712;
  /* Rich Black/Blue */
  --color-surface: rgba(17, 24, 39, 0.7);
  /* Glassy Surface */
  --color-surface-hover: rgba(31, 41, 55, 0.8);

  --color-primary: #3b82f6;
  /* Bright Blue Core */
  --color-secondary: #8b5cf6;
  /* Violet for gradients */
  --color-accent: #06b6d4;
  /* Cyan for highlights */

  --color-text-main: #f9fafb;
  --color-text-muted: #9ca3af;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-hover: rgba(255, 255, 255, 0.2);

  /* Gradients */
  --gradient-mesh: radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.1) 0px, transparent 50%);

  /* FIX: Vibrant Gradient for Dark Mode (White to Blue) */
  --gradient-text: linear-gradient(135deg, #ffffff 0%, #60a5fa 100%);
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);

  /* Effects */
  --glass-blur: blur(20px);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.15);

  --radius-lg: 1.5rem;
  --radius-full: 9999px;

  --nav-height: 80px;
}

/* Light Mode Override (Optional/Secondary) */
body.light-mode {
  --color-bg: #f8fafc;
  --color-surface: rgba(255, 255, 255, 0.8);
  --color-surface-hover: rgba(255, 255, 255, 0.95);
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --color-border: rgba(0, 0, 0, 0.08);
  --gradient-mesh: radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.05) 0px, transparent 50%);

  /* FIX: Dark gradient for text in light mode (Deep Navy to Vibrant Blue) */
  --gradient-text: linear-gradient(135deg, #0f172a 0%, #3b82f6 100%);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  background-image: var(--gradient-mesh);
  background-attachment: fixed;
  /* Parallax-ish */
  color: var(--color-text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Overlay for Login Page */
body.admin-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/images/login-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  /* Balanced visibility */
  z-index: -1;
  pointer-events: none;
  background-attachment: fixed;
  filter: brightness(0.6);
  /* Dimmed for true Dark Mode feel */
}

/* Light Mode Adjustment for BG */
body.light-mode.admin-body::before {
  opacity: 0.85;
  /* Much clearer per user request */
  filter: none;
  /* Show natural image colors */
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Animation Utilities */
.hidden-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* =========================================
   Navigation (Fixed Spacing & Glass)
   ========================================= */
.nav {
  position: sticky;
  top: 1rem;
  margin: 0 auto;
  width: 95%;
  max-width: 1400px;
  height: var(--nav-height);
  background: var(--color-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  z-index: 1000;
  box-shadow: var(--shadow-sm);

  /* FIX: Use gap to keep items close, not space-between */
  gap: 2rem;
}

/* Nav Link Styling */
.nav a:not(.admin-link) {
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

.nav a:not(.admin-link):hover {
  color: var(--color-text-main);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Active Indicator Dot */
.nav a:not(.admin-link):hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-accent);
}

/* Push Right Section (Admin/Theme) to end */
.nav-right {
  margin-left: auto;
  /* This pushes the right section to the far right */
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  /* Slight glass */
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.theme-toggle-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  /* Blue tint on hover */
  border-color: var(--color-primary);
  transform: rotate(15deg);
  /* Subtle playfulness */
}

/* Ensure SVG strokes are crisp */
.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2px;
}

/* Admin Button */
.admin-link {
  background: var(--gradient-primary);
  color: white !important;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  transition: 0.3s transform, 0.3s box-shadow;
}

.admin-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* Logo / Brand Name in Nav? 
   The current HTML has 'Home', 'About' etc. 
   It does NOT have a logo inside .nav, only in .header above it.
   Let's maintain .header but make it minimal or integrated. 
*/
.header {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.header h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  background: var(--gradient-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  letter-spacing: -0.02em;
}

.header p {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
  opacity: 0.7;
}

/* =========================================
   Hero & Content
   ========================================= */
.hero {
  text-align: center;
  padding: 6rem 1rem 4rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

/* Glowing background effect behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: var(--color-primary);
  filter: blur(100px);
  opacity: 0.2;
  border-radius: 50%;
  z-index: -1;
}

.hero h2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.1;
  background: var(--gradient-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  font-weight: 300;
}

/* Slideshow */
.slideshow-container {
  width: 95%;
  max-width: 1400px;
  height: 600px;
  margin: 2rem auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--color-border);
}



.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.05);
  /* Start slightly zoomed in */
  transition: opacity 1s ease-in-out, transform 3.5s ease-out;
  /* Smooth zoom out */
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Removed brightness filter to show original image quality */
}

/* Info Sections */
.info-section {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.info-section h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.info-section h2::before {
  content: '';
  display: block;
  width: 8px;
  height: 30px;
  background: var(--gradient-primary);
  border-radius: 4px;
}

.info-section p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* Cards Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.card {
  background: var(--color-surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  /* 3D Shadow for Dark Mode */
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.3),
    0 4px 6px -2px rgba(0, 0, 0, 0.2),
    0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent);
  box-shadow:
    var(--shadow-glow),
    0 25px 50px -12px rgba(0, 0, 0, 0.5);
  /* Enhanced 3D shadow on hover */
}

/* Light Mode Card Shadows */
body.light-mode .card {
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.05),
    0 4px 6px -2px rgba(0, 0, 0, 0.03),
    0 20px 25px -5px rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .card:hover {
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--color-primary);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-text-main);
  margin-bottom: 1rem;
}

.card p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.card ul {
  margin-top: 1rem;
  padding-left: 1rem;
}

.card ul li {
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.card ul li::before {
  content: '→';
  color: var(--color-accent);
  position: absolute;
  left: 0;
}

/* Proprietor Image */
.proprietor-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  border: 4px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Admin/Login Pages Styles (Basic compat) */
/* Admin/Login Pages Styles (High Contrast) */
.login-container,
.dashboard-container {
  background: rgba(15, 23, 42, 0.95);
  /* Nearly opaque dark bg */
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  border-radius: var(--radius-lg);
  max-width: 500px;
  margin: 4rem auto;
  color: #f8fafc;
  /* Force light text in login box */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  /* Deep shadow */
}

/* Light Mode Card Override */
body.light-mode .login-container {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #0f172a;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}

input,
textarea,
select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: inherit;
  padding: 0.8rem;
  border-radius: 0.5rem;
  width: 100%;
  margin-bottom: 1rem;
}

/* Input Focus State */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

button {
  cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
  .nav {
    flex-wrap: nowrap;
    /* Prevent wrapping */
    overflow-x: auto;
    /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on iOS */
    height: auto;
    padding: 1rem;
    gap: 1rem;
    justify-content: flex-start;
    /* Align start to allow scroll from left */
    /* Hide scrollbar for cleaner look */
    scrollbar-width: none;
    /* Firefox */
  }

  .nav::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
  }

  .nav-right {
    margin-left: 1rem;
    /* Use fixed margin instead of auto to keep it close */
    width: auto;
    justify-content: flex-end;
    margin-top: 0;
    flex-shrink: 0;
  }

  /* Ensure links don't shrink */
  .nav a {
    white-space: nowrap;
  }

  /* Home Page Mobile Fixes - Full Scale Square Image */
  .slideshow-container {
    width: calc(100vw - 1rem);
    /* Almost full width but with space for rounded corners */
    height: calc(100vw - 1rem);
    max-width: none;
    margin: 0.5rem auto;
    /* Center it with small vertical margin */
    border-radius: 15px;
    /* Visible rounded corners */
    overflow: hidden;
    left: auto;
    /* Reset positioning */
    right: auto;
    margin-left: auto;
    margin-right: auto;
    /* Remove conflicting override styles */
    /* position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; REMOVED */
  }

  .nav {
    padding-right: 2rem;
    /* Add padding to right to prevent cut-off of last item */
  }


  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Prevent horizontal scroll from the negative margin hacks if overflow issue occurs */
  body {
    overflow-x: hidden;
  }
}