/* NHJ Website - Premium Light Theme */
/* Sophisticated & Classy Design System */

/* ===== Design Tokens ===== */
:root {
  /* NHJ Brand Colors */
  --nhj-gold: #C4A366;
  --nhj-gold-light: #D4B376;
  --nhj-gold-dark: #A48346;
  --nhj-charcoal: #1A1F24;
  --nhj-charcoal-light: #2A3035;
  --nhj-cream: #F8F6F0;
  --nhj-cream-dark: #EDE9DF;
  --nhj-white: #FFFFFF;
  
  /* Light Theme Base */
  --color-bg-primary: #FAFAF8;
  --color-bg-secondary: #F5F4F0;
  --color-bg-tertiary: #FFFFFF;
  --color-text-primary: #1A1F24;
  --color-text-secondary: #4A4F54;
  --color-text-muted: #7A7F84;
  --color-border: rgba(26, 31, 36, 0.1);
  --color-border-light: rgba(26, 31, 36, 0.05);
  
  /* Accent Color */
  --color-accent: var(--nhj-gold);
  --color-accent-light: var(--nhj-gold-light);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.1);
  --shadow-gold: 0 8px 30px rgba(196, 163, 102, 0.2);
  
  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #C4A366 0%, #D4B376 100%);
  --gradient-subtle: linear-gradient(180deg, #FAFAF8 0%, #F5F4F0 100%);
  --gradient-hero: linear-gradient(135deg, #FAFAF8 0%, #F0EDE5 50%, #FAFAF8 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Background and color set by Tailwind classes */
}

body[dir="rtl"] {
  font-family: 'Cairo', 'Montserrat', sans-serif;
}

/* ===== Typography ===== */
.font-display {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

/* ===== Hero Section Light Background ===== */
.gradient-mesh {
  background: var(--gradient-hero);
  position: relative;
}

.gradient-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 50% at 10% 20%, rgba(196, 163, 102, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(196, 163, 102, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* ===== Subtle Grid Background ===== */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(196, 163, 102, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 163, 102, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, black 40%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, black 40%, transparent 70%);
}

/* ===== Premium Cards ===== */
.glass-card {
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border-light);
  border-radius: 2rem;
}

/* ===== Elegant Glow Effects ===== */
.glow {
  box-shadow: var(--shadow-gold);
}

.glow-text {
  text-shadow: 0 0 40px rgba(196, 163, 102, 0.3);
}

/* ===== Gradient Text ===== */
.gradient-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Premium Buttons ===== */
.btn-primary {
  background: var(--gradient-gold);
  color: white;
  padding: 1rem 2.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  box-shadow: var(--shadow-md), 0 4px 20px rgba(196, 163, 102, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 8px 30px rgba(196, 163, 102, 0.35);
}

.btn-secondary {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
  padding: 1rem 2.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

/* ===== Animations ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(196, 163, 102, 0.2);
  }
  50% { 
    box-shadow: 0 0 40px rgba(196, 163, 102, 0.4);
  }
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* ===== Staggered Delays ===== */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* ===== Reveal Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  animation: reveal-fallback 0.1s ease-out 2s forwards;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  animation: reveal-fallback 0.1s ease-out 2s forwards;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
  animation: none;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  animation: reveal-fallback 0.1s ease-out 2s forwards;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
  animation: none;
}

/* Fallback animation if JS doesn't add active class */
@keyframes reveal-fallback {
  to {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}

/* ===== Navigation - Light Theme ===== */
.nav-blur {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(250, 250, 248, 0.95);
  border-bottom: 1px solid var(--color-border-light);
}

/* ===== Product Cards ===== */
.product-card {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

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

.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(196, 163, 102, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

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

.product-card a {
  pointer-events: auto;
}

/* ===== Elegant Divider ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

/* ===== Stats ===== */
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Icon Container ===== */
.icon-container {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(196, 163, 102, 0.15), rgba(196, 163, 102, 0.08));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-accent);
}

/* ===== Feature Icon ===== */
.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-gold);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(196, 163, 102, 0.3);
}

/* ===== Form Styles - Light Theme ===== */
.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  color: var(--color-text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(196, 163, 102, 0.1);
}

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

/* ===== Scrollbar - Light Theme ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* ===== RTL Support ===== */
[dir="rtl"] .reveal-left {
  transform: translateX(40px);
}

[dir="rtl"] .reveal-right {
  transform: translateX(-40px);
}

[dir="rtl"] .reveal-left.active,
[dir="rtl"] .reveal-right.active {
  transform: translateX(0);
}

/* ===== Decorative Orbs - Light Theme ===== */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.orb-gold, .orb-blue {
  background: rgba(196, 163, 102, 0.15);
}

.orb-cyan, .orb-cream {
  background: rgba(196, 163, 102, 0.1);
}

/* ===== Text Selection ===== */
::selection {
  background: var(--color-accent);
  color: white;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .stat-number {
    font-size: 2rem;
  }
  
  .icon-container {
    width: 48px;
    height: 48px;
  }
  
  .btn-primary, .btn-secondary {
    padding: 0.875rem 1.75rem;
  }
}

/* ===== Loading Skeleton ===== */
.skeleton {
  background: linear-gradient(90deg, 
    var(--color-bg-secondary) 25%, 
    var(--color-bg-tertiary) 50%, 
    var(--color-bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

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

/* ===== Badge Styles ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(196, 163, 102, 0.1);
  color: var(--nhj-gold-dark);
  border: 1px solid rgba(196, 163, 102, 0.2);
}

/* ===== Data Animations ===== */
@keyframes data-stream {
  0% { transform: translateY(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

.data-stream-line {
  position: absolute;
  width: 2px;
  height: 30px;
  background: linear-gradient(180deg, transparent, var(--color-accent), transparent);
  animation: data-stream 2s linear infinite;
}

@keyframes node-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
}

.network-node {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: node-pulse 2s ease-in-out infinite;
}

/* ===== PRODUCT-SPECIFIC THEMES ===== */

/* --- SKNI Light Theme --- */
.theme-skni {
  --color-accent: #00A4E4;
  --color-accent-light: #33B5E9;
}

.theme-skni .gradient-text,
.theme-skni .stat-number {
  background: linear-gradient(135deg, #00A4E4 0%, #33B5E9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.theme-skni .btn-primary {
  background: linear-gradient(135deg, #00A4E4 0%, #33B5E9 100%);
  box-shadow: var(--shadow-md), 0 4px 20px rgba(0, 164, 228, 0.25);
}

.theme-skni .btn-primary:hover {
  box-shadow: var(--shadow-lg), 0 8px 30px rgba(0, 164, 228, 0.35);
}

.theme-skni .feature-icon {
  background: linear-gradient(135deg, #00A4E4 0%, #33B5E9 100%);
  box-shadow: 0 4px 15px rgba(0, 164, 228, 0.3);
}

.theme-skni .badge {
  background: rgba(0, 164, 228, 0.1);
  color: #0082B8;
  border-color: rgba(0, 164, 228, 0.2);
}

/* --- ATHAR Light Theme --- */
.theme-athar {
  --color-accent: #00CED1;
  --color-accent-light: #40E0D0;
}

.theme-athar .gradient-text,
.theme-athar .stat-number {
  background: linear-gradient(135deg, #00CED1 0%, #40E0D0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.theme-athar .btn-primary {
  background: linear-gradient(135deg, #00CED1 0%, #40E0D0 100%);
  box-shadow: var(--shadow-md), 0 4px 20px rgba(0, 206, 209, 0.25);
}

.theme-athar .btn-primary:hover {
  box-shadow: var(--shadow-lg), 0 8px 30px rgba(0, 206, 209, 0.35);
}

.theme-athar .feature-icon {
  background: linear-gradient(135deg, #00CED1 0%, #40E0D0 100%);
  box-shadow: 0 4px 15px rgba(0, 206, 209, 0.3);
}

.theme-athar .badge {
  background: rgba(0, 206, 209, 0.1);
  color: #008B8B;
  border-color: rgba(0, 206, 209, 0.2);
}

/* --- NSHRA Light Theme --- */
.theme-nshra {
  --color-accent: #22C55E;
  --color-accent-light: #4ADE80;
}

.theme-nshra .gradient-text,
.theme-nshra .stat-number {
  background: linear-gradient(135deg, #22C55E 0%, #4ADE80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.theme-nshra .btn-primary {
  background: linear-gradient(135deg, #22C55E 0%, #4ADE80 100%);
  box-shadow: var(--shadow-md), 0 4px 20px rgba(34, 197, 94, 0.25);
}

.theme-nshra .btn-primary:hover {
  box-shadow: var(--shadow-lg), 0 8px 30px rgba(34, 197, 94, 0.35);
}

.theme-nshra .feature-icon {
  background: linear-gradient(135deg, #22C55E 0%, #4ADE80 100%);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.theme-nshra .badge {
  background: rgba(34, 197, 94, 0.1);
  color: #16A34A;
  border-color: rgba(34, 197, 94, 0.2);
}

/* ===== Elegant Section Backgrounds ===== */
.section-light {
  background: var(--color-bg-primary);
}

.section-cream {
  background: var(--color-bg-secondary);
}

.section-white {
  background: var(--color-bg-tertiary);
}

/* ===== Premium Hero Visual ===== */
.hero-visual {
  position: relative;
  background: linear-gradient(135deg, rgba(196, 163, 102, 0.05) 0%, rgba(240, 234, 214, 0.1) 100%);
  border-radius: 2rem;
  padding: 2rem;
  border: 1px solid var(--color-border-light);
}
