@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

/* CSS Custom Properties / Design Tokens */
:root {
  /* Font Families */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Color Palette - HSL values for flexibility */
  --hue-amber: 38;
  --hue-green: 145;
  
  --primary-base: var(--hue-amber), 95%, 50%; /* Golden honey */
  --primary: hsl(var(--primary-base));
  --primary-hover: hsl(var(--hue-amber), 95%, 42%);
  --primary-light: hsla(var(--primary-base), 0.1);
  --primary-border: hsla(var(--primary-base), 0.2);

  --secondary: hsl(var(--hue-green), 45%, 25%); /* Forest Green */
  --secondary-light: hsl(var(--hue-green), 35%, 93%);
  
  /* Light Mode Defaults */
  --bg-base: hsl(40, 30%, 97%); /* Warm cream */
  --bg-surface: hsl(0, 0%, 100%);
  --bg-card: hsla(0, 0%, 100%, 0.7);
  --bg-nav: hsla(40, 30%, 97%, 0.8);
  
  --text-main: hsl(220, 15%, 15%);
  --text-muted: hsl(220, 10%, 45%);
  --text-inverse: hsl(220, 15%, 98%);
  
  --border-color: hsla(0, 0%, 0%, 0.08);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.08);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --blur-amount: 12px;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
  --bg-base: hsl(220, 15%, 10%); /* Charcoal Slate */
  --bg-surface: hsl(220, 15%, 13%);
  --bg-card: rgba(30, 35, 40, 0.65);
  --bg-nav: rgba(22, 26, 29, 0.8);
  
  --text-main: hsl(220, 15%, 90%);
  --text-muted: hsl(220, 10%, 65%);
  --text-inverse: hsl(220, 15%, 10%);
  
  --border-color: hsla(0, 0%, 100%, 0.08);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.35);
  
  --primary-light: hsla(var(--primary-base), 0.15);
  --primary-border: hsla(var(--primary-base), 0.3);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography styling */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

/* Styled Underline for main headings */
h2.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 50px;
  height: 4px;
  background-color: var(--primary);
  border-radius: var(--radius-sm);
  transition: width 0.3s ease;
}

h2.section-title:hover::after {
  width: 80px;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

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

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

/* Layout Elements */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation Bar - Beautiful Glassmorphism sticky header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-nav);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-brand img {
  height: 48px;
  width: auto;
}

.nav-menu {
  display: none; /* Mobile hidden by default */
  list-style: none;
  gap: 8px;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
    align-items: center;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 10px 16px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

/* Dropdown Menu styling for nested pages */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  list-style: none;
}

.dropdown:hover .dropdown-menu {
  display: block;
  animation: fadeIn 0.2s ease;
}

.dropdown-link {
  display: block;
  padding: 8px 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.dropdown-link:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* Controls (Theme toggler & Mobile Menu Icon) */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.mobile-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  padding: 4px;
}

@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-smooth);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 100px 0 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(circle at top right, hsla(var(--primary-base), 0.15), transparent 60%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero-subtitle {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-slogan {
  font-size: 1.25rem;
  font-style: italic;
  margin-top: 1rem;
  margin-bottom: 2rem;
  color: var(--text-main);
  font-weight: 500;
  padding: 0 1rem;
  border-left: 3px solid var(--primary);
}

/* Premium Button style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-heading);
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 14px hsla(var(--primary-base), 0.3);
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px hsla(var(--primary-base), 0.45);
  color: var(--text-inverse);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Sections & Grid */
.section {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 3.5rem;
  max-width: 600px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Glassmorphism Card Style */
.card {
  background-color: var(--bg-card);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: var(--primary-light);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

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

/* Product Section Specifics */
.product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.tab-btn {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.tab-btn.active, .tab-btn:hover {
  background-color: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}

.product-content {
  display: none;
}

.product-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .product-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.product-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Chronicle Page Styling */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 45px;
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-left: 0;
    padding-right: 40px;
  }
  .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 40px;
    padding-right: 0;
  }
}

.timeline-badge {
  position: absolute;
  left: 8px;
  top: 15px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid var(--bg-base);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .timeline-badge {
    left: auto;
    right: -10px;
  }
  .timeline-item:nth-child(even) .timeline-badge {
    left: -10px;
    right: auto;
  }
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.timeline-card:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
}

.timeline-year {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 30px;
  margin-bottom: 12px;
}

/* Footer Section */
.footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 20px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Keyframe Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Bee animation wrapper for that premium look */
.bee-animation {
  position: absolute;
  width: 40px;
  height: 40px;
  pointer-events: none;
  opacity: 0.7;
  z-index: 1;
}

.bee-svg {
  width: 100%;
  height: 100%;
  animation: hoverBee 4s ease-in-out infinite alternate;
}

@keyframes hoverBee {
  0% { transform: translateY(0) rotate(5deg); }
  50% { transform: translateY(-10px) rotate(-5deg); }
  100% { transform: translateY(5px) rotate(8deg); }
}

/* Mobile Nav Overlay when toggled */
.mobile-nav-active {
  overflow: hidden;
}

@media (max-width: 991px) {
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 80px);
    background-color: var(--bg-nav);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    padding: 40px 20px;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.3s ease;
  }
  
  .nav-menu.active .nav-item {
    width: 100%;
    text-align: center;
  }

  .nav-menu.active .nav-link {
    font-size: 1.25rem;
    padding: 15px;
  }
  
  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background-color: transparent;
    border: none;
  }
  
  .dropdown.open .dropdown-menu {
    display: block;
    margin-top: 10px;
    background-color: var(--primary-light);
  }
}
