@import url('theme.css');

* {
  scrollbar-width: thin;
  scrollbar-color: var(--text-dim) transparent;
}

/* Dot Matrix Background */
.bg-dot-matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--text-dim) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
  animation: dotDrift 60s linear infinite;
}

@keyframes dotDrift {
  from { background-position: 0 0; }
  to { background-position: 32px 64px; }
}

::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--c-secondary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--c-primary);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.glass-dark {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 3.5rem;
  border-radius: 4rem;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.detail-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.creative-btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(99, 103, 255, 0.1);
}

.creative-btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(99, 103, 255, 0.2);
}

.creative-btn-premium {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text) !important;
  border: 1px solid var(--btn-secondary-border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.creative-btn-premium {
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  background: var(--c-bg);
  color: var(--c-accent) !important;
  z-index: 1;
}

.creative-btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: all 0.6s ease;
  z-index: -1;
}

.creative-btn-premium:hover {
  background: var(--c-secondary) !important;
  color: var(--c-bg) !important;
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 30px 60px rgba(231, 111, 46, 0.4);
}

.creative-btn-premium:hover::before {
  left: 100%;
}

/* Header Premium Button */
.btn-nav-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text) !important;
  border: 1px solid var(--btn-secondary-border);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-nav-premium:hover {
  background: var(--c-accent) !important;
  color: var(--c-bg) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

@keyframes shineSweep {
  0% { left: -150%; }
  100% { left: 150%; }
}

.premium-btn {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text) !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  border: 1px solid var(--btn-secondary-border);
}

.premium-btn:hover {
  background: var(--c-accent) !important;
  color: var(--c-bg) !important;
  transform: scale(1.02);
}

/* Global Button Visibility Fixes */
.btn-nav-login {
  color: var(--c-bg) !important;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.btn-nav-login:hover {
  opacity: 1;
  text-shadow: 0 0 20px rgba(245, 233, 216, 0.4);
}

.btn-support-yellow {
  background-color: var(--c-secondary) !important;
  color: var(--c-bg) !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 40px rgba(231, 111, 46, 0.3) !important;
}

.btn-support-yellow:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 50px rgba(231, 111, 46, 0.5) !important;
}

.link-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Wizard Styles */
.wizard-step {
  display: none;
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wizard-step.active {
  display: block;
}

@keyframes slideIn {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.progress-bar-step {
  height: 4px;
  flex: 1;
  background: var(--c-accent);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.progress-bar-step.active {
  background: var(--c-primary);
  box-shadow: 0 0 15px rgba(99, 103, 255, 0.2);
}

/* Premium Button (Gold) */
.btn-premium-grad {
  background: var(--c-secondary);
  color: var(--c-bg) !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.btn-premium-grad:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.3);
}

.border-glow {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.border-glow:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}
/* Animative UI & Interactive Effects */
.scroll-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Floating Letters Animation */
.char-float {
  display: inline-block;
  opacity: 0;
  transform: translateY(100px) rotate(10deg);
  filter: blur(10px);
  animation: floatIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes floatIn {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
    filter: blur(0);
  }
}

/* Liquid Ripple Button Effect */
.ripple-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ripple-btn .ripple-wave {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  transform: scale(0);
  pointer-events: none;
  animation: rippleAnimation 0.6s linear;
}

@keyframes rippleAnimation {
  to {
    transform: scale(8);
    opacity: 0;
  }
}

/* Vertical Dot Navigation */
.dot-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dot-nav-item {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Refinements */
@media (max-width: 768px) {
  .scroll-section {
    min-height: auto;
    padding: 6rem 0;
  }
  
  #hero-title {
    font-size: clamp(3rem, 15vw, 5rem) !important;
    line-height: 1 !important;
  }
  
  .dot-nav {
    display: none; /* Hide dots on mobile for cleaner UI */
  }
  
  .detail-card {
    padding: 2rem;
    border-radius: 2.5rem;
  }

  /* Scroll Top Wrapper */
  .scroll-top-wrapper {
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .scroll-top-wrapper.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* Scroll Progress Component */
.scroll-top-wrapper {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  width: 70px;
  height: 70px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-top-wrapper.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.progress-circle {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.progress-bg {
  fill: none;
  stroke: rgba(245, 233, 216, 0.1);
  stroke-width: 6;
}

.progress-bar {
  fill: none;
  stroke: var(--c-secondary);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}

.scroll-top-btn {
  width: 50px;
  height: 50px;
  background: var(--c-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 2;
}

.scroll-top-wrapper:hover .scroll-top-btn {
  transform: scale(1.1);
  background: var(--c-secondary);
  color: var(--c-bg);
}

.scroll-top-wrapper.is-bottom .scroll-top-btn {
  background: var(--c-secondary);
  color: var(--c-bg);
  box-shadow: 0 0 30px var(--c-secondary);
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.dot-nav-item.active {
  background: var(--c-bg);
  transform: scale(1.8);
  box-shadow: 0 0 15px rgba(245, 233, 216, 0.4);
}

.hero-overlay {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  inset: 0;
  opacity: 0.15;
  filter: blur(100px);
  z-index: -1;
}

.faq-item.active button {
  border-color: var(--c-secondary);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  background: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(-10px);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

.faq-item.active .faq-icon-wrapper {
  background: var(--c-secondary);
  transform: rotate(45deg);
}

.faq-item.active .faq-icon {
  color: var(--c-bg);
}
/* Skeleton Loading Animation */
.skeleton {
  background-color: rgba(62, 44, 35, 0.05);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 0.5rem;
}

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

/* Social Profile Layout Components */
.cover-photo-container {
  height: 350px;
  width: 100%;
  position: relative;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.cover-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-header-wrapper {
  max-width: 1200px;
  margin: -60px auto 0;
  padding: 0 2rem;
  position: relative;
  z-index: 20;
}

.profile-avatar-large {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 6px solid var(--bg-page);
  background: var(--bg-card);
  overflow: hidden;
}

.tab-nav-item {
  padding: 1rem 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.tab-nav-item.active {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
}

.social-sidebar {
  width: 100%;
}

@media (min-width: 1024px) {
  .social-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 1.5rem;
  }
  .social-sidebar {
    position: sticky;
    top: 5rem;
  }
}

.card-social {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
