/* --- Modern Design System Variables --- */
:root {
  --font-heading: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* LIGHT THEME VARIABLES (Default) */
  --bg-primary: #f8fafc;        /* Blueprint clean grey-blue canvas */
  --bg-secondary: #ffffff;      /* Pure white container cards */
  --bg-tertiary: #f1f5f9;       /* Light slate-blue highlight */
  
  --accent-primary: #92d050;    /* Vibrant 2Create Lime Green (Primary Accent) */
  --accent-secondary: #d97706;  /* Rich wood-grain timber amber (Secondary) */
  --accent-laser: #ef4444;      /* Glowing laser red */
  
  --text-primary: #0f172a;      /* Slate-900 high contrast dark text */
  --text-secondary: #475569;    /* Slate-600 secondary text */
  --text-muted: #94a3b8;        /* Slate-400 muted text */
  
  --card-bg: #ffffff;
  --card-border: rgba(148, 163, 184, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(148, 163, 184, 0.15);

  --scrollbar-thumb: #cbd5e1;
  --scrollbar-track: #f8fafc;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-lg: 0 16px 32px -4px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 20px rgba(146, 208, 80, 0.08);
  
  --border-radius: 16px;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* DARK MODE OVERRIDES */
body.dark-mode {
  --bg-primary: #090a0f;        /* Pitch charcoal carbon space */
  --bg-secondary: #10121a;      /* Sleek dark slate card base */
  --bg-tertiary: #161a24;       /* Deep metallic gray highlights */
  
  --accent-primary: #92d050;    /* Vibrant lime green for dark mode */
  --accent-secondary: #f59e0b;  /* Warm gold/amber for dark mode */
  --accent-laser: #ff453a;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --card-bg: rgba(16, 18, 26, 0.7);
  --card-border: rgba(255, 255, 255, 0.06);
  --glass-bg: rgba(9, 10, 15, 0.85);
  --glass-border: rgba(255, 255, 255, 0.05);

  --scrollbar-thumb: #1e293b;
  --scrollbar-track: #090a0f;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.3), 0 2px 6px -1px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 40px -4px rgba(0, 0, 0, 0.5), 0 6px 16px -2px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 25px rgba(146, 208, 80, 0.15);
}

/* --- Base Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  
  /* Blueprint Grid Pattern - Dotted layout in light mode */
  background-image: radial-gradient(var(--text-muted) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center;
}

body.dark-mode {
  /* Carbon Tech Grid Pattern - Crosshairs in dark mode */
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Custom Scrollbars */
.scroller, body {
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}

@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 5px;
    border: 2px solid var(--scrollbar-track);
  }
  ::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
  }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  font-weight: 400;
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

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

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

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Navigation */
header.app-header {
  position: fixed;
  top: 40px; /* Accounts for topbar height */
  left: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: var(--transition);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.04em;
}

.logo-text span {
  color: var(--accent-primary);
  position: relative;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav.main-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
}

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

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

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

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

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.15rem;
}

.theme-toggle-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
  transform: rotate(30deg) scale(1.08);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Top contact details bar */
