/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
  --bg-color: #faf7f5;
  --text-main: #1c1016;
  --text-muted: #7a6470;
  --accent-1: #8b1a4a;   /* deep wine / burgundy */
  --accent-2: #b5294e;   /* crimson rose */
  --accent-3: #d4526a;   /* soft rose */
  --accent-gold: #c9933a; /* warm gold accent */
  --glass-bg: rgba(255, 252, 250, 0.92);
  --glass-border: rgba(139, 26, 74, 0.1);
  --font-main: 'Inter', sans-serif;
  --shadow-light: 0 4px 8px -2px rgba(139, 26, 74, 0.06);
  --shadow-heavy: 0 20px 48px -12px rgba(139, 26, 74, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 12% 55%, rgba(139, 26, 74, 0.05), transparent 28%),
    radial-gradient(circle at 88% 25%, rgba(201, 147, 58, 0.06), transparent 28%),
    radial-gradient(circle at 50% 85%, rgba(180, 40, 78, 0.04), transparent 28%);
  background-attachment: fixed;
}

/* ── Scroll progress bar ───────────────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-3), var(--accent-gold));
  transform-origin: 0%;
  z-index: 1000;
}

/* ── Cursor spotlight ──────────────────────────────────────────────────────── */
.cursor-spotlight {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 26, 74, 0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: left 0.08s ease-out, top 0.08s ease-out;
}

/* ── Background floating orbs ─────────────────────────────────────────────── */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  z-index: -1;
  opacity: 0.22;
  animation: float 22s infinite alternate ease-in-out;
}

@keyframes float {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(28px, -48px) scale(1.1); }
  100% { transform: translate(-28px, 48px) scale(0.9); }
}

.orb-1 { width: 500px; height: 500px; background: var(--accent-1); top: -160px; left: -160px; }
.orb-2 { width: 380px; height: 380px; background: var(--accent-2); bottom: -100px; right: -100px; animation-delay: -6s; }
.orb-3 { width: 280px; height: 280px; background: var(--accent-gold); top: 42%; left: 52%; transform: translate(-50%,-50%); animation-delay: -12s; }

/* ── Gradient text ─────────────────────────────────────────────────────────── */
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3), var(--accent-gold), var(--accent-1));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 5s ease infinite;
}

/* ── Logo ──────────────────────────────────────────────────────────────────── */
.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-1);
  cursor: pointer;
  letter-spacing: -0.5px;
  margin-right: 1.5rem;
  user-select: none;
  text-decoration: none;
}

/* ── Header floating pill ─────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;
  padding: 0.55rem 1rem;
  z-index: 100;
  backdrop-filter: blur(24px);
  background: rgba(255, 252, 250, 0.82);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  box-shadow: 0 8px 28px rgba(139, 26, 74, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header-scrolled {
  background: rgba(255, 252, 250, 0.96);
  box-shadow: 0 12px 40px rgba(139, 26, 74, 0.13);
}

.nav-links {
  display: flex;
  gap: 0.4rem;
  position: relative;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1.1rem;
  position: relative;
  z-index: 2;
  border-radius: 30px;
  transition: color 0.25s ease;
}

.nav-link:hover { color: var(--accent-1); }

.nav-highlight {
  position: absolute;
  top: 0; bottom: 0;
  background: rgba(139, 26, 74, 0.07);
  border-radius: 30px;
  z-index: 1;
}

/* ── Container ─────────────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}

.hero-content {
  max-width: 820px;
  z-index: 1;
}

/* Available badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(139, 26, 74, 0.07);
  border: 1px solid rgba(139, 26, 74, 0.18);
  color: var(--accent-1);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: 0.3px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

.hero-title {
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2.5px;
  margin-bottom: 1.6rem;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 640px;
  line-height: 1.85;
}

/* Scroll indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin-top: 4.5rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
}

.scroll-line {
  width: 1.5px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-1), transparent);
  transform-origin: top;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-group { display: flex; gap: 1.4rem; flex-wrap: wrap; }

.btn {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.28s ease;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-family: var(--font-main);
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--accent-1);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(139, 26, 74, 0.45);
}

.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 16px 36px -10px rgba(139, 26, 74, 0.55);
}

.btn-secondary {
  background: #fff;
  color: var(--text-main);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: #fdf5f7;
  border-color: rgba(139, 26, 74, 0.2);
}

.btn-loading { opacity: 0.75; cursor: not-allowed; pointer-events: none; }

/* Loading spinner */
@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
  display: inline-block;
  width: 17px; height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.62s linear infinite;
  vertical-align: middle;
}

