:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #0d1117;
  --bg-card: #161b22;
  --bg-nav: rgba(10, 10, 10, 0.85);
  --border-color: #21262d;
  --border-light: #30363d;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #484f58;
  --accent: #00d9ff;
  --accent-hover: #33e3ff;
  --accent-dim: rgba(0, 217, 255, 0.15);
  --accent-glow: rgba(0, 217, 255, 0.3);
  --purple: #7c3aed;
  --green: #39ff14;
  --green-dim: #00ff41;
  --red: #ff3333;
  --yellow: #ffaa33;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 8px;
  --radius-sm: 4px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-primary);
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* PRELOADER */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}
.preloader-terminal {
  background: #1a1a2e;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  width: 380px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 217, 255, 0.1);
}
.terminal-header {
  background: #111;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #222;
}
.terminal-header .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot.red { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green { background: var(--green); }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  margin-left: 8px;
}
.terminal-body {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--green);
}
.terminal-body .prompt { color: var(--green); margin-right: 8px; }
.terminal-body .cmd { color: var(--text-primary); }
.terminal-body .blink { animation: blink 1s step-end infinite; color: var(--accent); }

/* NAVIGATION */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(10,10,10,0.95);
  border-bottom-color: var(--accent-dim);
}
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.logo-prompt {
  color: var(--green);
  font-weight: 700;
}
.logo-text .accent { color: var(--accent); }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-link .link-prompt {
  color: var(--green);
  opacity: 0;
  transition: var(--transition);
  margin-right: 4px;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: var(--accent-dim);
}
.nav-link:hover .link-prompt,
.nav-link.active .link-prompt {
  opacity: 1;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}
.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 4px 16px 4px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  margin-bottom: 24px;
}
.tag-prompt { color: var(--green); }
.tag-text { color: var(--text-secondary); }
.hero-greeting {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.hero-name {
  font-family: var(--font-mono);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 16px;
}
.hero-name .name-line { display: block; }
.hero-name .accent { color: var(--accent); }
.hero-typed {
  margin-bottom: 20px;
}
.typed-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}
.typed-wrapper {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--green);
  display: flex;
  align-items: center;
}
.typed-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
  margin-left: 4px;
}
.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 540px;
}
.hero-desc strong { color: var(--text-primary); }
.hide-mobile { display: inline; }
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}
.btn-outline {
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
}
.btn-ghost:hover {
  color: var(--green);
}
.hero-social {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
}
.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: var(--transition);
  text-decoration: none;
  font-size: 16px;
}
.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--accent-glow);
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
}
.stat-plus {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
}
.hero-image-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--purple), var(--accent));
  animation: rotate-glow 6s linear infinite;
  filter: blur(20px);
  opacity: 0.5;
}
.hero-image {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border-light);
  z-index: 1;
}
.hero-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--bg-card);
  border: 1px solid var(--green);
  border-radius: 20px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  z-index: 2;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* SECTIONS */
section { padding: 100px 24px; }
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-terminal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1a1a2e;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 6px 12px;
  margin-bottom: 20px;
}
.term-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.term-dot.red { background: var(--red); }
.term-dot.yellow { background: var(--yellow); }
.term-dot.green { background: var(--green); }
.term-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  margin-left: 4px;
}
.section-title {
  font-family: var(--font-mono);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-title .prompt { color: var(--green); }
.section-title .accent { color: var(--accent); }
.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 217, 255, 0.05);
}
.card-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 12px;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 16px;
}
.service-card h3 {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* SERVICE IMAGES */
.service-img-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  background: var(--bg-card);
  display: flex;
}
.service-img-wrapper:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 217, 255, 0.1);
}
.service-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-img-wrapper:hover .service-img {
  transform: scale(1.03);
}

/* PROJECTS */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 10px 28px;
  background: rgba(13, 17, 23, 0.9);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  font-weight: 500;
}
.filter-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-2px);
}
.filter-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 25px var(--accent-glow), inset 0 0 10px rgba(0, 217, 255, 0.2);
  font-weight: 700;
  transform: scale(1.05);
}
.projects-slider {
  padding: 10px 0 20px;
}
.swiper-slide {
  height: auto;
  margin-top: 20px;
}
.swiper-slide:nth-child(1),
.swiper-slide:nth-child(2),
.swiper-slide:nth-child(3) {
  margin-top: 0;
}
.swiper-pagination {
  display: none !important;
}
.swiper-navigation {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.swiper-btn {
  width: 44px; height: 44px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
}
.swiper-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}
.project-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 217, 255, 0.05);
}
.project-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
  background: #0d0d0d;
}
.project-body {
  padding: 20px;
}
.project-type {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 8px;
}
.project-title {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.project-link {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.project-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.project-link i { font-size: 10px; }

/* ABOUT */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.8;
}
.about-text strong { color: var(--text-primary); }
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}
.tag .prompt { color: var(--green); margin-right: 4px; }
.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.about-timeline {
  position: relative;
  padding-left: 28px;
}
.about-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--purple));
}
.timeline-item {
  position: relative;
  margin-bottom: 36px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}
.timeline-content:hover {
  border-color: var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 217, 255, 0.05);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}
