@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* Core palette */
  --bg: #030508;
  --panel: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.1);
  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.55);

  /* Brand */
  --grad-a: #2de7a1; /* mint */
  --grad-b: #27b7ff; /* tech blue */
  --name-gradient: linear-gradient(135deg, var(--grad-a), var(--grad-b));

  /* Terminal */
  --terminal-bg: #080b10;
  --terminal-green: var(--grad-a);
  --terminal-glow: rgba(45, 231, 161, 0.12);

  /* UI */
  --radius: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Reusable surfaces */
  --chip-bg: rgba(255, 255, 255, 0.04);
  --hover-bg: rgba(255, 255, 255, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.6;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(at 0% 0%, rgba(45, 231, 161, 0.06) 0, transparent 50%),
    radial-gradient(at 100% 0%, rgba(39, 183, 255, 0.06) 0, transparent 50%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================
   Sticky footer layout
   ========================= */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 100px 0;
}

/* =========================
   Header / Navigation
   ========================= */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(3, 5, 8, 0.8);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
}

.brand-logo {
  width: 50px;
  height: auto;
  border-radius: 8px;
  filter: drop-shadow(0 0 8px rgba(45, 231, 161, 0.3));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.menu-item {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
}

.menu-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* Social icons */
.social-links {
  display: flex;
  gap: 10px;
  margin-left: 10px;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
}

.icon-link:hover {
  transform: translateY(-2px);
  border-color: var(--grad-a);
  color: #fff;
  box-shadow: 0 0 15px var(--terminal-glow);
  background: rgba(45, 231, 161, 0.05);
}

.icon-link svg {
  display: block;
  width: 20px;
  height: 20px;
}

.icon-link svg path {
  fill: currentColor;
}

/* =========================
   Hero
   ========================= */

.intro-flex {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}

.profile-photo {
  width: 260px;
  height: 260px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  filter: grayscale(100%) contrast(1.05);
  opacity: 0.85;
  transition: var(--transition);
}

.profile-photo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.02);
}

.intro-text {
  flex: 1;
}

.line1 {
  margin: 0;
  font-size: 64px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.name-gradient {
  background: var(--name-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.line2 {
  margin: 20px 0 0;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.9);
}

.line3 {
  margin: 24px 0 0;
  font-size: 20px;
  max-width: 640px;
  color: var(--muted);
  line-height: 1.6;
}

.skills-badge {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.skills-badge strong {
  color: var(--grad-a);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
}

/* =========================
   Terminal
   ========================= */

.terminal {
  max-width: 1000px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--terminal-bg);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
}

.terminal-top {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dots {
  display: flex;
  gap: 8px;
  margin-right: 24px;
}

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

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }

.term-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 30px;
  min-height: 280px;
}

.terminal pre {
  margin: 0;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 15px;
  line-height: 1.7;
  color: var(--terminal-green);
  text-shadow: 0 0 10px var(--terminal-glow);
  white-space: pre-wrap;
}

.cursor {
  display: inline-block;
  width: 9px;
  height: 17px;
  margin-left: 6px;
  vertical-align: middle;
  background: var(--grad-a);
  box-shadow: 0 0 8px var(--terminal-green);
  animation: blink 1.2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* =========================
   Services
   ========================= */

.services-section {
  padding: 100px 0;
}

.services-header {
  margin-bottom: 60px;
}

.services-title {
  font-size: 38px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.04em;
}

.services-subtitle {
  max-width: 600px;
  margin-top: 12px;
  font-size: 19px;
  color: var(--muted);
}

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

.service-card {
  background: var(--panel);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--grad-a);
  background: var(--hover-bg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card--compact {
  padding: 32px;
}

.service-tag {
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.service-tag--compact {
  font-size: 10px;
  margin-bottom: 16px;
}

.service-tag--a { color: var(--grad-a); }
.service-tag--b { color: var(--grad-b); }

.service-heading {
  font-size: 24px;
  margin: 0 0 16px 0;
}

.service-heading--compact {
  font-size: 22px;
  margin: 0 0 12px 0;
}

.service-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.service-text--compact {
  font-size: 15px;
  line-height: 1.6;
}

.service-note {
  margin: 14px 0 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* =========================
   Nexus Stack
   ========================= */

.tech-stack-bar {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.tech-stack-title {
  margin-bottom: 24px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--grad-a);
}

.stack-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--text);
}

.chip {
  background: var(--chip-bg);
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* =========================
   About
   ========================= */

.about-section {
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-title {
  font-size: 38px;
  font-weight: 700;
  margin: 0 0 18px 0;
  letter-spacing: -0.04em;
}

.about-lead {
  margin: 0 0 18px 0;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
}

.about-text {
  margin: 0 0 16px 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 720px;
}

/* Right card */
.about-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-top: 72px; /* aligns with lead paragraph visually */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.about-card-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grad-a);
  margin-bottom: 18px;
}

.about-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.about-item:last-of-type {
  border-bottom: 0;
}

.about-k {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-v {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.about-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 18px 0;
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 12px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

/* =========================
   Footer
   ========================= */

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(3, 5, 8, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px 0;
  color: var(--muted);
  font-size: 13px;
}

/* =========================
   Cookie consent
   ========================= */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 9999;
  pointer-events: none;
}

.cookie-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(8, 11, 16, 0.92);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.cookie-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: rgba(255, 255, 255, 0.88);
}

.cookie-text strong {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grad-a);
}

.cookie-text span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  max-width: 760px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  border: 1px solid var(--border);
  background: rgba(45, 231, 161, 0.10);
  color: rgba(255, 255, 255, 0.92);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.cookie-btn:hover {
  border-color: var(--grad-a);
  box-shadow: 0 0 18px var(--terminal-glow);
  transform: translateY(-1px);
}

.cookie-btn--ghost {
  background: rgba(255, 255, 255, 0.04);
}

/* Link styling for simple contact text */
.contact-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
  transition: var(--transition);
}

.contact-link:hover {
  color: #fff;
  text-decoration-color: var(--grad-a);
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 900px) {
  .intro-flex {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .line1 {
    font-size: 48px;
  }

  .line3 {
    margin-left: auto;
    margin-right: auto;
  }

  .profile-photo {
    width: 200px;
    height: 200px;
  }

  .nav-container {
    flex-direction: column;
    gap: 24px;
  }

  .social-links {
    border: 0;
    margin: 0;
    padding: 0;
  }

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

  .about-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .about-card {
    margin-top: 0;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-btn {
    width: 100%;
  }
}
