/* Base Styles - Shared across all pages */

/* Header Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.15);
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 8px;
}

.sign-out {
  color: rgba(255, 255, 255, 0.6) !important;
}

.sign-out:hover {
  color: #ff6b6b !important;
  background: rgba(255, 107, 107, 0.1) !important;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: #0a0a0a;
  color: white;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Background gradient overlay for bottom left corner */
body::before {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at center,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.05) 30%,
      transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Scroll progress indicator */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.7));
  z-index: 9999;
  pointer-events: none;
  will-change: width;
  transition: width 0.08s linear;
}

/* Aurora Background Effect — CSS-only, GPU compositor thread */
#bg-effect {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

/* Top-left anchor — large primary glow */
.bg-orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle at center,
    rgba(255, 255, 255, 0.11) 0%,
    rgba(255, 255, 255, 0.04) 45%,
    transparent 70%);
  filter: blur(45px);
  top: -280px;
  left: -280px;
  animation: orb-drift-1 32s ease-in-out infinite;
}

/* Bottom-right anchor — cooler tint, slow */
.bg-orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at center,
    rgba(200, 220, 255, 0.09) 0%,
    rgba(180, 210, 255, 0.03) 45%,
    transparent 70%);
  filter: blur(60px);
  bottom: -200px;
  right: -200px;
  animation: orb-drift-2 40s ease-in-out infinite;
  animation-delay: -14s;
}

/* Floating center-right — subtle mid-layer */
.bg-orb-3 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at center,
    rgba(255, 255, 255, 0.07) 0%,
    transparent 65%);
  filter: blur(50px);
  top: 38%;
  left: 52%;
  animation: orb-drift-3 26s ease-in-out infinite;
  animation-delay: -6s;
}

/* Top-right accent — small warm highlight */
.bg-orb-4 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at center,
    rgba(255, 248, 230, 0.09) 0%,
    transparent 60%);
  filter: blur(35px);
  top: 8%;
  right: 12%;
  animation: orb-drift-4 20s ease-in-out infinite;
  animation-delay: -10s;
}

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%       { transform: translate(90px, 130px) scale(1.07); }
  50%       { transform: translate(170px, 55px) scale(0.95); }
  75%       { transform: translate(45px, 210px) scale(1.04); }
}

@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-110px, -90px) scale(1.10); }
  66%       { transform: translate(-190px, -35px) scale(0.93); }
}

@keyframes orb-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(-130px, 90px) scale(1.14); }
  70%       { transform: translate(70px, -70px) scale(0.88); }
}

@keyframes orb-drift-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-90px, 70px) scale(1.12); }
}

@media (max-width: 768px) {
  .bg-orb-1 { width: 450px; height: 450px; top: -180px; left: -180px; }
  .bg-orb-2 { width: 380px; height: 380px; bottom: -130px; right: -130px; }
  .bg-orb-3 { width: 280px; height: 280px; }
  .bg-orb-4 { width: 200px; height: 200px; }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(7, 7, 7, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: inline-block;
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
}

.nav-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Button Styles */
.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-primary {
  background: white;
  color: #0a0a0a;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.cta-button {
  background: white;
  color: #0a0a0a;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.cta-button:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
}

/* Common Typography */
.section-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 40px;
  text-align: left;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Common Card Styles */
.card-title {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
  line-height: 1.3;
}

.card-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Common Section Layout */
.page-main {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: 40px 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.page-header {
  text-align: center;
  margin-bottom: 80px;
  padding-top: 60px;
}

.page-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  line-height: 1.4;
}

.page-content {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-bottom: 120px;
}

.page-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer Styles */
.footer {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 120px;
  z-index: 10;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer.visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 60px;
}

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

.footer-logo {
  font-size: 28px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}

.footer-logo:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.1));
}

.footer-description {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 300px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

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

.footer-heading {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
}

.footer-link:hover {
  color: white;
  transform: translateX(4px);
}

.footer-link:hover::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 12px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.3));
  border-radius: 1px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-separator {
  color: rgba(255, 255, 255, 0.5);
}

.footer-crafted-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-crafted-link {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: opacity 0.2s ease;
  padding: 2px 4px;
  border-radius: 2px;
}

.footer-crafted-link:hover {
  opacity: 0.8;
}

