/* ===========================
   ROOT & RESET
=========================== */
:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #181818;
  --text: #f0ede6;
  --text-muted: #888;
  --accent: #e8ff4a;
  --accent2: #ff6b35;
  --border: rgba(240, 237, 230, 0.1);
  --font-display: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Noise texture overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' 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)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }

/* ===========================
   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 4rem;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: -0.5px;
}

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

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

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

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232,255,74,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,107,53,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(232,255,74,0.3);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  width: fit-content;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease both;
}

.hero-tag::before {
  content: '●';
  font-size: 0.5rem;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}

.hero-title .line {
  display: block;
  animation: fadeUp 0.8s ease both;
}

.hero-title .line:nth-child(2) { animation-delay: 0.1s; }
.hero-title .line:nth-child(3) { animation-delay: 0.2s; }

.hero-title .accent { color: var(--accent); }

.hero-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s 0.3s ease both;
}

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

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeUp 0.8s 0.6s ease both;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,255,74,0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

/* ===========================
   SECTIONS
=========================== */
.section {
  padding: 6rem 4rem;
  position: relative;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -1px;
  margin-bottom: 3rem;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text h2 { margin-bottom: 1.5rem; }

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.8;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat span {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

.stat small {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.about-card {
  position: sticky;
  top: 6rem;
}

.card-inner {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.card-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.avatar-box {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-initials {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: #0a0a0a;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  background: rgba(240,237,230,0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ===========================
   SKILLS
=========================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.skill-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition), border-color var(--transition);
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,255,74,0.3);
}

.skill-icon { font-size: 1.8rem; margin-bottom: 0.8rem; }

.skill-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.skill-bar {
  height: 4px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-pct {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
}

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

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232,255,74,0.25);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.project-card.featured {
  grid-column: span 2;
  border-color: rgba(232,255,74,0.15);
}

.project-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

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

.project-tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(232,255,74,0.3);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}

.project-year {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.project-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
  flex: 1;
}

.project-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-tech span {
  font-size: 0.7rem;
  background: rgba(240,237,230,0.06);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  color: var(--text-muted);
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

.link-btn {
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
  transition: var(--transition);
}

.link-btn:hover {
  background: var(--accent);
  color: #0a0a0a;
}

.link-btn.ghost {
  border-color: var(--border);
  color: var(--text-muted);
}

.link-btn.ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
  background: transparent;
}

/* ===========================
   CONTACT
=========================== */
.contact-sub {
  color: var(--text-muted);
  margin-top: -2rem;
  margin-bottom: 3rem;
  font-size: 0.9rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.contact-item:hover {
  border-color: rgba(232,255,74,0.3);
  color: var(--text);
  transform: translateX(4px);
}

.ci-icon { font-size: 1.2rem; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition);
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(232,255,74,0.4);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }

.form-msg {
  font-size: 0.8rem;
  color: var(--accent);
  min-height: 1rem;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  text-align: center;
  padding: 2.5rem 4rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer strong { color: var(--accent); }
.footer-sub { margin-top: 0.3rem; font-size: 0.75rem; opacity: 0.5; }

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

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .nav { padding: 1rem 2rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--bg2);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .hamburger { display: block; }

  .hero { padding: 7rem 2rem 4rem; }
  .hero-scroll { left: 2rem; }

  .section { padding: 4rem 2rem; }

  .about-grid { grid-template-columns: 1fr; }
  .about-card { position: static; }

  .project-card.featured { grid-column: span 1; }

  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .about-stats { gap: 1.5rem; }
  .hero-cta { flex-direction: column; }
  .btn { text-align: center; justify-content: center; }
}
