/* ═══════════════════════════════════════════
   Cyber Serif — jon.lat
   Classical-tech hybrid: Newsreader × Space Grotesk × Emerald
   ═══════════════════════════════════════════ */

:root {
  --bg: #050505;
  --accent: #10b981;
  --accent-dark: #059669;
  --text: #EBEBEB;
  --text-50: rgba(235, 235, 235, 0.5);
  --text-40: rgba(235, 235, 235, 0.4);
  --text-20: rgba(235, 235, 235, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-dim: rgba(255, 255, 255, 0.05);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 70px;
}

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

html {
  scroll-padding-top: var(--header-height);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ─────────────────────────────── */

header {
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

header.scrolled {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--glass-border-dim);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(2px);
}

.logo {
  font-family: 'Newsreader', serif;
  font-size: 1.4rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  display: flex;
  align-items: center;
}

.logo img {
  height: 70px;
  margin-right: 0.5rem;
  transition: transform 0.8s var(--ease);
}

.logo:hover img {
  transform: rotate(360deg);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-50);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
}

/* ── HERO ───────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  z-index: 0;
}

.circle-1 {
  width: 500px;
  height: 500px;
  background: rgba(16, 185, 129, 0.2);
  top: -150px;
  left: -150px;
  animation: float 20s ease-in-out infinite;
}

.circle-2 {
  width: 350px;
  height: 350px;
  background: rgba(16, 185, 129, 0.12);
  bottom: -80px;
  right: -80px;
  animation: float 15s ease-in-out infinite reverse;
}

.circle-3 {
  width: 300px;
  height: 300px;
  background: rgba(16, 185, 129, 0.15);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: heroFloat 10s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes heroFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.3; }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Tech label */
.tech-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-50);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

/* ── TYPOGRAPHY ─────────────────────────── */

h1, h2 {
  margin: 0 0 1rem 0;
  user-select: none;
}

h1 {
  font-family: 'Newsreader', serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text);
  text-align: center;
  margin-bottom: 1rem;
}

h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

h2 {
  font-family: 'Newsreader', serif;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  border-bottom: 1px solid var(--glass-border-dim);
  padding-bottom: 0.5rem;
  margin-top: 3rem;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

p, li {
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-50);
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

a:hover, a:focus {
  color: var(--text);
  text-decoration: none;
}

.subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-40);
  margin-bottom: 0.8rem;
  text-align: center;
  user-select: none;
}

/* ── BUTTONS ────────────────────────────── */

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.primary-btn, .secondary-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  transition: all 0.4s var(--ease);
  text-decoration: none;
  display: inline-block;
}

.primary-btn {
  background: var(--text);
  color: var(--bg);
  border: none;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.15), 0 0 60px rgba(16, 185, 129, 0.06);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.3), 0 0 80px rgba(16, 185, 129, 0.1);
  text-decoration: none;
  color: var(--bg);
}

.secondary-btn {
  background: transparent;
  color: var(--text-50);
  border: 1px solid var(--glass-border);
}

.secondary-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(16, 185, 129, 0.04);
  text-decoration: none;
  transform: translateY(-2px);
}

.schedule-btn {
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--accent);
}

.schedule-btn i {
  margin-right: 0.3rem;
}

.schedule-btn:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(16, 185, 129, 0.06);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

/* ── SCHEDULER MODAL ────────────────────── */

.scheduler-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scheduler-overlay.active {
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scheduler-modal {
  background: linear-gradient(160deg, rgba(12, 16, 14, 0.98), rgba(8, 10, 9, 0.99));
  border-radius: 24px;
  width: 95%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(16, 185, 129, 0.1);
  transform: translateY(-20px) scale(0.97);
  opacity: 0;
  transition: all 0.35s var(--ease);
  position: relative;
  padding: 2rem;
}

.scheduler-overlay.active .scheduler-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.scheduler-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-50);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.scheduler-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.scheduler-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
  padding: 0 0.5rem;
}

.scheduler-step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  z-index: 1;
}

.scheduler-step-dot .step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.06);
  color: var(--text-50);
  transition: all 0.3s ease;
}

.scheduler-step-dot.active .step-num {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: transparent;
  color: white;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.scheduler-step-dot.completed .step-num {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent);
}

.scheduler-step-dot .step-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  color: var(--text-40);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scheduler-step-dot.active .step-label {
  color: var(--text);
}

.step-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0 0.6rem;
  margin-bottom: 1.2rem;
}

.step-line.active {
  background: var(--accent);
}

.scheduler-step {
  animation: stepFadeIn 0.3s ease;
}

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Calendar */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.cal-title {
  font-family: 'Newsreader', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
}

.cal-nav {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-50);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.cal-nav:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 0.4rem;
}

.cal-weekdays span {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-20);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
}

