/* Base Styles - Core CSS Variables and Reset */

:root {
  /* Color Palette */
  --bg-main: linear-gradient(135deg, #2b2d31 0%, #1e1f22 100%);
  --accent: #5865f2;
  --accent-2: #4752c4;
  --muted: #b5bac1;
  --card-bg: rgba(43, 45, 49, 0.95);
  --glass-border: rgba(255, 255, 255, 0.06);
  --text: #f2f3f5;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --glass-blur: 8px;
  
  /* Status Colors */
  --success: #3ba55c;
  --warning: #faa61a;
  --danger: #ed4245;
  
  /* Transitions */
  --transition: all 0.2s ease;
}

/* Reduced Motion Support */
@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;
  }
}

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

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

body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: #2b2d31;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Hide scrollbar but keep functionality */
body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: transparent;
}

body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Main Content Wrapper */
.main-content-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Page Container */
.page-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
  flex: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1rem 0;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin: 0 0 1rem 0;
}

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

a:hover {
  color: var(--accent-2);
}

/* Utility Classes */
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.text-center {
  text-align: center;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Button Styles */
.btn {
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.15);
  transition: var(--transition);
  display: inline-block;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.25);
}

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

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 0.625rem 1rem;
  border-radius: 10px;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Card Styles */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--glass-blur));
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* Loading States */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.04)
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.spinner {
  border: 3px solid var(--glass-border);
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-container {
    padding: 1.5rem 1rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.35rem; }
}

@media (max-width: 768px) {
  .page-container {
    padding: 1rem;
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.15rem; }
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .btn,
  .btn-ghost,
  footer,
  nav {
    display: none;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
  
  .page-container {
    max-width: 100%;
    padding: 0;
  }
}

/* Accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Styles */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 700;
  font-family: Poppins, Inter;
  box-shadow: var(--shadow);
}

.splash-logo {
  position: absolute;
  top: -10px;
  left: -10px;
  z-index: 10;
}
.splash-logo img {
  width: auto;
}
.splash {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url("Assets/Splash.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.splash-btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
  font-weight: 600;
}
.splash-btn.primary {
  background-color: var(--accent);
  color: #000;
}
.splash-btn.primary:hover {
  background-color: var(--accent-2);
}
.splash-btn.secondary {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.splash-btn.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.splash-logo {
  position: absolute;
  top: -10px;
  left: -10px;
  z-index: 10;
}
.splash-logo img {
  width: auto;
}
@media (min-width: 768px) {
  .headline {
    font-size: 4rem;
  }
}
@media (max-width: 768px) {
  .footer-a:nth-child(n + 2) {
    display: none;
  }
}

@media (max-width: 1024px) {
  .splash {
    height: 100vh;
    padding: 1rem;
  }
  .overlay {
    padding: 1.5rem;
  }
  .content {
    max-width: 600px;
  }
  .headline {
    font-size: 2rem;
  }
  .splash-buttons {
    gap: 0.75rem;
  }
  .splash-btn {
    padding: 0.85rem 1.8rem;
    font-size: 1.2rem;
  }
  .splash-logo img {
    height: 220px;
  }
}
@media (max-width: 640px) {
  .splash {
    background-position: left center;
    height: 100vh;
    padding: 0.75rem;
  }
  .overlay {
    padding: 1rem;
  }
  .content {
    max-width: 90%;
  }
  .headline {
    font-size: 1.6rem;
    line-height: 1.3;
  }
  .splash-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
  .splash-btn {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  .splash-logo img {
    height: 180px;
  }
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.content {
  max-width: 800px;
  animation: fadeIn 1.5s ease-out;
  font-family: Be Vietnam Pro, sans-serif;
  font-weight: 400;
}
.headline {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 2rem;
}

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  background-color: #5865f2;
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 12px 16px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, opacity 0.3s;
  opacity: 0.7;
  display: none; /* start hidden */
}

#scrollTopBtn:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* Overlay */
#footerModalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#footerModalContent {
  background: rgba(43, 45, 49);
  backdrop-filter: blur(var(--glass-blur) px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 25px 30px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  color: var(--text);
  box-shadow: var(--shadow);
}

/* Close Button */
#footerModalClose {

  top: 10px;
  right: 15px;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--accent);
}

#footerModalClose:hover {
  color: var(--accent-2);
}

#footerModalContent h2 {
  margin-top: 0;
  color: var(--accent);
}

#footerModalContent a {
  color: var(--accent-2);
}

#footerModalContent a:hover {
  text-decoration: underline;
}
@media (min-width: 500px) {
  .footer-ul {
    grid-auto-flow: column;
    list-style: none;
  }
}
.footer-a {
  color: var(--muted);
}

.footer-div {
  bottom: 0;
  width: 100%;
  display: flex;
  height: 10vh;
  margin-top: 40px;
  width: 100%;
  color: var(--muted);
  line-height: 1.3;
  font-family: Menlo, monospace;

  bottom: 0;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: var(--palette-offwhite-100);
  color: var(--palette-offgray-600);
  font-size: 0.8rem;
}
.footer-ul {
  display: inline-grid;
  grid-auto-flow: row;
  grid-gap: 24px;
  display: flex;
  justify-content: center;
  margin: auto;
  align-items: center;
}

.module-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
    .headline {
        font-size: 4rem;
    }
}
.highlight {
  color: var(--accent);
}