:root {
  --bg:          #06060a;
  --surface:     #0f0f16;
  --surface2:    #171720;
  --border:      rgba(255,255,255,0.06);
  --border-h:    rgba(80,180,255,0.25);
  --text:        #e8e8f0;
  --muted:       rgba(232,232,240,0.45);
  --accent:      #38b6ff;
  --accent2:     #0077cc;
  --accent-glow: rgba(56,182,255,0.15);
  --accent-glow2:rgba(56,182,255,0.06);
  --radius:      18px;
  --radius-sm:   10px;
  --nav-h:       70px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* -- Background grid atmosphere -- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(56,182,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,182,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* -- Nav -- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: rgba(6,6,10,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo img {
  height: 38px;
  filter: drop-shadow(0 0 12px rgba(56,182,255,0.5));
}
.nav-links {
  display: flex; gap: 8px; list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.2s;
  text-transform: uppercase;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
}
.nav-links a:hover {
  color: var(--accent);
  border-color: var(--border-h);
  background: var(--accent-glow2);
}

/* -- Hero -- */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(56,182,255,0.12) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-logo {
  width: min(420px, 85vw);
  filter: drop-shadow(0 0 30px rgba(56,182,255,0.4)) drop-shadow(0 0 60px rgba(56,182,255,0.2));
  animation: logoFloat 6s ease-in-out infinite;
  margin-bottom: 16px;
}
.hero-brand {
  max-width: 90vw;
  width: 520px;
  height: auto;
  display: block;
  margin: 0 auto;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border-h);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 11px;
  color: var(--accent);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 42px;
  font-weight: 300;
}
.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
}
.hero-local {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border-h);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  width: min(520px, 90vw);
}
.hero-local-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-local-btns {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 0 24px rgba(56,182,255,0.35), 0 4px 12px rgba(0,0,0,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(56,182,255,0.5), 0 8px 20px rgba(0,0,0,0.4);
}
.btn-ghost {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border-h);
}
.btn-ghost:hover {
  background: var(--accent-glow);
  color: var(--accent);
  transform: translateY(-2px);
}

/* -- Scroll hint -- */
.scroll-hint {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  animation: fadeUpDown 2.5s ease-in-out infinite;
}
.scroll-hint svg { width: 20px; height: 20px; }
@keyframes fadeUpDown {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.7; transform: translateX(-50%) translateY(6px); }
}

/* -- Sections -- */
section {
  position: relative; z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}
.section-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.section-label::before {
  content: ''; width: 30px; height: 1px; background: var(--accent); opacity: 0.6;
}
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.section-sub {
  color: var(--muted);
  font-size: 15px;
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 50px;
}

/* -- Divider -- */
.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-h), transparent);
  margin: 0 24px;
}

/* -- Projects grid -- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
a.project-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none; 
}
.project-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 30px rgba(56,182,255,0.08);
}
.project-card:hover::before { opacity: 1; }

.project-icon {
  width: 44px; height: 44px;
  background: var(--accent-glow);
  border: 1px solid var(--border-h);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 20px;
}
.project-tag {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 9px; letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow2);
  border: 1px solid rgba(56,182,255,0.2);
  padding: 3px 10px; border-radius: 100px;
  margin-bottom: 12px;
}
.project-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px; font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.project-desc {
  font-size: 13.5px; color: var(--muted); line-height: 1.65;
  margin-bottom: 22px;
}
.project-link {
  font-size: 12px; font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: 0.3px;
  transition: gap 0.2s;
}
.project-link:hover { gap: 10px; }
.project-thumb {
  max-width: 90vw;
  width: 240px;
  height: auto;
  display: block;
  margin: 0 auto 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* -- WIP card -- */
.project-card.wip { opacity: 0.55; }
.project-card.wip:hover { opacity: 0.8; }
.wip-badge {
  position: absolute; top: 18px; right: 18px;
  font-family: 'Orbitron', sans-serif;
  font-size: 8px; letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 100px;
}
.status-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: 'Orbitron', sans-serif;
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid;
}
.status-finished {
  color: #26d07c;
  border-color: rgba(38, 208, 124, 0.45);
  background: rgba(38, 208, 124, 0.12);
}
.status-progress {
  color: #ffb74d;
  border-color: rgba(255, 183, 77, 0.45);
  background: rgba(255, 183, 77, 0.14);
}

/* -- About -- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) { .about-grid { grid-template-columns: 1fr; } }
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.about-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.about-card p {
  color: var(--muted); font-size: 14px; line-height: 1.7;
}
.about-image {
  max-width: 90vw;
  width: 240px;
  height: auto;
  display: block;
  margin: 0 auto 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* -- Contact -- */
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 50px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-box::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 200px;
  background: radial-gradient(ellipse, rgba(56,182,255,0.12), transparent 70%);
  pointer-events: none;
}
.contact-box h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px; font-weight: 700;
  margin-bottom: 12px;
}
.contact-box p { color: var(--muted); margin-bottom: 28px; font-size: 15px; }

/* -- Footer -- */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 28px 40px;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--muted); font-size: 12px;
}
footer img { height: 22px; opacity: 0.6; }

/* -- Animations on load -- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.7s ease forwards;
}
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.35s; }
.fade-in:nth-child(4) { animation-delay: 0.5s; }
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .contact-box { padding: 36px 24px; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
}
