/*
 * MindsetLogics Style Sheet
 * Senior UI/UX Designer Design System
 * Palette: Luxury Monochrome (Pure Black & Crisp White) with Glassmorphism and Neon Glows
 */

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

/* --- CSS Variables & Design System --- */
:root {
  --bg-dark: #09090b;
  --bg-dark-accent: #121217;
  --text-light: #fafafa;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.2);
  --bg-glass: rgba(255, 255, 255, 0.02);
  --bg-glass-card: rgba(15, 15, 20, 0.6);
  --bg-glass-hover: rgba(255, 255, 255, 0.05);
  
  --glow-color: rgba(255, 255, 255, 0.15);
  --glow-light: rgba(255, 255, 255, 0.05);
  --sphere-glow-1: rgba(147, 51, 234, 0.35); /* Violet */
  --sphere-glow-2: rgba(59, 130, 246, 0.3);   /* Blue */
  --sphere-glow-3: rgba(236, 72, 153, 0.25);  /* Pink */
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  
  --max-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
}

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

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

ul {
  list-style: none;
}

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

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --- Container Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Premium Sticky Header --- */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.header.scrolled {
  height: 70px;
  background-color: rgba(9, 9, 11, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  transition: var(--transition-smooth);
}

.logo:hover svg {
  transform: rotate(30deg) scale(1.1);
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--text-light);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-light);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text-light);
}

.cta-header-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--text-light);
  background-color: var(--text-light);
  color: var(--bg-dark);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cta-header-btn:hover {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid var(--text-light);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-light);
  transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero {
  padding: 6rem 0 4rem 0;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-glass);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  background-color: var(--bg-glass);
}

.hero-tagline::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background-color: #fff;
  border-radius: 50%;
  animation: pulseGlowDot 2s infinite ease-in-out;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-title span {
  display: block;
  background: linear-gradient(180deg, #ffffff 30%, #71717a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

.btn-primary {
  padding: 0.9rem 2rem;
  background-color: var(--text-light);
  color: var(--bg-dark);
  border: 1px solid var(--text-light);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--text-light);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-secondary {
  padding: 0.9rem 2rem;
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  border-color: var(--text-light);
  background-color: var(--bg-glass);
  transform: translateY(-2px);
}

/* --- Hero 3D Abstract Sphere --- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.sphere-container {
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: floatEffect 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

.sphere-glow-bg {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sphere-glow-1) 0%, var(--sphere-glow-2) 30%, var(--sphere-glow-3) 60%, transparent 80%);
  filter: blur(50px);
  opacity: 0.6;
  pointer-events: none;
  animation: pulseGlow 10s ease-in-out infinite alternate;
}

.sphere-3d {
  width: 280px;
  height: 280px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(145deg);
  animation: spinSphere 28s linear infinite;
}

.sphere-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.03), 0 0 15px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}

/* 3D Longitudinal Rings (Vertical lines) */
.ring-v1 { transform: rotateY(0deg); border-color: rgba(255, 255, 255, 0.2); }
.ring-v2 { transform: rotateY(30deg); }
.ring-v3 { transform: rotateY(60deg); }
.ring-v4 { transform: rotateY(90deg); border-color: rgba(255, 255, 255, 0.15); }
.ring-v5 { transform: rotateY(120deg); }
.ring-v6 { transform: rotateY(150deg); }

/* 3D Latitudinal Rings (Horizontal lines) */
.ring-h1 { transform: rotateX(90deg) translateZ(0); border-color: rgba(255, 255, 255, 0.2); }
.ring-h2 { transform: rotateX(90deg) translateZ(50px) scale(0.93); }
.ring-h3 { transform: rotateX(90deg) translateZ(-50px) scale(0.93); }
.ring-h4 { transform: rotateX(90deg) translateZ(90px) scale(0.76); }
.ring-h5 { transform: rotateX(90deg) translateZ(-90px) scale(0.76); }
.ring-h6 { transform: rotateX(90deg) translateZ(120px) scale(0.5); }
.ring-h7 { transform: rotateX(90deg) translateZ(-120px) scale(0.5); }

/* Glowing Inner Orb */
.sphere-core {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(0, 0, 0, 0.9) 100%);
  box-shadow: 
    0 0 30px rgba(255, 255, 255, 0.15),
    inset 0 0 15px rgba(255, 255, 255, 0.2);
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.05));
  animation: floatInner 8s ease-in-out infinite alternate;
}

/* Animations */
@keyframes floatEffect {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes floatInner {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.05) translate(-3px, 3px); }
}

@keyframes spinSphere {
  0% { transform: rotateX(145deg) rotateY(0deg) rotateZ(0deg); }
  100% { transform: rotateX(145deg) rotateY(360deg) rotateZ(360deg); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); filter: blur(50px); }
  50% { opacity: 0.8; transform: scale(1.15); filter: blur(65px); }
}

