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

/* ── Base ────────────────────────────────────────── */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0d0a14;
  color: #f0e8f5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Soft radial glow */
body::before {
  content: '';
  position: fixed;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(ellipse at 50% 0%, rgba(160, 60, 120, 0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── Particle canvas ─────────────────────────────── */
#ripple-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Main container ──────────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  padding: 2rem;
}

/* ── Typing heading ──────────────────────────────── */
.greeting {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  min-height: 1.3em;
  color: #f5dff0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.greeting .bengali {
  font-family: 'Noto Sans Bengali', 'Inter', sans-serif;
}

.greeting .tamil {
  font-family: 'Noto Sans Tamil', 'Inter', sans-serif;
}

.greeting .devanagari {
  font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
}

.greeting .telugu {
  font-family: 'Noto Sans Telugu', 'Inter', sans-serif;
}

.greeting .kannada {
  font-family: 'Noto Sans Kannada', 'Inter', sans-serif;
}

.greeting .malayalam {
  font-family: 'Noto Sans Malayalam', 'Inter', sans-serif;
}

.greeting .gujarati {
  font-family: 'Noto Sans Gujarati', 'Inter', sans-serif;
}

.greeting .gurmukhi {
  font-family: 'Noto Sans Gurmukhi', 'Inter', sans-serif;
}

.greeting .arabic {
  font-family: 'Noto Sans Arabic', 'Inter', sans-serif;
}

.greeting .thai {
  font-family: 'Noto Sans Thai', 'Inter', sans-serif;
}

.greeting .japanese {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
}

.greeting .korean {
  font-family: 'Noto Sans KR', 'Inter', sans-serif;
}

.greeting .chinese {
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
}

.greeting.fade-out {
  opacity: 0;
  transform: translateY(-20px);
}

/* Blinking cursor */
.cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: #f5dff0;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ── Localized subtitle ──────────────────────────── */
.localized-subtitle {
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 300;
  color: #c89ece;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
  margin-top: 0.6rem;
  font-style: italic;
}

.localized-subtitle.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Welcome text ────────────────────────────────── */
.welcome {
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  font-weight: 300;
  line-height: 1.75;
  color: #c8b4d8;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.welcome.show {
  opacity: 1;
  transform: translateY(0);
}

.welcome em {
  color: #f5dff0;
  font-style: normal;
  font-weight: 500;
}

/* ── Navigation links ────────────────────────────── */
.nav-links {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 2.8rem;
  list-style: none;
}

.nav-links li {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.nav-links li.show {
  opacity: 1;
  transform: translateY(0);
}

.nav-links a {
  display: inline-block;
  padding: 0.65rem 1.8rem;
  border: 1px solid rgba(200, 140, 180, 0.22);
  border-radius: 999px;
  color: #e8cce8;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.nav-links a:hover {
  color: #fff0f8;
  border-color: rgba(240, 100, 160, 0.55);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 28px rgba(220, 80, 140, 0.25);
  transform: translateY(-2px);
}

.nav-links a:active {
  transform: translateY(0);
}

/* ── Contact button ──────────────────────────────── */
.contact-btn {
  display: inline-block;
  padding: 0.65rem 1.8rem;
  border: 1px solid rgba(200, 140, 180, 0.22);
  border-radius: 999px;
  color: #e8cce8;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  font-family: inherit;
}

.contact-btn:hover {
  color: #fff0f8;
  border-color: rgba(240, 100, 160, 0.55);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 28px rgba(220, 80, 140, 0.25);
  transform: translateY(-2px);
}

.contact-btn:active {
  transform: translateY(0);
}

/* ── Contact modal overlay ───────────────────────── */
#contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#contact-overlay.open {
  pointer-events: all;
  opacity: 1;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 4, 18, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Card */
.contact-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(28, 14, 46, 0.92);
  border: 1px solid rgba(220, 140, 200, 0.22);
  border-radius: 24px;
  width: 380px;
  max-width: 92vw;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(180, 80, 160, 0.08),
    0 32px 80px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(28px) scale(0.95);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

#contact-overlay.open .contact-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Burst canvas — sits behind card content */
#burst-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Header row: title left, close button right */
.contact-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(220, 140, 200, 0.1);
}

.contact-title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(210, 150, 190, 0.7);
  margin: 0;
}

.contact-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(220, 140, 200, 0.15);
  color: rgba(200, 160, 210, 0.7);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  line-height: 1;
}

.contact-close:hover {
  background: rgba(240, 100, 160, 0.18);
  border-color: rgba(240, 100, 160, 0.4);
  color: #f5dff0;
}

/* Body: contact rows */
.contact-body {
  position: relative;
  z-index: 1;
  padding: 1.6rem 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(220, 140, 200, 0.1);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease,
    background 0.25s ease, border-color 0.25s ease;
}

.contact-row:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(220, 140, 200, 0.22);
}

.contact-row-email {
  transition-delay: 0.25s;
}

.contact-row-linkedin {
  transition-delay: 0.38s;
}

#contact-overlay.open .contact-row {
  opacity: 1;
  transform: translateY(0);
}

/* Icon badge */
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.icon-email {
  background: rgba(240, 100, 160, 0.16);
}

.icon-linkedin {
  background: rgba(60, 140, 230, 0.16);
}

/* Text group */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
  overflow: hidden;
}

.contact-info-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(180, 130, 170, 0.6);
}

.contact-info-value {
  font-size: 0.92rem;
  color: #ddc8ee;
  text-decoration: none;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

a.contact-info-value:hover {
  color: #fff0f8;
}

/* ── Responsive ──────────────────────────────────── */

/* Tablet & small laptops */
@media (max-width: 768px) {
  body {
    overflow-y: auto;
    /* allow scrolling when content overflows */
    overflow-x: hidden;
    align-items: flex-start;
    /* top-align so scroll works naturally */
    padding-top: 18vh;
    /* visually centre-ish on taller screens */
  }

  .container {
    padding: 1.5rem 1.25rem;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
  }

  .nav-links a,
  .contact-btn {
    padding: 0.55rem 1.4rem;
    font-size: 0.9rem;
  }

  .contact-body {
    padding: 1.2rem 1.4rem 1.6rem;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  body {
    padding-top: 20vh;
  }

  .container {
    padding: 1rem;
  }

  .greeting {
    min-height: 2em;
    /* extra room for wrapped greeting text */
  }

  .welcome {
    font-size: 1rem;
    line-height: 1.7;
  }

  .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-top: 1.8rem;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .nav-links a,
  .contact-btn {
    padding: 0.6rem 0.5rem;
    width: 100%;
    text-align: center;
    font-size: 0.88rem;
  }

  /* Contact card */
  .contact-card {
    border-radius: 18px;
  }

  .contact-header {
    padding: 1rem 1.2rem 0.8rem;
  }

  .contact-body {
    padding: 1rem 1rem 1.4rem;
  }

  .contact-row {
    padding: 0.8rem 0.9rem;
    gap: 0.75rem;
  }

  .contact-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .contact-info-value {
    font-size: 0.82rem;
  }
}