/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
  --bg:           #ffffff;
  --bg-surface:   #f4f4f4;
  --bg-elevated:  #e8e8e8;
  --border:       #e0e0e0;
  --border-light: #d0d0d0;

  --accent:       #00c8ff;
  --accent-dim:   rgba(0, 200, 255, 0.12);
  --accent-glow:  rgba(0, 200, 255, 0.3);
  --accent-hover: #00b0e0;

  --text-primary:   #0d0d0d;
  --text-heading:   #1a3a6b;
  --text-secondary: #1a1a1a;
  --text-muted:     #444444;

  --success:        #00c864;
  --error:          #ff4d4f;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  --nav-h:        64px;
  --max-w:        1100px;
  --radius:       10px;
  --radius-sm:    6px;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

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

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
ul  { list-style: none; }
a   { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent-hover); }

/* ============================================================
   UTILITIES
   ============================================================ */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }

.section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin-bottom: 52px;
}

.section-header { margin-bottom: 4px; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn--primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-light);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

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

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.nav__logo:hover { color: var(--text-primary); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.nav__link.active { color: var(--accent); }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}


.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */

.hero-wrapper {
  position: relative;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 100svh;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero__bg-image {
  position: absolute;
  inset: -16px;
  background:
    url('sunset.jpg') center / cover no-repeat,
    linear-gradient(
      to bottom,
      #6a2c8a 0%,
      #c84b1e 30%,
      #f5830a 52%,
      #fdc34a 68%,
      #e8752a 82%,
      #b83a1a 100%
    );
  filter: blur(2px) saturate(0.9);
  transform: scale(1.06);
  z-index: 0;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.52);
  z-index: 0;
}

.hero__location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: -18px;
  margin-bottom: 28px;
}

.hero__bg-glow {
  position: fixed;
  top: -120px;
  right: -120px;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.055) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.hero__name {
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 7.5vw, 5.75rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero__tagline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 44px;
}

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Avatar */
.hero__visual {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.avatar-ring {
  position: relative;
  width: 280px;
  height: 280px;
}

.avatar-ring::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent) 0deg,
    transparent 90deg,
    transparent 180deg,
    var(--accent) 270deg,
    transparent 360deg
  );
  animation: spin 7s linear infinite;
}

.avatar-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #ffffff;
}

.avatar-placeholder {
  position: absolute;
  inset: 4px;
  z-index: 1;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#avatarImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  transform: rotate(0deg) scale(1.5);
}

#avatarFallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--accent);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   SKILLS
   ============================================================ */

.hero-wrapper::after,
.skills-wrapper::before,
.skills-wrapper::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
  z-index: 10;
}

.hero-wrapper::after {
  bottom: 0;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.skills-wrapper::before {
  top: 0;
  background: linear-gradient(to top, transparent, var(--bg));
}

.skills-wrapper::after {
  bottom: 0;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.skills-wrapper {
  position: relative;
  overflow: hidden;
}

.skills__bg-image {
  position: absolute;
  inset: -16px;
  background:
    url('skills-bg.jpg') center / cover no-repeat,
    linear-gradient(135deg, #c8a87a 0%, #8b6f47 35%, #5c4a32 60%, #3d7a5c 100%);
  filter: blur(2px) saturate(0.9);
  transform: scale(1.06);
  z-index: 0;
}

.skills__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.52);
  z-index: 0;
}

.skills {
  position: relative;
  z-index: 1;
  padding: 112px 0;
  background: transparent;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.skill-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}

.skill-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.skill-card:hover {
  border-color: rgba(0, 200, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.skill-card:hover::after { transform: scaleX(1); }

.skill-card__title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.skill-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-primary);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
              color 0.18s var(--ease), transform 0.18s var(--ease);
  cursor: default;
  white-space: nowrap;
}

.tag:hover {
  background: var(--accent-dim);
  border-color: rgba(0, 200, 255, 0.45);
  color: var(--accent);
  transform: scale(1.04);
}

/* ============================================================
   GOLF
   ============================================================ */

.golf-wrapper {
  position: relative;
  overflow: hidden;
}

.golf__bg-image {
  position: absolute;
  inset: -16px;
  background:
    url('golf-bg.jpg') center / cover no-repeat,
    linear-gradient(135deg, #2d6a2d 0%, #4a8a3a 35%, #6aaa4a 60%, #a8d060 100%);
  filter: blur(2px) saturate(0.9);
  transform: scale(1.06);
  z-index: 0;
}

.golf__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.52);
  z-index: 0;
}

