:root {
  --bg: #0f1216;
  --bg-alt: #141820;
  --text: #e6e8ec;
  --muted: #aab2c0;
  --brand: #7c5cff;
  --brand-2: #2dd4bf;
  --card: #171b23;
  --border: #252b36;
  --maxw: 1100px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section.alt {
  background: var(--bg-alt);
}

h2 {
  margin-bottom: 12px;
  font-size: 28px;
}

.muted {
  color: var(--muted);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 18, 22, .8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;              /* Keeps logo and nav side by side */
  align-items: center;        /* Vertically centers both */
  justify-content: space-between; /* Pushes them apart evenly */
  height: 64px;               /* Keeps your header height consistent */
  padding: 0 2rem;            /* Controls space from the page edges — try 0 or 1rem if you want tighter spacing */
  max-width: 1200px;          /* Prevents header from being too wide on big screens */
  margin: 0 auto;             /* Centers everything neatly in the viewport */
}


.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.logo-mark {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 8px;
  padding: 6px 10px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  opacity: .9;
}

.site-nav a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

/* Hero */
.hero {
  padding: 100px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  color: var(--brand-2);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 44px;
  margin: 10px 0;
}

.lead {
  color: var(--muted);
  max-width: 60ch;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.blob {
  height: 260px;
  border-radius: 24px;
  background: radial-gradient(circle at 70% 20%, rgba(124, 92, 255, .3), transparent 60%), radial-gradient(circle at 0% 100%, rgba(45, 212, 191, .2), transparent 60%), var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0b0f14;
  border: 1px solid transparent;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--sm {
  padding: 8px 12px;
  font-size: 14px;
}

/* Grids */
.grid {
  display: grid;
  gap: 20px;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

/* Cards & timeline */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card-media {
  height: 140px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(124, 92, 255, .25), rgba(45, 212, 191, .2));
  margin-bottom: 10px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.t-item {
  border-left: 2px solid var(--brand);
  padding-left: 14px;
}

.t-dates {
  color: var(--muted);
  font-size: 14px;
}

/* Form & Footer */
.contact-form {
  display: grid;
  gap: 12px;
}

input,
textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0c1015;
  color: var(--text);
}

input:focus,
textarea:focus {
  border-color: var(--brand-2);
  outline: none;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #0b0f14;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

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

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

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

/* Responsive */
@media(max-width:900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

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

@media(max-width:640px) {
  .grid.three {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(15, 18, 22, .95);
    transform: translateY(-120%);
    transition: .3s;
  }

  .site-nav.open {
    transform: translateY(0);
  }

  .site-nav ul {
    flex-direction: column;
    padding: 14px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .hero h1 {
    font-size: 32px;
  }
}

.hero-image {
  width: 420px;
  /* similar to original blob size */
  height: 240px;
  border-radius: 15px;
  /* rounded corners */
  object-fit: cover;
  /* fills area neatly without stretching */
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
  animation: fadeIn 2s ease-in-out;
}

/* Optional smooth fade-in effect */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

#projects p a {
  color: #66c2ff;
  /* gives a soft blue accent */
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

#projects p a:hover {
  color: #33aaff;
  /* lighter blue on hover */
  text-decoration: underline;
}
#research .card {
  text-align: center; /* centers text for better look */
  font-style: italic; /* makes "Coming Soon" feel like a placeholder */
  color: var(--muted); /* softer tone */
}
#research .card {
  text-align: center;
  color: var(--muted);
  font-style: italic;
}