.footer-crafted-link:focus {
  outline: 1px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.footer-crafted-logo {
  height: 48px;
  width: auto;
  display: inline-block;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.footer-crafted-link:hover .footer-crafted-logo {
  opacity: 1;
}

/* Landing Page Footer Styles */
.landing-footer {
  background: white;
  border-top: 1px solid #e5e7eb;
  margin-top: 96px;
  padding: 48px 16px;
}

.landing-footer-container {
  max-width: 80rem;
  margin: 0 auto;
}

.landing-footer-content {
  text-align: center;
}

.landing-footer-text {
  font-size: 14px;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.landing-footer-link {
  color: #d97706;
  text-decoration: none;
  transition: color 0.2s ease;
}

.landing-footer-link:hover {
  color: #b45309;
}

.landing-footer-crafted-link {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: opacity 0.2s ease;
  padding: 2px 4px;
  border-radius: 2px;
}

.landing-footer-crafted-link:hover {
  opacity: 0.8;
}

.landing-footer-crafted-link:focus {
  outline: 1px solid #9ca3af;
  outline-offset: 2px;
}

.landing-footer-logo {
  height: 16px;
  width: auto;
  display: inline-block;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.landing-footer-crafted-link:hover .landing-footer-logo {
  opacity: 1;
}

@media (prefers-color-scheme: dark) {
  .landing-footer {
    background: #111827;
    border-top-color: #374151;
  }

  .landing-footer-text {
    color: #9ca3af;
  }

  .landing-footer-crafted-link:focus {
    outline-color: #6b7280;
  }

  .landing-footer-logo {
    opacity: 0.5;
  }

  .landing-footer-crafted-link:hover .landing-footer-logo {
    opacity: 0.8;
  }
}

.footer-social {
  display: flex;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

/* Base Responsive Design */
@media (max-width: 768px) {
  body::before {
    width: 300px;
    height: 300px;
  }

  .header {
    padding: 16px 24px;
  }

  .nav-buttons {
    gap: 12px;
  }

  .btn-secondary,
  .btn-primary {
    padding: 10px 16px;
    font-size: 13px;
  }

  .page-main {
    padding: 24px 24px 0;
  }

  .page-header {
    margin-bottom: 60px;
    padding-top: 40px;
  }

  .page-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .page-subtitle {
    font-size: 16px;
  }

  .page-content {
    gap: 60px;
    margin-bottom: 80px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .card-title {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .card-text {
    font-size: 14px;
  }

  /* Footer responsive */
  .footer {
    margin-top: 80px;
  }

  .footer-container {
    padding: 40px 24px 0;
  }

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

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

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

  .footer-copyright {
    justify-content: center;
  }

  /* Landing footer mobile */
  .landing-footer {
    margin-top: 64px;
    padding: 40px 16px;
  }
}

@media (max-width: 480px) {
  body::before {
    width: 250px;
    height: 250px;
  }

  .header {
    padding: 12px 16px;
  }

  .logo {
    font-size: 20px;
  }

  .logo img {
    height: 32px;
  }

  .nav-buttons {
    gap: 8px;
  }

  .btn-secondary,
  .btn-primary {
    padding: 8px 12px;
    font-size: 12px;
  }

  .cta-button {
    padding: 14px 28px;
    font-size: 15px;
  }

  .page-main {
    padding: 16px 16px 0;
  }

  .page-header {
    margin-bottom: 40px;
    padding-top: 24px;
  }

  .page-content {
    gap: 40px;
    margin-bottom: 60px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  /* Footer responsive */
  .footer-container {
    padding: 32px 16px 0;
  }

  .footer-content {
    gap: 32px;
    margin-bottom: 32px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-logo {
    font-size: 24px;
  }

  .footer-description {
    font-size: 14px;
  }

  .social-link {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  /* Landing footer small mobile */
  .landing-footer {
    margin-top: 48px;
    padding: 32px 16px;
  }

  .landing-footer-text {
    font-size: 13px;
    gap: 6px;
  }

  .landing-footer-logo {
    height: 14px;
  }
}

.display-none {
  display: none;
}

.white-text {
  color: rgba(255, 255, 255, 0.8);
}

.sign-out-btn {
  background: transparent;
  border: none;
  cursor: pointer;
}

.sign-out-btn:hover {
  color: #ff6b6b !important;
  background: rgba(255, 107, 107, 0.1) !important;
}

.hidden {
  display: none !important;
}

.contact-link {
  color: #ffab1d;
}

/* ================================
   REDUCED MOTION SUPPORT
   Respects macOS System Settings → Accessibility → Display → Reduce motion,
   or the html.reduce-motion class set by hardware detection in JS.
   ================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  #bg-effect {
    display: none;
  }

  .page-section,
  .footer,
  .general-section,
  .blog-section {
    opacity: 1 !important;
    transform: none !important;
  }
}

html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

html.reduce-motion #bg-effect {
  display: none;
}

html.reduce-motion .page-section,
html.reduce-motion .footer,
html.reduce-motion .general-section,
html.reduce-motion .blog-section {
  opacity: 1 !important;
  transform: none !important;
}
