/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  --primary: #e94560;
  --primary-hover: #ff5a75;
  --primary-dark: #c73a52;
  --bg-dark: #1a1a2e;
  --bg-medium: #16213e;
  --bg-light: #0f3460;
  --text: #eee;
  --text-muted: #aaa;
  --text-dim: #888;
  --accent-warm: #f4a261;
  --accent-warm-dark: #e76f51;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 30px rgba(233, 69, 96, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 50px;
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --animation-duration: 0.6s;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Scroll Progress Bar
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-warm));
  width: 0%;
  z-index: 1001;
  transition: width 0.1s linear;
}

/* ============================================
   Container
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }

p {
  margin-bottom: 1rem;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Scroll Animations
   ============================================ */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--animation-duration) ease, transform var(--animation-duration) ease;
}

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

/* Hero content staggered animation */
.hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.hero-logo { animation-delay: 0.1s; }
.hero-heading { animation-delay: 0.2s; }
.hero-tagline { animation-delay: 0.3s; }
.hero-subtitle { animation-delay: 0.4s; }
.cta-button { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(233, 69, 96, 0.1);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(26, 26, 46, 0.95);
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(233, 69, 96, 0.2);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 2px;
  transition: transform var(--transition-base);
}

.logo:hover {
  transform: scale(1.05);
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  transition: transform var(--transition-fast);
}

.hamburger:hover {
  transform: scale(1.1);
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition-base), opacity var(--transition-base), background var(--transition-fast);
  transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Mobile Navigation
   ============================================ */
@media (max-width: 767px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    padding: 0 1.5rem;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
    border-bottom: 1px solid transparent;
  }

  .nav-links.open {
    max-height: 350px;
    padding: 1rem 1.5rem;
    border-bottom-color: rgba(233, 69, 96, 0.1);
  }

  .nav-links li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: block;
    padding: 0.5rem 0;
  }
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-medium) 40%, var(--bg-light) 70%, var(--primary) 100%);
  background-size: 300% 300%;
  animation: heroGradient 12s ease infinite;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(233, 69, 96, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(244, 162, 97, 0.1) 0%, transparent 50%);
}

@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem 1.5rem;
  will-change: transform, opacity;
}

.hero-logo {
  width: 200px;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 0 20px rgba(233, 69, 96, 0.3));
  transition: transform var(--transition-base);
}

.hero-logo:hover {
  transform: scale(1.05) rotate(2deg);
}

.hero-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Buttons
   ============================================ */
.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(233, 69, 96, 0.6);
  color: #fff;
  background: var(--primary-hover);
}

.cta-button:active {
  transform: translateY(-1px);
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@media (max-width: 767px) {
  .hero-logo {
    width: 140px;
  }
  
  .cta-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem 2rem;
  }
}

/* ============================================
   Sections
   ============================================ */
section {
  padding: 5rem 1.5rem;
  scroll-margin-top: 80px;
}

main {
  padding-top: 64px;
}

/* ============================================
   Products Section
   ============================================ */
#products {
  text-align: center;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
}

#products h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: linear-gradient(145deg, var(--bg-medium), rgba(15, 52, 96, 0.6));
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 380px;
  width: 100%;
  border: 1px solid rgba(233, 69, 96, 0.12);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-warm));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(233, 69, 96, 0.25);
  border-color: rgba(233, 69, 96, 0.3);
}

.product-card:hover::before {
  opacity: 1;
}

.product-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary), #ff6b8a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.35);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-card:hover .product-icon {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(233, 69, 96, 0.5);
}

.product-icon svg {
  width: 40px;
  height: 40px;
  color: #fff;
}

.product-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.product-description {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.product-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  color: var(--text);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: padding-left var(--transition-fast);
}

.product-features li:last-child {
  border-bottom: none;
}

.product-card:hover .product-features li {
  padding-left: 0.25rem;
}

.feature-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--primary);
}

.product-cta {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.product-cta:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
  transform: translateY(-2px);
}

/* Coming Soon button */
.btn-coming-soon {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  border: 2px dashed var(--text-muted);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: not-allowed;
  opacity: 0.8;
}

.btn-coming-soon:hover {
  opacity: 1;
  color: var(--text);
  border-color: var(--text);
}

