/* 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;
}

/* Enhanced Particle Canvas */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: contrast(1.1) brightness(1.05);
}

/* Header */
.header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  /* background: rgba(10, 10, 10, 0.8); */
  backdrop-filter: blur(10px);
}

.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: all 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);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 120px;
  z-index: 10;
  opacity: 0;
  transform: translateY(30px);
  transition: all 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;
}
