/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --card: #1a1a26;
  --accent: #00d4ff;
  --accent-dim: #00a8cc;
  --text: #e0e0e8;
  --text-muted: #8888a0;
  --radius: 12px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  z-index: 100;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--accent);
  font-weight: 400;
}

.nav-links { display: flex; gap: 2rem; }

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: #fff; }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── Hero ── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 6rem 2rem 4rem;
}

.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 800;
  letter-spacing: -3px;
  margin-bottom: 1rem;
  line-height: 1.15;
  overflow: visible;
}

.hero h1 .computing {
  font-size: 0.5em;
  font-weight: 400;
}

.accent { color: var(--accent); }

.tm { font-size: 0.35em; font-weight: 400; vertical-align: baseline; position: relative; bottom: 0.6em; margin-left: 0.1em; margin-right: 0.1em; display: inline-block; }

.tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 500px;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 550px;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
  color: var(--bg);
}

/* ── Features ── */
.features {
  padding: 4rem 2rem 6rem;
  max-width: 1100px;
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  font-weight: 700;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Projects page ── */
.page-header {
  padding: 8rem 2rem 3rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.projects-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.project-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.project-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  color: #fff;
}

.project-card .tag {
  display: inline-block;
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.project-card ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.project-card li { margin-bottom: 0.4rem; }

/* ── About page ── */
.about-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.about-section p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-section h2 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.about-section ul {
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.about-section li { margin-bottom: 0.5rem; }

/* ── Contact page ── */
.contact-section {
  max-width: 550px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea { min-height: 150px; resize: vertical; }

.contact-form .btn {
  border: none;
  cursor: pointer;
  text-align: center;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Mobile ── */
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    padding: 1rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  }
  .nav-toggle { display: block; }
  .hero h1 { letter-spacing: -1px; }
  .card-grid { grid-template-columns: 1fr; }
}