@media (max-width: 767px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    max-width: 100%;
    padding: 2rem;
  }

  .product-icon {
    width: 64px;
    height: 64px;
  }

  .product-icon svg {
    width: 32px;
    height: 32px;
  }

  .product-name {
    font-size: 1.35rem;
  }
}

/* ============================================
   Philosophy Section
   ============================================ */
.philosophy-section {
  background: linear-gradient(180deg, var(--bg-medium) 0%, #2d1f3d 50%, var(--bg-dark) 100%);
  padding: 5rem 1.5rem;
  scroll-margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.philosophy-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(244, 162, 97, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.philosophy-header {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
  position: relative;
}

.philosophy-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-warm);
  margin-bottom: 0.75rem;
}

.philosophy-headline {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent-warm) 50%, var(--accent-warm-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.philosophy-intro {
  font-size: 1.2rem;
  color: #e0d6cc;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.philosophy-body {
  font-size: 1.05rem;
  color: #c4b8ac;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.philosophy-principles {
  margin-bottom: 4rem;
  position: relative;
}

.principles-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-warm);
  margin-bottom: 2.5rem;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.principle-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(244, 162, 97, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
}

.principle-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(244, 162, 97, 0.18);
  border-color: rgba(244, 162, 97, 0.4);
}

.principle-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(244, 162, 97, 0.15) 0%, rgba(231, 111, 81, 0.15) 100%);
  border-radius: 50%;
  color: var(--accent-warm);
  transition: transform var(--transition-base), background var(--transition-base);
}

.principle-card:hover .principle-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(244, 162, 97, 0.25) 0%, rgba(231, 111, 81, 0.25) 100%);
}

.principle-card h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.principle-card p {
  font-size: 0.95rem;
  color: #b8a99a;
  line-height: 1.7;
}

.philosophy-quote {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

.philosophy-quote blockquote {
  position: relative;
  padding: 2rem 2.5rem;
  background: rgba(244, 162, 97, 0.05);
  border-left: 4px solid var(--accent-warm);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.philosophy-quote blockquote::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: rgba(244, 162, 97, 0.3);
  line-height: 1;
}

.philosophy-quote p {
  font-size: 1.15rem;
  font-style: italic;
  color: #e0d6cc;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.philosophy-quote cite {
  font-size: 0.95rem;
  color: var(--accent-warm);
  font-style: normal;
  font-weight: 500;
}

.philosophy-cta {
  text-align: center;
}

.cta-warm {
  background: linear-gradient(135deg, var(--accent-warm) 0%, var(--accent-warm-dark) 100%);
  box-shadow: 0 4px 20px rgba(244, 162, 97, 0.35);
}

.cta-warm:hover {
  box-shadow: 0 8px 30px rgba(244, 162, 97, 0.5);
  background: linear-gradient(135deg, #ffb380 0%, var(--accent-warm) 100%);
}

@media (max-width: 767px) {
  .philosophy-section {
    padding: 3rem 1rem;
  }

  .philosophy-header {
    margin-bottom: 3rem;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .principle-card {
    padding: 1.5rem;
  }

  .philosophy-quote blockquote {
    padding: 1.5rem;
  }

  .philosophy-quote blockquote::before {
    font-size: 3rem;
  }
}

/* ============================================
   About & Contact Sections
   ============================================ */
#about, #contact {
  text-align: center;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#about {
  background: var(--bg-dark);
}

#contact {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
}

#about h2, #contact h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Footer
   ============================================ */
footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-dark);
  border-top: 1px solid rgba(233, 69, 96, 0.1);
}

footer p {
  font-size: 0.9rem;
}

/* ============================================
   Loading States
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-medium) 25%, var(--bg-light) 50%, var(--bg-medium) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   Focus States (Accessibility)
   ============================================ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.keyboard-navigation *:focus {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ============================================
   Selection
   ============================================ */
::selection {
  background: rgba(233, 69, 96, 0.3);
  color: #fff;
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .fade-in-element {
    opacity: 1;
    transform: none;
  }
  
  .hero-content > * {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .navbar,
  .hamburger,
  .scroll-progress,
  .hero-bg {
    display: none;
  }
  
  body {
    background: #fff;
    color: #000;
  }
  
  section {
    page-break-inside: avoid;
  }
}
