/* ==========================================================================
   Nisan Etymology & Meaning Landing Page - Core Stylesheet
   ========================================================================== */

/* Import Premium Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* CSS Variables for Premium Dark/Spring Gold Theme */
:root {
  --bg-dark: #060b0f;
  --bg-gradient: radial-gradient(circle at 50% 20%, #0c201a 0%, #060b0f 70%, #030608 100%);
  --color-primary: #e6b830; /* Golden Amber */
  --color-primary-rgb: 230, 184, 48;
  --color-accent: #10b981; /* Emerald Spring Green */
  --color-accent-rgb: 16, 185, 129;
  --color-text-bright: #f3f4f6;
  --color-text-standard: #d1d5db;
  --color-text-muted: #9ca3af;
  --color-card-bg: rgba(12, 23, 29, 0.65);
  --color-card-border: rgba(230, 184, 48, 0.12);
  --color-glow: rgba(230, 184, 48, 0.08);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', 'Inter', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1200px;
}

/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-standard);
  background: var(--bg-gradient);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Elegant Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(230, 184, 48, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* Atmosphere & Blur Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 1;
}
.orb-1 {
  top: 15%;
  left: 20%;
  width: 400px;
  height: 400px;
  background: rgba(230, 184, 48, 0.06);
}
.orb-2 {
  top: 45%;
  right: 15%;
  width: 450px;
  height: 450px;
  background: rgba(16, 185, 129, 0.05);
}
.orb-3 {
  bottom: 10%;
  left: 10%;
  width: 350px;
  height: 350px;
  background: rgba(230, 184, 48, 0.04);
}

/* Premium Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-text-bright);
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.lang-card-arabic strong {
  color: var(--color-accent);
}

.lang-card-japanese strong {
  color: #ef4444;
}

.lang-card-turkic strong {
  color: var(--color-primary);
}

.lang-card-sumerian strong {
  color: #06b6d4;
}

.lang-card-akkadian strong {
  color: #f97316;
}

.section-tag {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  display: inline-block;
  border-bottom: 2px solid rgba(230, 184, 48, 0.3);
  padding-bottom: 2px;
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 3.5rem;
  font-weight: 300;
}

/* --- Hero Section --- */
.hero {
  min-height: 95vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to left, rgba(6, 11, 15, 0.2), var(--bg-dark)), 
              url('assets/nisan_spring_dawn.png') no-repeat center right;
  background-size: cover;
  opacity: 0.45;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0));
  z-index: 1;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title span {
  display: block;
  font-size: 1.5rem;
  font-family: var(--font-sans);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--color-text-standard);
  margin-bottom: 2.5rem;
  max-width: 540px;
  font-weight: 300;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-badge {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-text-bright);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.hero-badge i {
  color: var(--color-primary);
}

.hero-badge:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(230, 184, 48, 0.15);
  transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  z-index: 3;
}

