/* ═══════════════════════════════════════════════════════
   Archit Shah Portfolio - main.css
   ═══════════════════════════════════════════════════════ */

:root {
  --accent:  #e8601a;
  --accent2: #f0a830;
  --bg:      #080706;
  --paper:   #f4f1eb;
  --ink:     #0a0908;
}

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

body {
  background: var(--bg);
  color: var(--paper);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* ─── CURSOR ────────────────────────────────────────────── */
#cursor {
  position: fixed; width: 12px; height: 12px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform 0.1s, width 0.2s, height 0.2s;
  mix-blend-mode: difference;
}
#cursor-trail {
  position: fixed; width: 36px; height: 36px;
  border: 1px solid rgba(232,96,26,0.4); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: left 0.12s ease-out, top 0.12s ease-out;
}

/* ─── BG CANVAS ─────────────────────────────────────────── */
#bg-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35; z-index: 1; pointer-events: none;
}

main { position: relative; z-index: 10; }

/* ─── NAV ────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(8,7,6,0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1rem;
  color: var(--paper); text-decoration: none; letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex; gap: 2.2rem; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.78rem; color: rgba(244,241,235,0.5);
  text-decoration: none; letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-hire {
  background: var(--accent) !important; color: white !important;
  padding: 0.55rem 1.4rem !important; border-radius: 3rem;
  font-weight: 500 !important; transition: background 0.2s !important;
}
.nav-hire:hover { background: var(--accent2) !important; }

.nav-mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-mobile-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--paper);
  transition: all 0.3s;
}

/* ─── HERO ───────────────────────────────────────────────── */
#hero-section {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 0 4rem;
  position: relative;
}
.hero-eyebrow {
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.8rem;
  opacity: 0; animation: fadeUp 0.8s 0.3s forwards;
}
.hero-eyebrow::before {
  content: ''; width: 2rem; height: 1px; background: var(--accent); flex-shrink: 0;
}
.hero-h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 800; line-height: 0.9; letter-spacing: -0.04em;
  margin-bottom: 2rem;
}
.hero-h1 .line { display: block; overflow: hidden; }
.hero-h1 .line span {
  display: block;
  transform: translateY(100%);
  animation: slideUp 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-h1 .line:nth-child(1) span { animation-delay: 0.5s; }
.hero-h1 .line:nth-child(2) span { animation-delay: 0.65s; color: var(--accent); }
.hero-h1 .line:nth-child(3) span { animation-delay: 0.8s; }

.hero-sub {
  font-size: 1.05rem; line-height: 1.7;
  color: rgba(244,241,235,0.55); max-width: 38ch; margin-bottom: 3rem;
  opacity: 0; animation: fadeUp 0.8s 1s forwards;
}
.hero-btns {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.8s 1.15s forwards;
}
.btn-primary {
  background: var(--paper); color: var(--ink);
  padding: 0.9rem 2.2rem; border-radius: 3rem;
  font-weight: 500; font-size: 0.9rem; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(232,96,26,0.35); }
.btn-outline {
  border: 1.5px solid rgba(244,241,235,0.25); color: var(--paper);
  padding: 0.9rem 2.2rem; border-radius: 3rem; font-size: 0.9rem;
  text-decoration: none; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  opacity: 0; animation: fadeUp 0.8s 1.5s forwards;
}
.scroll-hint span { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.scroll-dot { width: 1px; height: 40px; background: rgba(255,255,255,0.15); position: relative; overflow: hidden; }
.scroll-dot::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--accent); animation: scrollLine 1.8s ease-in-out infinite;
}

/* ─── STATS ──────────────────────────────────────────────── */
.stats-bar {
  display: grid; grid-template-columns: repeat(4,1fr);
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem 4rem;
}
.stat-item {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.8rem; font-weight: 800; color: var(--accent); line-height: 1;
  display: inline-block;
}
.stat-suffix {
  font-family: 'Syne', sans-serif;
  font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1;
  display: inline-block; margin-left: 2px;
}
.stat-item { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0; }
.stat-label {
  width: 100%; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(244,241,235,0.35); margin-top: 0.4rem; text-align: center;
}

