@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=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg-primary: #07111f;
  --bg-secondary: #0d1b2a;
  --bg-card: rgba(13, 27, 42, 0.45);
  --bg-card-hover: rgba(20, 39, 61, 0.65);
  --border-glass: rgba(0, 198, 255, 0.12);
  --border-glass-hover: rgba(0, 245, 255, 0.35);
  
  --neon-blue: #00c6ff;
  --cyan: #00f5ff;
  --neon-blue-glow: rgba(0, 198, 255, 0.4);
  --cyan-glow: rgba(0, 245, 255, 0.45);
  --accent-gradient: linear-gradient(135deg, var(--neon-blue), var(--cyan));
  --text-gradient: linear-gradient(135deg, #ffffff 30%, #a5c0d6 100%);
  
  --text-primary: #ffffff;
  --text-secondary: #9fb3c8;
  --text-muted: #5e758e;
  
  --success: #00e676;
  --error: #ff1744;
  --warning: #ffea00;
  
  /* Layout */
  --header-height: 80px;
  --max-width: 1400px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  /* Typography */
  --font-family: 'Outfit', 'Poppins', 'Inter', sans-serif;
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 198, 255, 0.2);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(0, 245, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gradient);
  box-shadow: 0 0 10px var(--neon-blue-glow);
}

/* Background Effects */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

#cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 198, 255, 0.08) 0%, rgba(0, 245, 255, 0) 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.5s ease;
  opacity: 0;
}

body:hover #cursor-glow {
  opacity: 1;
}

/* Grid & Layout Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Page Loader */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(0, 198, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--neon-blue);
  border-right-color: var(--cyan);
  animation: spin 1s infinite linear;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.15);
}

.loader-logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

/* Reusable Header Navbar */
.header-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(7, 17, 31, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header-navbar.scrolled {
  background: rgba(13, 27, 42, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  height: 70px;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
  text-shadow: 0 0 20px rgba(0, 245, 255, 0.1);
}

/* Navigation Menus */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(0, 198, 255, 0.08);
  text-shadow: 0 0 10px var(--neon-blue-glow);
}

.nav-link svg {
  width: 16px;
  height: 16px;
  transition: var(--transition-smooth);
}

.nav-link:hover svg {
  transform: rotate(5deg) scale(1.1);
}

/* Dropdown Menu & Mega Menu */
.mega-dropdown-wrapper {
  position: static;
}

.mega-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(7, 17, 31, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-top: none;
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition-smooth);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
}

.mega-dropdown-wrapper:hover .mega-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cyan);
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 245, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-col-title svg {
  width: 14px;
  height: 14px;
}

.mega-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mega-list-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 4px 6px;
  border-radius: 4px;
  transition: var(--transition-smooth);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega-list-link:hover {
  color: var(--neon-blue);
  background: rgba(0, 198, 255, 0.05);
  transform: translateX(3px);
}

/* Nav Actions (Search & Mobile Toggle) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-search {
  position: relative;
  width: 220px;
  transition: var(--transition-smooth);
}

.navbar-search-input {
  width: 100%;
  background: rgba(13, 27, 42, 0.6);
  border: 1px solid var(--border-glass);
  padding: 8px 16px 8px 36px;
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 0.88rem;
  transition: var(--transition-smooth);
}

.navbar-search-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
  width: 280px;
}

.navbar-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px;
}

.hamburger-btn svg {
  width: 24px;
  height: 24px;
}

/* Mobile Sidebar Menu */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: rgba(7, 17, 31, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-glass);
  z-index: 1100;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  transition: var(--transition-smooth);
}

