@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Inter:wght@300;400;600;800&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
  --primary: #4cc9f0;
  --secondary: #7209b7;
  --accent: #f72585;
  --bg: #05060a;
  --surface: #0f111a;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-main: #e2e8f0;
  --text-dim: #94a3b8;
  --code-bg: #020408;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- BACKGROUND FX --- */
.bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 15% 50%, rgba(76, 201, 240, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(114, 9, 183, 0.08), transparent 25%);
  z-index: -2;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--glass-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.05;
  z-index: -1;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
  z-index: 1001;
  box-shadow: 0 0 10px var(--primary);
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4 {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 span,
h2 span {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

code,
pre {
  font-family: 'JetBrains Mono', monospace;
}

/* --- NAVBAR & HAMBURGER --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(5, 6, 10, 0.8);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
}

.brand {
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
  text-shadow: 0 0 8px rgba(76, 201, 240, 0.4);
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1002;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: 0.3s;
}

/* Scrollable Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(5, 6, 10, 0.98);
  backdrop-filter: blur(20px);
  display: block;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  overflow-y: auto;
  /* Enable scroll inside menu */
  padding-top: 80px;
  /* Space for X button */
}

.mobile-menu.active {
  right: 0;
}

.menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 50px;
}

.mobile-menu a {
  font-size: 1.2rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
}

.mobile-menu a:hover {
  color: var(--primary);
  letter-spacing: 2px;
  transition: 0.3s;
}

/* Hamburger Animation */
.hamburger.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
  .desktop-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 20px 20px;
  position: relative;
}

.badge {
  color: var(--primary);
  margin-bottom: 20px;
  font-family: 'JetBrains Mono';
  border: 1px solid var(--glass-border);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  background: rgba(76, 201, 240, 0.1);
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero p {
  max-width: 600px;
  color: var(--text-dim);
  font-size: 1.2rem;
  margin-bottom: 40px;
}

.cta-group {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 20px rgba(76, 201, 240, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(76, 201, 240, 0.5);
}

.btn-secondary {
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: #fff;
}

.btn-secondary:hover {
  border-color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
}

.stats-bar {
  display: flex;
  gap: 40px;
  padding: 20px 40px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
  justify-content: center;
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 1.5rem;
  color: #fff;
}

.stat-item span {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- SECTIONS GENERAL --- */
section {
  padding: 80px 5%;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: 1s ease;
}

section.active {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

.feature-list {
  list-style: none;
  color: var(--text-dim);
}

.feature-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list i {
  color: var(--primary);
}

/* --- CARDS & GRID --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.tech-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--glass-border);
  padding: 30px;
  border-radius: 16px;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.tech-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.tech-card h3 {
  margin-bottom: 10px;
  color: var(--primary);
  font-family: 'JetBrains Mono';
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* Special Cards */
.center-card {
  text-align: center;
}

.icon-box {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 15px;
  background: rgba(247, 37, 133, 0.1);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-inline: auto;
}

.center-card h3 {
  justify-content: center;
}

.icon-large {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--text-main);
  display: block;
}

/* --- TIMELINE (Roadmap) --- */
.timeline {
  border-left: 2px solid var(--glass-border);
  margin-left: 20px;
  padding-left: 40px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -49px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--secondary);
}

.timeline-item h3 {
  color: var(--text-main);
  font-size: 1.2rem;
  margin-bottom: 5px;
}

/* --- TERMINAL WINDOW --- */
.terminal-window {
  background: var(--code-bg);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  margin-top: 20px;
}

.terminal-header {
  background: #1a1d26;
  padding: 10px 15px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--glass-border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red {
  background: #ff5f56;
}

.yellow {
  background: #ffbd2e;
}

.green {
  background: #27c93f;
}

.terminal-body {
  padding: 25px;
  overflow-x: auto;
}

.terminal-body code {
  color: #a9b7c6;
  display: block;
  font-size: 0.9rem;
  white-space: pre-wrap;
}

.cmd {
  color: var(--primary);
}

.str {
  color: #98c379;
}

.comment {
  color: #5c6370;
  font-style: italic;
}

/* --- FILE TREE --- */
.tree-view {
  font-family: 'JetBrains Mono';
  color: var(--text-dim);
  line-height: 1.8;
}

.tree-view .folder {
  color: var(--primary);
  font-weight: bold;
}

.tree-view .file {
  color: #e5e7eb;
}

.tree-view .desc {
  color: #5c6370;
  margin-left: 10px;
  font-size: 0.85rem;
}

/* --- MEGA FOOTER --- */
footer {
  background: linear-gradient(to top, #000, var(--bg));
  border-top: 1px solid var(--glass-border);
  padding: 80px 5% 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #fff;
}

.footer-col a {
  display: block;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 12px;
  transition: 0.3s;
}

.footer-col a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-col p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.newsletter {
  display: flex;
  gap: 10px;
}

.newsletter input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 10px;
  border-radius: 6px;
  color: #fff;
  width: 100%;
  outline: none;
}

.newsletter button {
  background: var(--primary);
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  text-decoration: none;
  transition: 0.3s;
  font-size: 1.2rem;
}

.social-links a:hover {
  background: var(--primary);
  color: #000;
  transform: translateY(-3px);
}

@media (max-width: 600px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .social-links {
    gap: 1px;
  }

}