/* ==========================================================================
   صنایع و بازرگانی «جهان فولاد آریا» (Aria Jahan Steel)
   طراحی و معماری وب‌سایت: آراد وفایی (aradvafaee.ir)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
  --font-sans: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Theme: Dark Industrial Titanium (Default) */
  --bg-body: #07090e;
  --bg-surface: #0e131f;
  --bg-surface-elevated: #151c2d;
  --bg-card: rgba(19, 26, 42, 0.75);
  --bg-glass: rgba(14, 19, 31, 0.8);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(249, 115, 22, 0.45);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #64748b;
  
  /* Brand Accents - Molten Steel & Industrial Flare */
  --accent-primary: #f97316;       /* Hot Molten Orange */
  --accent-secondary: #fb923c;     /* Steel Amber */
  --accent-gold: #eab308;          /* Industrial Gold */
  --accent-cyan: #06b6d4;          /* Electric Arc Cyan */
  --accent-emerald: #10b981;       /* Quality Certificate Emerald */
  
  --shadow-glow: 0 0 25px rgba(249, 115, 22, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-glass: rgba(255, 255, 255, 0.88);
  
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-hover: rgba(249, 115, 22, 0.5);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-sub: #64748b;
  
  --shadow-glow: 0 0 20px rgba(249, 115, 22, 0.2);
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.07);
}

/* Base Configuration */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
  border: 2px solid var(--bg-body);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

/* Steel Glow Effects */
.molten-glow {
  position: relative;
}
.molten-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.6), transparent 50%, rgba(234, 179, 8, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.molten-gradient-text {
  background: linear-gradient(135deg, #ffffff 15%, #fdba74 65%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .molten-gradient-text {
  background: linear-gradient(135deg, #0f172a 15%, #ea580c 70%, #c2410c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #fef08a, #eab308, #ca8a04);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Smooth Interactive Keyframes */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.3deg); }
}
.animate-float {
  animation: floatSlow 6s ease-in-out infinite;
}

@keyframes pulseSubtle {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.04); }
}
.animate-pulse-glow {
  animation: pulseSubtle 4s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.shimmer-effect {
  position: relative;
  overflow: hidden;
}
.shimmer-effect::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(100%);
  animation: shimmer 2.5s infinite;
}

/* Ticker Scroll Animation */
@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}
.ticker-content {
  display: inline-flex;
  white-space: nowrap;
  animation: tickerSlide 40s linear infinite;
}
.ticker-content:hover {
  animation-play-state: paused;
}

/* Form inputs & buttons */
.steel-input {
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  transition: all 0.2s ease;
}
[data-theme="light"] .steel-input {
  background-color: #f8fafc;
}
.steel-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

/* Button styles */
.btn-molten {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff !important;
  position: relative;
  overflow: hidden;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.35);
}
.btn-molten:hover {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  box-shadow: 0 6px 25px rgba(249, 115, 22, 0.55);
  transform: translateY(-2px);
}
.btn-molten:active {
  transform: translateY(0);
}

/* Tab Active Styles */
.tab-btn {
  position: relative;
  transition: all 0.25s ease;
}
.tab-btn.active {
  color: #f97316;
  border-bottom: 2px solid #f97316;
}
[data-theme="light"] .tab-btn.active {
  color: #ea580c;
  border-bottom: 2px solid #ea580c;
}

/* Notification Toast */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: #0f172a;
  color: #fff;
  border: 1px solid var(--accent-primary);
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Grid Pattern Background */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}
[data-theme="light"] .bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

/* Modal animation */
.modal-backdrop {
  background: rgba(4, 7, 14, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Badge pulse */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
}

/* Developer card glow in footer */
.developer-card {
  position: relative;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(6, 182, 212, 0.06), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 12px 30px -10px rgba(16, 185, 129, 0.15);
}
.developer-card:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 16px 36px -8px rgba(16, 185, 129, 0.25);
}
