/* =============================================================
   MIKASHI – Design System & Styles
   =============================================================
   Table of Contents:
   1. Design Tokens (CSS Variables)
   2. Reset & Base
   3. Container & Layout
   4. Header & Navigation
   5. Mobile Navigation
   6. Section Header / Hero
   7. Product Grid & Cards
   8. Sub-Product Modal
   9. Footer
   10. Animations & Keyframes
   11. Responsive Breakpoints
   ============================================================= */

/* ===== 1. DESIGN TOKENS ===== */
:root {
  /* Colors – Dark Navy Palette */
  --bg-primary: #0A1128;
  --bg-secondary: #0F172A;
  --bg-card: #131D35;
  --bg-card-hover: #182444;
  --bg-placeholder: #1E293B;
  --border-subtle: rgba(99, 148, 255, 0.10);
  --border-glow: rgba(99, 148, 255, 0.30);
  --accent-primary: #3B82F6;
  --accent-secondary: #60A5FA;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --overlay-bg: rgba(10, 17, 40, 0.88);

  /* Typography */
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radii */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.30), 0 1px 4px rgba(0, 0, 0, 0.20);
  --shadow-card-hover: 0 8px 40px rgba(59, 130, 246, 0.15), 0 2px 8px rgba(0, 0, 0, 0.30);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.18), 0 0 80px rgba(59, 130, 246, 0.06);
  --shadow-modal: 0 24px 80px rgba(0, 0, 0, 0.60), 0 0 40px rgba(59, 130, 246, 0.10);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --header-height: 72px;
  --container-max: 1280px;
  --container-padding: clamp(1rem, 4vw, 2rem);
}


/* ===== 2. RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient background glows */
body::before {
  content: '';
  position: fixed;
  top: -30%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  right: -15%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; font-family: inherit; background: transparent; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }


/* ===== 3. CONTAINER & LAYOUT ===== */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}


/* ===== 4. HEADER & NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(155, 175, 210, 0.35);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
  background: rgba(140, 165, 205, 0.45);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo__image {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.2));
  transition: filter var(--transition-fast), transform var(--transition-fast);
}

.logo:hover .logo__image {
  filter: drop-shadow(0 0 14px rgba(59, 130, 246, 0.35));
  transform: scale(1.03);
}

/* Desktop Navigation */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-desktop__link {
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  padding: var(--space-sm) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-desktop__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transition: width var(--transition-base);
}

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

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

.nav-desktop__cta {
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  color: white;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-primary), #6366F1);
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-desktop__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.45);
}

/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}

.hamburger__bar {
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background: var(--text-primary);
  transition: transform var(--transition-base), opacity var(--transition-fast);
  transform-origin: center;
}

.hamburger.open .hamburger__bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.open .hamburger__bar:nth-child(2) {
  opacity: 0;
}
.hamburger.open .hamburger__bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}


/* ===== 5. MOBILE NAVIGATION ===== */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 17, 40, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.nav-mobile.open {
  opacity: 1;
  visibility: visible;
}

.nav-mobile__link {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-lg);
  transition: color var(--transition-fast), transform var(--transition-fast);
  transform: translateY(20px);
  opacity: 0;
}

.nav-mobile.open .nav-mobile__link {
  transform: translateY(0);
  opacity: 1;
}

.nav-mobile.open .nav-mobile__link:nth-child(1) { transition-delay: 0.08s; }
.nav-mobile.open .nav-mobile__link:nth-child(2) { transition-delay: 0.14s; }
.nav-mobile.open .nav-mobile__link:nth-child(3) { transition-delay: 0.20s; }
.nav-mobile.open .nav-mobile__link:nth-child(4) { transition-delay: 0.26s; }
.nav-mobile.open .nav-mobile__link:nth-child(5) { transition-delay: 0.32s; }

.nav-mobile__link:hover {
  color: var(--text-primary);
  transform: translateX(6px);
}


/* ===== 6. SECTION HEADER / HERO ===== */
.products-section {
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-4xl);
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-secondary);
  margin-bottom: var(--space-md);
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary));
}

.section-eyebrow::after {
  background: linear-gradient(90deg, var(--accent-primary), transparent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin-inline: auto;
  line-height: 1.7;
}


/* ===== 7. PRODUCT GRID & CARDS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* --- Main Product Card --- */
.product-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
  /* Scroll-reveal initial state */
  opacity: 0;
  transform: translateY(30px);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
}