.top-bar {
  background: var(--accent-primary);
  font-size: 0.85rem;
  height: 40px;
  display: flex;
  align-items: center;
  border-bottom: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.contact-info-list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.contact-info-list a {
  color: #0f172a !important; /* High contrast dark text on light-green bar */
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}

.contact-info-list a:hover {
  color: #ffffff !important;
}

.contact-info-list i {
  color: #0f172a !important;
}

.contact-info-list a:hover i {
  color: #ffffff !important;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: #0f172a !important;
  font-size: 1.15rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: #ffffff !important;
}

/* Main Content Wrapper */
main.app-main {
  margin-top: 120px; /* Accounts for top bar + header */
  min-height: calc(100vh - 120px - 320px);
}

/* Section Common Styles */
.app-section {
  padding: 6rem 0;
  display: none; /* Controlled by routing script */
}

.app-section.active {
  display: block;
}

/* --- View Transitions Support --- */
@supports (view-transition-name: none) {
  .app-section {
    display: none !important;
  }
  .app-section.active {
    display: block !important;
  }
}

/* --- Home Tab Styles --- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 6rem;
}

.hero-content h1 span {
  color: var(--accent-primary);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.product-image-box {
  width: 100%;
  max-width: 440px;
  border-radius: var(--border-radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  background: var(--bg-secondary);
  aspect-ratio: 1;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s;
}

.product-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-image-box:hover {
  transform: translateY(-8px) rotateY(-4deg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.product-image-box:hover img {
  transform: scale(1.06);
}

/* Material Showcase Cards */
.materials-section {
  margin-top: 5rem;
}

.materials-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.material-card {
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

/* Alternate Background Colors matching User Screenshot */
.card-green-bg {
  background: #f0fdf4; /* Soft Light Green */
}
body.dark-mode .card-green-bg {
  background: #062f21;
}

.card-grey-bg {
  background: #f1f5f9; /* Soft Light Grey */
}
body.dark-mode .card-grey-bg {
  background: #131722;
}

.card-white-bg {
  background: #ffffff; /* Solid White */
}
body.dark-mode .card-white-bg {
  background: #181b26;
}

/* Card image styling */
.material-card-img-wrapper {
  height: 200px;
  width: 100%;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--card-border);
}

.material-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.material-card-content {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.material-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: var(--transition);
  z-index: 2;
}

.material-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.material-card:hover::before {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.material-card:hover .material-card-img {
  transform: scale(1.08);
}

.material-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
  transition: var(--transition);
}

.material-card:hover .material-icon-wrapper {
  background: var(--accent-primary);
  color: #ffffff;
  transform: scale(1.08);
}

.material-title {
  font-size: 1.45rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

.material-subtitle {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 1rem;
}

.material-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  flex-grow: 1;
}

.material-badge-container {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.material-badge {
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Call to Action */
.cta-banner {
  margin-top: 7rem;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 5rem 3rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(5, 150, 105, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-banner h2 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent-primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 1rem 2.25rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
  font-size: 1.05rem;
}

.btn:hover {
  background: #047857;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-group {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ==========================================
   ELEGANT INSTAGRAM WIDGET GALLERY
   ========================================== */
.instagram-section {
  margin-top: 7rem;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.instagram-item {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
  cursor: pointer;
  background: var(--bg-tertiary);
  color: #ffffff;
}

.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  display: block;
}

.instagram-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 150, 105, 0.9); /* Transparent Green overlay */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transition: var(--transition);
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(4px);
}

.instagram-item:hover img {
  transform: scale(1.08);
}

.instagram-item:hover .instagram-overlay {
  opacity: 1;
}

.instagram-desc {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.instagram-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
}


/* ==========================================
   INTERACTIVE PROCESS DIAGRAM
   ========================================== */
.process-section {
  margin-top: 6rem;
  border-top: 1px solid var(--card-border);
  padding-top: 5rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.process-step {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 3rem 2rem 2.5rem 2rem;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.process-step:hover {
  transform: translateY(-6px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.process-num {
  position: absolute;
  top: -24px;
  left: 24px;
  width: 48px;
  height: 48px;
  background: var(--accent-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}

.process-title {
  font-size: 1.25rem;
  margin: 0.75rem 0;
  color: var(--text-primary);
  font-weight: 700;
}

.process-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}


/* --- About Tab Styles --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6rem;
  align-items: center;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Catalogs Tab Styles --- */
.catalogs-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 5rem auto;
}

.catalog-card-container {
  display: flex;
  justify-content: center;
}

.catalog-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  max-width: 850px;
  width: 100%;
  display: grid;
  grid-template-columns: 360px 1fr;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

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

.catalog-book-cover {
  width: 100%;
  height: 100%;
  background: var(--bg-tertiary);
  overflow: hidden;
  position: relative;
}

.catalog-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-details {
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.catalog-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.catalog-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-style: italic;
}

/* --- Contact & Forms Styles --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 5rem;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.info-item {
  display: flex;
  gap: 1.5rem;
}

.info-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--bg-tertiary);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.info-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.info-content p, .info-content a {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 0;
}

/* Form Styles with :user-valid and :user-invalid support */
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 3.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  letter-spacing: 0.08em;
}

.form-input, .form-textarea {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* Form Validation States */
.form-input:user-invalid, .form-textarea:user-invalid {
  border-color: var(--accent-laser);
  background-color: rgba(239, 68, 68, 0.02);
}

.form-input:user-valid, .form-textarea:user-valid {
  border-color: var(--accent-primary);
}

.error-message {
  display: none;
  font-size: 0.85rem;
  color: var(--accent-laser);
  margin-top: 0.5rem;
  align-items: center;
  gap: 0.4rem;
}

.form-group:has(.form-input:user-invalid) .error-message,
.form-group:has(.form-textarea:user-invalid) .error-message {
  display: flex;
}

/* Form fallbacks for legacy browsers */
.form-input.user-invalid-fallback, .form-textarea.user-invalid-fallback {
  border-color: var(--accent-laser);
  background-color: rgba(239, 68, 68, 0.02);
}

.form-input.user-valid-fallback, .form-textarea.user-valid-fallback {
  border-color: var(--accent-primary);
}

.form-group:has(.user-invalid-fallback) .error-message {
  display: flex;
}

.form-status {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.2);
  color: var(--accent-primary);
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--accent-laser);
}

/* --- Footer --- */
footer.app-footer {
  background: var(--bg-secondary);
  padding: 5rem 0 2.5rem 0;
  border-top: 1px solid var(--card-border);
  margin-top: 8rem;
  transition: background-color 0.4s ease;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo-desc p {
  font-size: 1rem;
  margin-top: 1rem;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

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

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 1rem;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--card-border);
  padding-top: 2.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}


/* ==========================================
   5. PREMIUM INTERACTIVE COORDINATES CURSOR
   ========================================== */
#laser-pointer {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent-laser);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--accent-laser), 0 0 20px var(--accent-laser);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  display: block;
}

#laser-pointer.active {
  background: var(--accent-primary);
  width: 14px;
  height: 14px;
  box-shadow: 0 0 12px var(--accent-primary), 0 0 25px var(--accent-primary);
}

.laser-crosshair {
  position: fixed;
  background: rgba(239, 68, 68, 0.08);
  pointer-events: none;
  z-index: 9999;
  transition: background-color 0.2s;
  display: block;
}

.laser-crosshair.h {
  left: 0;
  width: 100vw;
  height: 1px;
  transform: translateY(-50%);
}

.laser-crosshair.v {
  top: 0;
  height: 100vh;
  width: 1px;
  transform: translateX(-50%);
}

.laser-crosshair.active {
  background: rgba(5, 150, 105, 0.15);
}

/* Hide custom cursor trackers on touch screens (tablet/mobile) */
@media (hover: none) {
  #laser-pointer, .laser-crosshair {
    display: none !important;
  }
}


/* ==========================================
   6. SCROLL TIMELINE REVEAL ANIMATIONS
   ========================================== */
@media (prefers-reduced-motion: no-preference) {
  
  /* Native Scroll timeline (Chrome / Edge / Safari 18+) */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }
    
    .scroll-reveal {
      animation: fadeInUp both;
      animation-timeline: view();
      animation-range: entry 5% cover 30%;
    }
  }
}