.cal-day:hover:not(.disabled):not(.empty) {
  background: rgba(16, 185, 129, 0.1);
}

.cal-day.today:not(.selected) {
  box-shadow: inset 0 0 0 1.5px rgba(16, 185, 129, 0.35);
}

.cal-day.selected {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.cal-day.disabled {
  color: rgba(255, 255, 255, 0.1);
  cursor: default;
}

.cal-day.empty {
  cursor: default;
}

/* Time Slots */
.scheduler-back {
  background: none;
  border: none;
  color: var(--text-40);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.scheduler-back:hover {
  color: var(--text);
}

.selected-date-label {
  font-family: 'Newsreader', serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1.2rem;
  text-align: center;
}

.time-section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-20);
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.time-section-label:first-of-type {
  margin-top: 0;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.time-slot {
  font-family: 'Space Grotesk', sans-serif;
  padding: 0.55rem 0.4rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-50);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.time-slot:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--text);
}

.time-slot.selected {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Details Form */
.selected-summary {
  text-align: center;
  color: var(--text-50);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.selected-summary strong {
  color: var(--text);
}

.schedule-submit-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  padding: 0.85rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  margin-top: 0.5rem;
}

.schedule-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.schedule-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Confirmation */
.confirm-content {
  text-align: center;
  padding: 1.5rem 0;
}

.confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  color: white;
  animation: confirmPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes confirmPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.confirm-content h3 {
  font-family: 'Newsreader', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
  border: none;
  padding: 0;
}

.confirm-content h3::after {
  display: none;
}

.confirm-content p {
  color: var(--text-50);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.schedule-done-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border-dim);
  color: var(--text-50);
  padding: 0.7rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.schedule-done-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

/* ── MAIN CONTENT ───────────────────────── */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 24px;
}

section {
  padding-top: 20px;
  scroll-margin-top: var(--header-height);
}

section[id] {
  scroll-margin-top: var(--header-height);
}

/* Skills */
ul { padding-left: 1.3rem; }

ul.skills-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.5rem 0 1rem 0;
  padding-left: 0;
}

ul.skills-list li {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--glass-bg);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  color: var(--text-50);
  user-select: none;
  transition: all 0.3s var(--ease);
  border: 1px solid var(--glass-border-dim);
}

ul.skills-list li.primary {
  background: rgba(16, 185, 129, 0.06);
  color: var(--accent);
  border-color: rgba(16, 185, 129, 0.15);
}

ul.skills-list li:hover {
  background: rgba(16, 185, 129, 0.06);
  color: var(--accent);
  border-color: rgba(16, 185, 129, 0.2);
  transform: translateY(-2px);
}

section.skills h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-40);
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
}

/* Experience & Education Cards */
section.experience article,
section.automation article {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--glass-border-dim);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

section.experience article::after,
section.automation article::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.12), transparent);
  background-size: 200% 100%;
  animation: shimmer 6s linear infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

section.experience article:hover::after,
section.automation article:hover::after {
  opacity: 1;
}

section.experience article:hover,
section.automation article:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

section.experience article h3,
section.automation article h3 {
  font-family: 'Newsreader', serif;
  font-size: 1.15rem;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 0.3rem;
  color: var(--text);
  user-select: none;
}

section.experience article .role {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-40);
  margin-bottom: 0.8rem;
  font-style: normal;
  user-select: none;
}

section.experience article p {
  margin-bottom: 0.6rem;
  color: var(--text-50);
  user-select: text;
}

/* Contact */
.contact {
  text-align: center;
  margin-top: 3.5rem;
}

.contact h2 {
  text-align: center;
}

.contact h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.contact p {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  user-select: text;
}

.linkedin-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--text);
  color: var(--bg);
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  display: inline-block;
  text-decoration: none;
  transition: all 0.4s var(--ease);
  user-select: none;
  border: none;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.linkedin-btn:hover, .linkedin-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.25);
  color: var(--bg);
  text-decoration: none;
}

.linkedin-btn.schedule-btn {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: none;
}

.linkedin-btn.schedule-btn:hover {
  background: rgba(16, 185, 129, 0.06);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

/* Footer */
footer {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-20);
  margin-top: 3rem;
  padding-bottom: 2rem;
  user-select: none;
}

/* ── SCROLL INDICATOR ───────────────────── */

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-40);
  transition: all 0.3s ease;
  opacity: 0.6;
  cursor: pointer;
  text-decoration: none;
  z-index: 1;
}

.scroll-indicator:hover {
  opacity: 1;
  color: var(--accent);
}