.mobile-sidebar.open {
  right: 0;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-close-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

.sidebar-close-btn svg {
  width: 24px;
  height: 24px;
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  max-height: calc(100vh - 120px);
  padding-bottom: 30px;
}

.sidebar-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.sidebar-link:hover {
  color: var(--neon-blue);
  background: rgba(0, 198, 255, 0.05);
}

.sidebar-submenu {
  list-style: none;
  padding-left: 20px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-submenu-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 4px 8px;
  transition: var(--transition-smooth);
}

.sidebar-submenu-link:hover {
  color: var(--cyan);
}

/* Glassmorphism Cards & Layout grids */
.card-glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 28px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 198, 255, 0.05) 0%, rgba(0, 245, 255, 0) 50%);
  pointer-events: none;
  z-index: 1;
}

.card-glass:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  box-shadow: 0 12px 40px 0 rgba(0, 198, 255, 0.1);
}

/* Buttons Styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  border: none;
  box-shadow: 0 4px 15px var(--neon-blue-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--cyan-glow);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(13, 27, 42, 0.7);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(20, 39, 61, 0.9);
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.15);
  transform: translateY(-2px);
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
}

/* Global Hero Section */
.hero-section {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 80vh;
  position: relative;
}

.hero-content {
  flex: 1;
  max-width: 620px;
}

.hero-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(0, 198, 255, 0.1);
  border: 1px solid rgba(0, 198, 255, 0.2);
  color: var(--neon-blue);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Outfit', sans-serif;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.badge-item svg {
  color: var(--cyan);
  width: 18px;
  height: 18px;
}

/* 3D Graphics Rotating Zone */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 450px;
}

.glow-circle {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.12) 0%, rgba(0, 198, 255, 0) 70%);
  border-radius: 50%;
  filter: blur(20px);
  animation: float 6s infinite ease-in-out;
}

.graphics-container {
  width: 320px;
  height: 320px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate3D 24s infinite linear;
}

.floating-3d-card {
  position: absolute;
  width: 130px;
  height: 160px;
  background: rgba(13, 27, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.15);
  transform-origin: center center;
}

.floating-3d-card svg {
  width: 48px;
  height: 48px;
}

.card-pdf {
  transform: rotateY(0deg) translateZ(140px);
  border-color: rgba(255, 23, 68, 0.3);
  box-shadow: 0 0 25px rgba(255, 23, 68, 0.15);
}

.card-pdf svg {
  color: #ff1744;
}

.card-image {
  transform: rotateY(120deg) translateZ(140px);
  border-color: rgba(0, 230, 118, 0.3);
  box-shadow: 0 0 25px rgba(0, 230, 118, 0.15);
}

.card-image svg {
  color: #00e676;
}

.card-converter {
  transform: rotateY(240deg) translateZ(140px);
  border-color: rgba(0, 198, 255, 0.4);
  box-shadow: 0 0 25px rgba(0, 198, 255, 0.2);
}

.card-converter svg {
  color: var(--neon-blue);
}

.floating-3d-card span {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Tool Directory & Section Panels */
.section-panel {
  padding: 60px 0;
  position: relative;
}

.section-header {
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-left: 4px solid var(--neon-blue);
  padding-left: 20px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Category Filter Navigation */
.category-filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  background: rgba(13, 27, 42, 0.5);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 20px;
  font-family: var(--font-family);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  border-color: transparent;
  box-shadow: 0 0 15px var(--neon-blue-glow);
  transform: translateY(-2px);
}

/* Tool Cards Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.tool-card-top {
  margin-bottom: 20px;
}

.tool-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--border-radius-sm);
  background: rgba(0, 198, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 16px;
  transition: var(--transition-smooth);
}

.tool-card:hover .tool-icon-wrapper {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 15px var(--neon-blue-glow);
}

.tool-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  transition: var(--transition-smooth);
}

.tool-card:hover .tool-card-title {
  color: var(--cyan);
}

.tool-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-card-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--neon-blue);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
}

.tool-card:hover .tool-card-action {
  color: var(--cyan);
}

.tool-card-action svg {
  width: 16px;
  height: 16px;
  transform: translateX(-4px);
  transition: var(--transition-smooth);
}

.tool-card:hover .tool-card-action svg {
  transform: translateX(0);
}

/* Tool Interface/Workspace Layout */
.tool-layout-wrapper {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 60px;
}

.breadcrumb-container {
  margin-bottom: 24px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  gap: 8px;
}

.breadcrumb-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.breadcrumb-item a:hover {
  color: var(--cyan);
}

.breadcrumb-separator {
  display: flex;
  align-items: center;
}

.breadcrumb-separator svg {
  width: 12px;
  height: 12px;
}

.tool-main-hero {
  margin-bottom: 40px;
}

.tool-title {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Outfit', sans-serif;
}

.tool-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 800px;
}

