/* Custom Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* ================================================
     LIGHT MODE COLOR SYSTEM — Narvs Pharma
     PRIMARY:   Bold Red     (logo red arc)
     SECONDARY: Golden Yellow (logo sun rays)
     ACCENT:    Subtle Blue  (logo PHARMA text)
  ================================================ */

  /* Backgrounds — clean white surfaces */
  --bg-primary:   #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary:  #f3f4f6;

  /* Primary — Red */
  --primary:          #dc2626;
  --primary-hover:    #b91c1c;
  --primary-glow:     rgba(220, 38, 38, 0.08);
  --primary-border:   rgba(220, 38, 38, 0.25);

  /* Secondary — Golden Yellow */
  --secondary:        #d97706;
  --secondary-hover:  #b45309;
  --secondary-glow:   rgba(217, 119, 6, 0.08);
  --secondary-border: rgba(217, 119, 6, 0.25);

  /* Accent — Subtle Blue */
  --accent:           #2563eb;
  --accent-glow:      rgba(37, 99, 235, 0.08);
  --accent-border:    rgba(37, 99, 235, 0.2);

  /* Text */
  --text-primary:   #111827;
  --text-secondary: #4b5563;
  --text-muted:     #9ca3af;

  /* Cards & Glass */
  --glass-bg:           rgba(255, 255, 255, 0.85);
  --glass-border:       rgba(0, 0, 0, 0.07);
  --glass-border-hover: rgba(220, 38, 38, 0.25);
  --card-shadow:        0 2px 16px rgba(0, 0, 0, 0.07);
  --card-shadow-hover:  0 8px 32px rgba(220, 38, 38, 0.12);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ====================================
   Reset & Global
==================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 5% 15%, rgba(220, 38, 38, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 95% 85%, rgba(217, 119, 6, 0.04) 0%, transparent 40%);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

button, input, textarea {
  font-family: inherit;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-tertiary); }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ====================================
   Layout Utilities
==================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
  border-radius: 12px;
}

section {
  padding: 100px 0;
  position: relative;
}

/* ====================================
   Section Helpers
==================================== */
.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary);
  background: var(--secondary-glow);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
  border: 1px solid var(--secondary-border);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: unset;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 48px;
}

/* Inner page hero (About, Products, Contact, Quality) */
.page-hero {
  padding-top: 160px;
  padding-bottom: 72px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--glass-border);
  text-align: center;
}

.page-hero .section-title {
  font-size: 3rem;
}

.page-hero .section-subtitle {
  margin-left: auto;
  margin-right: auto;
  font-size: 1.15rem;
}


/* ====================================
   Header & Navigation
==================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.09);
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
}

.logo-text span {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}

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

.mobile-login {
  display: none;
}

.nav-login {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

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

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  transition: var(--transition-smooth);
}

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

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

.nav-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 6px 0;
  transition: var(--transition-smooth);
}

/* ====================================
   Hero Section
==================================== */
.hero {
  height: 100vh;
  min-height: 800px;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(160deg, #fff8f8 0%, #ffffff 50%, #fffbf0 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-content { z-index: 10; }

.hero-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: unset;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.5);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.btn-secondary:hover {
  background: var(--primary-glow);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.18);
}

.hero-stats { display: flex; gap: 40px; }

.stat-item h3 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ====================================
   Hero Sphere Visual
==================================== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sphere-container {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
  position: relative;
  animation: floatSphere 8s ease-in-out infinite alternate;
}

.sphere-core {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, rgba(217, 119, 6, 0.12) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(220, 38, 38, 0.15);
  position: absolute;
  top: 50px;
  left: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 16px 48px rgba(220, 38, 38, 0.12),
    inset 0 0 40px rgba(255, 255, 255, 0.5);
}

.sphere-icon {
  font-size: 4.5rem;
  filter: drop-shadow(0 4px 12px rgba(220, 38, 38, 0.35));
}

.orbit-ring {
  border: 1.5px dashed rgba(217, 119, 6, 0.3);
  border-radius: 50%;
  position: absolute;
}

.orbit-1 {
  width: 340px; height: 340px;
  top: 20px; left: 20px;
  animation: rotateClockwise 25s linear infinite;
}

.orbit-2 {
  width: 440px; height: 440px;
  top: -30px; left: -30px;
  border-color: rgba(220, 38, 38, 0.15);
  animation: rotateCounterClockwise 35s linear infinite;
}

