:root {
  --bg: #0d0e14;
  --bg2: #12141c;
  --surface: #181b26;
  --surface2: #1f2233;
  --border: rgba(255, 255, 255, 0.07);
  --text: #e8e9f0;
  --muted: #7c7f9a;
  --accent: #f0a500;
  --accent2: #ff6b35;
  --accent3: #00d4aa;
  --glow: rgba(240, 165, 0, 0.15);
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --font-mono: "Fira Code", monospace;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 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");
  opacity: 0.4;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: rgba(13, 14, 20, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.topbar-logo span {
  color: var(--text);
}
.topbar-nav {
  display: flex;
  gap: 2rem;
}
.topbar-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.03em;
}
.topbar-nav a:hover {
  color: var(--accent);
}
.topbar-nav a::before {
  content: "// ";
  opacity: 0.4;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 2.5rem 60px;
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240, 165, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 165, 0, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 60% 40%, black 30%, transparent 75%);
}
.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(240, 165, 0, 0.08) 0%,
    transparent 70%
  );
  top: -200px;
  right: -100px;
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-tag::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--accent);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}
.hero h1 .name-line {
  display: block;
  color: var(--text);
}
.hero h1 .accent-line {
  display: block;
  color: var(--accent);
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: #0d0e14;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s;
}
.btn-primary:hover {
  background: #ffb820;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 165, 0, 0.3);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s;
  background: var(--surface);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
}
.hero-photo-frame {
  width: 280px;
  height: 280px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(240, 165, 0, 0.3);
  box-shadow:
    0 0 0 8px rgba(240, 165, 0, 0.05),
    0 30px 60px rgba(0, 0, 0, 0.5);
}
.hero-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 60%,
    rgba(13, 14, 20, 0.6)
  );
}
.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.photo-decoration {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 2px solid rgba(240, 165, 0, 0.2);
  border-radius: 12px;
  bottom: -20px;
  right: -20px;
  z-index: -1;
}
.photo-decoration2 {
  position: absolute;
  width: 50px;
  height: 50px;
  background: var(--accent);
  border-radius: 8px;
  top: -12px;
  left: -12px;
  opacity: 0.15;
  z-index: -1;
}
.status-badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent3);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent3);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 2.5rem;
  position: relative;
  z-index: 1;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-label::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--accent);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 3rem;
  color: var(--text);
}
.divider {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-text p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.2rem;
}
.about-text p strong {
  color: var(--text);
  font-weight: 600;
}
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.25s;
}
.stat-card:hover {
  border-color: rgba(240, 165, 0, 0.3);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.skills-section {
  background: var(--bg2);
}
.skills-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 2.5rem;
  position: relative;
  z-index: 1;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}
.skill-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.25s;
  cursor: default;
}
.skill-pill:hover {
  border-color: var(--accent);
  background: var(--surface2);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.skill-icon {
  font-size: 1.6rem;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
  color: var(--accent);
}
.skill-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}
.skill-sub {
  font-size: 0.76rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.project-card:hover {
  border-color: rgba(240, 165, 0, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.project-card:hover::before {
  transform: scaleX(1);
}
.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.project-icon {
  width: 44px;
  height: 44px;
  background: rgba(240, 165, 0, 0.1);
  border: 1px solid rgba(240, 165, 0, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
}
.project-lang {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  background: var(--surface2);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  align-self: flex-start;
}
.project-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.project-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}
.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.project-link-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.project-stars {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.contact-section {
  background: var(--bg2);
}
.contact-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 2.5rem;
  position: relative;
  z-index: 1;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-left p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s;
}
.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(5px);
}
.contact-link i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  color: var(--accent);
}
.contact-link-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  overflow: hidden;
}
.contact-link-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--muted);
  margin-bottom: 0.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-link-value {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.5rem;
}

.fun-facts {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
}
.fun-facts h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.fun-facts h3 i {
  color: var(--accent);
}
.fact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--muted);
}
.fact-item:last-child {
  border-bottom: none;
}
.fact-emoji {
  font-size: 1.1rem;
  flex-shrink: 0;
}

footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem;
  text-align: center;
  background: var(--bg);
  position: relative;
  z-index: 1;
}
footer p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 2;
}
footer a {
  color: var(--accent);
  text-decoration: none;
}

.btt {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 99;
  font-size: 1rem;
}
.btt.visible {
  opacity: 1;
  transform: translateY(0);
}
.btt:hover {
  background: var(--accent);
  color: #0d0e14;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-inner {
  animation: fadeUp 0.8s ease-out both;
}
.hero-photo-wrap {
  animation: fadeUp 0.8s 0.15s ease-out both;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-photo-wrap {
    display: flex;
    justify-content: center;
    order: -1;
  }
  .hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .topbar-nav {
    gap: 1rem;
  }
}
@media (max-width: 600px) {
  .topbar {
    padding: 0 1.2rem;
  }
  .section,
  .skills-wrapper,
  .contact-wrapper {
    padding: 70px 1.2rem;
  }
  .hero {
    padding: 90px 1.2rem 50px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .topbar-nav a {
    font-size: 0.72rem;
  }
  .hero-photo-frame {
    width: 220px;
    height: 220px;
  }
}
