/* ═══════════════════════════════════════════════════════════════
   LANDING.CSS  –  Landing Page (index.html) — Module 1
   Jeeva Sivan Portfolio | Minimal Futuristic Centered Design
   ═══════════════════════════════════════════════════════════════ */

/* ─── Body ───────────────────────────────────────────────────── */
.landing-body {
  background: #020817;
  overflow: hidden;
  width: 100%;
  height: 100dvh;
  height: 100vh;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════════
   AMBIENT GLOW ORBS
   ═══════════════════════════════════════════════════════════════ */
.lp-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  z-index: 0;
}

.lp-orb-blue {
  width: clamp(400px, 60vw, 900px);
  height: clamp(300px, 50vh, 700px);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(59, 130, 246, 0.06) 50%, transparent 70%);
  top: -15%;
  left: -10%;
  animation: orbDrift 18s ease-in-out infinite alternate;
}

.lp-orb-purple {
  width: clamp(300px, 50vw, 700px);
  height: clamp(200px, 40vh, 600px);
  background: radial-gradient(circle, rgba(109, 40, 217, 0.14) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 70%);
  bottom: -10%;
  right: -5%;
  animation: orbDrift 22s ease-in-out infinite alternate-reverse;
}

@keyframes orbDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(3%, 5%) scale(1.05); }
  100% { transform: translate(-3%, -3%) scale(0.97); }
}

/* ═══════════════════════════════════════════════════════════════
   PARTICLE FIELD
   ═══════════════════════════════════════════════════════════════ */
.lp-particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Particles are generated by JS; each is a <span> injected at runtime */
.lp-particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: pFloat linear infinite;
}

@keyframes pFloat {
  0%   { transform: translateY(105vh) scale(0);   opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 0.5; }
  100% { transform: translateY(-5vh) scale(1); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   BOTTOM WAVE / GRID CANVAS
   ═══════════════════════════════════════════════════════════════ */
.lp-wave-grid {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 260px;
  z-index: 1;
  pointer-events: none;
}

#wave-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   MAIN STAGE – centred container
   ═══════════════════════════════════════════════════════════════ */
.lp-stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100dvh;
  height: 100vh;
  padding: var(--sp-8) var(--sp-6);
}

.lp-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  max-width: 680px;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   JS LOGO MARK
   ═══════════════════════════════════════════════════════════════ */
.lp-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(80px, 14vw, 120px);
  height: clamp(80px, 14vw, 120px);
  margin-bottom: clamp(24px, 4vh, 40px);
  animation: logoReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes logoReveal {
  from { opacity: 0; transform: scale(0.5) rotate(-15deg); }
  to   { opacity: 1; transform: scale(1)   rotate(0deg); }
}

.lp-logo-inner {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: var(--fw-black);
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 35%, #06b6d4 65%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(96, 165, 250, 0.7));
}

/* Spinning ring 1 */
.lp-logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
}

.lp-logo-ring-1 {
  border-top-color: rgba(96, 165, 250, 0.7);
  border-right-color: rgba(96, 165, 250, 0.2);
  animation: spinCW 3.5s linear infinite;
}

.lp-logo-ring-2 {
  inset: -10px;
  border-top-color: transparent;
  border-left-color: rgba(6, 182, 212, 0.5);
  border-bottom-color: rgba(6, 182, 212, 0.15);
  animation: spinCCW 5s linear infinite;
}

.lp-logo-ring-3 {
  inset: -22px;
  border-top-color: rgba(167, 139, 250, 0.35);
  border-right-color: transparent;
  border-bottom-color: rgba(167, 139, 250, 0.1);
  animation: spinCW 8s linear infinite;
}

@keyframes spinCW  { to { transform: rotate(360deg);  } }
@keyframes spinCCW { to { transform: rotate(-360deg); } }

/* ═══════════════════════════════════════════════════════════════
   "WELCOME TO" LABEL
   ═══════════════════════════════════════════════════════════════ */
.lp-welcome {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 1.8vw, 0.85rem);
  font-weight: var(--fw-medium);
  letter-spacing: 0.35em;
  color: var(--clr-cyan);
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
  margin-bottom: clamp(10px, 1.5vh, 18px);
  animation: fadeSlideUp 0.7s ease 0.5s both;
}

