:root {
  /* --- COLOR PALETTE: Dark IDE Theme --- */
  --bg-main: #0f172a; /* Deep Navy */
  --bg-card: #1e293b; /* Lighter Navy */
  --bg-darker: #0b1120; /* Almost Black */

  --text-main: #f1f5f9; /* Off-White */
  --text-muted: #94a3b8; /* Blueish Gray */

  /* Vibrant Accents */
  --primary: #6366f1; /* Indigo */
  --secondary: #06b6d4; /* Cyan */
  --accent-purple: #8b5cf6; /* Violet */
  --accent-pink: #ec4899; /* Pink */
  --accent-green: #10b981; /* Emerald */
  --accent-red: #ef4444; /* Red for diffs */
  --accent-orange: #f59e0b; /* Amber */

  --border: rgba(255, 255, 255, 0.1);
  --glass: rgba(30, 41, 59, 0.7);

  --gradient-main: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--accent-purple) 100%
  );
  --gradient-text: linear-gradient(
    90deg,
    #22d3ee 0%,
    #818cf8 50%,
    #c084fc 100%
  );

  --font-main: "Inter", system-ui, sans-serif;
  --font-mono: "Fira Code", "Consolas", monospace;

  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background & Grid Overlay */
.glow-bg {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}
.top-left {
  top: -200px;
  left: -200px;
  background: var(--secondary);
}
.bottom-right {
  bottom: -200px;
  right: -200px;
  background: var(--accent-purple);
}
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}
h1 {
  font-size: 3.5rem;
  letter-spacing: -1px;
}
h2 {
  font-size: 2.5rem;
}
p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
ul {
  list-style: none;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gradient-text-alt {
  background: linear-gradient(90deg, var(--accent-green), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  gap: 8px;
}
.btn--primary {
  background: var(--bg-card);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}
.btn--primary:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.5);
}
.btn--gradient {
  background: var(--gradient-main);
  color: white;
  border: none;
}
.btn--gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}
.btn--ghost {
  background: transparent;
  color: var(--text-main);
}
.btn--ghost:hover {
  color: var(--secondary);
}
.btn--sm {
  padding: 8px 16px;
  font-size: 0.9rem;
  background: var(--primary);
  border: none;
  color: white;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 15px 0;
}
.header__grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}
.logo-icon {
  background: var(--gradient-main);
  padding: 6px;
  border-radius: 8px;
  display: flex;
  color: white;
}
.nav {
  display: flex;
  gap: 2rem;
}
.nav__link {
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}
.nav__link:hover,
.nav__link.active {
  color: white;
}
.nav__link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: 0.3s;
}
.nav__link:hover::after {
  width: 100%;
}
.burger-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 140px 0 80px;
}
.hero__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}
.hero__stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: white;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.hero__actions {
  display: flex;
  gap: 1rem;
}

/* Code Card */
.code-card {
  background: #0d1117;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.card-header {
  background: #161b22;
  padding: 12px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.filename {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.red {
  background: #ff5f56;
}
.yellow {
  background: #ffbd2e;
}
.green {
  background: #27c93f;
}
.card-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}
.kwd {
  color: var(--accent-purple);
}
.var {
  color: var(--secondary);
}
.str {
  color: var(--accent-green);
}
.prop {
  color: var(--accent-orange);
}
.func {
  color: var(--primary);
}
.com {
  color: var(--text-muted);
  font-style: italic;
}

/* GIT DIFF SECTION */
.diff-viewer {
  background: #0d1117;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  overflow: hidden;
}
.diff-header {
  background: #161b22;
  padding: 10px 15px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.diff-line {
  display: flex;
  padding: 4px 10px;
}
.diff-line.removed {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}
.diff-line.added {
  background: rgba(16, 185, 129, 0.15);
  color: #86efac;
}
.line-num {
  width: 30px;
  color: var(--text-muted);
  opacity: 0.5;
  user-select: none;
}

/* PROJECTS SECTION */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.project-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.project-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
  opacity: 0;
  transition: 0.3s;
  cursor: pointer;
}
.project-card:hover .project-overlay {
  opacity: 1;
}
.project-card:hover .project-img img {
  transform: scale(1.1);
}
.project-info {
  padding: 1.5rem;
}
.project-tags {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.project-tags span {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--text-muted);
}

/* PRICING SECTION */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.price-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
}
.badge-pop {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}
.price-head {
  text-align: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
.price-val {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
}
.price-val span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}
.price-features {
  margin-bottom: 2rem;
  flex-grow: 1;
}
.price-features li {
  display: flex;
  gap: 10px;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.price-features i {
  color: var(--accent-green);
  width: 18px;
}

/* ALUMNI / COMMITS */
.commits-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}
.commit-item {
  display: flex;
  gap: 15px;
  background: var(--bg-card);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.commit-avatar {
  width: 40px;
  height: 40px;
  background: var(--accent-purple);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.commit-avatar.blue {
  background: var(--secondary);
}
.commit-avatar.green {
  background: var(--accent-green);
}
.commit-meta {
  display: flex;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.commit-hash {
  color: var(--primary);
}
.commit-msg {
  font-size: 0.95rem;
  color: var(--text-main);
}

/* Sections General */
.section {
  padding: 6rem 0;
}
.bg-darker {
  background: var(--bg-darker);
}
.center {
  text-align: center;
  margin-bottom: 4rem;
}

/* Modules */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.feature-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: 0.3s;
}
.feature-card:hover {
  transform: translateY(-10px);
  background: #232d42;
}
.color-1:hover::before {
  background: var(--accent-purple);
}
.color-2:hover::before {
  background: var(--secondary);
}
.color-3:hover::before {
  background: var(--accent-pink);
}
.f-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}
.color-1 .f-icon {
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.1);
}
.color-2 .f-icon {
  color: var(--secondary);
  background: rgba(6, 182, 212, 0.1);
}
.color-3 .f-icon {
  color: var(--accent-pink);
  background: rgba(236, 72, 153, 0.1);
}

