/* =============================================
   SHOBINN CLARK PORTFOLIO — REVAMPED 2026
   Color: Dark charcoal + warm amber accent
   Fonts: Syne (display) + DM Sans (body)
   ============================================= */

:root {
  --bg:         #0e0f11;
  --bg-2:       #141519;
  --bg-card:    #1a1b20;
  --border:     #2a2b32;
  --accent:     #e8a020;
  --accent-dim: #c48415;
  --accent-glow:rgba(232,160,32,0.15);
  --text:       #f0ede8;
  --text-muted: #8a8994;
  --text-dim:   #5a5b65;
  --radius:     12px;
  --radius-lg:  20px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ===== UTILITY ===== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-label {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  transition: background var(--transition), border-color var(--transition);
}

.nav.scrolled {
  background: rgba(14,15,17,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  letter-spacing: 0.01em;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,160,32,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,160,32,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
}
.glow-1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -200px; right: -100px;
}
.glow-2 {
  width: 400px; height: 400px;
  background: #3060e8;
  bottom: -100px; left: -100px;
  opacity: 0.12;
}

.hero-content {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,160,32,0.12);
  border: 1px solid rgba(232,160,32,0.3);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}

.hero-role {
  font-family: 'Syne', sans-serif;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-muted);
  line-height: 1.2;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 40px;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.4s ease both;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #0e0f11;
  font-weight: 600;
}
.btn-primary:hover {
  background: #f0b030;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232,160,32,0.3);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text-muted);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ===== HERO SCROLL ===== */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
  opacity: 0.4;
}
.hero-scroll span {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollLine 2s ease infinite;
}

/* ===== ABOUT ===== */
.about { background: var(--bg-2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  align-items: start;
}

.about-text p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-weight: 300;
  line-height: 1.8;
}
.about-text p strong { color: var(--text); font-weight: 500; }

.about-links {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.about-link svg { width: 16px; height: 16px; }
.about-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: sticky;
  top: 100px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color var(--transition);
}
.stat-card:hover { border-color: var(--accent); }

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.3;
}

/* ===== SKILLS ===== */
.skills { background: var(--bg); }

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

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.skill-group:hover {
  border-color: rgba(232,160,32,0.4);
  transform: translateY(-3px);
}

.skill-group-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

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

.tag {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  padding: 5px 12px;
  border-radius: 100px;
  transition: all var(--transition);
}
.tag:hover {
  background: var(--accent-glow);
  border-color: rgba(232,160,32,0.4);
  color: var(--accent);
}

/* ===== PROJECTS ===== */
.projects { background: var(--bg-2); }

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.project-card:hover {
  border-color: rgba(232,160,32,0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* All project cards use consistent layout — no featured span */

/* preview area */
.project-preview {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #111216;
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}
.project-card:hover .project-preview img {
  transform: scale(1.04);
}

.project-preview-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1b20, #111216);
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.project-preview.no-preview .project-preview-fallback { display: flex; }
.project-preview.no-preview img { display: none; }

/* code preview */
.project-preview-code {
  height: 100%;
  background: #0d0e10;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.code-dots {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.code-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27c93f; }

.project-preview-code pre {
  flex: 1;
  padding: 18px 20px;
  overflow: hidden;
}

.project-preview-code code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  line-height: 1.7;
  color: #7c8fa8;
  white-space: pre;
}

/* project info */
.project-info {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.project-badge {
  background: rgba(232,160,32,0.12);
  border: 1px solid rgba(232,160,32,0.3);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.project-badge-alt {
  background: rgba(255,255,255,0.05);
  border-color: var(--border);
  color: var(--text-muted);
}

.project-links {
  display: flex;
  gap: 12px;
}
.project-links a {
  color: var(--text-dim);
  transition: color var(--transition);
  display: flex;
}
.project-links a svg { width: 18px; height: 18px; }
.project-links a:hover { color: var(--accent); }

.project-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  flex: 1;
  margin-bottom: 20px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.project-tech span {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
}

/* ===== CONTACT ===== */
.contact { background: var(--bg); }

.contact-inner {
  max-width: 680px;
}

.contact-sub {
  font-size: 17px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.contact-btn svg { width: 17px; height: 17px; }
.contact-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
}
.footer p {
  font-size: 13px;
  color: var(--text-dim);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-stats { position: static; grid-template-columns: repeat(4, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  /* project cards stack naturally on tablet */
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: 60px;
    background: var(--bg);
    padding: 32px 24px;
    gap: 24px;
    z-index: 99;
  }
  .nav-links.open a { font-size: 24px; color: var(--text); }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-name { font-size: 48px; }
  .hero-role { font-size: 22px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}