/* 🎨 Global Styles */
:root {
  --primary: #4361ee;
  --dark-bg: #1e1e2e;
  --card-bg: rgba(30, 30, 46, 0.7);
  --card-border: rgba(255, 255, 255, 0.1);
  --text-light: #f8f9fa;
  --text-muted: #a0a0c0;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 🔝 Header */
header {
  background: rgba(30, 30, 46, 0.9);
  backdrop-filter: blur(8px);
  position: fixed;
  width: 100%;
  z-index: 1000;
  border-bottom: 2px solid var(--card-border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-light);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-light);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.github-btn {
  background: rgba(67, 97, 238, 0.3);
  border: 1px solid rgba(67, 97, 238, 0.4);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: all 0.3s;
}

.github-btn:hover {
  background: rgba(67, 97, 238, 0.5);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* 💥 Hero */
.hero {
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  height: 100dvh;
}
.hero .container {
  margin-top: 5%;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.hero::before {
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(67, 97, 238, 0.15) 0%,
    rgba(67, 97, 238, 0) 70%
  );
}

.hero::after {
  bottom: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(67, 97, 238, 0.15) 0%,
    rgba(67, 97, 238, 0) 70%
  );
}

.tagline {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 800px;
  margin: auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.subtitle {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 700px;
  margin: auto;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.btn {
  padding: 15px 35px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 0 #1a1a2e, 0 10px 30px rgba(67, 97, 238, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 #1a1a2e, 0 15px 30px rgba(67, 97, 238, 0.5);
}

.btn-secondary {
  background: rgba(30, 30, 46, 0.7);
  border: 2px solid var(--card-border);
  color: var(--text-light);
}

.btn-secondary:hover {
  background: rgba(30, 30, 46, 0.9);
  transform: translateY(-3px);
}

/* ⭐ Features Section */
.section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 70px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

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

.feature-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: rgba(67, 97, 238, 0.3);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: rgba(67, 97, 238, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 30px;
  color: var(--primary);
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.feature-desc {
  color: var(--text-muted);
}

/* DEMO */
.demo {
  background: rgba(0, 0, 0, 0.2);
  padding: 70px 0;
  position: relative;
  min-height: 600px;
}
.demo .section-title {
    margin-top: 50px;
}

.demo-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.demo-content {
  flex: 1;
}

.demo-title {
  font-size: 2rem;
  margin-bottom: 25px;
  line-height: 1.3;
}

.demo-desc {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.demo-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 35px;
  padding-left: 50px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.step-number {
  background: var(--primary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: bold;
  font-size: 0.9rem;
}

.step-text {
  padding-top: 3px;
  font-size: 1.05rem;
}

.keyboard-hint {
  display: flex;
  gap: 8px;
  background: rgba(67, 97, 238, 0.2);
  padding: 12px 20px;
  border-radius: 30px;
  width: fit-content;
  border: 1px solid rgba(67, 97, 238, 0.4);
  margin-top: 25px;
  align-items: center;
}

/* 📦 Installation */
.installation {
  padding: 100px 0;
  text-align: center;
}

.steps-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
}

.step-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 20px;
  padding: 40px 30px;
  width: 250px;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-10px);
  border-color: rgba(67, 97, 238, 0.3);
  box-shadow: var(--shadow);
}

.step-icon {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 20px;
}

.step-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.step-desc {
  color: var(--text-muted);
}

/* 💻 GitHub Section */
.github-section {
  background: rgba(0, 0, 0, 0.2);
  padding: 100px 0;
  text-align: center;
}

.github-content {
  max-width: 700px;
  margin: 0 auto;
}

.github-logo {
  font-size: 70px;
  margin-bottom: 30px;
  color: var(--text-light);
}

.github-desc {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

/* 🔻 Footer */
footer {
  background: rgba(30, 30, 46, 0.9);
  backdrop-filter: blur(8px);
  padding: 50px 0 30px;
  border-top: 2px solid var(--card-border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--text-light);
}

.copyright {
  color: var(--text-muted);
  margin-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}

/* 📱 Responsive */
@media (max-width: 992px) {
  .tagline {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .tagline {
    font-size: 2.3rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .section-title {
    font-size: 2rem;
  }
  .hero .container {
    margin-top: 0%;
  }
  .demo-steps {
  padding-left: 10px;
}
}