.scroll-indicator .arrow {
  width: 22px;
  height: 22px;
  margin-top: 8px;
  border-left: 1.5px solid;
  border-bottom: 1.5px solid;
  transform: rotate(-45deg);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0% { opacity: 0.4; transform: rotate(-45deg) translate(0, 0); }
  50% { opacity: 1; transform: rotate(-45deg) translate(4px, 4px); }
  100% { opacity: 0.4; transform: rotate(-45deg) translate(0, 0); }
}

/* ── ANIMATIONS ─────────────────────────── */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-text {
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease) forwards;
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── CONTACT MODAL ──────────────────────── */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-modal {
  background: linear-gradient(160deg, rgba(12, 16, 14, 0.98), rgba(8, 10, 9, 0.99));
  border-radius: 24px;
  width: 90%;
  max-width: 500px;
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5),
              0 0 0 1px var(--glass-border-dim);
  transform: translateY(-20px) scale(0.97);
  opacity: 0;
  transition: all 0.35s var(--ease);
  position: relative;
}

.modal-overlay.active .contact-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.contact-modal h2 {
  font-family: 'Newsreader', serif;
  font-size: 1.5rem;
  font-weight: 400;
  border: none;
  padding: 0;
  margin-bottom: 1.2rem;
  margin-top: 0;
}

.contact-modal h2::after {
  display: none;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-50);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-50);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border-dim);
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
  background-color: rgba(255, 255, 255, 0.04);
}

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

.submit-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--text);
  color: var(--bg);
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  transition: all 0.4s var(--ease);
  border: none;
  cursor: pointer;
  align-self: center;
  margin-top: 0.5rem;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.25);
}

.form-message {
  text-align: center;
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 12px;
  display: none;
  font-size: 0.9rem;
}

.form-message.success {
  background-color: rgba(16, 185, 129, 0.06);
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.12);
  display: block;
}

.form-message.error {
  background-color: rgba(239, 68, 68, 0.06);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.12);
  display: block;
}

/* ── NETWORK ANIMATION ──────────────────── */

.profile-animation-container {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 1;
}

.orb-1 {
  width: 256px;
  height: 256px;
  right: 10%;
  top: 15%;
  background: linear-gradient(to bottom right, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.12));
  animation: orbFloat1 8s ease-in-out infinite;
}

.orb-2 {
  width: 192px;
  height: 192px;
  right: 25%;
  top: 40%;
  background: linear-gradient(to bottom right, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.1));
  animation: orbFloat2 10s ease-in-out infinite 1s;
}

@keyframes orbFloat1 {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.2) translate(30px, -20px); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.3) translate(-40px, 30px); }
}

.network-viz {
  position: absolute;
  left: 5%;
  top: 10%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.network-circle {
  position: relative;
  height: 450px;
  width: 450px;
  opacity: 0.4;
}

.rotating-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px dashed rgba(16, 185, 129, 0.12);
  animation: rotate 40s linear infinite;
}

@keyframes rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.center-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: centerPulse 3s ease-in-out infinite;
}

@keyframes centerPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.08); }
}

.center-node-inner {
  position: relative;
  width: 80px;
  height: 80px;
}

.center-node-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35), rgba(5, 150, 105, 0.2));
  filter: blur(24px);
}

.center-node-core {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.4);
  backdrop-filter: blur(8px);
}

.center-node-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  animation: nodePulse 2s ease-in-out infinite;
}

@keyframes nodePulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.5); opacity: 0; }
}

.center-node-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--accent);
}

.orbit-node {
  position: absolute;
  left: 50%;
  top: 50%;
  animation: orbitFloat 4s ease-in-out infinite;
}

@keyframes orbitFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, -50%) translateY(-15px); }
}

.orbit-node-inner { position: relative; }

.orbit-node-glow {
  border-radius: 50%;
  background: linear-gradient(to bottom right, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.15));
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.15);
  backdrop-filter: blur(4px);
}

.orbit-node-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: white;
  animation: nodeGlow 2s ease-in-out infinite;
}

@keyframes nodeGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 18px rgba(16, 185, 129, 0.7); }
}

.connection-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.connection-path {
  fill: none;
  stroke-width: 2;
  filter: url(#glow);
  animation: pathDraw 3.5s ease-in-out infinite;
}

@keyframes pathDraw {
  0%, 100% { stroke-dasharray: 0 1000; opacity: 0; }
  50% { stroke-dasharray: 1000 0; opacity: 0.6; }
}

.energy-particle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: particleFlow 3.5s ease-out infinite;
}

@keyframes particleFlow {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 0.8; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
}

.energy-particle-return {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.5);
  animation: particleReturn 3s ease-in infinite;
}

@keyframes particleReturn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  50% { opacity: 1; }
  80% { opacity: 0.6; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
}

.sparkle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.5);
  animation: sparkleAnim 2s ease-in-out infinite;
}

@keyframes sparkleAnim {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.5); }
}

