/* =============================================
   BARONTECH — style.css
   Dark premium aesthetic · Syne + Instrument Sans
   ============================================= */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0c0c0c;
  --bg-2:        #111111;
  --bg-3:        #161616;
  --line:        rgba(255,255,255,0.07);
  --line-bright: rgba(255,255,255,0.14);
  --gold:        #C8A96E;
  --gold-dim:    rgba(200,169,110,0.12);
  --gold-mid:    rgba(200,169,110,0.35);
  --text:        #E8E3D8;
  --text-muted:  #888070;
  --text-faint:  #4a4540;
  --font-display: 'Syne', sans-serif;
  --font-body:    'Instrument Sans', sans-serif;
  --max-w:       1140px;
  --radius:      4px;
  --radius-lg:   10px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

.pop-up-message {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--gold);
  color: #0c0c0c;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 16px;
  margin-top: 60px;
  margin-left: 32px;
  border-radius: var(--radius);
  margin-right: 32px;
  text-align: center;
  height: auto;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.9);

}


a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: none; font-family: var(--font-body); }

/* ── CUSTOM CURSOR ── */
.cursor {
  width: 8px; height: 8px;
  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.01s, background 0.01s;
}
.cursor-follower {
  width: 32px; height: 32px;
  border: 1px solid var(--gold-mid);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.18s ease;
}
body:hover .cursor { transform: translate(-50%,-50%) scale(1); }
a:hover ~ .cursor, button:hover ~ .cursor { transform: translate(-50%,-50%) scale(2.5); }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 0; }

/* ── SECTION LABELS & HEADINGS ── */
.section__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.section__label i { font-size: 10px; }

.section__heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}
.section__heading em {
  font-style: normal;
  color: var(--gold);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: var(--transition);
  cursor: none;
}
.btn--primary {
  background: var(--gold);
  color: #0c0c0c;
  border-color: var(--gold);
}
.btn--primary:hover {
  background: #d4b87e;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,169,110,0.25);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-bright);
}
.btn--ghost:hover {
  border-color: var(--gold-mid);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn--sm { padding: 9px 20px; font-size: 12px; }
.btn--full { width: 100%; justify-content: center; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background 0.4s, border-color 0.4s;
}
.nav.scrolled {
  background: rgba(12,12,12,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text);
}
.nav__logo span { color: var(--gold); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}
.nav__links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  transition: color var(--transition);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  border: 1px solid var(--gold-mid);
  padding: 8px 18px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav__cta:hover {
  background: var(--gold-dim);
  transform: translateY(-1px);
}
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: var(--transition);
}
.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 16px 32px 24px;
  background: rgba(12,12,12,0.97);
  border-top: 1px solid var(--line);
}
.nav__mobile.open { display: flex; }
.nav__mobile-link {
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
  transition: color var(--transition);
}
.nav__mobile-link:hover { color: var(--gold); }
.nav__mobile-cta { color: var(--gold); border: none; margin-top: 8px; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero__bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 220px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200,169,110,0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: 12px;
}
.hero__container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero__tag i { font-size: 8px; animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero__name {
  font-family: var(--font-display);
  font-size: clamp(60px, 7vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 16px;
}
.hero__name em {
  font-style: normal;
  color: var(--gold);
  display: block;
}
.hero__role {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero__desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 40px;
  line-height: 1.8;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.hero__image-wrap {
  width: 320px;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-bright);
  position: relative;
  background: var(--bg-3);
}
.hero__image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(12,12,12,0.6) 100%);
  z-index: 1;
}
.hero__photo { width: 100%; height: 100%; object-fit: cover; }
.hero__photo-placeholder {
  display: none;
  width: 100%; height: 100%;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  color: var(--gold);
  background: var(--bg-3);
}
.hero__stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  width: 100%;
}
.hero__stat { text-align: center; flex: 1; }
.hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.hero__stat span {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-top: 4px;
  display: block;
}
.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--line);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--text-faint), transparent);
  animation: scrollLine 2s infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ── ABOUT ── */
.about { background: var(--bg); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about__text p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.85;
}
.about__text strong { color: var(--text); font-weight: 500; }
.about__links {
  display: flex;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.about__social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
  padding: 6px 0;
}
.about__social:hover { color: var(--gold); }
.about__social i { font-size: 15px; }

.service-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.service-row:first-child { border-top: 1px solid var(--line); }
.service-row__icon {
  width: 40px;
  height: 40px;
  background: var(--gold-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 16px;
  flex-shrink: 0;
}
.service-row__text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.service-row__text span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── SKILLS ── */
.skills { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.skills__categories {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  margin-top: 48px;
}
.skills__category h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.skills__category h3 i { color: var(--gold); font-size: 13px; }
.skills__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.skill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  color: var(--text-muted);
  font-size: 14px;
}
.skill-item:hover {
  background: var(--gold-dim);
  color: var(--gold);
}
.skill-item i {
  font-size: 18px;
  width: 22px;
  text-align: center;
}
.skills__divider {
  width: 1px;
  background: var(--line);
  margin: 0 48px;
}

/* ── PROJECTS ── */
.projects { background: var(--bg); }
.projects__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 24px;
}
.projects__header .section__heading { margin-bottom: 0; }

.projects__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.project-item {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 32px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--transition);
  position: relative;
}
.project-item:first-child { border-top: 1px solid var(--line); }
.project-item::before {
  content: '';
  position: absolute;
  left: -32px; right: -32px; top: 0; bottom: 0;
  background: var(--bg-3);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  border-radius: var(--radius);
}
.project-item:hover::before { opacity: 1; }

.project-item__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
  position: relative;
  z-index: 1;
}
.project-item__tag {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.project-item__year {
  font-size: 12px;
  color: var(--text-faint);
}

.project-item__body { position: relative; z-index: 1; }
.project-item__body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
  transition: color var(--transition);
}
.project-item:hover .project-item__body h3 { color: var(--gold); }
.project-item__body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 520px;
}
.project-item__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-item__stack span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-2);
}

.project-item__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  padding-top: 4px;
  position: relative;
  z-index: 1;
}
.project-item__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: var(--transition);
}
.project-item__link:hover { color: var(--text); border-color: var(--line-bright); }
.project-item__link--primary {
  background: var(--gold-dim);
  color: var(--gold);
  border-color: var(--gold-mid);
}
.project-item__link--primary:hover {
  background: var(--gold);
  color: #0c0c0c;
}

/* ── CONTACT ── */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact__left p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
}
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.contact__detail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.contact__detail:first-child { border-top: 1px solid var(--line); }
.contact__detail:hover { color: var(--gold); }
.contact__detail i {
  width: 20px;
  font-size: 16px;
  color: var(--gold);
  text-align: center;
}

/* ── FORM ── */
.contact__form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  background: var(--bg-3);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 13px 16px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-mid);
  box-shadow: 0 0 0 3px rgba(200,169,110,0.07);
}
.form-group input.error,
.form-group textarea.error { border-color: #c0392b; }
.form-error {
  font-size: 12px;
  color: #e55;
  min-height: 16px;
}
.form-success {
  display: none;
  font-size: 13px;
  color: #5cb85c;
  padding: 12px 16px;
  background: rgba(92,184,92,0.08);
  border: 1px solid rgba(92,184,92,0.2);
  border-radius: var(--radius);
  align-items: center;
  gap: 8px;
}
.form-success.show { display: flex; }

/* ── FOOTER ── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__inner p {
  font-size: 13px;
  color: var(--text-faint);
}
.footer__copy {
  font-size: 12px;
  color: var(--text-faint);
}