/* ==============================================
   NOVEMBR PROJECT — PORTFOLIO SYSTEM
   DarkSide Landing Page Styles
   Mobile First • Premium • 60 FPS Target
   ============================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #050505;
  color: #ffffff;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* --- Typography --- */
.heading-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.15;
  color: #ffffff;
  text-align: center;
}

.heading-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25em;
  line-height: 1;
  color: #A0A0A0;
  text-align: center;
  margin-top: 8px;
}

/* --- Aurora Background --- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  transform: translateZ(0);
}

.aurora-blob-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(0,255,157,0.22) 0%, transparent 70%);
  filter: blur(100px);
  top: 5%;
  left: -10%;
  opacity: 0.6;
  animation: aurora-drift-1 14s ease-in-out infinite;
}

.aurora-blob-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0,255,157,0.15) 0%, transparent 70%);
  filter: blur(90px);
  top: 50%;
  right: -15%;
  opacity: 0.5;
  animation: aurora-drift-2 18s ease-in-out infinite;
}

.aurora-blob-3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(0,255,157,0.10) 0%, rgba(0,200,120,0.05) 50%, transparent 70%);
  filter: blur(80px);
  bottom: 5%;
  left: 20%;
  opacity: 0.4;
  animation: aurora-drift-3 20s ease-in-out infinite;
}

.aurora-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(5,5,5,0.7) 100%);
}

.aurora-noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

@keyframes aurora-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, 25px) scale(1.08); }
  66%      { transform: translate(-15px, -10px) scale(0.96); }
}

@keyframes aurora-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-30px, -20px) scale(1.05); }
  66%      { transform: translate(20px, 15px) scale(0.94); }
}

@keyframes aurora-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(25px, -15px) scale(1.1); }
  66%      { transform: translate(-20px, 20px) scale(0.92); }
}

/* --- Mouse Follow Glow --- */
.mouse-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,157,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  display: none;
  will-change: transform;
}

/* --- Welcome Screen --- */
.welcome {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1),
              filter 600ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.75);
  pointer-events: none;
}

.welcome-text {
  position: relative;
  z-index: 1;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
  text-align: center;
  line-height: 1.7;
  max-width: 320px;
  padding: 0 24px;
}

.typed-cursor {
  color: #00FF9D;
  font-weight: 300;
  animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.welcome.fade-out {
  opacity: 0;
  filter: blur(12px);
  transform: scale(0.94);
  pointer-events: none;
}

/* --- Main Content --- */
.main-content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 16px;
  opacity: 0;
  filter: blur(12px);
  transform: scale(0.97);
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1),
              filter 700ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content.visible {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

/* --- Glass Card --- */
.glass-card {
  max-width: 420px;
  width: 100%;
  padding: 36px 24px 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 0 50px rgba(0, 255, 157, 0.03),
    0 24px 64px rgba(0, 0, 0, 0.45);
  animation: card-float 7s ease-in-out infinite,
             card-glow-pulse 5s ease-in-out infinite;
  will-change: transform;
}

@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

@keyframes card-glow-pulse {
  0%, 100% {
    box-shadow:
      0 0 50px rgba(0, 255, 157, 0.03),
      0 24px 64px rgba(0, 0, 0, 0.45);
  }
  50% {
    box-shadow:
      0 0 70px rgba(0, 255, 157, 0.06),
      0 24px 64px rgba(0, 0, 0, 0.45);
  }
}

/* --- Logo --- */
.logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 64px;
  margin-bottom: 28px;
}

.logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
}

.logo-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.18em;
  color: #00FF9D;
  line-height: 1.25;
  text-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
}

.logo-fallback span:last-child {
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.35em;
  color: rgba(0, 255, 157, 0.7);
  margin-top: 2px;
}

/* --- Heading --- */
.heading-wrap {
  margin-bottom: 32px;
}

/* --- Button List --- */
.btn-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

/* --- Premium Button --- */
.btn-premium {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  background:
    linear-gradient(135deg, rgba(0,255,157,0.03) 0%, transparent 60%),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 350ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 350ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 300ms cubic-bezier(0.4, 0, 0.2, 1),
    background 350ms cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* Gradient Overlay — Shine Sweep */
.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,255,157,0.08), transparent);
  transition: left 550ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Hover State */
