:root {
  --bg-primary: #0a0a14;
  --bg-secondary: #161623;
  --accent: #6d28d9;
  --accent-hover: #7c3aed;
  --accent-light: #a78bfa;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glass-bg: rgba(22, 22, 35, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.12);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ─── Background Animation ─── */
.bg-animation {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}

.bg-orb {
  position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.12;
}

.bg-orb-1 {
  width: 600px; height: 600px; top: -200px; left: -150px;
  background: radial-gradient(circle, #6d28d9, transparent 70%);
  animation: floatOrb1 18s ease-in-out infinite;
}

.bg-orb-2 {
  width: 500px; height: 500px; bottom: -100px; right: -100px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  animation: floatOrb2 22s ease-in-out infinite;
}

.bg-orb-3 {
  width: 400px; height: 400px; top: 40%; left: 50%;
  background: radial-gradient(circle, #a78bfa, transparent 70%);
  animation: floatOrb3 20s ease-in-out infinite;
}

@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(80px, 60px); }
  66% { transform: translate(-40px, 100px); }
}

@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-60px, -80px); }
  66% { transform: translate(40px, -40px); }
}

@keyframes floatOrb3 {
  0%, 100% { transform: translate(-50%, 0); }
  33% { transform: translate(calc(-50% + 60px), -60px); }
  66% { transform: translate(calc(-50% - 40px), 40px); }
}

/* ─── Page Shell ─── */
.page-shell {
  position: relative; z-index: 1;
  max-width: 1080px; margin: 0 auto;
  padding: 0 32px 64px;
}

/* ─── Glass Utility ─── */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ─── Hero (full-width, outside shell) ─── */
.hero {
  position: relative; z-index: 1;
  text-align: center;
  padding: 64px 32px 56px;
}

.hero-inner {
  max-width: 1080px; margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600;
  color: var(--accent-light);
  background: rgba(109, 40, 217, 0.15);
  border: 1px solid rgba(109, 40, 217, 0.3);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-name {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-main) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-location {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-links {
  display: flex; gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.9rem; font-weight: 600;
  text-decoration: none;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  transition: all 0.25s ease;
}

.hero-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.hero-link-accent {
  background: rgba(109, 40, 217, 0.2);
  border-color: rgba(109, 40, 217, 0.3);
  color: var(--accent-light);
}

.hero-link-accent:hover {
  background: rgba(109, 40, 217, 0.35);
  border-color: var(--accent);
}

/* ─── Sections ─── */
.section {
  margin-bottom: 56px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-left: 4px;
}

/* ─── Duo Section (About + Skills side by side) ─── */
.duo-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}

.duo-left, .duo-right {
  margin-bottom: 0;
}

/* ─── About ─── */
.about-card {
  padding: 28px 32px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
}

/* ─── Skills ─── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.skill-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 18px 20px;
  transition: all 0.25s ease;
}

.skill-card:hover {
  border-color: rgba(109, 40, 217, 0.3);
  background: rgba(22, 22, 35, 0.8);
}

.skill-icon {
  color: var(--accent-light);
  margin-bottom: 10px;
}

.skill-name {
  font-size: 0.92rem; font-weight: 700;
  margin-bottom: 2px;
}

.skill-detail {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ─── Projects (2 column grid) ─── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.project-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  text-decoration: none; color: var(--text-main);
  transition: all 0.25s ease;
}

.project-card:hover {
  border-color: rgba(109, 40, 217, 0.35);
  background: rgba(22, 22, 35, 0.85);
  transform: translateY(-2px);
}

.project-icon {
  color: var(--accent-light);
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(109, 40, 217, 0.12);
  border-radius: 10px;
}

.project-info {
  flex: 1;
  text-align: left;
}

.project-info h3 {
  font-size: 0.98rem; font-weight: 700;
  margin-bottom: 2px;
}

.project-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.project-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.project-card:hover .project-arrow {
  color: var(--accent-light);
  transform: translateX(3px);
}

/* ─── Contact (form left, info right) ─── */
.contact-duo {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

.contact-subtitle {
  color: var(--text-muted);
  margin-bottom: 8px;
  font-size: 1rem;
}

.contact-form {
  padding: 28px 28px;
  display: flex; flex-direction: column; gap: 14px;
}

.form-row {
  display: flex; gap: 14px;
}

.form-row .form-group {
  flex: 1;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.25);
}

.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;
}

.submit-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white; border: none;
  padding: 13px 28px; border-radius: 12px;
  font-size: 0.95rem; font-weight: 600; font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
}

.submit-btn:hover {
  background: linear-gradient(135deg, var(--accent-hover), #8b5cf6);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.3);
}

/* Contact Info Card */
.contact-info-card {
  padding: 28px 24px;
}

.contact-info-card h3 {
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 20px;
}

.contact-info-item {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item svg {
  flex-shrink: 0;
  color: var(--accent-light);
}

.contact-info-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-info-item a:hover {
  color: var(--accent-light);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }
* { scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Mobile ─── */
@media (max-width: 700px) {
  .page-shell { padding: 0 16px 48px; }

  .hero { padding: 40px 16px 36px; }
  .hero-name { font-size: 2.4rem; }
  .hero-links { flex-direction: column; align-items: center; }
  .hero-link { width: 100%; max-width: 280px; justify-content: center; }

  .section-title { font-size: 1.35rem; }

  /* Duo stacks vertically */
  .duo-section {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .duo-right { margin-top: 40px; }

  .skills-grid { grid-template-columns: 1fr; }

  /* Projects single column */
  .projects-grid { grid-template-columns: 1fr; }

  /* Contact stacks */
  .contact-duo {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-row { flex-direction: column; gap: 0; }
  .contact-form { padding: 20px; }

  .project-card { padding: 16px 18px; }
}