.timeline-content h4 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.timeline-content p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* CONTACT */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: var(--transition);
}
.contact-card:hover {
  border-color: var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 217, 255, 0.05);
}
.contact-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 12px;
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}
.contact-card a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}
.contact-card a:hover { color: var(--accent); }
.contact-card span {
  color: var(--text-secondary);
  font-size: 14px;
}
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
}
.form-header {
  font-family: var(--font-mono);
  font-size: 14px;
  margin-bottom: 28px;
}
.form-header .prompt { color: var(--green); }
.form-group {
  position: relative;
  margin-bottom: 16px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px 12px 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}
.form-group textarea {
  height: 120px;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}
.form-prompt {
  position: absolute;
  left: 12px;
  top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
  pointer-events: none;
}
.textarea-group .form-prompt { top: 12px; }
.submit-btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  margin-top: 8px;
}
.form-status {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
}

/* TRAINING */
#training {
  background: var(--bg-secondary);
}
.training-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.training-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.training-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 217, 255, 0.05);
}
.training-media-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.training-media {
  width: 100%;
  background: #0d0d0d;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}
.coming-soon-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  background: var(--bg-secondary);
}
.coming-soon-placeholder i {
  font-size: 40px;
  color: var(--accent-dim);
}
.coming-soon-text {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.training-body {
  padding: 24px;
}
.training-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(57, 255, 20, 0.15);
  color: var(--green);
  margin-bottom: 12px;
}
.training-badge.upcoming {
  background: rgba(0, 217, 255, 0.15);
  color: var(--accent);
}
.training-body h3 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}
.training-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.training-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: #0d0d0d;
  border-bottom: 1px solid var(--border-color);
}
.gallery-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
  transition: var(--transition);
  position: relative;
}
.gallery-thumb:hover {
  opacity: 0.8;
  transform: scale(1.02);
  z-index: 1;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 7000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}
.gallery-modal {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-modal img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-size: 16px;
}
.gallery-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.gallery-prev { left: -60px; }
.gallery-next { right: -60px; }
.gallery-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}
.gallery-close:hover { color: var(--accent); }
.gallery-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
}

/* FOOTER */
#footer {
  padding: 60px 24px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}
.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col { min-width: 0; }
.footer-logo {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.footer-logo .logo-prompt { color: var(--green); }
.footer-logo .accent { color: var(--accent); }
.footer-bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-social { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: var(--transition);
  font-size: 14px;
  text-decoration: none;
}
.footer-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}
.footer-heading {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.footer-heading .prompt { color: var(--green); }
.footer-heading .accent { color: var(--accent); }
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links li a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-links li a i {
  font-size: 8px;
  color: var(--accent);
  transition: var(--transition);
}
.footer-links li a:hover {
  color: var(--accent);
  transform: translateX(4px);
}
.footer-links li a:hover i {
  transform: translateX(2px);
}
.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact li {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-contact li i {
  width: 16px;
  color: var(--accent);
  font-size: 12px;
  flex-shrink: 0;
}
.footer-contact li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}
.footer-contact li a:hover { color: var(--accent); }
.footer-divider {
  height: 1px;
  background: var(--border-color);
  margin: 32px 0 20px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-built .accent { color: var(--accent); }

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal.active {
  opacity: 1;
  visibility: visible;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
}
.modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transform: scale(0.9);
  transition: var(--transition);
}
.modal.active .modal-content {
  transform: scale(1);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  background: #111;
}
.modal-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}
.modal-title i { color: var(--green); margin-right: 6px; }
.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
}
.modal-close:hover { color: var(--red); }
.modal-body {
  position: relative;
  padding-bottom: 56.25%;
}
.modal-body iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* POPUP */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 6000;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.popup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
}
.popup-close {
  position: absolute;
  top: 12px; right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}
.popup-close:hover { color: var(--text-primary); }
.popup-icon {
  width: 60px; height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 50%;
  font-size: 28px;
  color: var(--accent);
}
.popup-card h3 {
  font-family: var(--font-mono);
  font-size: 20px;
  margin-bottom: 12px;
}
.popup-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.popup-card .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
  color: #fff;
}

/* CURSOR */
.cursor-follower {
  width: 20px; height: 20px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.15s, background 0.3s;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  opacity: 0;
}
a:hover ~ .cursor-follower,
button:hover ~ .cursor-follower {
  transform: translate(-50%, -50%) scale(1.5);
  background: var(--accent);
}

/* ANIMATIONS */
@keyframes blink {
  50% { opacity: 0; }
}
@keyframes rotate-glow {
  to { transform: rotate(360deg); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-right { order: -1; }
  .hero-image-wrapper {
    width: 260px;
    height: 260px;
  }
  .hero-typed { justify-content: center; }
  .hero-btns { justify-content: center; }
  .hero-social { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hide-mobile { display: none; }
  .about-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px;
    gap: 4px;
  }
  .menu-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .training-grid { grid-template-columns: 1fr; }
  .training-gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery-prev { left: 4px; }
  .gallery-next { right: 4px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 32px; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .stat-num, .stat-plus { font-size: 24px; }
  .section-terminal { transform: scale(0.85); }
  .project-filters { gap: 6px; }
  .filter-btn { font-size: 11px; padding: 6px 14px; }
}

@media (max-width: 968px), (pointer: coarse) {
  .cursor-follower {
    display: none !important;
  }
}