.btn-premium:hover {
  border-color: rgba(0, 255, 157, 0.28);
  box-shadow:
    0 0 24px rgba(0, 255, 157, 0.1),
    0 0 64px rgba(0, 255, 157, 0.04),
    inset 0 0 24px rgba(0, 255, 157, 0.03);
  transform: translateY(-2px) scale(1.018);
  background:
    linear-gradient(135deg, rgba(0,255,157,0.06) 0%, transparent 60%),
    rgba(255, 255, 255, 0.07);
}

.btn-premium:hover .btn-shine {
  left: 100%;
}

/* Active / Pressed State */
.btn-premium:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 100ms;
  box-shadow:
    0 0 16px rgba(0, 255, 157, 0.08),
    inset 0 0 30px rgba(0, 255, 157, 0.05);
}

/* Button Label */
.btn-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.9);
  transition: color 300ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.btn-premium:hover .btn-label {
  color: #ffffff;
}

/* Button Arrow */
.btn-arrow {
  flex-shrink: 0;
  margin-left: 12px;
  color: rgba(255, 255, 255, 0.3);
  transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1),
              color 300ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.btn-premium:hover .btn-arrow {
  transform: translateX(5px);
  color: #00FF9D;
}

/* Ripple Effect */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,157,0.25), transparent 70%);
  transform: scale(0);
  animation: ripple-expand 600ms ease-out forwards;
  pointer-events: none;
  z-index: 1;
}

@keyframes ripple-expand {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

/* --- Footer --- */
.card-footer {
  text-align: center;
}

.card-footer p {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(160, 160, 160, 0.6);
}

/* --- Focus & Accessibility --- */
.btn-premium:focus-visible {
  outline: 2px solid #00FF9D;
  outline-offset: 3px;
}

.btn-premium:focus:not(:focus-visible) {
  outline: none;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .welcome {
    transition: none;
  }

  .main-content {
    transition: none;
  }
}

/* --- Media Queries --- */

/* 375px+ */
@media (min-width: 375px) {
  .heading-title {
    font-size: 28px;
  }

  .btn-premium {
    padding: 16px 20px;
  }

  .btn-label {
    font-size: 15px;
  }
}

/* 412px+ */
@media (min-width: 412px) {
  .glass-card {
    padding: 40px 28px 32px;
  }

  .heading-title {
    font-size: 30px;
  }

  .welcome-text {
    font-size: 20px;
  }
}

/* 768px+ Tablet */
@media (min-width: 768px) {
  .main-content {
    padding: 32px 24px;
  }

  .glass-card {
    padding: 48px 36px 36px;
    border-radius: 28px;
  }

  .heading-title {
    font-size: 32px;
    letter-spacing: 0.06em;
  }

  .heading-sub {
    font-size: 13px;
  }

  .btn-list {
    gap: 12px;
  }

  .btn-premium {
    padding: 18px 22px;
    border-radius: 16px;
  }

  .logo-img {
    width: 72px;
    height: 72px;
  }

  .aurora-blob-1 {
    width: 550px;
    height: 550px;
  }

  .aurora-blob-2 {
    width: 450px;
    height: 450px;
  }

  .aurora-blob-3 {
    width: 360px;
    height: 360px;
  }

  .mouse-glow {
    width: 500px;
    height: 500px;
  }
}

/* 1024px+ Desktop */
@media (min-width: 1024px) {
  .glass-card {
    padding: 52px 40px 40px;
  }

  .heading-title {
    font-size: 34px;
  }

  .btn-premium {
    padding: 18px 24px;
  }

  .aurora-blob-1 {
    width: 650px;
    height: 650px;
    filter: blur(120px);
  }

  .aurora-blob-2 {
    width: 500px;
    height: 500px;
    filter: blur(110px);
  }

  .aurora-blob-3 {
    width: 420px;
    height: 420px;
    filter: blur(100px);
  }
}

/* 1440px+ Large Desktop */
@media (min-width: 1440px) {
  .aurora-blob-1 {
    width: 750px;
    height: 750px;
  }

  .aurora-blob-2 {
    width: 600px;
    height: 600px;
  }

  .aurora-blob-3 {
    width: 500px;
    height: 500px;
  }

  .mouse-glow {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,255,157,0.09) 0%, transparent 70%);
  }
}