/* ═══════════════════════════════════════════════════════════════
   MAIN HEADING — JEEVA PORTFOLIO
   ═══════════════════════════════════════════════════════════════ */
.lp-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 0.92;
  margin-bottom: clamp(18px, 2.5vh, 28px);
}

.lp-heading-word {
  display: block;
  font-size: clamp(3rem, 11vw, 7.5rem);
  font-weight: var(--fw-black);
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow:
    0 0 40px rgba(59, 130, 246, 0.25),
    0 2px 0 rgba(0, 0, 0, 0.4);
}

.lp-heading-word:first-child {
  animation: fadeSlideUp 0.7s ease 0.65s both;
}

.lp-heading-name {
  font-size: clamp(2rem, 7vw, 5rem);
  white-space: nowrap;
}

.lp-heading-accent {
  background: linear-gradient(135deg, #60a5fa 0%, #06b6d4 40%, #a78bfa 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(6, 182, 212, 0.4));
  animation: fadeSlideUp 0.7s ease 0.8s both;
}

/* ═══════════════════════════════════════════════════════════════
   SUBTITLE
   ═══════════════════════════════════════════════════════════════ */
.lp-subtitle {
  font-size: clamp(0.85rem, 2.2vw, 1.1rem);
  font-weight: var(--fw-normal);
  letter-spacing: 0.04em;
  color: rgba(148, 163, 184, 0.85);
  margin-bottom: clamp(32px, 5vh, 52px);
  animation: fadeSlideUp 0.7s ease 0.95s both;
}

/* ═══════════════════════════════════════════════════════════════
   CTA BUTTON — ENTER PORTFOLIO
   ═══════════════════════════════════════════════════════════════ */
.lp-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  color: #ffffff;
  text-decoration: none;
  padding: clamp(14px, 2vh, 18px) clamp(28px, 5vw, 48px);
  border-radius: 4px;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(96, 165, 250, 0.5);
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease;
  animation: fadeSlideUp 0.7s ease 1.1s both;
  /* pseudo-fill from left on hover handled via ::before */
}

.lp-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35) 0%, rgba(6, 182, 212, 0.25) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lp-btn:hover::before   { transform: scaleX(1); }
.lp-btn:focus-visible::before { transform: scaleX(1); }

.lp-btn:hover,
.lp-btn:focus-visible {
  color: #ffffff;
  border-color: rgba(6, 182, 212, 0.9);
  box-shadow:
    0 0 24px rgba(6, 182, 212, 0.35),
    0 0 60px rgba(37, 99, 235, 0.15),
    inset 0 0 24px rgba(6, 182, 212, 0.05);
  transform: translateY(-3px);
  outline: none;
}

.lp-btn:active {
  transform: translateY(0px) scale(0.98);
}

.lp-btn-text {
  position: relative;
  z-index: 1;
}

.lp-btn-arrow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  transition: transform 0.25s ease;
}

.lp-btn:hover .lp-btn-arrow {
  transform: translateX(5px);
}

/* Shine sweep */
.lp-btn-shine {
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transform: skewX(-20deg);
  animation: btnShine 4s ease-in-out 1.8s infinite;
  pointer-events: none;
}

@keyframes btnShine {
  0%, 85%, 100% { left: -80%; opacity: 1; }
  70%            { left: 130%; opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   SHARED FADE-SLIDE ANIMATION
   ═══════════════════════════════════════════════════════════════ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* ── Tablet (≤ 768px) ── */
@media (max-width: 768px) {
  .lp-stage {
    padding: var(--sp-6) var(--sp-5);
  }

  .lp-orb-blue   { filter: blur(90px); }
  .lp-orb-purple { filter: blur(90px); }
}

/* ── Mobile (≤ 480px) ── */
@media (max-width: 480px) {
  .lp-logo {
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
  }

  .lp-logo-ring-2 { inset: -6px; }
  .lp-logo-ring-3 { inset: -14px; }

  .lp-welcome {
    letter-spacing: 0.25em;
  }

  .lp-heading {
    gap: 0;
  }

  .lp-btn {
    padding: 13px 32px;
  }

  .lp-wave-grid {
    height: 180px;
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .lp-orb,
  .lp-logo-ring,
  .lp-btn-shine,
  .lp-particle {
    animation: none !important;
  }
  .lp-btn { transition: box-shadow 0.1s, border-color 0.1s; }
}