@keyframes pulseGlowDot {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* --- Tool Section (Affirmation Generator) --- */
.tool-section {
  padding: 6rem 0;
  position: relative;
  background-color: rgba(18, 18, 23, 0.3);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.tool-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.tool-config-card {
  background-color: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.tool-heading {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.tool-subheading {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 1.2rem;
  transform: translateY(-50%);
  width: 8px;
  height: 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23a1a1aa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  transition: var(--transition-fast);
}

.select-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  font-size: 0.95rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.select-control:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.select-control option {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 0.5rem;
}

.generate-btn {
  width: 100%;
  padding: 1rem;
  background-color: var(--text-light);
  color: var(--bg-dark);
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--text-light);
}

.generate-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: var(--transition-smooth);
}

.generate-btn:hover {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid var(--text-light);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.generate-btn:hover svg {
  transform: rotate(180deg);
}

/* --- Generator Output Premium Card --- */
.tool-display {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.affirmation-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.005) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 3.5rem;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.affirmation-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
  pointer-events: none;
  transform: rotate(30deg);
}

.affirmation-card.generating {
  opacity: 0.5;
  transform: scale(0.98);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.card-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: rgba(255, 255, 255, 0.06);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-logo {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.card-body {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 2.5rem;
}

.affirmation-text {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-light);
  letter-spacing: -0.01em;
  transition: var(--transition-smooth);
}

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

.card-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.card-actions {
  display: flex;
  gap: 0.8rem;
}

.action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background-color: rgba(255, 255, 255, 0.01);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-muted);
  position: relative;
}

.action-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.action-btn:hover {
  background-color: var(--text-light);
  color: var(--bg-dark);
  border-color: var(--text-light);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

/* Tooltip */
.action-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background-color: #ffffff;
  color: #000000;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
  pointer-events: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.action-btn:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Toast Message */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--text-light);
  color: var(--bg-dark);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 2000;
}

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

/* Mindset Reset Quiz CTA */
.quiz-container {
  display: none;
  margin-top: 2rem;
  text-align: center;
  animation: quizFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.quiz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  background: linear-gradient(135deg, #ffffff 0%, #e5e5e5 100%);
  color: #000000;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.quiz-btn svg {
  transition: transform 0.3s ease;
}

.quiz-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
  background: #ffffff;
}

.quiz-btn:hover svg {
  transform: translateX(4px);
}

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

/* --- SEO Content Page Layout --- */
.seo-section {
  padding: 6rem 0;
}

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

.seo-article {
  max-width: 900px;
  margin: 0 auto;
}

.seo-h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  position: relative;
  display: inline-block;
}

.seo-h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--text-light);
  margin-top: 0.5rem;
}

.seo-h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.seo-p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.seo-p strong {
  color: var(--text-light);
  font-weight: 600;
}

.seo-list {
  margin-bottom: 1.8rem;
  padding-left: 1.5rem;
}

.seo-list-item {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.75rem;
  position: relative;
  list-style: square;
}

.seo-list-item strong {
  color: var(--text-light);
}

.seo-quote {
  border-left: 3px solid var(--text-light);
  padding: 1rem 1.8rem;
  background-color: var(--bg-glass);
  margin: 2rem 0;
  border-radius: 0 12px 12px 0;
}

.seo-quote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-light);
}

.seo-quote span {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Category Grid on homepage */
.category-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 3.5rem 0;
}

.category-card {
  background-color: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.8rem;
  text-align: center;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.04);
  border-color: var(--text-light);
}

.category-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.category-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-light);
}

/* --- FAQ Accordion Section --- */
.faq-section {
  padding: 6rem 0;
  background-color: rgba(18, 18, 23, 0.3);
  border-top: 1px solid var(--border-glass);
}

.faq-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4rem auto;
}

.faq-header-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

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

.faq-list {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

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

.faq-item:hover {
  border-color: var(--border-glass-hover);
}

.faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-light);
}

.faq-question svg {
  width: 14px;
  height: 8px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2px;
  transition: var(--transition-smooth);
  flex-shrink: 0;
  margin-left: 1.5rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
  padding: 0 2rem 1.8rem 2rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

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

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

.faq-item.active .faq-answer {
  max-height: 350px; /* Large enough to hold text */
}

/* --- Premium Footer --- */
.footer {
  margin-top: auto;
  background-color: #050507;
  border-top: 1px solid var(--border-glass);
  padding: 5rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--text-light);
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}

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

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Social Hover Colors */
.social-link.fb:hover {
  background-color: #1877f2;
  color: #fff;
  border-color: #1877f2;
  box-shadow: 0 0 15px rgba(24, 119, 242, 0.4);
}

.social-link.ig:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 15px rgba(214, 36, 159, 0.4);
}

.social-link.pt:hover {
  background-color: #bd081c;
  color: #fff;
  border-color: #bd081c;
  box-shadow: 0 0 15px rgba(189, 8, 28, 0.4);
}

