/* ==========================================================================
   Globular Requirement Suppliers OÜ - High-Tech Design System & Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Dark Deep-Tech Palette (Default) */
  --bg-deep: #060913;
  --bg-surface: #0c1220;
  --bg-card: rgba(16, 24, 43, 0.75);
  --bg-card-hover: rgba(22, 34, 60, 0.9);
  --bg-input: #10192e;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-cyan: rgba(0, 242, 255, 0.25);
  --border-cyan-glow: rgba(0, 242, 255, 0.6);
  --border-blue: rgba(37, 99, 235, 0.3);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-cyan: #00f2ff;
  --text-blue: #3b82f6;

  --accent-cyan: #00f2ff;
  --accent-cyan-glow: rgba(0, 242, 255, 0.35);
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-gradient: linear-gradient(135deg, #00f2ff 0%, #2563eb 100%);
  --accent-gradient-hover: linear-gradient(135deg, #38f6ff 0%, #3b82f6 100%);

  --status-success: #10b981;
  --status-warning: #f59e0b;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 25px rgba(0, 242, 255, 0.2);
  --shadow-glow-blue: 0 0 30px rgba(37, 99, 235, 0.3);

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-deep: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #ffffff;
  --bg-input: #f1f5f9;

  --border-subtle: rgba(15, 23, 42, 0.1);
  --border-cyan: rgba(2, 132, 199, 0.3);
  --border-cyan-glow: rgba(2, 132, 199, 0.7);
  --border-blue: rgba(37, 99, 235, 0.2);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --text-cyan: #0284c7;
  --text-blue: #2563eb;

  --accent-cyan: #0284c7;
  --accent-cyan-glow: rgba(2, 132, 199, 0.25);
  --shadow-sm: 0 10px 25px -3px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 8px 30px rgba(2, 132, 199, 0.15);
}

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

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

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

/* Global Circuit Overlay Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(0, 242, 255, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(37, 99, 235, 0.07) 0%, transparent 45%),
    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: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
  z-index: -1;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-cyan {
  color: var(--accent-cyan);
}

.text-mono {
  font-family: var(--font-mono);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navbar - Re-engineered for Single-Line Precision */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 9, 19, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-normal);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.92);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1rem;
}

/* Official Logo Styling */
.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.brand-logo-wrapper {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.15);
  transition: var(--transition-fast);
}

.brand-logo-wrapper:hover {
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.35);
  transform: translateY(-1px);
}

.brand-logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
  background: rgba(0, 242, 255, 0.06);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Custom Glassmorphism Language Dropdown Switcher */
.lang-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.lang-dropdown-trigger {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-dropdown-trigger:hover {
  border-color: var(--border-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 242, 255, 0.08);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-glow-blue);
  min-width: 140px;
  padding: 0.4rem;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 1001;
  backdrop-filter: blur(16px);
}

.lang-dropdown-wrapper:hover .lang-dropdown-menu,
.lang-dropdown-wrapper.active .lang-dropdown-menu {
  display: flex;
}

.lang-option-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: left;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.lang-option-item:hover, .lang-option-item.active {
  background: rgba(0, 242, 255, 0.12);
  color: var(--accent-cyan);
  font-weight: 600;
}

.btn-theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-theme-toggle:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 242, 255, 0.08);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #050a14 !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 242, 255, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-cyan);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(0, 242, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 5rem 0 5.5rem;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(to right, var(--bg-deep) 0%, rgba(6, 9, 19, 0.4) 60%, rgba(6, 9, 19, 0.85) 100%),
              url('../assets/images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.45;
  filter: contrast(1.1);
  mask-image: radial-gradient(circle at 70% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 70% 50%, black 30%, transparent 80%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 242, 255, 0.08);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0, 242, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 242, 255, 0); }
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.4rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  max-width: 620px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

[data-theme="light"] .stat-number {
  color: #0f172a;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Glassmorphism Hero Interactive Card */
.hero-preview-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-glow-blue);
  position: relative;
}

.card-header-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-theme="light"] .card-title {
  color: #0f172a;
}

.live-indicator {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--status-success);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

/* Section Header styling */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
  display: block;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Core Pillars Grid */
.pillars-section {
  padding: 6rem 0;
  background: var(--bg-surface);
  position: relative;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-cyan);
  box-shadow: var(--shadow-glow);
}

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

.pillar-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 242, 255, 0.08);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-cyan);
}

.pillar-icon svg {
  width: 28px;
  height: 28px;
}

.pillar-title {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  color: #ffffff;
}

[data-theme="light"] .pillar-title {
  color: #0f172a;
}

.pillar-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Estimator Section */
.estimator-section {
  padding: 6rem 0;
  position: relative;
}

.estimator-box {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-glow-blue);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.estimator-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.form-group-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  display: block;
}

.options-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.option-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-fast);
}

.option-btn:hover, .option-btn.active {
  background: rgba(0, 242, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.estimator-summary {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.8rem;
}

.summary-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.summary-metric-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
}

/* Contact & RFQ Portal */
.rfq-section {
  padding: 6rem 0;
  background: var(--bg-surface);
}

.rfq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.rfq-info-box h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.rfq-info-box p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.contact-detail-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 242, 255, 0.08);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.rfq-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-glow-blue);
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 255, 0.25);
}

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

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.toast {
  background: #0f192e;
  border: 1px solid var(--border-cyan);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer */
.site-footer {
  background: #04070e;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  color: var(--text-muted);
}

[data-theme="light"] .site-footer {
  background: #0f172a;
  color: #94a3b8;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  .nav-menu {
    gap: 0.75rem;
  }
  .nav-link {
    font-size: 0.85rem;
    padding: 0.3rem 0.4rem;
  }
}

@media (max-width: 900px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-grid, .estimator-box, .rfq-grid {
    grid-template-columns: 1fr;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