.card-float {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(220, 38, 38, 0.1);
  padding: 16px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: absolute;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  animation: floatSphere 6s ease-in-out infinite alternate;
}

.card-float.cf-1 { top: 20%; left: -40px; animation-delay: 0.5s; }
.card-float.cf-2 { bottom: 20%; right: -30px; animation-delay: 1.2s; }

.cf-icon {
  width: 36px;
  height: 36px;
  background: var(--secondary-glow);
  color: var(--secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid var(--secondary-border);
}

.cf-info h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cf-info p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ====================================
   Animations
==================================== */
@keyframes floatSphere {
  0%   { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes rotateClockwise {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes rotateCounterClockwise {
  0%   { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

/* ====================================
   About Section
==================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about-visual { position: relative; }

.about-img-frame {
  width: 100%;
  border-radius: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  padding: 28px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.about-feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
  box-shadow: var(--card-shadow);
}

.about-feature-item:hover {
  background: #fff5f5;
  border-color: var(--primary-border);
  transform: translateX(8px);
  box-shadow: var(--card-shadow-hover);
}

.afi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 1px solid var(--primary-border);
}

.afi-info h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.afi-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ====================================
   Products Catalog Tabs
==================================== */
.product-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--bg-secondary);
  border: 1.5px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 10px 24px;
  border-radius: 100px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.tab-btn:hover {
  background: var(--primary-glow);
  color: var(--primary);
  border-color: var(--primary-border);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

/* ====================================
   Products Grid Cards
==================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-primary);
  border: 1.5px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  transition: var(--transition-smooth);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-border);
  box-shadow: var(--card-shadow-hover);
}

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

.product-badge {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary);
  background: var(--secondary-glow);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--secondary-border);
}

.product-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
  border: 1px solid var(--glass-border);
}

.product-card:hover .product-icon-wrap {
  background: var(--primary-glow);
  border-color: var(--primary-border);
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.product-formulation {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

.product-status {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
}

.product-btn {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-btn:hover { color: var(--primary-hover); }

/* ====================================
   Quality Assurance Cards
==================================== */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.qa-card {
  background: var(--bg-primary);
  border: 1.5px solid var(--glass-border);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: var(--card-shadow);
}

.qa-card:hover {
  background: #fff5f5;
  border-color: var(--primary-border);
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.qa-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--secondary-glow);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 24px auto;
  border: 1.5px solid var(--secondary-border);
}

.qa-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.qa-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ====================================
   Contact Section
==================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--bg-primary);
  border: 1.5px solid var(--glass-border);
  transition: var(--transition-smooth);
  box-shadow: var(--card-shadow);
}

.contact-card:hover {
  border-color: var(--primary-border);
  background: #fff5f5;
  box-shadow: var(--card-shadow-hover);
}

.cc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid var(--primary-border);
}

.cc-details h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.cc-details p, .cc-details a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

.contact-form-container {
  background: var(--bg-secondary);
  border: 1.5px solid var(--glass-border);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  background: var(--bg-primary);
  border: 1.5px solid var(--glass-border);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-control::placeholder { color: var(--text-muted); }

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

/* ====================================
   Footer
==================================== */
footer {
  background: #1f0a0a;
  border-top: 3px solid var(--primary);
  padding: 60px 0 30px 0;
  color: #f9fafb;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-about p {
  color: #d1d5db;
  margin: 16px 0 24px 0;
  max-width: 320px;
  font-size: 0.95rem;
}

.footer-socials { display: flex; gap: 16px; }

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.45);
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--secondary);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #9ca3af;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #6b7280;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ====================================
   Scroll Reveal
==================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ====================================
   Responsive – 1024px (Tablets Landscape)
==================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.2rem; }
  .hero-desc  { font-size: 1.05rem; }

  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-visual { order: 2; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-about { grid-column: 1 / -1; }

  .sphere-container { width: 320px; height: 320px; }
  .sphere-core      { width: 240px; height: 240px; top: 40px; left: 40px; }
  .orbit-1          { width: 300px; height: 300px; top: 10px; left: 10px; }
  .orbit-2          { width: 380px; height: 380px; top: -30px; left: -30px; }
}

