/* 
 * VixRola.Com - Ultra-Fast CSS3 Stylesheet
 * Mobile-First, Highly Performant & Optimized for 95+ PageSpeed
 */

:root,
[data-theme="dark"] {
  --bg-primary: #0a0d14;
  --bg-secondary: #121824;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(26, 34, 52, 0.9);
  --bg-header: rgba(10, 13, 20, 0.85);
  --bg-input: rgba(10, 13, 20, 0.8);
  --bg-badge: rgba(0, 242, 254, 0.1);
  --bg-modal: rgba(18, 24, 38, 0.95);
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --gradient-brand: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --gradient-brand-alt: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-btn: linear-gradient(135deg, #00f2fe 0%, #00c6ff 100%);
  --gradient-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.3);
  
  --color-cyan: #00f2fe;
  --color-blue: #3b82f6;
  --color-emerald: #10b981;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.25);

  --radial-color-1: rgba(0, 242, 254, 0.08);
  --radial-color-2: rgba(245, 87, 108, 0.05);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

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

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(241, 245, 249, 1);
  --bg-header: rgba(255, 255, 255, 0.88);
  --bg-input: #ffffff;
  --bg-badge: rgba(2, 132, 199, 0.1);
  --bg-modal: rgba(255, 255, 255, 0.98);
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --gradient-brand: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  --gradient-brand-alt: linear-gradient(135deg, #d946ef 0%, #e11d48 100%);
  --gradient-btn: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  --gradient-green: linear-gradient(135deg, #059669 0%, #047857 100%);
  
  --border-subtle: rgba(15, 23, 42, 0.12);
  --border-glow: rgba(2, 132, 199, 0.35);
  
  --color-cyan: #0284c7;
  --color-blue: #2563eb;
  --color-emerald: #059669;
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.15);

  --radial-color-1: rgba(2, 132, 199, 0.06);
  --radial-color-2: rgba(225, 29, 72, 0.04);
}

/* Global Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, var(--radial-color-1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, var(--radial-color-2) 0%, transparent 40%),
              var(--bg-primary);
  color: var(--text-primary);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
}

ul {
  list-style-position: inside;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-container {
  max-width: 800px;
}

/* Navigation Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.theme-toggle-btn:hover {
  border-color: var(--color-cyan);
  box-shadow: 0 0 12px var(--border-glow);
  transform: translateY(-1px);
}

.theme-toggle-label {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* Dynamic Sun & Moon Icons based on theme */
[data-theme="dark"] .sun-icon {
  display: block;
  color: #f59e0b;
}
[data-theme="dark"] .moon-icon {
  display: none;
}

[data-theme="light"] .sun-icon {
  display: none;
}
[data-theme="light"] .moon-icon {
  display: block;
  color: #0284c7;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid var(--border-glow);
  font-size: 1.1rem;
}

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

.logo-accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-cyan);
}

.nav-btn-modal {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.nav-btn-modal:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
}

/* Mobile Hamburger Menu */
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  padding: 4px;
}

.hamburger-btn .bar {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Hero & Downloader Main Section */
.hero-section {
  padding: 50px 0 60px 0;
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid var(--border-glow);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-cyan);
  margin-bottom: 24px;
}

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

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

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 800px;
}

.gradient-text {
  background: var(--gradient-brand-alt);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-alt {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 36px;
}

/* Downloader Main Card */
.downloader-card {
  width: 100%;
  max-width: 720px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(10, 13, 20, 0.8);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  margin-bottom: 16px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-group:focus-within {
  border-color: var(--color-cyan);
  box-shadow: var(--shadow-glow);
}

.input-icon-left {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  padding-left: 6px;
  padding-right: 10px;
}

.url-input {
  width: 100%;
  background: transparent;
  color: var(--text-primary);
  font-size: 1rem;
  padding: 12px 0;
}

.url-input::placeholder {
  color: var(--text-muted);
}

.input-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.btn-clear:hover {
  background: rgba(245, 87, 108, 0.2);
  color: #f5576c;
}

.btn-paste {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid var(--border-glow);
  color: var(--color-cyan);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-paste:hover {
  background: var(--color-cyan);
  color: var(--bg-primary);
}

.btn-download-main {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gradient-btn);
  color: #04101d;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-download-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 242, 254, 0.5);
}

.btn-download-main:active {
  transform: translateY(0);
}

/* Quick Test Links */
.quick-samples {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

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

.sample-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.sample-pill:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--color-cyan);
  color: var(--text-primary);
}

/* Animated Loading Indicator */
.loading-container {
  width: 100%;
  max-width: 720px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  margin-top: 24px;
  text-align: center;
  box-shadow: var(--shadow-glow);
}

.loading-spinner-box {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(0, 242, 254, 0.15);
  border-top-color: var(--color-cyan);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.glow-ring {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.3) 0%, transparent 70%);
  animation: pulse 1.5s infinite alternate;
}

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

