/* Color Palette: Dark Mode with Cyan, White, and Grey */
:root {
  --cyan: #00e5ff; /* Luminous cyan for dark mode pop */
  --cyan-hover: #00b8d4;
  --cyan-light: rgba(0, 229, 255, 0.15); /* Tinted background for tags */
  --white: #ffffff;
  
  --bg-main: #121212; /* Deepest background */
  --grey-light: #1e1e1e; /* Elevated cards/sections */
  --grey-mid: #333333; /* Borders and photo boxes */
  --grey-dark: #a0a0a0; /* Muted paragraph text */
  --text-main: #e0e0e0; /* Default body text */
  
  --radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* Typography & Utilities */
h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 1rem; color: var(--white); }
h2 { font-size: 2.2rem; color: var(--white); }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--white); }
.eyebrow { color: var(--cyan); font-weight: bold; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; margin-bottom: 0.5rem; }
p { color: var(--grey-dark); margin-bottom: 1rem; }
strong { color: var(--white); font-size: 1.1rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn.primary {
  background-color: var(--cyan);
  color: #000000; /* Dark text on bright cyan for contrast */
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}
.btn.primary:hover {
  background-color: var(--cyan-hover);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}
.btn.secondary {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--grey-mid);
}
.btn.secondary:hover {
  background-color: var(--grey-mid);
  color: var(--white);
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--grey-mid);
}
.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
}
.logo span {
  color: var(--cyan);
  font-weight: 400;
  margin-left: 5px;
}

/* Updated Nav Links & Social Icons Alignment */
.nav-links {
  display: flex;
  align-items: center;
}
.nav-links > a {
  text-decoration: none;
  color: var(--text-main);
  margin-left: 1.5rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links > a:hover {
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

/* New Social Icons Styles */
.social-icons {
  display: flex;
  align-items: center;
  gap: 15px; /* Space between the icons */
  margin-right: 10px; /* Space between icons and the text links */
}
.social-icons a {
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.social-icons a:hover {
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.4));
}

/* Hero Section */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 4rem 5%;
  align-items: center;
  background-color: var(--grey-light);
  border-bottom: 1px solid var(--grey-mid);
}

/* New Mascot Styles */
.mascot {
  width: 200px; /* Keeps the logo cleanly sized */
  height: auto;
  margin-bottom: 1.5rem;
  display: block;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}
.hero-buttons.center {
  justify-content: center;
}
.photo-box {
  background-color: var(--grey-mid);
  color: var(--grey-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  height: 200px;
  margin-bottom: 1rem;
  overflow: hidden; /* Helps contain images if you add them later */
}
.photo-box.large {
  height: 400px;
}

/* Sections */
.section {
  padding: 5rem 5%;
}
.section-title.row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Filters */
.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--grey-mid);
  border-radius: 20px;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition);
}
.filter.active, .filter:hover {
  background: var(--cyan);
  color: #000;
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

/* Grids */
.featured-grid, .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.featured-card {
  background: var(--grey-light);
  border: 1px solid var(--grey-mid);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.tag {
  background: var(--cyan-light);
  color: var(--cyan);
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 4px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

/* Product Cards */
.product-card {
  border: 1px solid var(--grey-mid);
  padding: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  background: var(--grey-light);
}
.product-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  transform: translateY(-5px);
  border-color: var(--cyan);
}

/* Contact */
.contact-card {
  background: var(--grey-light);
  color: var(--text-main);
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--grey-mid);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.05);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: var(--grey-light);
  color: var(--grey-dark);
  border-top: 1px solid var(--grey-mid);
}

/* Modal */
.modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal.hidden {
  display: none;
}
.modal-card {
  background: var(--grey-light);
  border: 1px solid var(--grey-mid);
  padding: 2rem;
  border-radius: var(--radius);
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
#closeModal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--grey-dark);
  transition: var(--transition);
}
#closeModal:hover {
  color: var(--cyan);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.2rem; }
  
  /* Stacks navigation gracefully on mobile */
  .nav { flex-direction: column; gap: 1rem; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .nav-links > a { margin-left: 0; }
  .social-icons { margin-right: 0; margin-bottom: 0.5rem; width: 100%; justify-content: center; }
}

/* --- LAYOUT FIXES --- */

/* 1. Force all images to respect the width of their containers */
img {
  max-width: 100%;
  height: auto;
}

/* 2. Make the dragon image fill the photo-box perfectly without stretching */
.photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* You can change 'cover' to 'contain' if you don't want the edges cropped */
}

/* 3. Update the hero-buttons to wrap instead of cutting off text */
.hero-buttons {
  display: flex;
  flex-wrap: wrap; /* This prevents the text from being cut off */
  gap: 1rem;
  margin-top: 2rem;
}

/* Mobile fix for the main product image getting cut off */
@media (max-width: 768px) {
  .photo-box.large {
    height: 250px; 
  }
  .photo-box.large img {
    object-fit: contain; 
  }
}
