/* ═══════════════════════════════════════════
   RESET & ROOT VARIABLES
═══════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --teal: #00f5c4;
  --teal-dim: rgba(0, 245, 196, 0.12);
  --teal-border: rgba(0, 245, 196, 0.25);
  --purple: #c471f5;
  --orange: #f5a623;
  --blue: #4facfe;
  --bg: #06060e;
  --surface: rgba(255, 255, 255, 0.02);
  --border: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.5);
  --text-muted: rgba(255, 255, 255, 0.35);
  --font-display: 'Bebas Neue', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

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

a { text-decoration: none; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 245, 196, 0.3); border-radius: 2px; }

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 64px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(6, 6, 14, 0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(0, 245, 196, 0.07);
}

.nav-logo {
  font-family: var(--font-mono);
  color: var(--teal);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  transition: all 0.2s ease;
}

.nav-btn:hover { color: var(--text); }

.nav-btn.active {
  background: rgba(0, 245, 196, 0.1);
  border-color: rgba(0, 245, 196, 0.3);
  color: var(--teal);
}

.nav-linkedin {
  margin-left: 0.6rem;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(10, 102, 194, 0.14);
  border: 1px solid rgba(10, 102, 194, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  transition: all 0.2s ease;
}

.nav-linkedin:hover {
  background: rgba(10, 102, 194, 0.32);
  border-color: var(--blue);
}

/* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 245, 196, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 196, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.glow-teal {
  top: 18%; left: 12%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(0, 245, 196, 0.055) 0%, transparent 70%);
}

.glow-purple {
  bottom: 22%; right: 8%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(196, 113, 245, 0.055) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 760px;
  width: 100%;
}

.hero-location {
  font-family: var(--font-mono);
  color: rgba(0, 245, 196, 0.55);
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--text);
  letter-spacing: 0.05em;
  line-height: 0.93;
  margin-bottom: 1rem;
}

.name-outline {
  -webkit-text-stroke: 2px rgba(0, 245, 196, 0.55);
  color: transparent;
}

.hero-typewriter {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--teal);
  min-height: 2em;
  margin-bottom: 1.5rem;
}

.cursor {
  animation: blink 1s infinite;
}

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

.hero-desc {
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  font-size: 1rem;
}

/* Tool icons in hero */
.hero-tools {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: default;
  transition: transform 0.2s ease;
}

.tool-item:hover { transform: translateY(-4px); }

.tool-item span {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* Contact Row */
.hero-contacts {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(0, 245, 196, 0.18);
  border-radius: 100px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.2rem;
  background: rgba(10, 102, 194, 0.12);
  border: 1px solid rgba(10, 102, 194, 0.45);
  border-radius: 100px;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.linkedin-btn:hover {
  background: rgba(10, 102, 194, 0.28);
  border-color: var(--blue);
}

.linkedin-btn-sm {
  padding: 0.35rem 0.9rem;
  font-size: 0.7rem;
}

/* ═══════════════════════════════════════════
   SECTIONS COMMON
═══════════════════════════════════════════ */
.section { padding: 7rem 2rem 3rem; }

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.brace {
  font-family: var(--font-mono);
  color: rgba(0, 245, 196, 0.35);
  font-size: 0.8rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--text);
  letter-spacing: 0.08em;
}

.header-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 245, 196, 0.25), transparent);
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL ANIMATION
═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════ */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  transition: background 0.25s ease, border-color 0.25s ease, opacity 0.6s ease, transform 0.6s ease;
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.035);
}