/* ====================================
   Responsive – 768px (Tablets Portrait)
==================================== */
@media (max-width: 768px) {
  section { padding: 64px 0; }

  /* Navigation */
  .nav-container { height: 68px; }

  .mobile-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 68px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 68px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 32px 24px;
    gap: 4px;
    transition: var(--transition-smooth);
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
  }

  .nav-links li { width: 100%; text-align: left; }

  .mobile-login { display: block; margin-top: 12px; border-top: 1px solid var(--glass-border); padding-top: 12px; }

  .nav-links a {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: none;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
  }

  .nav-links a:hover, .nav-links a.active {
    background: var(--bg-tertiary);
    color: var(--primary);
  }

  .nav-links a::after { display: none; }

  .nav-links.open { left: 0; }
  .nav-cta, .nav-login { display: none; }

  /* Hero */
  .hero {
    height: auto;
    min-height: 100svh;
    padding: 100px 0 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-title   { font-size: 2.8rem; }
  .hero-desc    { font-size: 1rem; max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
  .hero-stats   { justify-content: center; gap: 28px; flex-wrap: wrap; }
  .hero-visual  { display: flex; justify-content: center; }

  /* Sphere */
  .sphere-container { width: 260px; height: 260px; }
  .sphere-core      { width: 190px; height: 190px; top: 35px; left: 35px; }
  .sphere-icon      { font-size: 3.5rem; }
  .orbit-1          { width: 240px; height: 240px; top: 10px; left: 10px; }
  .orbit-2          { width: 300px; height: 300px; top: -20px; left: -20px; }

  /* Section headers */
  .section-title    { font-size: 2.1rem; }
  .section-subtitle { max-width: 100%; font-size: 0.97rem; }

  /* Page hero */
  .page-hero { padding-top: 108px; padding-bottom: 52px; }
  .page-hero .section-title { font-size: 2.2rem; }

  /* About / Quality grids */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-visual { order: 2; }

  /* Product tabs */
  .product-tabs {
    gap: 8px;
    margin-bottom: 32px;
  }
  .tab-btn {
    padding: 8px 18px;
    font-size: 0.82rem;
  }

  /* Products grid */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-about p { max-width: 100%; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* QA grid */
  .qa-grid { grid-template-columns: 1fr; }
}

/* ====================================
   Responsive – 600px (Large Phones)
==================================== */
@media (max-width: 600px) {
  .container { padding: 0 16px; }

  section { padding: 52px 0; }

  /* Hero */
  .hero { padding: 88px 0 52px; }
  .hero-title { font-size: 2.3rem; line-height: 1.15; }
  .hero-desc  { font-size: 0.95rem; }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .hero-buttons .btn { width: 100%; max-width: 320px; }

  .hero-stats { gap: 20px; }
  .stat-item h3 { font-size: 1.8rem; }

  /* Section headers */
  .section-title    { font-size: 1.85rem; }
  .section-subtitle { font-size: 0.92rem; margin-bottom: 32px; }
  .section-tag      { font-size: 0.76rem; padding: 5px 14px; }

  /* Page hero */
  .page-hero { padding-top: 92px; padding-bottom: 44px; }
  .page-hero .section-title { font-size: 1.9rem; }

  /* Products */
  .products-grid { grid-template-columns: 1fr; }
  .product-card  { padding: 20px; }

  /* About feature items */
  .about-feature-item { gap: 14px; padding: 16px; }
  .afi-icon { width: 40px; height: 40px; font-size: 1.2rem; }

  /* Contact cards */
  .contact-card { padding: 16px 18px; }
  .cc-icon { width: 40px; height: 40px; font-size: 1.1rem; }

  /* Contact form */
  .contact-form-container { padding: 24px 20px; }

  /* Footer */
  .footer-grid  { gap: 24px; }
  .footer-socials { gap: 12px; }
}

/* ====================================
   Responsive – 480px (Small Phones)
==================================== */
@media (max-width: 480px) {
  /* Floating hero cards — too cramped */
  .card-float { display: none !important; }

  /* Hero */
  .hero-title    { font-size: 2rem; }
  .section-title { font-size: 1.7rem; }

  /* Page hero */
  .page-hero { padding-top: 80px; padding-bottom: 36px; }
  .page-hero .section-title { font-size: 1.65rem; }

  /* Nav */
  .nav-container { height: 60px; }
  .nav-links     { top: 60px; height: calc(100vh - 60px); }
  .logo-text     { font-size: 1.15rem; }

  /* Footer */
  .footer-bottom  { flex-direction: column; text-align: center; font-size: 0.8rem; }
  .footer-links a { font-size: 0.88rem; }
}