.social-link.tw:hover {
  background-color: #000000;
  color: #fff;
  border-color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: inline-block;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-copy {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

/* --- Secondary Pages Common Styling --- */
.page-hero {
  padding: 6rem 0 3rem 0;
  text-align: center;
  position: relative;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.page-hero-title span {
  background: linear-gradient(180deg, #ffffff 40%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.page-content-wrapper {
  padding-bottom: 6rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 4rem;
  align-items: center;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.feature-box {
  background-color: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.8rem;
  transition: var(--transition-smooth);
}

.feature-box:hover {
  border-color: var(--text-light);
  transform: translateY(-3px);
}

.feature-box-icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  display: block;
}

.feature-box-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.feature-box-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Contact Page Form */
.contact-container {
  max-width: 750px;
  margin: 0 auto;
  background-color: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 3.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.contact-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-intro-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-intro-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

.form-control-input, .form-control-textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control-input:focus, .form-control-textarea:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.04);
}

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

.contact-btn {
  width: 100%;
  padding: 1rem;
  background-color: var(--text-light);
  color: var(--bg-dark);
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--text-light);
}

.contact-btn:hover {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid var(--text-light);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.contact-success {
  display: none;
  text-align: center;
  padding: 2rem 0;
  animation: fadeIn 0.5s ease;
}

.contact-success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.contact-success-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.contact-success-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

/* --- Mobile Menu Drawer --- */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: #0b0b0e;
  border-left: 1px solid var(--border-glass);
  z-index: 1100;
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: var(--transition-smooth);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mobile-nav-link.active, .mobile-nav-link:hover {
  color: var(--text-light);
  border-bottom-color: var(--text-light);
}

.mobile-cta {
  margin-top: auto;
  text-align: center;
  width: 100%;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Toggle Hamburger Transformation */
.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Responsive Media Queries --- */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-title {
    font-size: 3.2rem;
  }
  
  .hero-visual {
    order: 1; /* Place 3D Sphere below the heading on tablets */
    margin-top: 1.5rem;
  }
  
  .tool-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .nav-menu, .cta-header-btn {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .hero-title {
    font-size: 2.6rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  
  .btn-primary, .btn-secondary, .quiz-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  
  .hero-visual {
    display: none; /* Hide 3D wireframe sphere on mobile to prevent clutter and overlap */
  }
  
  .tool-config-card {
    padding: 1.5rem;
  }
  
  .affirmation-card {
    padding: 2rem;
    min-height: 320px;
  }
  
  .affirmation-text {
    font-size: 1.45rem;
  }
  
  .card-footer {
    justify-content: center; /* Center actions on mobile */
  }
  
  .contact-grid-2 {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    padding: 2rem;
  }
  
  .faq-header-title {
    font-size: 2.2rem;
  }
  
  .faq-question {
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
  }
  
  .faq-answer-inner {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .category-showcase {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile instead of 1 long list of 5 */
    gap: 1rem;
    margin: 2rem 0;
  }
  
  .category-card {
    padding: 1.2rem 0.8rem;
    border-radius: 10px;
  }
  
  .category-card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .category-card-title {
    font-size: 0.95rem;
  }
  
  .faq-header-title {
    font-size: 1.8rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand {
    align-items: center;
    text-align: center;
  }
  
  .footer-column {
    align-items: center;
    text-align: center;
  }
  
  .footer-links {
    align-items: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

/* ==========================================================================
   404 ERROR PAGE LAYOUT
   ========================================================================== */
.error-page-wrapper {
  min-height: calc(100vh - 80px - 350px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.error-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  width: 100%;
}

.error-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.error-badge {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.error-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.error-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.error-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.error-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
}

.error-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.005) 50%, transparent 70%);
  filter: blur(40px);
  animation: pulseGlow 10s ease-in-out infinite alternate;
}

.error-sphere {
  position: relative;
  width: 260px;
  height: 260px;
  transform-style: preserve-3d;
  perspective: 800px;
  animation: floatEffect 6s ease-in-out infinite alternate;
  display: flex;
  justify-content: center;
  align-items: center;
}

.error-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.error-ring-v1 {
  transform: rotateY(45deg);
  border-color: rgba(255, 255, 255, 0.15);
}

.error-ring-v2 {
  transform: rotateY(135deg);
}

.error-ring-h1 {
  transform: rotateX(90deg) translateZ(0);
  border-color: rgba(255, 255, 255, 0.12);
}

.error-center-num {
  position: absolute;
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 800;
  color: var(--text-light);
  text-shadow: 0 0 35px rgba(255, 255, 255, 0.15);
  letter-spacing: -0.05em;
  pointer-events: none;
}

@media (max-width: 992px) {
  .error-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .error-content {
    align-items: center;
    text-align: center;
  }
  
  .error-title {
    font-size: 2.8rem;
  }
  
  .error-actions {
    justify-content: center;
  }
}
