:root {
  --bg: #000000;
  --text: #f5f5f7;
  --accent: #1d1d1f;
  --glass: rgba(22, 22, 23, 0.8);
  --border: #424245;
  --link: #2997ff;
  --transition: 0.6s cubic-bezier(0.28, 0.11, 0.32, 1);
}

[data-theme="light"] {
  --bg: #f5f5f7;
  --text: #1d1d1f;
  --accent: #ffffff;
  --glass: rgba(245, 245, 247, 0.8);
  --border: #d2d2d7;
  --link: #0066cc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  transition:
    background var(--transition),
    color var(--transition);
  overflow-x: hidden;
}

/* --- Fixed Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 2000;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo-link {
  text-decoration: none !important;
  color: var(--text) !important;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text) !important;
  font-size: 0.85rem;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.nav-links a.active,
.nav-links a:hover {
  opacity: 1;
}

/* --- Theme Toggle Fix --- */
#theme-toggle {
  background: var(--accent);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Hero & Grid --- */
.hero {
  position: relative;
  height: 60vh; /* Reduced height for better balance */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.panel {
  padding: 80px 5%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: var(--accent);
  padding: 40px;
  border-radius: 22px;
  text-align: left;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.spotlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--x) var(--y),
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0) 30%
  );
}

.story-text {
  font-size: clamp(
    1.2rem,
    4vw,
    1.8rem
  ); /* Slightly smaller font for longer text */
  font-weight: 500;
  margin: 60px 0; /* Reduced margin so you don't have to scroll as far between lines */
  opacity: 0;
  filter: blur(12px);
  transform: translateY(30px);
  /* Changed from 1s to 1.8s for a much slower "breathe" */
  transition: all 3s cubic-bezier(0.2, 0.6, 0.3, 1);
  text-align: center;
}

.story-text.active {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0);
}

.cta-button {
  display: inline-block;
  background: var(--link);
  color: white;
  padding: 12px 30px;
  border-radius: 980px;
  text-decoration: none;
  margin-top: 20px;
  font-weight: 500;
}

/* Signature Styling */
.signature-text {
  font-family: "Dancing Script", cursive;
  font-size: 2.5rem;
  color: var(--link);
  display: block;
  margin-top: 20px;
}

.founder-title {
  font-size: 0.8rem;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer */
.footer-panel {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 65px 5%;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}
/* Footer Column Headings */
.footer-column h4 {
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  /* This creates the space between the heading and the first link */
  margin-bottom: 25px; 
}

/* Footer Links */
.footer-column a {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  /* This controls the vertical space between the links themselves */
  margin-bottom: 15px; 
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.footer-column a:hover {
  opacity: 1;
}
/* Contact Page Specific Cleanup */
/* --- Refined Contact Card --- */
.contact-card {
  max-width: 550px;
  margin: 0 auto;
  background: var(--accent);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--border);
  text-align: left;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-header {
  margin-bottom: 25px;
}

.contact-header h2 {
  font-size: 1.8rem;
  margin: 8px 0;
}

.contact-header p {
  font-size: 0.9rem;
  opacity: 0.6;
}

/* --- Form Elements --- */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

/* Focus state: creates a subtle blue glow */
.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--link);
  box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.15);
}

#submit-btn {
  width: 100%;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

/* --- Success State Message --- */
.sent-message {
  text-align: center;
  padding: 40px 0;
}

.sent-message h2 {
  color: #30d158; /* Apple Green */
  margin-bottom: 10px;
}
/* Product Page Tags */
.tag {
  display: inline-block;
  color: #ff9500; /* High-visibility orange */
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  /* Optional: gives it a subtle glow */
  text-shadow: 0 0 10px rgba(255, 149, 0, 0.2);
}
/* --- Page Transition Overlay --- */
#page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 9999;
  pointer-events: none;
  transition: opacity 0.8s ease-in-out;
}

/* Initial state: everything is hidden until the CSS loads */
body {
  opacity: 0;
  animation: fadeInPage 1s forwards;
}

@keyframes fadeInPage {
  to {
    opacity: 1;
  }
}
/* --- Hamburger Icon --- */
.hamburger {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 3000;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text);
  transition: 0.3s ease;
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%; /* Start off-screen */
  width: 100%;
  height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  z-index: 2500;
  transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
}

.mobile-menu.active {
  right: 0; /* Slide in */
}

.mobile-menu a {
  font-size: 2rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

/* --- Responsive Viewport Logic --- */
@media (max-width: 768px) {
  .navbar {
    height: auto;
    flex-direction: column;
    padding: 20px 0; /* Increased padding for more breathing room */
    gap: 20px; /* This creates space between the Logo, the Links, and the Toggle */
  }

  .nav-links {
    display: flex;
    justify-content: center;
    gap: 15px; /* Space between individual page names */
    width: 100%;
  }

  /* Specifically targets the container of the Theme Toggle */
  .nav-actions {
    margin-top: 10px; /* Extra manual push away from the "Contact" link */
    width: 100%;
    display: flex;
    justify-content: center;
  }

  #theme-toggle {
    padding: 8px 20px; /* Slightly larger button for easier tapping on mobile */
  }
}
/* Ensure the navbar has a transition for a smooth slide */
.navbar {
  transition:
    transform 0.4s ease-in-out,
    background var(--transition);
  /* other existing styles... */
}

/* This class will be toggled by JavaScript */
.navbar--hidden {
  transform: translateY(-100%);
}

@media (max-width: 768px) {
  .navbar {
    /* Keep it fixed so it can slide in and out of view */
    position: fixed;
    top: 0;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .footer-content {
    /* Increases the space between stacked footer columns on mobile */
    gap: 50px; 
  }
}
