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

:root {
  --primary-color: #8b5cf6;
  --primary-hover: #7c3aed;
  --bg-color: #05050f;
  /* Very dark rich background */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(255, 255, 255, 0.03);
  --radius: 20px;
  --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --glow: 0 0 25px rgba(139, 92, 246, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-color);
  background-image:
    radial-gradient(ellipse at 15% 50%, rgba(139, 92, 246, 0.15), transparent 50%),
    radial-gradient(ellipse at 85% 30%, rgba(59, 130, 246, 0.15), transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navbar */
.navbar {
  background: rgba(5, 5, 15, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 1rem;
  border-radius: 12px;
}

.nav-links a:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Main Container */
main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
  width: 100%;
}

/* Typography */
h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #e2e8f0;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Grid Layout */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Cards */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: block;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--glass-shadow), var(--glow);
  border-color: rgba(139, 92, 246, 0.4);
}

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

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 20px;
  line-height: 1;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(-8deg);
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.card-tag {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  z-index: 10;
}

.card-tag.finance {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.card-tag.media {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.card h3 {
  margin-top: 0;
  color: #c4b5fd;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.card p {
  margin-bottom: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Calculator UI */
.calculator-container {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 3.5rem 3rem;
  box-shadow: var(--glass-shadow);
  margin-bottom: 5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--border-color);
  position: relative;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #f1f5f9;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
}

.form-control {
  width: 100%;
  padding: 1.1rem 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  font-size: 1.15rem;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
}

.form-control:focus {
  outline: none;
  background-color: rgba(0, 0, 0, 0.5);
  border-color: #8b5cf6;
  box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

.form-control::placeholder {
  color: #475569;
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  margin-top: 1rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  letter-spacing: 0.5px;
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.6);
}

.btn:active {
  transform: translateY(2px) scale(0.98);
}

.result-box {
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.result-box::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}

.result-box h4 {
  color: #c4b5fd;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.result-value {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a855f7, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
  text-shadow: 0 0 40px rgba(168, 85, 247, 0.5);
}

/* Results Grid For Specific Tools (Hourly/Salary) */
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.result-card {
  padding: 1.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-card:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.result-card h4 {
  color: #94a3b8;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.result-card .sub-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #e2e8f0;
}

.result-card.featured {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
  border-color: rgba(139, 92, 246, 0.4);
  transform: scale(1.05);
}

.result-card.featured:hover {
  transform: translateY(-5px) scale(1.08);
}

.result-card.featured h4 {
  color: #c4b5fd;
}

.result-card.featured .sub-value {
  background: linear-gradient(135deg, #a855f7, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.25rem;
}


/* Content Section Styling */
.content-section {
  max-width: 800px;
  margin: 0 auto 5rem auto;
}

.content-section ul,
.content-section ol {
  margin-left: 2rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.content-section li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
  font-size: 1.1rem;
}

.content-section li::marker {
  color: #8b5cf6;
  font-weight: bold;
}

.alert-box {
  padding: 1.75rem;
  border-radius: 16px;
  background: linear-gradient(to right, rgba(139, 92, 246, 0.15), rgba(0, 0, 0, 0));
  border-left: 5px solid #8b5cf6;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  color: #e2e8f0;
}

/* FAQ Accordion Look */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: var(--card-bg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateX(8px);
  box-shadow: -5px 10px 20px rgba(0, 0, 0, 0.2);
}

.faq-question {
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #f8fafc;
}

.faq-answer {
  color: #94a3b8;
  margin-bottom: 0;
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Footer */
.footer {
  background: rgba(3, 7, 18, 0.9);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #c4b5fd;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .calculator-container {
    padding: 2.5rem 1.5rem;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .result-card.featured {
    transform: scale(1);
  }

  .result-card.featured:hover {
    transform: translateY(-5px);
  }
}

/* Drag and Drop Zone */
.drop-zone {
  width: 100%;
  padding: 4rem 2rem;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--primary-color);
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
}

.drop-zone-icon {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.drop-zone-text {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.drop-zone-hint {
  font-size: 1rem;
  color: var(--text-muted);
}

.file-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  margin-top: 2rem;
}

.file-name {
  font-weight: 700;
  color: #e2e8f0;
  word-break: break-all;
  font-size: 1.1rem;
}

.file-size {
  color: #94a3b8;
  font-size: 1rem;
  background: rgba(0,0,0,0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
}

/* Spinner */
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(139, 92, 246, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}