/* ============================================================
   POORNATA.TECH — DESIGN SYSTEM OVERRIDES
   Neumorphic light mode + Glassmorphic dark mode + Polish
   ============================================================ */

/* ── Theme Variables ─────────────────────────────────────── */
:root {
  --color-primary: #0E9F6E;
  --color-primary-focus: #057A55;
  --color-secondary: #C27803;
  --color-accent: #E3A008;
  --color-base-100: #F3F4F6;
  --color-base-200: #E5E7EB;
  --color-base-300: #D1D5DB;
  --color-base-content: #1F2937;
  --font-sans: 'Inter', sans-serif;
  --neu-shadow: 6px 6px 14px #d1d5db, -6px -6px 14px #ffffff;
  --neu-inset: inset 3px 3px 6px #d1d5db, inset -3px -3px 6px #ffffff;
}

[data-theme="dark"] {
  --color-base-100: #1a1d23;
  --color-base-200: #12151a;
  --color-base-300: #252830;
  --color-base-content: #e8ecf1;
  --neu-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05);
  --neu-inset: inset 0 2px 4px rgba(0,0,0,0.3);
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-base-100);
  color: var(--color-base-content);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #0E9F6E40; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #0E9F6E80; }

/* ── Background Effects ──────────────────────────────────── */
.bg-grid-overlay {
  background-image:
    linear-gradient(rgba(156,163,175,.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156,163,175,.15) 1px, transparent 1px);
  background-size: 40px 40px;
}

.gradient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* ── Neumorphic Cards (Light Mode) ───────────────────────── */
.neumorph {
  background: var(--color-base-100);
  box-shadow: var(--neu-shadow);
  border: 1px solid rgba(255,255,255,0.5);
  transition: all 0.3s ease;
}

.neumorph-inset {
  box-shadow: var(--neu-inset) !important;
}

.neumorph:hover {
  transform: translateY(-3px);
  box-shadow: 8px 8px 20px #d1d5db, -8px -8px 20px #ffffff;
}

/* ── Glassmorphic Cards (Dark Mode) ──────────────────────── */
[data-theme="dark"] .neumorph {
  background: rgba(255,255,255,0.04);
  box-shadow: var(--neu-shadow);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .neumorph:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(14,159,110,0.2);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(14,159,110,0.15);
  transform: translateY(-3px);
}

[data-theme="dark"] .neumorph-inset {
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.06) !important;
  background: rgba(0,0,0,0.15) !important;
}

/* ── Card Specific ───────────────────────────────────────── */
.card.neumorph {
  border-radius: 1rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

/* ── Inputs ──────────────────────────────────────────────── */
.input, .textarea, .select {
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.input:focus, .textarea:focus, .select:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-primary);
}

/* ── Glassmorphic Navbar ─────────────────────────────────── */
.glass-nav {
  background: rgba(243,244,246,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}

.glass-nav.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}

[data-theme="dark"] .glass-nav {
  background: rgba(26,29,35,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

[data-theme="dark"] .glass-nav.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* ── Typography & Accents ────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, #0E9F6E, #31C48D, #E3A008);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.strike-old {
  display: inline-block;
  position: relative;
  color: #9CA3AF;
  font-weight: 400;
  font-style: italic;
}

.strike-old::after {
  content: '';
  position: absolute;
  left: -4px; right: -4px; top: 50%;
  height: 3px;
  background: linear-gradient(90deg, #EF4444, #E3A008);
  border-radius: 2px;
  transform: rotate(-1deg);
}

/* ── Section Dividers ────────────────────────────────────── */
.section-divider {
  height: 80px;
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: -1px;
  margin-bottom: -1px;
  line-height: 0;
}

.section-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 10;
}

.section-divider.flip {
  transform: scaleY(-1);
  margin-top: 0;
  margin-bottom: -1px;
}

/* ── Custom Fill Utilities Removed ─────────────────────── */

/* ── Form Spacing ────────────────────────────────────────── */
.form-control .label {
  padding-top: 0.25rem;
  padding-bottom: 0.5rem;
}

.form-control .label-text {
  font-size: 0.875rem;
}

.form-control .input,
.form-control .select,
.form-control .textarea {
  min-height: 3rem;
  font-size: 0.95rem;
}

/* ── Section Padding ─────────────────────────────────────── */
.section-padding {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  .section-padding { padding: 3.5rem 0; }
  .section-divider { height: 50px; }
}

/* ── Animated Gradient Border ────────────────────────────── */
.gradient-border {
  position: relative;
  overflow: hidden;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #0E9F6E, #31C48D, #E3A008, #0E9F6E);
  background-size: 300% 300%;
  animation: shimmer 4s ease infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Glow effect for CTAs ────────────────────────────────── */
.glow-emerald {
  box-shadow: 0 0 20px rgba(14,159,110,0.3), 0 0 60px rgba(14,159,110,0.1);
}

[data-theme="dark"] .glow-emerald {
  box-shadow: 0 0 30px rgba(14,159,110,0.4), 0 0 80px rgba(14,159,110,0.15);
}

/* ── Floating animation for icons ────────────────────────── */
@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.float-icon {
  animation: gentle-float 3s ease-in-out infinite;
}

/* ── About Section Step Connector ────────────────────────── */
.step-connector {
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  left: 28px;
  top: 56px;
  bottom: -16px;
  width: 2px;
  background: linear-gradient(to bottom, #0E9F6E, transparent);
}

.step-connector:last-child::after {
  display: none;
}

/* ── Utility ─────────────────────────────────────────────── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Toast Notifications ─────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast--success { background: #065F46; color: white; }
.toast--error { background: #991B1B; color: white; }