.profile-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-image {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(16, 185, 129, 0.12);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.12), 0 0 80px rgba(16, 185, 129, 0.04);
  background-color: #080808;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-50);
  font-size: 1rem;
  text-align: center;
  overflow: hidden;
  position: relative;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.profile-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent), transparent 60%, var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 1;
}

.profile-image img {
  position: relative;
  z-index: 0;
}

.network-container {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.network-node {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.05);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(16, 185, 129, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.05);
  z-index: 2;
  opacity: 0.7;
  animation: networkFloat 4s ease-in-out infinite;
}

.network-node.main {
  width: 50px;
  height: 50px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.08);
  opacity: 0.8;
}

.network-node:nth-child(2n) { animation-delay: 1s; }
.network-node:nth-child(3n) { animation-delay: 2s; }
.network-node:nth-child(4n) { animation-delay: 3s; }

@keyframes networkFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.network-connection {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.06), rgba(16, 185, 129, 0.04));
  transform-origin: left center;
  z-index: 1;
  opacity: 0.5;
}

.network-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.4);
  z-index: 3;
}

@keyframes flowParticle {
  0% { opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* ── RESPONSIVE ─────────────────────────── */

@media (max-width: 480px) {
  main {
    margin: 1rem 1rem 3rem 1rem;
    padding: 2rem;
  }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.4rem; }
  ul.skills-list li { font-size: 0.68rem; padding: 0.3rem 0.8rem; }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    padding: 2rem 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .profile-image-container {
    order: -1;
    margin-bottom: 1.5rem;
  }

  .profile-animation-container {
    height: 350px;
  }

  .network-circle {
    height: 250px;
    width: 250px;
  }

  .profile-image {
    width: 250px;
    height: 250px;
  }

  h1 { font-size: 2.8rem; }
  .subtitle { font-size: 0.6rem; }
  p { font-size: 0.95rem; }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
  }

  .primary-btn, .secondary-btn {
    width: 80%;
    max-width: 280px;
    text-align: center;
  }

  /* Mobile Menu */
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    border-radius: 8px;
    transition: all 0.3s var(--ease);
    position: relative;
  }

  .mobile-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.06);
  }

  .mobile-menu-btn:active {
    transform: scale(0.95);
  }

  .mobile-menu-btn span {
    display: block;
    height: 2px;
    width: 22px;
    background-color: var(--text);
    border-radius: 2px;
    position: absolute;
    transition: all 0.3s var(--ease);
    transform-origin: center;
  }

  .mobile-menu-btn span:nth-child(1) { transform: translateY(-7px); }
  .mobile-menu-btn span:nth-child(3) { transform: translateY(7px); }

  .mobile-menu-btn.active span:nth-child(1) { transform: translateY(0) rotate(45deg); }
  .mobile-menu-btn.active span:nth-child(2) { opacity: 0; transform: scale(0); }
  .mobile-menu-btn.active span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(5, 5, 5, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.4s var(--ease);
    visibility: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-menu-btn { display: flex !important; }

  @-moz-document url-prefix() {
    .mobile-menu-btn { cursor: pointer; }
    .nav-links { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    margin: 1.2rem 0;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s var(--ease);
    width: 100%;
    text-align: center;
  }

  .nav-links.active li { transform: translateY(0); opacity: 1; }
  .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
  .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }

  .nav-links a {
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s var(--ease);
    display: inline-block;
    position: relative;
    width: 80%;
    max-width: 300px;
  }

  .nav-links a:hover {
    background: rgba(16, 185, 129, 0.06);
    transform: translateY(-3px);
  }

  .nav-links a::after {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-links a:hover::after {
    width: 40%;
  }

  .circle, .orb, .network-viz, .energy-particle, .sparkle {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  .profile-animation-container {
    transform: translateZ(0);
  }

  /* Disable animations on mobile for better performance */
  .circle,
  .orb,
  .rotating-ring,
  .center-node,
  .center-node-pulse,
  .orbit-node,
  .orbit-node-core,
  .connection-path,
  .energy-particle,
  .energy-particle-return,
  .sparkle,
  .network-node,
  .pulse-dot,
  .scroll-indicator .arrow {
    animation: none !important;
  }

  .animate-text {
    opacity: 1;
    animation: none !important;
    transform: none;
  }

  .animate-fade-in {
    opacity: 1;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  /* Hide complex network visualization elements on mobile */
  .network-viz {
    display: none;
  }

  .orb {
    opacity: 0.15;
  }

  .circle {
    opacity: 0.1;
  }

  /* Static states for animated elements */
  .pulse-dot {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  }

  .scroll-indicator .arrow {
    opacity: 0.6;
    transform: rotate(-45deg);
  }

  /* Disable card shimmer animation */
  section.experience article::after,
  section.automation article::after {
    animation: none !important;
    display: none;
  }
}