.golf-wrapper::before,
.golf-wrapper::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
  z-index: 10;
}

.golf-wrapper::before {
  top: 0;
  background: linear-gradient(to top, transparent, var(--bg));
}

.golf-wrapper::after {
  bottom: 0;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.golf {
  position: relative;
  z-index: 1;
  padding: 112px 0;
}

.golf__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.golf-stat {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 24px 32px;
  text-align: center;
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.golf-stat::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.golf-stat:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.golf-stat:hover::after { transform: scaleX(1); }

.golf-stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1;
  margin-bottom: 14px;
}

.golf-stat__plus {
  font-size: 0.6em;
  vertical-align: super;
  color: var(--accent);
}

.golf-stat__label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.5;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-wrapper {
  position: relative;
  overflow: hidden;
}

.contact__bg-image {
  position: absolute;
  inset: -16px;
  background:
    url('contact-bg.png') center / cover no-repeat,
    linear-gradient(135deg, #b8cfe8 0%, #7a9cbf 35%, #4a6a8a 65%, #2c4a6a 100%);
  filter: blur(2px) saturate(0.9);
  transform: scale(1.06);
  z-index: 0;
}

.contact__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.52);
  z-index: 0;
}

.contact-wrapper::before,
.contact-wrapper::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
  z-index: 10;
}

.contact-wrapper::before {
  top: 0;
  background: linear-gradient(to top, transparent, var(--bg));
}

.contact-wrapper::after {
  bottom: 0;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.contact {
  position: relative;
  z-index: 1;
  padding: 112px 0;
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
  align-items: start;
}

.contact__blurb {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  font-size: 0.975rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__details li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact__icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.contact__details a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color 0.2s var(--ease);
}

.contact__details a:hover { color: var(--accent); }

/* ----- Form ----- */

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 12px 15px;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--error);
  box-shadow: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 136px;
  line-height: 1.6;
}

.form-error {
  font-size: 0.76rem;
  color: var(--error);
  min-height: 1.1em;
  line-height: 1;
  transition: opacity 0.2s var(--ease);
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(0, 200, 100, 0.09);
  border: 1px solid rgba(0, 200, 100, 0.28);
  border-radius: var(--radius);
  color: var(--success);
  font-size: 0.875rem;
  font-weight: 500;
}

.form-success.visible { display: flex; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   SCROLL-IN ANIMATIONS
   ============================================================ */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — Tablet  (≤ 860px)
   ============================================================ */

@media (max-width: 860px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: calc(var(--nav-h) + 40px);
    gap: 36px;
  }

  .hero__tagline { margin: 0 auto 44px; }
  .hero__cta { justify-content: center; }

  .avatar-ring { width: 200px; height: 200px; }
  .avatar-placeholder { font-size: 2rem; }

  .contact__layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 600px)
   ============================================================ */

@media (max-width: 600px) {
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-direction: column;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border);
    gap: 2px;
  }

  .nav__links.open { display: flex; }
  .nav__link { padding: 10px 14px; width: 100%; }
  .nav__toggle { display: flex; }

  .skills__grid { grid-template-columns: 1fr; }
  .golf__grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }

  .skills, .contact { padding: 72px 0; }
  .section-title { margin-bottom: 36px; }

  .hero__name { letter-spacing: -0.025em; }
  .hero__tagline { font-size: 0.975rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up { opacity: 1; transform: none; }
}