.scroll-indicator .mouse {
  width: 22px;
  height: 38px;
  border: 2px solid var(--color-text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .wheel {
  width: 4px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0% { top: 6px; opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

/* --- Section Layout --- */
.section {
  padding: 8rem 0;
  position: relative;
}

/* --- Interactive Timeline Section --- */
.timeline-section {
  background: rgba(4, 8, 11, 0.4);
}

.timeline-wrapper {
  position: relative;
  margin-top: 4rem;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, 
    rgba(230, 184, 48, 0.05) 0%, 
    rgba(230, 184, 48, 0.4) 15%, 
    rgba(16, 185, 129, 0.4) 85%, 
    rgba(16, 185, 129, 0.05) 100%);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-item {
  display: flex;
  margin-bottom: 6rem;
  position: relative;
  z-index: 2;
  width: 100%;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-content-wrapper {
  width: 50%;
  padding: 0 3rem;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content-wrapper {
  text-align: right;
  margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content-wrapper {
  text-align: left;
  margin-right: auto;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--color-primary);
  z-index: 3;
  box-shadow: 0 0 10px rgba(230, 184, 48, 0.4);
  transition: var(--transition-smooth);
}

.timeline-item:nth-child(even) .timeline-dot {
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.timeline-item:hover .timeline-dot {
  transform: translate(-50%, -50%) scale(1.4);
  background: var(--color-primary);
}

.timeline-item:nth-child(even):hover .timeline-dot {
  background: var(--color-accent);
}

.timeline-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 16px;
  padding: 2.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  position: relative;
  display: inline-block;
  text-align: left;
  max-width: 480px;
}

.timeline-item:nth-child(odd) .timeline-card {
  box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.2);
}

.timeline-item:nth-child(even) .timeline-card {
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(16, 185, 129, 0.12);
}

.timeline-card:hover {
  transform: translateY(-5px);
  border-color: rgba(230, 184, 48, 0.35);
  box-shadow: 0 15px 40px rgba(230, 184, 48, 0.08);
}

.timeline-item:nth-child(even) .timeline-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.08);
}

.timeline-era {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.timeline-item:nth-child(even) .timeline-era {
  color: var(--color-accent);
}

.timeline-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.timeline-card h3 span {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-weight: 300;
  margin-left: 0.5rem;
}

.timeline-card p {
  color: var(--color-text-standard);
  font-size: 0.95rem;
  line-height: 1.6;
}

.timeline-meaning-badge {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  background: rgba(230, 184, 48, 0.06);
  border: 1px solid rgba(230, 184, 48, 0.15);
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.timeline-item:nth-child(even) .timeline-meaning-badge {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  color: var(--color-accent);
}

/* --- Multi-Language Cards Section --- */
.languages-section {
  position: relative;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  background: rgba(12, 23, 29, 0.4);
  padding: 0.5rem;
  border-radius: 50px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  padding: 0.75rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: var(--color-text-bright);
}

.tab-btn.active {
  background: var(--color-primary);
  color: var(--bg-dark);
  box-shadow: 0 5px 15px rgba(230, 184, 48, 0.3);
}

.tab-btn[data-tab="arabic"].active {
  background: var(--color-accent);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.tab-btn[data-tab="japanese"].active {
  background: #ef4444; /* Crimson accent for Japanese */
  color: #fff;
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.tab-btn[data-tab="sumerian"].active {
  background: #06b6d4; /* Teal accent for Sumerian */
  color: var(--bg-dark);
  box-shadow: 0 5px 15px rgba(6, 182, 212, 0.3);
}

.tab-btn[data-tab="akkadian"].active {
  background: #f97316; /* Bronze/Orange accent for Akkadian */
  color: var(--bg-dark);
  box-shadow: 0 5px 15px rgba(249, 115, 22, 0.3);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.lang-card-left {
  position: relative;
}

.lang-glance-box {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.lang-card-arabic .lang-glance-box {
  border-color: rgba(16, 185, 129, 0.15);
}

.lang-card-japanese .lang-glance-box {
  border-color: rgba(239, 68, 68, 0.15);
}

.lang-card-sumerian .lang-glance-box {
  border-color: rgba(6, 182, 212, 0.15);
}

.lang-card-akkadian .lang-glance-box {
  border-color: rgba(249, 115, 22, 0.15);
}

.lang-native-word {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-family: var(--font-serif);
  text-shadow: 0 0 40px rgba(230, 184, 48, 0.25);
}

.lang-card-arabic .lang-native-word {
  color: var(--color-accent);
  text-shadow: 0 0 40px rgba(16, 185, 129, 0.25);
  font-size: 5.5rem;
}

.lang-card-japanese .lang-native-word {
  color: #ef4444;
  text-shadow: 0 0 40px rgba(239, 68, 68, 0.25);
  font-size: 5rem;
}

.lang-card-sumerian .lang-native-word {
  color: #06b6d4;
  text-shadow: 0 0 40px rgba(6, 182, 212, 0.25);
  font-size: 5rem;
}

.lang-card-akkadian .lang-native-word {
  color: #f97316;
  text-shadow: 0 0 40px rgba(249, 115, 22, 0.25);
  font-size: 5rem;
}

.lang-romanized {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.lang-literal {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.lang-details h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.lang-details h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 50px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.lang-card-arabic .lang-details h3::after {
  background-color: var(--color-accent);
}

.lang-card-japanese .lang-details h3::after {
  background-color: #ef4444;
}

.lang-card-sumerian .lang-details h3::after {
  background-color: #06b6d4;
}

.lang-card-akkadian .lang-details h3::after {
  background-color: #f97316;
}

.lang-details p {
  font-size: 1.05rem;
  color: var(--color-text-standard);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.lang-insights-list {
  list-style: none;
}

.lang-insights-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--color-text-standard);
}

.lang-insights-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 14px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  border-radius: 1px;
}

.lang-card-arabic .lang-insights-list li::before {
  background: linear-gradient(90deg, var(--color-accent), transparent);
}

.lang-card-japanese .lang-insights-list li::before {
  background: linear-gradient(90deg, #ef4444, transparent);
}

.lang-card-turkic .lang-insights-list li::before {
  background: linear-gradient(90deg, var(--color-primary), transparent);
}

.lang-card-sumerian .lang-insights-list li::before {
  background: linear-gradient(90deg, #06b6d4, transparent);
}

.lang-card-akkadian .lang-insights-list li::before {
  background: linear-gradient(90deg, #f97316, transparent);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0;
  background: #04080b;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-text-bright);
  letter-spacing: 0.02em;
}

.footer-logo span {
  color: var(--color-primary);
}

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

.footer-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

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

.copyright {
  width: 100%;
  text-align: center;
  margin-top: 3rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 2rem;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .lang-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-badges {
    justify-content: center;
  }
  
  .hero-bg {
    width: 100%;
    opacity: 0.2;
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 40%, rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 40%, rgba(0,0,0,0));
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }
  
  .timeline-line {
    left: 2rem;
  }
  
  .timeline-item {
    flex-direction: row !important;
    margin-bottom: 4rem;
  }
  
  .timeline-content-wrapper {
    width: calc(100% - 2rem);
    padding-left: 3.5rem;
    padding-right: 1rem;
    text-align: left !important;
  }
  
  .timeline-dot {
    left: 2rem;
  }
  
  .timeline-card {
    max-width: 100%;
  }
  
  .tabs-nav {
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 0.25rem;
  }
  
  .tab-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
  }
  
  .lang-glance-box {
    padding: 2rem;
  }
  
  .lang-native-word {
    font-size: 4rem;
  }
}

/* --- Floating Frosted Glass Language Switcher & Transitions --- */
.lang-switcher {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(12, 23, 29, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.lang-switch-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.lang-switch-btn:hover {
  color: var(--color-text-bright);
}

.lang-switch-btn.active {
  color: var(--color-primary);
  text-shadow: 0 0 8px rgba(230, 184, 48, 0.4);
}

.lang-divider {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
}

/* Cinematic Language Switching Transitions */
#page-wrapper {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.lang-fade {
  opacity: 0 !important;
  transform: translateY(12px) !important;
}

@media (max-width: 768px) {
  .lang-switcher {
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
  }
}