/* Fallback transitions when native timelines are unsupported (Firefox, older Safari) */
.scroll-reveal {
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@supports (not (animation-timeline: view())) or (not (animation-range: entry)) {
  .scroll-reveal:not(.reveal-visible) {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
}

/* Card specific transition delay animations */
.materials-grid > *:nth-child(2) { transition-delay: 0.1s; }
.materials-grid > *:nth-child(3) { transition-delay: 0.2s; }
.materials-grid > *:nth-child(4) { transition-delay: 0.3s; }
.materials-grid > *:nth-child(5) { transition-delay: 0.4s; }
.materials-grid > *:nth-child(6) { transition-delay: 0.5s; }

.instagram-grid > *:nth-child(2) { transition-delay: 0.1s; }
.instagram-grid > *:nth-child(3) { transition-delay: 0.2s; }
.instagram-grid > *:nth-child(4) { transition-delay: 0.3s; }

.process-grid > *:nth-child(2) { transition-delay: 0.15s; }
.process-grid > *:nth-child(3) { transition-delay: 0.3s; }
.process-grid > *:nth-child(4) { transition-delay: 0.45s; }


/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .instagram-grid, .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  body {
    background-size: 20px 20px;
  }
  
  header.app-header {
    top: 36px; /* Align below thin mobile top bar */
  }
  
  main.app-main {
    margin-top: 116px; /* 36px top bar + 80px header height */
  }
  
  nav.main-nav {
    display: none; /* Controlled by mobile burger toggle */
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .top-bar {
    position: fixed;
    top: 0;
    height: 36px;
    padding: 0;
  }
  
  .top-bar-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    gap: 0;
  }
  
  .contact-info-list {
    flex-direction: row;
    gap: 1rem;
    align-items: center;
  }

  /* Hide textual descriptions for WhatsApp and Email on mobile to save space */
  .contact-info-list li:nth-child(2) span,
  .contact-info-list li:nth-child(3) span {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .catalog-card {
    grid-template-columns: 1fr;
  }
  
  .catalog-book-cover {
    height: 250px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .instagram-grid, .process-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    justify-content: center;
  }
  
  .form-card {
    padding: 2rem;
  }
}
