*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body {
  font-family: 'Lato', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #1a1814;
  cursor: none;
}

.bg-fixed { position: fixed; inset: 0; z-index: 0; background-image: url(../images/hero-bg.jpg); background-size: cover; background-position: center; }
.bg-overlay { position: fixed; inset: 0; z-index: 1; background: rgba(20, 18, 14, 0.55); }

#particleCanvas { position: fixed; inset: 0; z-index: 2; pointer-events: none; }

.cursor-glow { position: fixed; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(212,167,106,0.08) 0%, transparent 70%); pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); transition: width 0.3s, height 0.3s; }
.cursor-glow.hover { width: 280px; height: 280px; background: radial-gradient(circle, rgba(212,167,106,0.15) 0%, transparent 70%); }
.cursor-dot { position: fixed; width: 8px; height: 8px; border-radius: 50%; background: #D4A76A; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, background 0.2s; mix-blend-mode: difference; }
.cursor-dot.hover { width: 40px; height: 40px; background: transparent; border: 1.5px solid #D4A76A; }

.main-hero { position: relative; z-index: 10; width: 100%; height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: filter 0.5s; }
.hero-content { text-align: center; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 10vh 20px 0; }

.hero-name { font-family: 'Cormorant Garamond', serif; font-size: 64px; font-weight: 400; color: #FFF8EC; letter-spacing: 0.02em; line-height: 1.05; margin-bottom: 8px; }
.name-word { display: inline-block; opacity: 0; transform: translateY(30px); animation: wordReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.name-word:nth-child(1) { animation-delay: 0.7s; }
.name-word:nth-child(2) { animation-delay: 0.9s; }
@keyframes wordReveal { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }

.hero-role { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; font-style: italic; color: #E8BC7A; letter-spacing: 0.06em; margin-bottom: 12px; opacity: 0; animation: fadeIn 0.8s 1.1s ease forwards; }

.hero-tagline { font-weight: 400; font-size: 16px; letter-spacing: 0.08em; color: #CFC5B6; margin-bottom: 28px; opacity: 0; animation: fadeIn 0.8s 1.3s ease forwards; }

.bottom-nav { display: flex; align-items: center; gap: 10px; padding: 20px 24px 28px; opacity: 0; animation: fadeInUp 0.8s 1.8s ease forwards; }
@keyframes fadeInUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

.nav-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 14px; background: rgba(20, 16, 12, 0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(245, 240, 230, 0.12); border-radius: 12px; color: rgba(245, 240, 230, 0.7); cursor: none; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); min-width: 0; flex: 1; max-width: 82px; position: relative; overflow: hidden; text-decoration: none; }
.nav-btn::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(212,167,106,0.12) 0%, transparent 60%); opacity: 0; transition: opacity 0.4s; }
.nav-btn:hover::before { opacity: 1; }
.nav-btn:hover { border-color: rgba(212,167,106,0.45); color: #F5F0E6; background: rgba(20,16,12,0.65); transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 0 0 1px rgba(212,167,106,0.08); }
.nav-btn:active { transform: translateY(-2px) scale(0.97); }
.nav-btn.active { border-color: #D4A76A; color: #D4A76A; background: rgba(20,16,12,0.6); }
.nav-icon { width: 20px; height: 20px; position: relative; z-index: 1; }
.nav-label { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; position: relative; z-index: 1; }

.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.92); width: 640px; max-width: 90vw; max-height: 70vh; background: rgba(26, 22, 18, 0.97); backdrop-filter: blur(24px); border: 1px solid rgba(245, 240, 230, 0.08); border-radius: 16px; z-index: 100; opacity: 0; pointer-events: none; transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; box-shadow: 0 24px 80px rgba(0,0,0,0.5); }
.modal.active { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: all; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(245, 240, 230, 0.15); background: transparent; color: rgba(245, 240, 230, 0.5); font-size: 18px; cursor: none; display: flex; align-items: center; justify-content: center; transition: all 0.3s; z-index: 10; }
.modal-close:hover { border-color: #D4A76A; color: #D4A76A; background: rgba(212, 167, 106, 0.08); }
.modal-scroll { padding: 40px 36px 32px; overflow-y: auto; flex: 1; }
.modal-scroll::-webkit-scrollbar { width: 4px; }
.modal-scroll::-webkit-scrollbar-thumb { background: rgba(212, 167, 106, 0.2); border-radius: 2px; }
.modal-scroll.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.modal-title { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 400; color: #F5F0E6; margin-bottom: 24px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 99; background: rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; backdrop-filter: blur(4px); }
.modal-backdrop.active { opacity: 1; visibility: visible; }

.about-quote { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-style: italic; color: #D4A76A; line-height: 1.5; margin-bottom: 16px; }
.modal-scroll p { font-size: 14px; line-height: 1.8; color: rgba(245, 240, 230, 0.75); margin-bottom: 10px; }
.location-pill { display: inline-block; margin-top: 12px; padding: 8px 16px; background: rgba(107, 127, 110, 0.12); border: 1px solid rgba(107, 127, 110, 0.2); border-radius: 20px; font-size: 12px; color: #8FA08F; }

.skills-grid-modal { display: flex; flex-direction: column; gap: 14px; }
.skill-block { background: rgba(245, 240, 230, 0.03); border: 1px solid rgba(245, 240, 230, 0.08); border-radius: 10px; padding: 18px; transition: all 0.3s; }
.skill-block:hover { background: rgba(245, 240, 230, 0.06); border-color: rgba(212, 167, 106, 0.15); transform: translateX(4px); }
.skill-block h4 { font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #8FA08F; margin-bottom: 10px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 4px 12px; background: rgba(107, 127, 110, 0.1); border: 1px solid rgba(107, 127, 110, 0.15); border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(245, 240, 230, 0.7); transition: all 0.3s; cursor: default; }
.tag:hover { background: rgba(212, 167, 106, 0.15); border-color: rgba(212, 167, 106, 0.3); color: #D4A76A; transform: scale(1.05); }

.exp-list { display: flex; flex-direction: column; gap: 16px; }
.exp-row { background: rgba(245, 240, 230, 0.03); border: 1px solid rgba(245, 240, 230, 0.08); border-radius: 10px; padding: 22px; position: relative; overflow: hidden; transition: all 0.3s; }
.exp-row::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; transition: background 0.3s; }
.exp-row:hover::before { background: #D4A76A; }
.exp-row:hover { background: rgba(245, 240, 230, 0.06); border-color: rgba(245, 240, 230, 0.12); }
.exp-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.exp-role { font-family: 'Cormorant Garamond', serif; font-size: 17px; color: #F5F0E6; }
.exp-badge { padding: 2px 8px; background: rgba(107, 127, 110, 0.2); border-radius: 4px; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #8FA08F; }
.exp-company { font-size: 12px; color: #D4A76A; margin-bottom: 8px; }
.exp-row ul { list-style: none; }
.exp-row li { font-size: 12px; color: rgba(245, 240, 230, 0.65); line-height: 1.7; padding-left: 14px; position: relative; margin-bottom: 2px; }
.exp-row li::before { content: '\2192'; position: absolute; left: 0; color: #8FA08F; font-size: 10px; }
.exp-row li strong { color: #D4A76A; font-weight: 600; }
.exp-tech { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(245, 240, 230, 0.06); font-family: 'JetBrains Mono', monospace; font-size: 9px; color: rgba(245, 240, 230, 0.3); line-height: 1.6; }

.edu-card { position: relative; background: rgba(245, 240, 230, 0.03); border: 1px solid rgba(245, 240, 230, 0.1); padding: 32px; text-align: center; width: 100%; max-width: 360px; margin-bottom: 20px; }
.corner { position: absolute; width: 16px; height: 16px; }
.corner-tl { top: -1px; left: -1px; } .corner-tr { top: -1px; right: -1px; } .corner-bl { bottom: -1px; left: -1px; } .corner-br { bottom: -1px; right: -1px; }
.edu-degree { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: #F5F0E6; margin-bottom: 4px; }
.edu-school { font-size: 13px; color: rgba(245, 240, 230, 0.6); margin-bottom: 4px; }
.edu-period { font-size: 12px; color: rgba(245, 240, 230, 0.4); margin-bottom: 14px; }
.gpa-badge { display: inline-block; padding: 6px 16px; border: 1px solid #8FA08F; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #8FA08F; }
.edu-project { width: 100%; max-width: 420px; margin-bottom: 20px; text-align: left; }
.edu-project h4 { font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #8FA08F; margin-bottom: 8px; }
.edu-project p { font-size: 13px; line-height: 1.7; color: rgba(245, 240, 230, 0.65); }
.edu-coursework { width: 100%; max-width: 420px; text-align: left; }
.edu-coursework h4 { font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #8FA08F; margin-bottom: 8px; }
.edu-coursework p { font-size: 13px; line-height: 1.6; color: rgba(245, 240, 230, 0.6); font-style: italic; }

.contact-desc { font-size: 14px; color: rgba(245, 240, 230, 0.6); margin-bottom: 28px; max-width: 360px; line-height: 1.6; }
.contact-links-big { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 380px; }
.contact-big { display: flex; flex-direction: column; align-items: flex-start; padding: 16px 20px; background: rgba(245, 240, 230, 0.03); border: 1px solid rgba(245, 240, 230, 0.1); border-radius: 10px; text-decoration: none; transition: all 0.4s; cursor: none; position: relative; overflow: hidden; }
.contact-big:hover { border-color: rgba(212,167,106,0.3); background: rgba(245,240,230,0.06); transform: translateY(-2px); }
.cb-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #8FA08F; margin-bottom: 3px; }
.cb-val { font-size: 13px; color: #D4A76A; }

.resume-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.resume-action-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; cursor: none; transition: all 0.3s; }
.view-btn { background: rgba(245, 240, 230, 0.06); border: 1px solid rgba(245, 240, 230, 0.15); color: rgba(245, 240, 230, 0.7); }
.view-btn:hover { background: rgba(245, 240, 230, 0.1); border-color: rgba(245, 240, 230, 0.3); color: #F5F0E6; transform: translateY(-2px); }
.download-btn { background: rgba(212, 167, 106, 0.1); border: 1px solid rgba(212, 167, 106, 0.3); color: #D4A76A; }
.download-btn:hover { background: rgba(212, 167, 106, 0.2); border-color: #D4A76A; transform: translateY(-2px); }

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor-glow, .cursor-dot { display: none; }
  .hero-content { padding: 8vh 16px 0; justify-content: flex-start; }
  .hero-name { font-size: 36px; margin-bottom: 4px; line-height: 1.1; color: #FFF8EC; }
  .hero-role { font-size: 16px; margin-bottom: 8px; color: #E8BC7A; }
  .hero-tagline { font-size: 12px; margin-bottom: 14px; letter-spacing: 0.05em; color: #CFC5B6; }
  .bottom-nav { gap: 4px; padding: 8px 6px 12px; width: 100%; justify-content: center; }
  .nav-btn { min-width: 0; flex: 1; max-width: 58px; padding: 8px 2px 10px; border-radius: 10px; gap: 4px; background: rgba(20, 16, 12, 0.6); }
  .nav-icon { width: 15px; height: 15px; }
  .nav-label { font-size: 7px; letter-spacing: 0.03em; }
  .modal { width: 94vw; max-height: 75vh; border-radius: 12px; }
  .modal-scroll { padding: 32px 18px 20px; }
  .modal-title { font-size: 24px; margin-bottom: 18px; }
  .about-quote { font-size: 16px; }
  .modal-scroll p { font-size: 13px; line-height: 1.6; }
  .tag { font-size: 10px; padding: 3px 10px; }
  .exp-role { font-size: 15px; }
  .exp-company { font-size: 11px; }
  .exp-row li { font-size: 11px; }
  .edu-card { padding: 24px; margin-bottom: 14px; }
  .edu-degree { font-size: 18px; }
  .edu-project { margin-bottom: 14px; }
  .edu-project p { font-size: 12px; }
  .edu-coursework p { font-size: 12px; }
  .contact-desc { font-size: 13px; margin-bottom: 20px; }
  .contact-big { padding: 14px 16px; }
  .cb-val { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
