:root {
    --gold: #C9A96E;
    --gold-light: #E8D5A3;
    --dark: #0D0D0D;
    --dark-2: #161616;
    --dark-3: #1F1F1F;
    --text: #E8E4DC;
    --text-muted: #8A8480;
    --accent: #C9A96E;
  }

  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--dark);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    cursor: none;
  }

  /* Custom cursor */
  .cursor {
    width: 8px; height: 8px;
    background: var(--gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
  }
  .cursor-ring {
    width: 36px; height: 36px;
    border: 1px solid rgba(201,169,110,0.4);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.18s ease;
    opacity: 0.5;
  }

  /* NAV */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 28px 60px;
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(to bottom, rgba(13,13,13,0.95) 0%, transparent 100%);
  }
  .nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--gold);
  }
  .nav-links { display: flex; gap: 40px; list-style: none; }
  .nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
  }
  .nav-links a:hover { color: var(--gold); }

  /* HERO */
  .hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 60px 80px;
    position: relative;
    z-index: 2;
  }

  .hero-label {
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s 0.2s forwards;
  }

  .hero-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(64px, 7vw, 100px);
    font-weight: 300;
    line-height: 0.9;
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeUp 0.8s 0.4s forwards;
  }
  .hero-name .first { 
    display: block; 
    font-size: clamp(75px, 7vw, 120px);
  }
  .hero-name .last {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1px var(--gold);
    font-style: italic;
    opacity: 40%;
  }

  .hero-title {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 48px;
    padding-left: 2px;
    opacity: 0;
    animation: fadeUp 0.8s 0.6s forwards;
  }

  .hero-bio {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 56px;
    opacity: 0;
    animation: fadeUp 0.8s 0.8s forwards;
  }

  .hero-cta {
    display: flex; gap: 20px; align-items: center;
    opacity: 0;
    animation: fadeUp 0.8s 1s forwards;
  }
  .btn-primary {
    display: inline-block;
    padding: 14px 36px;
    border: 1px solid var(--gold);
    color: var(--dark);
    background: var(--gold);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s;
  }
  .btn-primary:hover { background: transparent; color: var(--gold); }
  .btn-ghost {
    display: inline-block;
    padding: 14px 36px;
    border: 1px solid rgba(201,169,110,0.3);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s;
  }
  .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

  .hero-right {
    position: relative;
    overflow: hidden;
  }
  .hero-img-wrap {
    position: absolute;
    inset: 0;
    /* opacity: 0.2; */
    animation: fadeIn 1.2s 0.3s forwards;
  }
  .hero-img-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    /* background: linear-gradient(to right, var(--dark) 0%, transparent 35%),
                linear-gradient(to top, var(--dark) 0%, transparent 30%); */
    z-index: 1;
  }
  .hero-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(20%) contrast(1.05);
  }

  .hero-stats {
    position: absolute;
    bottom: 60px;
    right: 60px;
    z-index: 3;
    display: flex;
    gap: 40px;
    opacity: 0;
    animation: fadeUp 0.8s 1.2s forwards;
  }
  .stat-item { text-align: center; }
  .stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
  }
  .stat-label { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-top: 6px; }

  /* Decorative line */
  .hero-line {
    position: absolute;
    bottom: 0; left: 60px;
    width: 1px; height: 80px;
    background: linear-gradient(to bottom, transparent, var(--gold));
    opacity: 0;
    animation: fadeIn 1s 1.4s forwards;
  }

  /* SECTION BASE */
  section { padding: 120px 60px; }
  .section-label {
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
  }
  .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 64px;
  }
  .section-title em { font-style: italic; color: var(--gold); }

  /* EXPERIENCE */
  .experience { background: var(--dark-2); }
  .timeline { position: relative; }
  .timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--gold), transparent);
  }
  .timeline-item {
    padding-left: 48px;
    margin-bottom: 64px;
    position: relative;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.6s ease;
  }
  .timeline-item.hidden-anim { opacity: 0; transform: translateX(-20px); }
  .timeline-item.visible { opacity: 1; transform: translateX(0); }
  .timeline-item::before {
    content: '';
    position: absolute;
    left: -4px; top: 8px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 16px rgba(201,169,110,0.5);
  }
  .tl-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
  }
  .tl-logo {
    width: 52px; height: 52px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    margin-top: 4px;
  }
  .tl-logo img { width: 100%; height: 100%; object-fit: contain; }
  .tl-info { flex: 1; }
  .tl-period {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
  }
  .tl-role {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 2px;
    line-height: 1.1;
  }
  .tl-company {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0;
  }
  .tl-points { list-style: none; }
  .tl-points li {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding-left: 16px;
    position: relative;
  }
  .tl-points li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 11px;
  }

  /* SKILLS */
  .skills { background: var(--dark); }
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
  }
  /* .skill-card {
    background: var(--dark-3);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
    opacity: 1;
    transform: translateY(0);
  } */
  .skill-card {
    background: var(--dark-3);      /* keeps your background color as fallback */
    padding: 40px 32px;
    position: relative;             /* required for absolute video positioning */
    overflow: hidden;               /* ensures video stays inside card */
    transition: all 0.4s;
    opacity: 1;
    transform: translateY(0);
    color: white;                   /* ensures text is visible over video */
    border-radius: 10px;            /* optional: makes corners smooth */
  }
  .skill-card.hidden-anim { opacity: 0; transform: translateY(20px); }
  .skill-card.visible { opacity: 1; transform: translateY(0); }
  .skill-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
  }
  .skill-card:hover::before { transform: scaleX(1); }
  .skill-card:hover {
    background: rgba(201,169,110,0.04);
  }
  .skill-card:hover .skill-video {
    opacity: 0.05;
  }
  .skill-icon {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .skill-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 12px;
  }
  .skill-desc {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-muted);
  }

  /* AWARDS */
  .awards { background: var(--dark-2); }
  .awards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .award-card {
    border: 1px solid rgba(201,169,110,0.15);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
    opacity: 1;
    transform: translateY(0);
  }
  .award-card.hidden-anim { opacity: 0; transform: translateY(20px); }
  .award-card.visible { opacity: 1; transform: translateY(0); }
  .award-card:hover { border-color: var(--gold); }
  .award-card::before {
    content: '★';
    position: absolute;
    top: -20px; right: 20px;
    font-size: 80px;
    color: rgba(201,169,110,0.04);
    font-family: serif;
  }
  .award-year {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .award-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 8px;
  }
  .award-org { font-size: 12px; color: var(--text-muted); letter-spacing: 1px; }

  /* EDUCATION */
  .education { background: var(--dark); }
  .edu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .edu-card {
    padding: 40px;
    background: var(--dark-3);
    position: relative;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s;
  }
  .edu-card.hidden-anim { opacity: 0; transform: translateY(20px); }
  .edu-card.visible { opacity: 1; transform: translateY(0); }
  .edu-period {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 16px;
  }
  .edu-degree {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  .edu-inst { font-size: 12px; color: var(--text-muted); letter-spacing: 1px; }
  .edu-note { font-size: 12px; color: var(--gold); margin-top: 8px; font-style: italic; }

  /* CONTACT */
  .contact {
    background: var(--dark-2);
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .contact::before {
    content: 'CONNECT';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cormorant Garamond', serif;
    font-size: 240px;
    font-weight: 300;
    color: rgba(201,169,110,0.03);
    white-space: nowrap;
    pointer-events: none;
  }
  .contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    margin-top: 64px;
    position: relative;
    z-index: 1;
  }
  .contact-item {
    background: var(--dark-3);
    padding: 40px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    display: block;
  }
  .contact-item:hover { background: rgba(201,169,110,0.06); }
  .contact-icon { font-size: 24px; margin-bottom: 16px; }
  .contact-label {
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
  }
  .contact-value {
    font-family: system-ui;
    font-size: 18px;
    color: var(--text-muted);
  }

  /* LANGUAGES */
  .lang-strip {
    background: var(--dark-3);
    padding: 60px;
    display: flex;
    gap: 0;
  }
  .lang-item {
    flex: 1;
    padding: 0 40px;
    border-right: 1px solid rgba(255,255,255,0.06);
    text-align: center;
  }
  .lang-item:last-child { border-right: none; }
  .lang-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 8px;
  }
  .lang-level { font-size: 11px; color: var(--text-muted); letter-spacing: 1px; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(201,169,110,0.05);
}

