:root {
  --bg: #0b1020;
  --bg-elev: #111733;
  --card: #141a3a;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --brand: #8b5cf6; /* violet */
  --brand-2: #22d3ee; /* cyan */
  --ok: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 18px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8fafc;
    --bg-elev: #ffffff;
    --card: #ffffff;
    --text: #0b1020;
    --muted: #475569;
    --brand: #6d28d9;
    --brand-2: #0891b2;
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  background: radial-gradient(
      1200px 800px at 100% -10%,
      rgba(34, 211, 238, 0.06),
      transparent 60%
    ),
    radial-gradient(
      1000px 700px at -10% 0%,
      rgba(139, 92, 246, 0.08),
      transparent 50%
    ),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

/* Layout helpers */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}
.section {
  padding: 48px 0;
}
.section-small {
  padding: 24px 0;
}
.grid {
  display: grid;
  gap: 24px;
}

/* Navbar */
.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  background: var(--bg-elev);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: color-mix(in lab, var(--bg), transparent 20%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  position: relative;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}
.logo:before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 8px;
  background: radial-gradient(
    circle at 65% 35%,
    rgba(255, 255, 255, 0.6),
    transparent 45%
  );
}

.justifyCenter {
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}
.nav-links a.active,
.nav-links a:hover {
  color: var(--text);
  background: rgba(139, 92, 246, 0.18);
}

.burger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 10px;
}
.burger:focus {
  outline: 2px solid var(--brand);
}
.burger svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 840px) {
  .burger {
    display: block;
  }
  .nav-links {
    position: fixed;
    inset: 56px 12px auto 12px;
    background: var(--bg-elev);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.show {
    display: flex;
  }
  .nav-links a {
    padding: 12px 14px;
  }
}
.title {
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.1;
  margin: 12px 0;
}
.subtitle {
  color: var(--muted);
  font-size: clamp(16px, 2.4vw, 18.5px);
}
.cta {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.btn {
  appearance: none;
  border: none;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  transition: all 0.25s ease;
}
.btn-primary:hover {
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.6); /* purple glow */
  transform: translateY(-2px);
}
.btn-ghost {
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.25);
}
/* Section headers */
.h2 {
  font-size: clamp(22px, 4vw, 34px);
  margin: 0 0 6px;
}
.eyebrow {
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}
.lead {
  color: var(--muted);
}
/* Image carousel */
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 16 / 9;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  position: relative;
  min-width: 100%;
  overflow: hidden;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 1rem;
  display: block;
}

/* Hover caption */
.carousel-slide::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  min-height: 32px;

  padding: 40px 20px 24px;
  font-size: 15px;
  color: #fff;

  /* Gradient goes from solid dark gray at bottom → fades upward */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    /* bottom (solid dark) */ rgba(0, 0, 0, 0.7) 60%,
    /* adjust % here to control height of grey part */ transparent 100%
      /* fades out at top */
  );

  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.carousel-slide:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.carousel-small {
	max-width: 70%;   
	margin: 0 auto;     
}

.carousel-small .carousel-slide img {
	object-fit: contain;
	border-radius: 12px;
}

/* Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  background: rgba(20, 20, 30, 0.45);
  backdrop-filter: blur(6px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.carousel-btn:hover {
  background: rgba(139, 92, 246, 0.85); /* violet accent */
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 12px;
}
.carousel-btn.next {
  right: 12px;
}

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel:hover .carousel-dots {
  opacity: 1; /* only visible on hover */
}

.carousel-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  padding: 0;
  margin: 0;
  line-height: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: inline-block;
  transition: background 0.3s ease, transform 0.2s ease;
}

.carousel-dots button:hover {
  transform: scale(1.3);
  background: rgba(255, 255, 255, 0.85);
}

.carousel-dots button.active {
  background: white;
  transform: scale(1.4);
}

.chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: var(--bg-elev);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  transition: background 0.25s ease, color 0.25s ease;
  cursor: default;
}

.chip:hover {
  background: #151c3e; /* subtle light gray overlay */
  color: #9eadc3; /* text becomes clearer */
}

@media (max-width: 720px) {
  .about {
    grid-template-columns: 1fr;
  }
  .socials {
    margin-top: 1rem; /* adjust to taste */
    gap: 0.5rem; /* space between icons */
    justify-content: center;
  }
  .chiprow {
    justify-content: center;
  }
  .row {
    justify-content: center;
  }
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}
.tag {
  background: rgba(148, 163, 184, 0.15);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding: 0 16px 16px;
}
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  text-decoration: none;
  font-weight: 700;
  background: var(--bg-elev);
  transition: all 0.25s ease;
}

.link-btn:hover {
  background: var(--brand-2); /* your accent color */
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}


/* Footer */
footer {
  padding: 28px 0;
  color: var(--muted);
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.muted {
  color: var(--muted);
}
.center {
  text-align: center;
}
.rounded {
  border-radius: var(--radius);
}