/* Skills */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}
.tag {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  transition: 0.3s;
  cursor: default;
}
.tag:hover {
  border-color: var(--primary);
  color: white;
  transform: scale(1.05);
}
.tag.highlight {
  border-color: var(--secondary);
  color: var(--secondary);
  background: rgba(6, 182, 212, 0.05);
}

/* Process */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.step-card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.step-card.active {
  border-color: var(--accent-green);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}
.step-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.step-line {
  width: 2px;
  height: 30px;
  background: var(--border);
  margin-left: 40px;
}
.info-box {
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(245, 158, 11, 0.1);
  border-left: 4px solid var(--accent-orange);
  color: var(--accent-orange);
  display: flex;
  gap: 10px;
  align-items: start;
  font-size: 0.9rem;
}
.check-list li {
  margin-bottom: 0.5rem;
  display: flex;
  gap: 10px;
  color: var(--text-main);
}
.check-list i {
  color: var(--accent-green);
  width: 20px;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.acc-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}
.acc-head {
  width: 100%;
  padding: 1.5rem;
  text-align: left;
  background: none;
  border: none;
  color: white;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: 0.3s;
  padding: 0 1.5rem;
  color: var(--text-muted);
}

/* Form */
.form-wrapper {
  display: flex;
  justify-content: center;
}
.form-card {
  width: 100%;
  max-width: 500px;
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.form-header {
  text-align: center;
  margin-bottom: 2rem;
}
.input-group {
  margin-bottom: 1.5rem;
}
.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.input-group input {
  width: 100%;
  padding: 12px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: white;
  font-family: var(--font-mono);
}
.input-group input:focus {
  outline: none;
  border-color: var(--primary);
}
.checkbox-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.checkbox-wrapper a {
  color: var(--secondary);
  border-bottom: 1px solid var(--secondary);
}
.full {
  width: 100%;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  background: var(--bg-darker);
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer h4 {
  color: white;
  margin-bottom: 1.5rem;
}
.footer a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.footer a:hover {
  color: var(--primary);
}
.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

/* Cookie & Mobile */
.cookie-box {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 15px;
  border-radius: var(--radius);
  display: none;
  align-items: center;
  gap: 15px;
  z-index: 200;
}
.cookie-content {
  display: flex;
  gap: 10px;
  align-items: center;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-main);
  z-index: 200;
  transform: translateX(100%);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.mobile-menu.active {
  transform: translateX(0);
}
.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}
.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(2);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .footer-col {
    margin-bottom: 60px;
  }
  .form-header h2 {
    font-size: 1.9rem;
  }
  .nav,
  .header-actions {
    display: none;
  }
  .burger-btn {
    display: block;
  }
  .hero__layout,
  .split-layout,
  .grid-3,
  .footer-grid,
  .pricing-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 2.5rem;
  }
}

.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto 20px;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper h3 {
  color: #000000;
  margin-bottom: 20px;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  top: 0;
}

.text-wrapper strong {
  color: var(--color-error);
}

.text-wrapper a {
  color: #001eff;
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #000000;
}

.margin {
  margin: 120px 0 50px;
}
