:root {
  --bg-deep: #040609;
  --bg-card: rgba(12, 14, 18, 0.65);
  --bg-card-solid: #0c0e12;
  --border-fine: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-gold: #ffb300;
  --accent-gold-glow: rgba(255, 179, 0, 0.2);
  --accent-cyan: #00e5ff;
  --accent-cyan-glow: rgba(0, 229, 255, 0.15);
  
  --font-sans: 'Outfit', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Linear 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='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.012'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* Radial Glows */
.bg-glow-1 {
  position: absolute;
  top: 5vh; left: -10vw;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(255, 179, 0, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-2 {
  position: absolute;
  top: 55vh; right: -10vw;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Navigation */
nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 100;
  background: rgba(4, 6, 9, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-fine);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-img {
  height: 34px;
}

.nav-logo-text {
  height: 28px;
  filter: brightness(0) saturate(100%) invert(75%) sepia(50%) saturate(1500%) hue-rotate(10deg) brightness(105%) contrast(100%);
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 4px;
}

.btn-nav-action {
  border: 1px solid var(--border-fine);
  background: rgba(255, 179, 0, 0.1);
  color: var(--accent-gold);
  border-color: rgba(255, 179, 0, 0.3);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-nav-action:hover {
  background: var(--accent-gold);
  color: var(--bg-deep);
  box-shadow: 0 0 15px var(--accent-gold-glow);
  transform: translateY(-1px);
}

/* Main Layout */
main {
  position: relative;
  z-index: 1;
  padding-top: 70px;
}

section {
  padding: 100px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 48px;
  text-align: left;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-tag::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  background-color: var(--accent-gold);
}

.section-h2 {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
}

/* Hero Section */
#hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  position: relative;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  background: var(--accent-gold-glow);
  border: 1px solid rgba(255, 179, 0, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

#hero h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
  color: #ffffff;
}

#hero h1 span {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 650px;
  margin-bottom: 40px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--bg-deep);
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: #ffc400;
  box-shadow: 0 8px 25px rgba(255, 179, 0, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

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

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-fine);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  background: rgba(16, 20, 26, 0.85);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.bento-card.gold-border {
  border-top: 4px solid var(--accent-gold);
}

.card-icon {
  font-size: 2.25rem;
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.card-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-item {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-item::before {
  content: "»";
  color: var(--accent-gold);
  font-weight: bold;
}

/* Projects Shelf */
.projects-shelf {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-fine);
  border-radius: var(--radius);
  padding: 24px 32px;
  transition: all 0.3s;
}

.project-item:hover {
  border-color: rgba(255, 179, 0, 0.3);
  background: rgba(12, 14, 18, 0.9);
}

.project-left {
  display: flex;
  gap: 24px;
  align-items: center;
}

.project-icon-box {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  background: rgba(255, 179, 0, 0.08);
  border: 1px solid rgba(255, 179, 0, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-info h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.project-info .meta-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 8px;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 600px;
}

.project-right {
  display: flex;
  gap: 12px;
}

.btn-project-action {
  background: var(--accent-gold-glow);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 179, 0, 0.3);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-project-action:hover {
  background: var(--accent-gold);
  color: var(--bg-deep);
}

.btn-project-code {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border: 1px solid var(--border-fine);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-project-code:hover {
  border-color: #ffffff;
}

/* Contact Box */
.contact-box {
  background: radial-gradient(circle at top right, rgba(255, 179, 0, 0.06), transparent), var(--bg-card-solid);
  border: 1px solid rgba(255, 179, 0, 0.15);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.contact-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-gold);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  display: inline-block;
}

.contact-box h2 {
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 16px;
  color: #ffffff;
}

.contact-box p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-fine);
  padding: 40px 5%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
}

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

/* Responsive */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .project-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
  }
  
  .project-right {
    width: 100%;
    justify-content: flex-end;
  }
  
  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  nav {
    padding: 0 4%;
  }
  
  .nav-links {
    display: none; /* simple stack or offscreen menu could be built, keeping it simple & clean */
  }
}