/* ─── MARQUEE ────────────────────────────────────────────── */
.marquee-wrap {
  overflow: hidden; background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.05); padding: 1rem 0;
}
.marquee-track {
  display: inline-flex; animation: marquee 30s linear infinite; white-space: nowrap;
}
.marquee-track span {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(244,241,235,0.25); padding: 0 1.8rem;
}
.marquee-track span.hi { color: var(--accent2); }

/* ─── SECTIONS ───────────────────────────────────────────── */
.section { padding: 7rem 4rem; position: relative; }
.section-label {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.section-label::before { content: ''; width: 1.5rem; height: 1px; background: var(--accent); }
.section h2,
.contact-tagline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem,5vw,4rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  color: var(--paper); margin-bottom: 3rem;
}

/* ─── WORK GRID ──────────────────────────────────────────── */
.work-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: rgba(255,255,255,0.07);
}
.work-card {
  background: var(--bg); padding: 3rem 2.5rem;
  position: relative; overflow: hidden; transition: background 0.3s; cursor: default;
}
.work-card:hover { background: rgba(255,255,255,0.03); }
.work-card.wide { grid-column: 1 / -1; }
.wc-num {
  font-family: 'Syne', sans-serif; font-size: 4rem; font-weight: 800;
  color: rgba(255,255,255,0.04); position: absolute; top: 1rem; right: 1.5rem;
  line-height: 1; letter-spacing: -0.04em; transition: color 0.3s;
}
.work-card:hover .wc-num { color: rgba(232,96,26,0.12); }
.wc-tag {
  display: inline-block; background: rgba(232,96,26,0.15); color: var(--accent);
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 2rem; margin-bottom: 1rem;
}
.work-card.wide .wc-tag { background: rgba(240,168,48,0.15); color: var(--accent2); }
.wc-role {
  font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--paper); margin-bottom: 0.3rem;
}
.wc-co { font-size: 0.82rem; color: rgba(244,241,235,0.4); margin-bottom: 1.5rem; }
.wc-list { list-style: none; padding: 0; margin: 0; }
.wc-list li {
  font-size: 0.875rem; line-height: 1.65; color: rgba(244,241,235,0.6);
  padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex; gap: 0.7rem; align-items: flex-start;
}
.wc-list li:last-child { border: none; }
.wc-list li::before { content: '→'; color: var(--accent); flex-shrink: 0; font-size: 0.72rem; margin-top: 0.25rem; }
.work-card.wide .wc-list li::before { color: var(--accent2); }

/* ─── TOOLS 3D SECTION ───────────────────────────────────── */
.tools-3d-section {
  padding: 7rem 0; overflow: hidden; position: relative;
}
#tools-canvas { width: 100%; height: 500px; display: block; }
.tools-overlay {
  position: absolute; top: 50%; left: 4rem;
  transform: translateY(-50%); z-index: 2; pointer-events: none;
}
.tools-overlay h2 { margin-bottom: 1rem; font-size: clamp(2rem,4vw,3.2rem); }
.tools-sub { font-size: 0.9rem; color: rgba(244,241,235,0.45); max-width: 28ch; line-height: 1.7; }

.tools-chips {
  display: flex; flex-wrap: wrap; gap: 0.7rem; padding: 0 4rem 5rem;
}
.tool-chip {
  border: 1px solid rgba(255,255,255,0.1); border-radius: 2rem;
  padding: 0.55rem 1.2rem; font-size: 0.82rem; color: rgba(244,241,235,0.6);
  transition: all 0.2s; cursor: default;
}
.tool-chip:hover { border-color: var(--accent); color: var(--accent); background: rgba(232,96,26,0.07); }

/* ─── CERTIFICATIONS ─────────────────────────────────────── */
.cert-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem;
}
.cert-card {
  border: 1px solid rgba(255,255,255,0.08); border-radius: 1rem;
  padding: 2rem; background: rgba(255,255,255,0.02);
  transition: border-color 0.3s, transform 0.3s; position: relative; overflow: hidden;
}
.cert-card::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(232,96,26,0.06) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.cert-card:hover::before { opacity: 1; }
.cert-card:hover { border-color: rgba(232,96,26,0.3); transform: translateY(-4px); }
.cert-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.cert-name { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--paper); margin-bottom: 0.4rem; }
.cert-by { font-size: 0.78rem; color: rgba(244,241,235,0.35); letter-spacing: 0.05em; }