.product-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-glow);
}

/* Hover glow overlay */
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.08), transparent 60%);
  transition: opacity var(--transition-base);
  pointer-events: none;
  z-index: 1;
}

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

/* Image wrapper – 1:1 square aspect ratio */
.product-card__image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Forces 1:1 */
  background: var(--bg-placeholder);
  overflow: hidden;
}

/*
  ============================================================
  MAIN PRODUCT IMAGE
  To insert your custom image, find the <img> tag inside each
  .product-card and set the src attribute.
  Example: src="images/your-product-image.png"
  ============================================================
*/
.product-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.product-card:hover .product-card__image {
  transform: scale(1.06);
}

/* Grey placeholder overlay (shown when no image src) */
.product-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: linear-gradient(145deg, var(--bg-placeholder) 0%, #151F33 100%);
  color: var(--text-muted);
}

.product-card__placeholder-icon {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.product-card__placeholder-text {
  font-size: 0.75rem;
  opacity: 0.5;
}

/* Shimmer on hover */
.product-card__image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.03) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
  pointer-events: none;
  z-index: 2;
}

.product-card:hover .product-card__image-wrapper::after {
  transform: translateX(100%);
}

/* Card body */
.product-card__body {
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
  text-align: center;
  position: relative;
  z-index: 2;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
}

.product-card__action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8rem;
  font-weight: var(--fw-medium);
  color: var(--accent-secondary);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.product-card:hover .product-card__action {
  opacity: 1;
  transform: translateY(0);
}

.product-card__action svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.product-card:hover .product-card__action svg {
  transform: translateX(3px);
}


/* ===== 8. SUB-PRODUCT MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--overlay-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-modal);
}

/* Custom scrollbar for modal */
.modal::-webkit-scrollbar {
  width: 6px;
}
.modal::-webkit-scrollbar-track {
  background: transparent;
}
.modal::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.modal__close svg {
  width: 20px;
  height: 20px;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  padding-right: var(--space-2xl);
}

.modal__subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

/* Vertical wrapper for all sub-product content (grids + section headers) */
.sub-products-container {
  display: flex;
  flex-direction: column;
}

/* Sub-products grid inside the modal */
.sub-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-lg);
}

/* --- Individual Sub-Product Card --- */
.sub-product-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: background var(--transition-fast),
              border-color var(--transition-fast),
              transform var(--transition-fast),
              box-shadow var(--transition-fast);
  /* Entrance animation */
  opacity: 0;
  transform: translateY(16px) scale(0.96);
}

.sub-product-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sub-product-card:hover {
  background: rgba(59, 130, 246, 0.06);
  border-color: var(--border-glow);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.12);
}

/*
  ============================================================
  SUB-PRODUCT IMAGE
  To insert your custom sub-product image, find the <img> tag
  inside each .sub-product-card and set the src attribute.
  Example: src="images/sub-product-image.png"
  ============================================================
*/
.sub-product-card__image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 square */
  background: var(--bg-placeholder);
  overflow: hidden;
}

.sub-product-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.sub-product-card:hover .sub-product-card__image {
  transform: scale(1.05);
}

/* Grey placeholder for sub-product */
.sub-product-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(145deg, var(--bg-placeholder) 0%, #151F33 100%);
  color: var(--text-muted);
}

.sub-product-card__placeholder-icon {
  width: 32px;
  height: 32px;
  opacity: 0.35;
}

.sub-product-card__placeholder-text {
  font-size: 0.65rem;
  opacity: 0.4;
}

.sub-product-card__body {
  padding: var(--space-md);
  text-align: center;
}

.sub-product-card__name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  line-height: 1.3;
}

/* Empty state */
.sub-products__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.sub-products__empty-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  opacity: 0.5;
}

/* Section divider header inside modal (for grouped products) */
.modal__section-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.modal__section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

.modal__section-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-secondary);
  white-space: nowrap;
}

/* Empty message for a section with no sub-products yet */
.sub-products__section-empty {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.7;
}


/* ===== ABOUT SECTION ===== */
.about-section {
  padding-bottom: var(--space-4xl);
  position: relative;
  z-index: 1;
}

/* Standalone about page — add top padding for fixed header */
.about-section--page {
  padding-top: calc(var(--header-height) + var(--space-3xl));
}

.about-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 960px;
  margin-inline: auto;
}

.about-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  /* Scroll reveal */
  opacity: 0;
  transform: translateY(24px);
}