/* ── Sections ──────────────────────────────────────────────────────────────── */
.section { padding: 8rem 0; position: relative; }

.section-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 4rem;
  color: var(--text-main);
  letter-spacing: -1.5px;
}

.section-divider {
  width: 38px; height: 3px;
  background: linear-gradient(90deg, var(--accent-1), transparent);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-label-text {
  font-size: 0.75rem;
  color: var(--accent-1);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
}

/* ── 3D Tilt Card ──────────────────────────────────────────────────────────── */
.tilt-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(22px);
  transform-style: preserve-3d;
  position: relative;
  box-shadow: var(--shadow-heavy);
  overflow: hidden;
}

.tilt-card-inner {
  transform: translateZ(30px);
  pointer-events: auto; /* inputs must be interactive */
}

.glare-wrapper {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  border-radius: 20px;
  pointer-events: none;
}

.glare {
  position: absolute;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.65) 0%, transparent 60%);
  pointer-events: none;
  transform-origin: center;
  mix-blend-mode: overlay;
}

/* ── Two-column layout ─────────────────────────────────────────────────────── */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .two-column { grid-template-columns: 1fr; gap: 3rem; }
}

/* ── About ─────────────────────────────────────────────────────────────────── */
.about-text {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.85;
}

.about-stats { display: flex; flex-direction: column; gap: 1.6rem; }

.stat-item {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  transition: transform 0.2s ease;
}

.stat-icon {
  width: 50px; height: 50px;
  background: rgba(139, 26, 74, 0.06);
  border: 1px solid rgba(139, 26, 74, 0.12);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.stat-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
}

/* Tech tags */
.tech-stack { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.tech-tag {
  background: rgba(139, 26, 74, 0.06);
  color: var(--accent-1);
  padding: 0.32rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(139, 26, 74, 0.14);
  cursor: default;
}

/* ── Experience / Timeline ─────────────────────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  max-width: 900px;
  margin: 0 auto;
}

.experience-card { padding: 2.2rem 2.5rem; }

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.timeline-role {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
}

.timeline-period {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.28rem 0.85rem;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 50px;
  white-space: nowrap;
  align-self: flex-start;
}

.timeline-company {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

/* ── Projects grid ─────────────────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

.project-card { padding: 2.5rem; }

.project-icon-wrap {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.6rem;
}

.project-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
  color: var(--text-main);
}

.project-desc {
  color: var(--text-muted);
  margin-bottom: 1.6rem;
  font-size: 1rem;
  line-height: 1.75;
}

/* ── Contact ───────────────────────────────────────────────────────────────── */
.contact-info-list { display: flex; flex-direction: column; gap: 2rem; margin-top: 2rem; }

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.contact-icon-wrapper {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(139, 26, 74, 0.07);
  border: 1px solid rgba(139, 26, 74, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-1);
  flex-shrink: 0;
  transition: background 0.25s ease;
}

.contact-icon-wrapper:hover { background: rgba(139, 26, 74, 0.13); }

.contact-icon-wrapper svg {
  width: 22px; height: 22px;
  fill: currentColor;
}

.contact-details h4 {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.contact-details p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1.4rem; }

.form-group { display: flex; flex-direction: column; gap: 0.45rem; }

.form-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input, .form-textarea {
  width: 100%;
  background: #fff;
  border: 1.5px solid #e8d8de;
  border-radius: 12px;
  padding: 0.95rem 1.15rem;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 4px rgba(139, 26, 74, 0.1);
}

.form-textarea { resize: vertical; min-height: 140px; }

.submit-btn { gap: 0.5rem; }

/* Form feedback states */
.form-success {
  text-align: center;
  padding: 2.5rem 1rem;
}

.form-success-icon { font-size: 2.6rem; margin-bottom: 1rem; }

.form-success h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-success p { color: var(--text-muted); }

.form-error-msg {
  background: rgba(220, 38, 38, 0.05);
  border: 1px solid rgba(220, 38, 38, 0.18);
  color: #b91c1c;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  text-align: center;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--glass-border);
  background: rgba(255, 252, 250, 0.7);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }

.footer-link {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover { color: var(--accent-1); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-title { font-size: 3.2rem; letter-spacing: -1.5px; }
  .section-title { font-size: 2.4rem; }
  .cursor-spotlight { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.6rem; }
  .btn-group { flex-direction: column; }
  .btn { width: 100%; }
  .header { top: 1rem; width: calc(100% - 2rem); }
}