/* ─── EDUCATION ──────────────────────────────────────────── */
.edu-section { background: rgba(255,255,255,0.015); }
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.edu-card {
  border: 1px solid rgba(255,255,255,0.07); border-radius: 1rem;
  padding: 2.5rem 2.5rem 2.5rem 2.8rem; background: rgba(255,255,255,0.02); position: relative;
}
.edu-line {
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg,var(--accent) 0%,var(--accent2) 100%);
  border-radius: 3px 0 0 3px;
}
.edu-period { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.8rem; }
.edu-deg { font-family: 'Syne', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--paper); margin-bottom: 0.4rem; }
.edu-school { font-size: 0.9rem; color: rgba(244,241,235,0.55); margin-bottom: 0.2rem; }
.edu-loc { font-size: 0.75rem; color: rgba(244,241,235,0.28); letter-spacing: 0.06em; text-transform: uppercase; }

.lang-row { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.lang-pill {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2rem; padding: 0.5rem 1.3rem; font-size: 0.82rem; color: rgba(244,241,235,0.55);
}

/* ─── CONTACT ────────────────────────────────────────────── */
.contact-section {
  padding: 7rem 4rem;
  background: rgba(255,255,255,0.015);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: start; }
.contact-tagline { margin-bottom: 1.5rem; }
.contact-tagline span { color: var(--accent); }
.contact-desc { font-size: 0.95rem; line-height: 1.7; color: rgba(244,241,235,0.45); margin-bottom: 2.5rem; max-width: 36ch; }

.clink {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1rem 1.3rem; border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0.875rem; text-decoration: none; color: var(--paper);
  margin-bottom: 0.8rem; transition: all 0.2s;
}
.clink:hover { border-color: rgba(232,96,26,0.4); background: rgba(232,96,26,0.05); }
.clink-ico {
  width: 40px; height: 40px; background: rgba(255,255,255,0.06);
  border-radius: 0.6rem; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.clink-lbl { font-size: 0.65rem; color: rgba(255,255,255,0.35); letter-spacing: 0.1em; text-transform: uppercase; margin: 0; }
.clink-val { font-size: 0.88rem; font-weight: 500; margin: 0; }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input,
.contact-form textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09); border-radius: 0.75rem;
  padding: 0.9rem 1.1rem; font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem; color: var(--paper); outline: none;
  transition: border-color 0.2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.2); }
.contact-form input:focus,
.contact-form textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form button,
.wpcf7-form input[type="submit"] {
  background: var(--accent); color: white; border: none;
  padding: 0.9rem 2.2rem; border-radius: 3rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: background 0.2s, transform 0.2s; align-self: flex-start;
}
.contact-form button:hover,
.wpcf7-form input[type="submit"]:hover { background: var(--accent2); transform: translateY(-2px); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: #050403; text-align: center; padding: 1.5rem;
  font-size: 0.75rem; color: rgba(255,255,255,0.2); letter-spacing: 0.05em;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.site-footer span { color: var(--accent); }

/* ─── REVEAL ANIMATIONS ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── KEYFRAMES ──────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes scrollLine { 0% { top: -100%; } 100% { top: 100%; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: rgba(8,7,6,0.97);
    padding: 1.5rem 2rem; gap: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  #hero-section { padding: 0 1.5rem; }
  .stats-bar { padding: 2rem 1.5rem; grid-template-columns: repeat(2,1fr); }
  .section { padding: 5rem 1.5rem; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card.wide { grid-column: auto; }
  .cert-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .contact-section { padding: 5rem 1.5rem; }
  .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .tools-chips { padding: 0 1.5rem 4rem; }
  .tools-3d-section { padding: 5rem 0; }
  .tools-overlay { left: 1.5rem; }
  body { cursor: auto; }
  #cursor, #cursor-trail { display: none; }
}