/* Tool Panel Workspace Grid */
.tool-workspace {
  margin-bottom: 60px;
  z-index: 5;
}

/* Standard Double Pane (Text Processor Layout) */
.pane-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 992px) {
  .pane-grid-2 {
    grid-template-columns: 1fr;
  }
}

.pane-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pane-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pane-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pane-actions-row {
  display: flex;
  gap: 10px;
}

.pane-btn-action {
  background: rgba(13, 27, 42, 0.4);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pane-btn-action:hover {
  background: rgba(0, 198, 255, 0.1);
  border-color: var(--neon-blue);
  color: var(--text-primary);
}

.pane-textarea {
  width: 100%;
  height: 380px;
  background: rgba(13, 27, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', monospace;
  font-size: 0.92rem;
  padding: 16px;
  resize: none;
  line-height: 1.5;
  transition: var(--transition-smooth);
}

.pane-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}

/* Control Hub panel in center or tops */
.controls-card {
  padding: 20px;
  background: rgba(13, 27, 42, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

/* Form Elements inside calculators & tools */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 576px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.form-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  background: rgba(13, 27, 42, 0.7);
  border: 1px solid var(--border-glass);
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 10px var(--neon-blue-glow);
}

/* Ranges */
.slider-group {
  width: 100%;
  margin-top: 10px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(13, 27, 42, 0.8);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-gradient);
  cursor: pointer;
  box-shadow: 0 0 10px var(--neon-blue-glow);
  transition: var(--transition-smooth);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Drag and Drop Box */
.upload-zone {
  border: 2px dashed rgba(0, 198, 255, 0.25);
  border-radius: var(--border-radius-md);
  padding: 50px 30px;
  text-align: center;
  background: rgba(13, 27, 42, 0.4);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 250px;
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--cyan);
  background: rgba(0, 245, 255, 0.05);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.15);
}

.upload-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 198, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-blue);
  font-size: 1.8rem;
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 198, 255, 0.1);
}

.upload-zone:hover .upload-icon {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  box-shadow: 0 0 15px var(--neon-blue-glow);
  transform: translateY(-5px);
}

.upload-title {
  font-size: 1.15rem;
  font-weight: 600;
}

.upload-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.file-input-hidden {
  display: none;
}

/* File list panel showing uploaded documents */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  width: 100%;
}

.file-item {
  background: rgba(13, 27, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: fadeIn 0.4s ease-out;
}

.file-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.file-item-icon {
  color: var(--cyan);
  flex-shrink: 0;
}

.file-item-name {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-item-size {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.file-item-actions {
  display: flex;
  gap: 6px;
}

.file-item-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.file-item-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.file-item-btn.btn-remove:hover {
  color: var(--error);
  background: rgba(255, 23, 68, 0.1);
}

/* Custom Accordion FAQ Layout */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(0, 245, 255, 0.25);
  background: var(--bg-card-hover);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  text-align: left;
  padding: 18px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-family);
  transition: var(--transition-smooth);
}

.faq-question svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  color: var(--cyan);
}

.faq-item.active .faq-question {
  color: var(--cyan);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer-content {
  padding: 0 24px 20px 24px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* SEO Content Typography styling */
.seo-content-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0;
  margin-top: 40px;
}

.seo-rich-text {
  max-width: 900px;
}

.seo-rich-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 16px;
  font-family: 'Outfit', sans-serif;
}

