/* Base Design Tokens & Layout Reset */
:root {
  --bg-primary: #0e1015;
  --bg-secondary: #161820;
  --bg-card: #1e202b;
  --bg-card-hover: #262937;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(88, 101, 242, 0.4);
  
  --text-main: #f2f3f5;
  --text-muted: #b5bac1;
  --text-sub: #949ba4;

  --accent-blurple: #5865f2;
  --accent-purple: #9b59b6;
  --accent-red: #ed4245;
  --accent-amber: #fee75c;
  --accent-teal: #57f287;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;

  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(88, 101, 242, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

body.allow-copy, body.allow-copy * {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

body.no-copy, body.no-copy * {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

input, textarea {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}


.main-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
  flex: 1;
}

/* Tab Switching Animations */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

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

.section-header {
  margin-bottom: 1.75rem;
}

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

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

footer.footer {
  border-top: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  background: var(--bg-secondary);
  margin-top: auto;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-sub);
  font-size: 0.85rem;
}

.footer-dot {
  color: var(--text-muted);
}

.footer-contacts {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

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

.developer-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.dev-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.25);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.dev-badge:hover {
  background: rgba(88, 101, 242, 0.15);
  border-color: rgba(88, 101, 242, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.15);
}

.dev-name {
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.dev-name:hover {
  color: #a855f7;
  background: rgba(168, 85, 247, 0.18);
}

.dev-id {
  color: var(--text-sub);
  font-size: 0.75rem;
  font-family: monospace;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.dev-id:hover {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.18);
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 4.5rem;
  }
}

/* Floating Back To Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(24, 26, 38, 0.95);
  border: 2px solid rgba(88, 101, 242, 0.5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  outline: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top svg {
  width: 26px;
  height: 26px;
  stroke: #ffffff;
  stroke-width: 3;
  transition: transform 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: var(--accent-blurple);
  border-color: #7289da;
  color: #ffffff;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.55);
}

.back-to-top:active {
  transform: translateY(-1px) scale(0.96);
}

.back-to-top:hover svg {
  transform: translateY(-3px);
}

@media (max-width: 600px) {
  .main-wrapper {
    padding: 1rem 0.75rem;
  }
  .section-title {
    font-size: 1.3rem;
  }
  .section-subtitle {
    font-size: 0.84rem;
  }
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
  }
  .back-to-top svg {
    width: 22px;
    height: 22px;
  }
}

