/* =============================================
   ADAM HUBERT — DATA SCIENTIST PORTFOLIO
   style.css
   ============================================= */

/* DESIGN TOKENS */
:root {
  --bg: #0c0c0e;
  --surface: #13131a;
  --surface2: #1a1a24;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-dim: rgba(201,168,76,0.15);
  --white: #f0ede8;
  --muted: #7a7a8a;
  --accent: #4c7ec9;
  --border: rgba(201,168,76,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* NOISE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* =============================================
   NAVIGATION
   ============================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 4rem;
  border-bottom: 1px solid transparent;
  transition: all 0.4s ease;
  backdrop-filter: blur(0px);
}

nav.scrolled {
  background: rgba(12,12,14,0.92);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
}

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

.nav-cta {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  padding: 0.5rem 1.4rem;
  border-radius: 2px;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--bg) !important;
}

/* =============================================
   HERO
   ============================================= */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 4rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  pointer-events: none;
}

.hero-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: fadeUp 0.8s ease both;
}

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

.avail-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: #4caf7e;
  border-radius: 50%;
  margin-right: 0.35rem;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.3); }
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s 0.1s ease both;
}

h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  max-width: 520px;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 3rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  animation: fadeUp 0.8s 0.3s ease both;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  background: var(--gold);
  color: var(--bg);
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 0.85rem 2rem;
  border: 1px solid rgba(240,237,232,0.2);
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s;
  display: inline-block;
}

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

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  display: flex;
  gap: 0;
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
  animation: fadeUp 0.8s 0.4s ease both;
}

.stat {
  flex: 1;
  padding-right: 3rem;
  border-right: 1px solid var(--border);
  margin-right: 3rem;
}

.stat:last-child { border-right: none; margin-right: 0; }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =============================================
   SECTIONS — SHARED
   ============================================= */
section { padding: 7rem 4rem; }

.section-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

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

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 1rem;
}

h2 em { font-style: italic; color: var(--gold); }

.section-lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.75;
}

/* =============================================
   SKILLS (#services)
   ============================================= */
#services { background: var(--surface); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 4rem;
  border: 1px solid var(--border);
}

.service-card {
  background: var(--surface);
  padding: 2.8rem;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
  transition: width 0.4s ease;
}

.service-card:hover { background: var(--surface2); }
.service-card:hover::after { width: 100%; }

.service-icon {
  font-size: 1.8rem;
  margin-bottom: 1.4rem;
  display: block;
}

.service-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

.service-tags {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  background: var(--gold-dim);
  color: var(--gold);
  padding: 0.25rem 0.65rem;
  border-radius: 1px;
  letter-spacing: 0.08em;
}

/* =============================================
   EXPERIENCE (#process)
   ============================================= */
#process {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
}

.process-steps {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: padding-left 0.3s;
}

.step:first-child { border-top: 1px solid var(--border); }
.step:hover { padding-left: 0.5rem; }

.step-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--gold);
  padding-top: 0.2rem;
}

.step-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.step-desc { font-size: 0.85rem; color: var(--muted); }

.step-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

/* =============================================
   PROJECTS (#work)
   ============================================= */
#work { background: var(--surface); }

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

.case-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.case-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.case-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.case-industry {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.case-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.case-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

.case-result {
  margin-top: 1.8rem;
  padding: 1.2rem 1.5rem;
  background: var(--gold-dim);
  border-left: 2px solid var(--gold);
}

.result-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
}

.result-label { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }

.case-metrics {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.metric {
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
}

.metric-val {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
}

.metric-desc { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }

/* =============================================
   Button Case Action
   ============================================= */

.case-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to top,
    rgba(202,162,58,0.85) 0%,
    rgba(0,0,0,0.75) 45%,
    rgba(0,0,0,0.25) 70%,
    transparent 100%
  );

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  opacity: 0;
  transform: translateY(60px);
  transition: all .65s cubic-bezier(.22,1,.36,1);
}

.case-card:hover .case-overlay {
  opacity: 1;
  transform: translateY(0);
}

.overlay-btn {
  margin-top: 24px;
  width: 74px;
  height: 74px;
  background: white;
  color: #caa23a;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  text-decoration: none;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,0.25) inset;

  transition: all .35s ease;
}

.overlay-btn:hover {
  transform: scale(1.12);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.4) inset;
}

/* =============================================
   CERTIFICATES
   ============================================= */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2.2rem;
  position: relative;
}

.testimonial::before {
  content: '🎓';
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.2;
  position: absolute;
  top: 0.5rem; left: 1.5rem;
  line-height: 1;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--white);
  line-height: 1.75;
  font-style: italic;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}

.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 0.9rem;
}

.author-name { font-size: 0.85rem; font-weight: 500; }
.author-role { font-size: 0.72rem; color: var(--muted); }

/* =============================================
   ABOUT
   ============================================= */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  background: var(--surface);
}

.about-visual { position: relative; }

.about-photo-frame {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--bg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo-frame img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.about-photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.08) 0%, transparent 60%);
}

#protectedPhoto {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.2;
  width: 100%;
  height: 100%;
  display: block;
}

.photo-protect {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 5;
}

/* luxury overlay */
.about-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(201,168,76,0.08), transparent 60%);
  pointer-events: none;
}

/* devtools blur trap */
.devtools-open canvas {
  filter: blur(20px) brightness(0.7);
  transition: 0.3s;
}

.about-badge {
  position: absolute;
  bottom: -1.5rem; right: -1.5rem;
  background: var(--gold);
  color: var(--bg);
  padding: 1.4rem;
  text-align: center;
  width: 140px;
}

.badge-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  display: block;
}

.badge-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.2rem;
  display: block;
}

.expertise-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.expertise-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.expertise-item::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.tool-grid {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-chip {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 1px;
  transition: border-color 0.2s, color 0.2s;
}

.tool-chip:hover { border-color: var(--gold); color: var(--gold); }

/* =============================================
   PREVIOUSLY AT (#clients)
   ============================================= */
#clients { text-align: center; }

.client-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
  opacity: 0.45;
  filter: grayscale(1);
}

.client-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  transition: opacity 0.3s;
}

.client-logos:hover .client-logo { opacity: 0.5; }
.client-logos .client-logo:hover { opacity: 1; }

/* =============================================
   CONTACT (#contact)
   ============================================= */
#contact {
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.cta-sub { color: var(--muted); margin-bottom: 2.8rem; line-height: 1.7; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  max-width: 480px;
  margin: 2rem auto 0;
}

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

input, textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.9rem 1.2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  width: 100%;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.3s;
}

input:focus, textarea:focus { border-color: var(--gold); }
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; min-height: 120px; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--surface);
  padding: 2.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1rem;
}

.footer-copy { font-size: 0.75rem; color: var(--muted); }

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--gold); }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  nav { padding: 1.2rem 2rem; }
  .nav-links { display: none; }
  section, #hero, #about, #process { padding: 5rem 2rem; }
  h1 { font-size: 2.8rem; }
  .stats-bar { flex-direction: column; gap: 2rem; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 2rem; }
  .services-grid, .certificates-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .case-card.featured { grid-column: span 1; grid-template-columns: 1fr; }
  #about, #process { grid-template-columns: 1fr; }
  .about-badge { right: 1rem; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}