.seo-rich-text h2:first-of-type {
  margin-top: 0;
}

.seo-rich-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.75;
  font-size: 0.98rem;
}

.seo-rich-text ul, .seo-rich-text ol {
  margin-left: 20px;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.seo-rich-text li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.seo-rich-text li strong {
  color: var(--text-primary);
}

/* CTA Sidebar & Banners */
.cta-banner {
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.9) 0%, rgba(7, 17, 31, 0.95) 100%);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--border-radius-md);
  padding: 40px;
  text-align: center;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 198, 255, 0.15);
}

.cta-banner-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: 'Outfit', sans-serif;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 28px auto;
}

/* Reusable Footer */
.footer-wrapper {
  background: #040a12;
  border-top: 1px solid var(--border-glass);
  padding: 80px 0 30px 0;
  position: relative;
}

.footer-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--neon-blue) 50%, var(--cyan) 75%, transparent 100%);
  opacity: 0.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
  margin-bottom: 50px;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 12px;
  list-style: none;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(13, 27, 42, 0.6);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.social-link:hover {
  transform: translateY(-3px) scale(1.1);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.social-link.fb:hover { background: #1877F2; border-color: #1877F2; box-shadow: 0 0 12px rgba(24, 119, 242, 0.4); }
.social-link.tw:hover { background: #1DA1F2; border-color: #1DA1F2; box-shadow: 0 0 12px rgba(29, 161, 242, 0.4); }
.social-link.ig:hover { background: #E1306C; border-color: #E1306C; box-shadow: 0 0 12px rgba(225, 48, 108, 0.4); }
.social-link.li:hover { background: #0077B5; border-color: #0077B5; box-shadow: 0 0 12px rgba(0, 119, 181, 0.4); }

.footer-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-family: 'Outfit', sans-serif;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition-smooth);
}

.footer-links-link:hover {
  color: var(--cyan);
  transform: translateX(3px);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-input-group {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  background: rgba(13, 27, 42, 0.7);
  border: 1px solid var(--border-glass);
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-size: 0.88rem;
  transition: var(--transition-smooth);
}

.newsletter-input:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 8px var(--neon-blue-glow);
}

.newsletter-btn {
  background: var(--accent-gradient);
  border: none;
  color: var(--bg-primary);
  padding: 10px 16px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.newsletter-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.newsletter-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

/* Scroll-to-top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(13, 27, 42, 0.8);
  border: 1px solid var(--border-glass-hover);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  box-shadow: 0 0 15px var(--cyan-glow);
  transform: translateY(-3px);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: rgba(13, 27, 42, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 4px solid var(--neon-blue);
  border-right: 1px solid var(--border-glass);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  border-radius: 4px;
  padding: 12px 20px;
  min-width: 250px;
  max-width: 350px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-size: 0.88rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transform: translateX(-50px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }
.toast.warning { border-left-color: var(--warning); }

.toast-icon {
  flex-shrink: 0;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--error); }
.toast.warning .toast-icon { color: var(--warning); }

.toast-message {
  flex: 1;
}

/* Amortization schedule table */
.data-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-glass);
  margin-top: 20px;
  max-height: 400px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.data-table th {
  background: rgba(13, 27, 42, 0.8);
  color: var(--cyan);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-glass-hover);
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

.data-table tr:hover td {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

@keyframes rotate3D {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

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

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Screen size adjustments */
@media (max-width: 992px) {
  .hero-section {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: calc(var(--header-height) + 30px);
    gap: 30px;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-title {
    font-size: 2.6rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-badges {
    justify-content: center;
  }
  
  .nav-menu {
    display: none;
  }
  
  .hamburger-btn {
    display: block;
  }
  
  .navbar-search {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.1rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-badges {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
