:root {
  --bg-color: #0d0f14;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --accent-purple: #a855f7;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --text-main: #ffffff;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at 85% 15%, #1e1b4b 0%, transparent 45%),
    radial-gradient(circle at 15% 75%, #1e1b4b 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px;
}

.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
}

/* Header & Nav */
header {
  position: sticky;
  top: 16px;
  z-index: 1000;
  margin-bottom: 70px;
}

.glass-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 32px;
  background: rgba(13, 15, 20, 0.7);
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: padding 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  will-change: padding;
}

.glass-nav.is-scrolled {
  padding: 8px 28px;
  background: rgba(11, 18, 32, 0.92);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.12);
}

.logo {
  display: flex;
  align-items: center;
  height: 48px;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo svg,
.logo img,
.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: height 0.3s ease;
  display: block;
}

.glass-nav.is-scrolled .logo svg,
.glass-nav.is-scrolled .logo img,
.glass-nav.is-scrolled .logo-img {
  height: 38px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}

.menu-toggle .material-symbols-outlined {
  font-size: 1.6rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 1px;
  font-weight: 500;
  transition: color 0.25s ease;
}

nav a:hover {
  color: #ffffff;
}

/* Hero */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  margin-bottom: 110px;
}

.hero-content {
  flex: 1.1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.badge .dot-live {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero-lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.hero-pill {
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 6px;
  color: #e2e8f0;
}

.cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  color: #ffffff;
  text-decoration: none;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.5);
}

.cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.terminal-window {
  width: 440px;
  max-width: 100%;
  overflow: hidden;
  font-family: 'Fira Code', 'Courier New', Courier, monospace;
  font-size: 0.88rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
}

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

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-title {
  margin-left: 10px;
  color: var(--text-dim);
  font-size: 0.75rem;
}

.terminal-body {
  padding: 20px;
  margin: 0;
}

.terminal-body pre {
  margin: 0;
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.keyword { color: #c678dd; font-weight: 600; }
.type { color: #e5c07b; }
.string { color: #98c379; }

/* Section Header Styles */
.section-header {
  margin-bottom: 36px;
}

.section-tag {
  font-size: 0.75rem;
  color: var(--accent-purple);
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 8px;
  display: block;
}

h2 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 12px;
  color: #ffffff;
}

.section-desc {
  color: var(--text-dim);
  font-size: 0.96rem;
  line-height: 1.65;
  max-width: 820px;
  margin: 0;
}

/* About Section */
.about-section {
  margin-bottom: 90px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}

.about-card {
  padding: 32px;
}

.about-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0 0 16px;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-item .icon {
  font-size: 1.8rem;
  margin: 0;
  flex-shrink: 0;
}

.feature-item h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: normal;
}

.feature-item p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Services */
.services-section {
  margin-bottom: 90px;
}

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

.service-card {
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.service-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.service-header .icon {
  font-size: 2.2rem;
  margin: 0;
}

.service-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: normal;
}

.service-card p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}

.service-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-bullets li {
  font-size: 0.8rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-bullets li::before {
  content: '▸';
  color: var(--accent-purple);
  font-weight: bold;
}

/* Process Section */
.process-section {
  margin-bottom: 90px;
}

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

.process-card {
  padding: 24px;
  position: relative;
  transition: transform 0.25s ease;
}

.process-card:hover {
  transform: translateY(-4px);
}

.process-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(168, 85, 247, 0.4);
  margin-bottom: 12px;
  line-height: 1;
}

.process-card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: normal;
}

.process-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Tech Stack */
.stack-section {
  margin-bottom: 90px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.stack-card {
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stack-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
}

.stack-card .icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.stack-card h3 {
  margin: 0 0 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.stack-card span {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Color Classes */
.purple { color: var(--accent-purple); }
.blue { color: var(--accent-blue); }
.cyan { color: var(--accent-cyan); }
.orange { color: #f59e0b; }
.green-icon { color: #10b981; }
.white { color: #ffffff; }

/* Portfolio */
.portfolio-section {
  margin-bottom: 90px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.case-card {
  padding: 32px;
  transition: transform 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
}

.case-label {
  font-size: 0.72rem;
  color: var(--accent-purple);
  margin: 0 0 6px;
  letter-spacing: 1.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.case-card h3 {
  margin: 4px 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: normal;
}

.case-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0 0 16px;
  flex: 1;
}

.case-results {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--accent-purple);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 20px;
  line-height: 1.5;
}

.case-results strong {
  color: #ffffff;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  color: #e2e8f0;
}

/* FAQ Section */
.faq-section {
  margin-bottom: 90px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  padding: 18px 24px;
  border-radius: 12px;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(168, 85, 247, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.faq-summary {
  font-weight: 600;
  font-size: 0.98rem;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent-purple);
  transition: transform 0.2s ease;
  font-weight: 400;
}

.faq-item[open] .faq-summary::after {
  content: '−';
}

.faq-answer {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

/* Contact */
.contact-section {
  margin-bottom: 70px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.contact-card {
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
}

.contact-card .icon {
  font-size: 2rem;
  margin-top: 2px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.72rem;
  color: var(--accent-purple);
  margin: 0 0 4px;
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
}

.contact-link,
.contact-text {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.92rem;
  margin: 0;
  font-weight: 500;
  word-break: break-word;
}

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

.company-meta {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Footer */
.footer {
  margin-top: 60px;
  padding: 30px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-title {
  margin: 0 0 14px;
  color: var(--text-main);
  letter-spacing: 1px;
  font-size: 0.88rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  text-decoration: none;
}

.footer-link .material-symbols-outlined {
  font-size: 1.15rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 868px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 36px;
    margin-bottom: 70px;
  }

  .cta-group {
    justify-content: center;
  }

  .hero-pills {
    justify-content: center;
  }

  h1 {
    font-size: 2.1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .terminal-window {
    width: 100%;
  }
}

@media (max-width: 768px) {
  header {
    top: 10px;
    margin-bottom: 45px;
  }

  .glass-nav {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 20px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .glass-nav ul {
    width: 100%;
    flex-direction: column;
    gap: 12px;
    display: none;
    margin: 0;
    padding: 12px 0 6px;
  }

  .glass-nav ul.open {
    display: flex;
  }

  h1 {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}