.about-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out,
              border-color var(--transition-base), box-shadow var(--transition-base);
}

.about-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(59, 130, 246, 0.1);
}

.about-card--highlight {
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(59, 130, 246, 0.06) 100%);
  border-color: rgba(59, 130, 246, 0.18);
}

.about-card__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-secondary);
}

.about-card__text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* About responsive */
@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .about-card {
    padding: var(--space-lg);
  }
}



/* ===== CONTACT SECTION ===== */
.contact-section {
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-4xl);
  position: relative;
  z-index: 1;
}

/* Contact cards row */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-2xl) var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: transform var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base);
  cursor: pointer;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card-hover);
}

.contact-card__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.contact-card:hover .contact-card__icon {
  transform: scale(1.1);
}

.contact-card__icon svg {
  width: 28px;
  height: 28px;
}

.contact-card__icon--phone {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.15), rgba(37, 211, 102, 0.06));
}
.contact-card__icon--phone svg {
  stroke: #25D366;
}

.contact-card__icon--email {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.06));
}
.contact-card__icon--email svg {
  stroke: var(--accent-secondary);
}

.contact-card__icon--web {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(168, 85, 247, 0.06));
}
.contact-card__icon--web svg {
  stroke: #A855F7;
}

.contact-card__label {
  font-size: 0.8rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.contact-card__value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

/* Company info card */
.company-card {
  max-width: 680px;
  margin-inline: auto;
}

.company-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-2xl) var(--space-xl);
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(59, 130, 246, 0.04) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  text-align: center;
}

.company-card__badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-card__badge svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent-secondary);
}

.company-card__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.company-card__divider {
  width: 60px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.company-card__detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.company-card__detail svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  stroke: var(--text-muted);
  margin-top: 3px;
}

.company-card__detail a {
  color: var(--accent-secondary);
  transition: color var(--transition-fast);
}

.company-card__detail a:hover {
  color: var(--text-primary);
}

/* Contact responsive */
@media (max-width: 768px) {
  .contact-cards {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 400px;
    margin-inline: auto;
    margin-bottom: var(--space-2xl);
  }

  .contact-card {
    padding: var(--space-xl);
  }

  .company-card__inner {
    padding: var(--space-xl);
  }

  .company-card__name {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .company-card__detail {
    font-size: 0.85rem;
  }
}


/* ===== 9. FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.footer__text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__text span {
  color: var(--accent-secondary);
}


/* ===== 10. ANIMATIONS & KEYFRAMES ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ===== 11. RESPONSIVE BREAKPOINTS ===== */

/* Tablet */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .sub-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .product-card__body {
    padding: var(--space-md) var(--space-md) var(--space-lg);
  }

  .product-card__name {
    font-size: 0.9rem;
  }

  .product-card__action {
    opacity: 1;
    transform: translateY(0);
  }

  .modal {
    padding: var(--space-xl);
    max-height: 90vh;
    border-radius: var(--radius-lg);
  }

  .modal__title {
    font-size: 1.3rem;
  }

  .sub-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 380px;
    margin-inline: auto;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .sub-products-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .modal {
    padding: var(--space-lg);
  }
}


/* ============================================================
   PRODUCT DETAIL PAGE STYLES
   ============================================================ */
.product-page {
  padding-top: calc(var(--header-height) + var(--space-2xl));
  padding-bottom: var(--space-4xl);
  min-height: 80vh;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-2xl);
  transition: color var(--transition-fast);
}

.back-link svg {
  width: 18px;
  height: 18px;
}

.back-link:hover {
  color: var(--text-primary);
}

/* Loading & Error States */
.product-loading, .product-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4xl) 0;
  text-align: center;
}

.product-error h2 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.product-error p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--accent-secondary);
  animation: spin 1s linear infinite;
  margin-bottom: var(--space-md);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Product Content Layout */
.product-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: calc(var(--header-height) + var(--space-2xl));
}

.product-gallery__main {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

.product-gallery__main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.product-info__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.product-category {
  font-size: 0.85rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-secondary);
}

.product-title {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1.1;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.product-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.product-features {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.product-features h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  font-weight: var(--fw-semibold);
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.features-list li svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.product-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* Product Page Responsive */
@media (max-width: 992px) {
  .product-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .product-gallery {
    position: relative;
    top: 0;
  }
}

@media (max-width: 576px) {
  .product-title {
    font-size: 2.25rem;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .product-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
