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

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface2: #1f1f1f;
  --accent: #ffffff;
  --accent2: #808080;
  --text: #e0e0e0;
  --muted: #707070;
  --border: #262626;
  --glow: rgba(255, 255, 255, 0.05);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 30px 30px;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #2c2c2c 0%, #0a0a0a 100%);
  z-index: -2;
  opacity: 0.3;
}

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: -1;
  opacity: 0.2;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 4rem;
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
nav ul {
  position: relative;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-active-box {
  position: absolute;
  height: 34px; 
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
}

nav ul a.active {
  color: var(--accent);
}

.logo {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  font-weight: 700;
}

.logo span { color: var(--muted); }

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

nav ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

nav ul a:hover {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

#hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 4rem 5rem;
  position: relative;
  overflow: hidden;
  gap: 0;
}

#hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.2s;
}

.hero-tag::before {
  content: '> ';
  color: var(--accent);
}

#hero h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.4s;
}

#hero h1 .name-accent {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
  display: inline-block;
  padding: 0.1rem 0.6rem;
  transform: rotate(-1deg);
  border-radius: 4px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.6s;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  width: fit-content;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.8s;
}

.hero-socials {
  display: flex;
  gap: 15px;
  align-items: center;
  border-right: 1px solid var(--border);
  padding-right: 15px;
}

.hero-socials img {
  width: 20px;
  height: 20px;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.hero-socials a:hover img {
  opacity: 1;
  transform: scale(1.1);
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 10px #4ade80;
  flex-shrink: 0;
}

.dot-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.btn-primary {
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  letter-spacing: 0.03em;
}

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

.btn-outline {
  padding: 0.85rem 2rem;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--muted);
}

#about {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 4rem;
  border-top: 1px solid var(--border);
  position: relative;
  animation: fadeUp 0.6s ease forwards 0.3s;
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent2);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.about-text {
  max-width: 800px;
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  color: rgb(180, 185, 195);
  line-height: 1.85;
  text-align: center;
}

.about-text strong {
  color: var(--accent);
}

#projects {
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid var(--border);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  width: 100%;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  height: 100%;
}

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

.card-img,
.card-img-placeholder {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.card-img-placeholder {
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.3;
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tech {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent2);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card h3 {
  margin-bottom: 0.6rem;
  color: var(--accent);
  font-size: 1.1rem;
}

.card p {
  font-size: 0.92rem;
  color: var(--accent2);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-links {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.btn-project {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-project.live {
  background: #ffffff;
  color: #1a1a1a;
}

.btn-project.code {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid var(--border);
}

.btn-project:hover {
  transform: translateY(-2px);
  opacity: 0.88;
}

#skills {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
  width: 100%;
}

.skill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 860px;
}

.skill-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-pill img {
  height: 18px;
  width: 18px;
}

.skill-pill span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}

.skill-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

#contact {
  padding: 8rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-cta h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 800;
  margin: 0.75rem 0 1rem;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--accent);
}

.contact-cta h2 em {
  font-family: Georgia, serif;
  font-style: italic;
  opacity: 0.65;
}

.contact-cta p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto 2.5rem;
}

.cta-wrap {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-cta {
  padding: 1rem 2.25rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cta img {
  width: 18px;
  height: auto;
  display: block;
}

.btn-cta.primary {
  background: #ffffff;
  color: #000000;
}

.btn-cta.outline {
  border: 1px solid var(--border);
  color: #ffffff;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.08);
}

.btn-cta.outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--muted);
}

.footer-container {
  padding: 2.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-right {
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer-right a img {
  width: 18px;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: block;
}

.footer-right a:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

#skills {
  border-top: 1px solid var(--border);
}
