/* ============================================
   ROOT VARIABLES & RESET
============================================ */
:root {
  --ivory: #F8F5F2;
  --white: #FFFFFF;
  --black: #171717;
  --gold: #B08D57;
  --beige: #E9E4DD;
  --grey: #555555;
  --light-grey: #999999;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Poppins', sans-serif;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow: 0 8px 40px rgba(23, 23, 23, 0.08);
  --shadow-hover: 0 20px 60px rgba(23, 23, 23, 0.14);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--ivory);
  color: var(--black);
  cursor: none;
  overflow-x: hidden;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================
   CUSTOM CURSOR
============================================ */
.cursor {
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background 0.3s ease;
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
  opacity: 0.6;
}

body:hover .cursor,
body:hover .cursor-follower {
  opacity: 1;
}

/* ============================================
   SCROLL PROGRESS BAR
============================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--gold);
  width: 0%;
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ============================================
   NAVIGATION
============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 72px;
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(248, 245, 242, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(176, 141, 87, 0.2);
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.1em;
  position: relative;
}

.nav-logo::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-logo:hover::after {
  transform: scaleX(1);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 75%;
  max-width: 320px;
  height: 100vh;
  background: var(--white);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: right var(--transition);
  box-shadow: -10px 0 40px rgba(23,23,23,0.1);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--black);
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: var(--gold);
}

/* ============================================
   SHARED SECTION STYLES
============================================ */
.section {
  padding: 110px 5%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 2.5rem;
}

.section-heading em {
  font-style: italic;
  color: var(--gold);
}

.section-heading.centered {
  text-align: center;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1.5px solid transparent;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.btn:hover::after {
  transform: scaleX(1);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-ghost:hover {
  background: var(--gold);
  color: var(--white);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.68rem;
}

/* Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
============================================ */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal="fade-up"] {
  transform: translateY(40px);
}

[data-reveal="fade-left"] {
  transform: translateX(-50px);
}

[data-reveal="fade-right"] {
  transform: translateX(50px);
}

[data-reveal="zoom"] {
  transform: scale(0.92);
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 5% 60px;
  position: relative;
  overflow: hidden;
  background: var(--ivory);
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: clamp(6rem, 18vw, 18rem);
  font-weight: 700;
  color: rgba(176, 141, 87, 0.04);
  letter-spacing: 0.2em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--black);
  margin-bottom: 1.5rem;
}

.hero-name em {
  font-style: italic;
  color: var(--gold);
}

.hero-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.hero-line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-typed {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  min-height: 1.2em;
}

.hero-typed .cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--gold);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-bio {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.9;
  max-width: 560px;
  margin-bottom: 2.5rem;
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Hero Badge Inline */
.hero-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  background: var(--white);
  border: 1px solid var(--beige);
  padding: 10px 20px;
  box-shadow: var(--shadow);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--black);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(76, 175, 80, 0); }
}

/* Hero Scroll Hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}

.hero-scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light-grey);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: var(--gold);
  animation: scrollDown 2s ease infinite;
}

@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   ABOUT SECTION
============================================ */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.about-text p {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.9;
  margin-bottom: 1.2rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.info-card {
  background: var(--ivory);
  border: 1px solid var(--beige);
  padding: 2.5rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--beige);
  gap: 1rem;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--light-grey);
  flex-shrink: 0;
}

.info-value {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--black);
  text-align: right;
}

.status-open {
  color: #4CAF50;
  font-weight: 500;
}

/* ============================================
   EDUCATION SECTION
============================================ */
.education {
  background: var(--ivory);
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--beige);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateX(-4px);
  transition: transform var(--transition);
}

.timeline-item:hover .timeline-dot {
  transform: translateX(-4px) scale(1.4);
}

.timeline-card {
  background: var(--white);
  border: 1px solid var(--beige);
  padding: 2rem 2.5rem;
  margin-left: 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.timeline-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateX(6px);
}

.timeline-year {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.timeline-degree {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 0.3rem;
}

.timeline-field {
  font-size: 0.82rem;
  color: var(--grey);
  margin-bottom: 0.3rem;
}

.timeline-school {
  font-size: 0.78rem;
  color: var(--light-grey);
  font-style: italic;
}

/* ============================================
   SKILLS SECTION
============================================ */
.skills {
  background: var(--white);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.skill-category {
  background: var(--ivory);
  border: 1px solid var(--beige);
  padding: 2.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.skill-category:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

.skill-cat-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.skill-cat-title i {
  color: var(--gold);
  font-size: 1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--beige);
  padding: 7px 16px;
  transition: var(--transition);
}

.skill-tag:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.skill-tag small {
  font-size: 0.6rem;
  opacity: 0.7;
  margin-left: 3px;
}

/* ============================================
   PROJECTS SECTION
============================================ */
.projects {
  background: var(--ivory);
}

.project-card-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--beige);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.project-card:hover {
  box-shadow: var(--shadow-hover);
}

.project-number {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 300;
  color: var(--beige);
  line-height: 1;
  user-select: none;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.project-tags span {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 12px;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.9;
  margin-bottom: 2rem;
}

.project-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-deco {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border: 1px solid var(--beige);
  border-radius: 50%;
  pointer-events: none;
}

/* ============================================
   CERTIFICATIONS SECTION
============================================ */
.certifications {
  background: var(--white);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.cert-card {
  background: var(--ivory);
  border: 1px solid var(--beige);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--gold);
  transition: height var(--transition);
}

.cert-card:hover::before {
  height: 100%;
}

.cert-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

.cert-icon {
  width: 48px;
  height: 48px;
  background: var(--white);
  border: 1px solid var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gold);
}

.cert-year {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.cert-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--black);
  line-height: 1.3;
}

.cert-org {
  font-size: 0.8rem;
  color: var(--grey);
}

.cert-detail {
  font-size: 0.75rem;
  color: var(--light-grey);
  font-style: italic;
}

/* ============================================
   CONTACT SECTION
============================================ */
.contact {
  background: var(--ivory);
}

.contact-sub {
  text-align: center;
  font-size: 0.9rem;
  color: var(--grey);
  max-width: 520px;
  margin: 0 auto 3.5rem;
  line-height: 1.8;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--beige);
  padding: 1.8rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--gold);
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--ivory);
  border: 1px solid var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

.contact-card:hover .contact-icon {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.contact-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light-grey);
}

.contact-value {
  font-size: 0.82rem;
  color: var(--black);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-arrow {
  font-size: 0.75rem;
  color: var(--beige);
  transition: color var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.contact-card:hover .contact-arrow {
  color: var(--gold);
  transform: translateX(4px);
}

/* ============================================
   FOOTER
============================================ */
.footer {
  background: var(--black);
  padding: 2.5rem 5%;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-style: italic;
  color: var(--gold);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-follower { display: none; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero-title-wrap { justify-content: center; }
  .hero-scroll-hint { display: none; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

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

  .project-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem;
  }

  .project-number {
    font-size: 3rem;
  }

  .section { padding: 80px 5%; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn { width: 100%; justify-content: center; }

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

  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .info-value { text-align: left; }
}
