/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --primary-blue: #3E5B7F;
  --coral:        #F5645C;
  --light-teal:   #C6ECE8;
  --navy:         #162b4e;
}


/* ─── Global ─────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}

/* Offset anchor links so fixed navbar doesn't cover section headings */
section[id] {
  scroll-margin-top: 70px;
}

/* ─── Cursor companion ──────────────────────────────────────── */
/* The native cursor stays visible, so the hand, text bar and arrow always tell the truth.
   The ring follows it and adds the brand layer: coral on clickable things, an arrow on links that open a new tab. */

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.25s ease;
  will-change: transform;
}
.cursor-ring__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(62, 91, 127, 0.45);
  border-radius: 50%;
  font: 600 13px/1 Poppins, sans-serif;
  color: var(--coral);
  transform: scale(0.6);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, background-color 0.25s ease;
}
.cursor-ring.is-visible { opacity: 1; }
.cursor-ring.is-text { opacity: 0; }
.cursor-ring.is-link .cursor-ring__inner {
  transform: scale(1.1);
  border-color: var(--coral);
  background-color: rgba(245, 100, 92, 0.1);
}
.cursor-ring.is-external .cursor-ring__inner::after {
  content: "\2197";
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff8f6;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}
.cursor-ring.is-pressed .cursor-ring__inner { transform: scale(0.85); }


/* ─── Photo Frame ────────────────────────────────────────────── */
.cynthia-image {
  border-radius: 40px;
  box-shadow: 0 8px 24px rgba(62, 91, 127, 0.2);
  transition: box-shadow 0.3s ease;
  object-fit: cover;
}

.cynthia-frame {
  border-radius: 40px;
}

.cynthia-image:hover {
  box-shadow: 0 20px 40px rgba(62, 91, 127, 0.4);
}


/* ─── Cards ──────────────────────────────────────────────────── */
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(198, 236, 232, 0.7) !important;
}


/* ─── Navbar Active Link ─────────────────────────────────────── */
.nav-link.nav-active {
  color: var(--coral) !important;
  position: relative;
}

.nav-link.nav-active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}


/* ─── Hamburger Animation ────────────────────────────────────── */
#hamburger.is-open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#hamburger.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#hamburger.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* ─── Skill Icons ────────────────────────────────────────────── */
.skill-icon {
  transition: transform 0.2s ease;
}

.skill-icon:hover {
  transform: translateY(-4px);
}


/* ─── Focus Visible ──────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ─── Philosophy SVG draw animation ─────────────────────────── */
/* Waits for .phil-visible (added on scroll in animations.js) so it draws where people can see it */
.phil-draw {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}

.phil-visible .phil-draw {
  animation: draw-path 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.phil-visible .phil-draw:nth-child(2) { animation-delay: 0.3s; }
.phil-visible .phil-draw:nth-child(3) { animation-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  .phil-draw { stroke-dashoffset: 0; animation: none !important; }
}

@keyframes draw-path {
  to { stroke-dashoffset: 0; }
}

/* Contact window: links live inside the sentence */
.contact-link {
  font-weight: 600;
  color: #3E5B7F;
  text-decoration: underline;
  text-decoration-color: #F5645C;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}
.contact-link:hover,
.contact-link:focus-visible {
  color: #F5645C;
}