.project-card[data-color="#00f5c4"]:hover { border-color: rgba(0, 245, 196, 0.3); }
.project-card[data-color="#f5a623"]:hover { border-color: rgba(245, 166, 35, 0.3); }
.project-card[data-color="#c471f5"]:hover { border-color: rgba(196, 113, 245, 0.3); }

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--text);
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.project-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.project-tools {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.project-tools svg { opacity: 0.9; border-radius: 5px; }

.project-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.project-bullets li {
  display: flex;
  gap: 0.7rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.65;
}

.project-bullets li::before {
  content: '›';
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.project-card[data-color="#00f5c4"] .project-bullets li::before { color: #00f5c4; }
.project-card[data-color="#f5a623"] .project-bullets li::before { color: #f5a623; }
.project-card[data-color="#c471f5"] .project-bullets li::before { color: #c471f5; }

/* ═══════════════════════════════════════════
   CERTIFICATES
═══════════════════════════════════════════ */
.certs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem 2rem;
  transition: border-color 0.25s ease, opacity 0.6s ease, transform 0.6s ease;
}

.cert-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.cert-emoji { font-size: 1.8rem; }

.cert-info { flex: 1; }

.cert-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: 0.05em;
}

.cert-org {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.cert-period {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.8;
  white-space: nowrap;
}

.cert-card[data-color="#00f5c4"] .cert-period { color: #00f5c4; }
.cert-card[data-color="#f5a623"] .cert-period { color: #f5a623; }
.cert-card[data-color="#c471f5"] .cert-period { color: #c471f5; }

/* ═══════════════════════════════════════════
   SKILLS
═══════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.skill-category {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.skill-card[data-color="#00f5c4"] .skill-category { color: #00f5c4; }
.skill-card[data-color="#f5a623"] .skill-category { color: #f5a623; }
.skill-card[data-color="#c471f5"] .skill-category { color: #c471f5; }
.skill-card[data-color="#4facfe"] .skill-category { color: #4facfe; }

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-family: var(--font-body);
  transition: transform 0.2s ease;
  cursor: default;
}

.skill-tag:hover { transform: translateY(-2px); }

.skill-card[data-color="#00f5c4"] .skill-tag { background: rgba(0,245,196,0.1); border: 1px solid rgba(0,245,196,0.25); }
.skill-card[data-color="#f5a623"] .skill-tag { background: rgba(245,166,35,0.1); border: 1px solid rgba(245,166,35,0.25); }
.skill-card[data-color="#c471f5"] .skill-tag { background: rgba(196,113,245,0.1); border: 1px solid rgba(196,113,245,0.25); }
.skill-card[data-color="#4facfe"] .skill-tag { background: rgba(79,172,254,0.1); border: 1px solid rgba(79,172,254,0.25); }

.skill-tag svg { border-radius: 3px; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   PROFILE
═══════════════════════════════════════════ */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 1.8rem;
}

.profile-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--bg);
  flex-shrink: 0;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--text);
  letter-spacing: 0.05em;
}

.profile-role {
  font-size: 0.88rem;
  color: rgba(0, 245, 196, 0.65);
  margin-bottom: 0.55rem;
}

.profile-bio {
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.8;
  margin-bottom: 1.4rem;
  font-size: 0.95rem;
}

.profile-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.profile-contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.contact-label {
  color: rgba(0, 245, 196, 0.45);
  width: 68px;
  flex-shrink: 0;
}

.contact-val { color: rgba(255, 255, 255, 0.55); }

.contact-link {
  color: var(--blue);
  transition: text-decoration 0.2s;
}

.contact-link:hover { text-decoration: underline; }

/* Stats */
.profile-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: rgba(0, 245, 196, 0.038);
  border: 1px solid rgba(0, 245, 196, 0.11);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--teal);
  letter-spacing: 0.05em;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.lang-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
}

.lang-label {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: rgba(0, 245, 196, 0.45);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.lang-tags { display: flex; gap: 0.75rem; }

.lang-tag {
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.84rem;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.18);
}

.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--blue);
  opacity: 0.6;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  transition: opacity 0.2s ease;
}

.footer-linkedin:hover { opacity: 1; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  #navbar { padding: 0 1rem; }
  .nav-links { gap: 0.1rem; }
  .nav-btn { padding: 0.35rem 0.5rem; font-size: 0.68rem; }

  .profile-grid { grid-template-columns: 1fr; }
  .hero-contacts { flex-direction: column; align-items: center; }
  .hero-tools { gap: 0.8rem; }
  .project-top { flex-direction: column; }
  .project-tools { flex-wrap: wrap; }
  .cert-card { flex-wrap: wrap; gap: 1rem; padding: 1.2rem; }
  .section { padding: 5rem 1rem 2rem; }
}

@media (max-width: 480px) {
  .nav-btn { display: none; }
  .nav-btn.active { display: block; }
  .skills-grid { grid-template-columns: 1fr; }
}