.loading-status {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-cyan);
  margin-bottom: 4px;
}

.loading-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  transition: width 0.4s ease-out;
}

/* Result Card Section */
.result-container {
  width: 100%;
  max-width: 720px;
  margin-top: 28px;
  text-align: left;
}

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.platform-badge {
  background: rgba(245, 87, 108, 0.15);
  color: #f5576c;
  border: 1px solid rgba(245, 87, 108, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.quality-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.result-content-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
}

.thumbnail-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 9/16;
  max-height: 280px;
  background: #000;
}

.result-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.85);
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
}

.duration-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.result-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 4px;
}

.result-author {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.format-selection {
  margin-bottom: 20px;
}

.format-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.format-select {
  width: 100%;
  background: rgba(10, 13, 20, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.action-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-download-direct {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gradient-green);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-download-direct:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.45);
}

.btn-secondary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-secondary-action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Sections Styling */
.section {
  padding: 70px 0;
}

.section-alt {
  background: rgba(18, 24, 38, 0.4);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.step-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
}

.step-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.1);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Bento Grid Features */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.bento-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.bento-wide {
  grid-column: span 2;
}

.bento-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.bento-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.bento-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--border-glow);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
}

.faq-icon {
  transition: transform var(--transition-fast);
  color: var(--text-muted);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--color-cyan);
}

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

.faq-item.active .faq-answer {
  display: block;
}

/* SEO Article Section */
.seo-article-section {
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 13, 20, 0.6);
}

.article-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.article-subtitle {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 28px 0 12px 0;
  color: var(--color-cyan);
}

.article-paragraph {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Footer */
.footer {
  background: #06080d;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 24px 0;
  margin-top: auto;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 360px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 14px;
}

.footer-links-group {
  display: flex;
  gap: 60px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-col a, .footer-link-btn {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: transparent;
  padding: 4px 0;
  margin-bottom: 6px;
  text-align: left;
  transition: color var(--transition-fast);
}

.footer-col a:hover, .footer-link-btn:hover {
  color: var(--color-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.footer-bottom-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.back-to-top:hover {
  color: var(--color-cyan);
}

/* Modal Popups */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.show {
  display: flex;
  opacity: 1;
}

.modal-card {
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-backdrop.show .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.8rem;
  line-height: 1;
  padding: 0 4px;
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-body h4 {
  color: var(--text-primary);
  margin: 16px 0 8px 0;
}

.modal-body ul, .modal-body ol {
  margin-bottom: 16px;
  padding-left: 20px;
}

.modal-body li {
  margin-bottom: 6px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: right;
}

.btn-modal-close {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background var(--transition-fast);
}

.btn-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Contact Form Styling */
.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: rgba(10, 13, 20, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--color-cyan);
}

.form-input.textarea {
  resize: vertical;
}

.btn-form-submit {
  width: 100%;
  background: var(--gradient-btn);
  color: #04101d;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  transition: transform var(--transition-fast);
}

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

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(18, 24, 38, 0.95);
  border: 1px solid var(--color-cyan);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.92rem;
  font-weight: 600;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

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

/* Responsive Styles */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-wide {
    grid-column: span 1;
  }
  .footer-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 13, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    display: none;
  }

  .nav-menu.show {
    display: flex;
  }

  .hero-title {
    font-size: 2.1rem;
  }

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

  .thumbnail-wrapper {
    max-height: 220px;
    aspect-ratio: 16/9;
  }

  .footer-links-group {
    flex-direction: column;
    gap: 24px;
  }

  .footer-bottom-flex {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}