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

:root {
  --ocean-deep:  #0c4a6e;
  --ocean-mid:   #0284c7;
  --ocean-light: #38bdf8;
  --ocean-teal:  #0d9488;
  --ocean-aqua:  #06b6d4;
}

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: #020c14;
  color: #e2e8f0;
  overflow-x: hidden;
}

/* ── Animated gradient background ── */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(2,132,199,.4) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(6,182,212,.3) 0%, transparent 55%),
              radial-gradient(ellipse at 60% 80%, rgba(13,148,136,.25) 0%, transparent 50%),
              radial-gradient(ellipse at 10% 10%, rgba(56,189,248,.15) 0%, transparent 45%),
              #020c14;
  animation: bgShift 14s ease-in-out infinite alternate;
}
@keyframes bgShift {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  50%  { filter: hue-rotate(-12deg) brightness(1.08); }
  100% { filter: hue-rotate(18deg) brightness(.95); }
}

/* ── Canvas particles ── */
#particles { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

/* ── Main layout ── */
.page {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  gap: 2.5rem;
}

/* ── Logo / brand ── */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  animation: fadeDown .8s ease both;
}
.logo-row {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.logo-tagline {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #64748b;
  margin-top: .75rem;
}
.logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.2rem;
  font-weight: 300;
  letter-spacing: .06em;
  background: linear-gradient(90deg, #e2e8f0, var(--ocean-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Glass card ── */
.card {
  width: 100%;
  max-width: 680px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 32px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.1);
  animation: fadeUp .9s ease .1s both;
  text-align: center;
}

/* ── Loading bar status ── */
.status-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.75rem;
}
.status-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 260px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ocean-light);
}
.status-pct { color: #94a3b8; font-variant-numeric: tabular-nums; }
.bar-track {
  width: 260px;
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--ocean-mid), var(--ocean-aqua), var(--ocean-light));
  background-size: 200% 100%;
  animation: barGrow 3.5s cubic-bezier(.4,0,.2,1) forwards, shimmer 2s linear 3.5s infinite;
}
@keyframes barGrow {
  0%   { width: 0%; }
  60%  { width: 72%; }
  80%  { width: 78%; }
  100% { width: 78%; }
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.bar-glow {
  position: absolute;
  top: -4px; bottom: -4px;
  width: 40px;
  background: radial-gradient(ellipse at center, rgba(56,189,248,.6) 0%, transparent 70%);
  animation: glowSlide 3.5s cubic-bezier(.4,0,.2,1) forwards;
  pointer-events: none;
}
@keyframes glowSlide {
  0%   { left: -40px; }
  100% { left: calc(78% - 20px); }
}

/* ── Heading ── */
h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: .75rem;
  background: linear-gradient(135deg, #fff 30%, rgba(56,189,248,.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: #94a3b8;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

/* ── Countdown ── */
.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  min-width: 72px;
}
.countdown-box {
  width: 72px; height: 72px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform .15s ease;
}
.countdown-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, transparent 100%);
}
.countdown-label {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #64748b;
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.divider-line { flex: 1; height: 1px; background: rgba(255,255,255,.08); }
.divider-text { font-size: .78rem; color: #475569; letter-spacing: .05em; }

/* ── Form ── */
.form { display: flex; gap: .75rem; flex-wrap: wrap; }
.form input {
  flex: 1;
  min-width: 200px;
  height: 48px;
  padding: 0 1.1rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: #e2e8f0;
  font-size: .95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form input::placeholder { color: #475569; }
.form input:focus {
  border-color: var(--ocean-mid);
  box-shadow: 0 0 0 3px rgba(2,132,199,.25);
}
.form button {
  height: 48px;
  padding: 0 1.6rem;
  background: linear-gradient(135deg, var(--ocean-mid), var(--ocean-teal));
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s, transform .15s;
  position: relative;
  overflow: hidden;
}
.form button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.15) 0%, transparent 100%);
}
.form button:hover { opacity: .9; transform: translateY(-1px); }
.form button:active { transform: translateY(0); }
.form button:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── Success message ── */
.success-msg {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.25rem;
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.3);
  border-radius: 10px;
  color: #34d399;
  font-size: .9rem;
  margin-top: .75rem;
}
.success-msg.show { display: flex; animation: fadeIn .4s ease; }

/* ── Social links ── */
.socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  animation: fadeUp .9s ease .3s both;
}
.social-btn {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
  text-decoration: none;
}
.social-btn svg { width: 18px; height: 18px; fill: #94a3b8; transition: fill .2s; }
.social-btn:hover {
  background: rgba(2,132,199,.2);
  border-color: rgba(56,189,248,.4);
  transform: translateY(-2px);
}
.social-btn:hover svg { fill: var(--ocean-light); }

/* ── Skills ticker ── */
.skills-ticker {
  width: 100vw;
  overflow: hidden;
  position: relative;
  animation: fadeUp .9s ease .25s both;
}
.skills-ticker::before,
.skills-ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.skills-ticker::before {
  left: 0;
  background: linear-gradient(90deg, #020c14, transparent);
}
.skills-ticker::after {
  right: 0;
  background: linear-gradient(-90deg, #020c14, transparent);
}
.skills-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 30s linear infinite;
}
.skills-track:hover { animation-play-state: paused; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  white-space: nowrap;
  padding: .45rem 1.1rem;
  margin: 0 .4rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(56,189,248,.15);
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: #94a3b8;
  transition: color .2s, border-color .2s, background .2s;
  cursor: default;
}
.skill-pill:hover {
  color: var(--ocean-light);
  border-color: rgba(56,189,248,.45);
  background: rgba(2,132,199,.1);
}
.skill-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ocean-aqua);
  opacity: .6;
  flex-shrink: 0;
}

/* ── Footer ── */
footer {
  font-size: .78rem;
  color: #334155;
  animation: fadeUp .9s ease .4s both;
  text-align: center;
}

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

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .card { padding: 2rem 1.25rem; }
  .countdown-box { width: 60px; height: 60px; font-size: 1.4rem; }
  .countdown-item { min-width: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