.message-form button {
  align-self: center;
}

  /* FOOTER */
  footer {
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.04);
  }
  .footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: var(--gold);
    letter-spacing: 2px;
  }
  .footer-copy { font-size: 11px; color: var(--text-muted); }

  /* ANIMATIONS */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* Scrollbar */
  ::-webkit-scrollbar { width: 3px; }
  ::-webkit-scrollbar-track { background: var(--dark); }
  ::-webkit-scrollbar-thumb { background: var(--gold); }

  @media (max-width: 1024px) {
    nav { padding: 20px 24px; }
    .nav-links { display: none; }
    .hero { grid-template-columns: 1fr; }
    .hero-right { display: none; }
    section { padding: 80px 24px; }
    .skills-grid, .awards-grid, .edu-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-left { padding: 100px 24px 60px; }
    .hero-stats { right: 24px; bottom: 40px; }
    footer { padding: 24px; flex-direction: column; gap: 12px; }
    .lang-strip { flex-direction: column; padding: 40px 24px; gap: 32px; }
    .lang-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); padding-bottom: 24px; }
  }
  @media (hover: none) and (pointer: coarse) {
    body {
      cursor: auto !important;
    }

    .cursor,
    .cursor-ring {
      display: none !important;
    }
  }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1; /* 50% opacity */
  z-index: 0;
  pointer-events: none;
  filter: blur(7px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.7); 
  z-index: 1;
  pointer-events: none;
}
/* Skill Background Video */
.skill-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;              /* fills the card while maintaining aspect ratio */
  transform: translate(-50%, -50%);
  z-index: 0;                     /* behind content */
  filter: blur(1px);
  opacity: 0.6;
  transition: opacity 0.7s ease;
}
.skill-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 13, 13, 0.7); 
  z-index: 1;   
}
.skill-card > .skill-content {
  position: relative;
  z-index: 2;
}
