:root {
  --bg: #050711;
  --panel: #0e1020;
  --panel-light: #1a1d2f;
  --accent: #42e8c4;
  --accent2: #5b78ff;
  --text: #f5f7ff;
  --muted: #99a0c2;
  --radius: 18px;
  --transition: 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Make sure the gradient layer can cover full height */
html,
body {
  height: 100%;
}

/* BASE BODY STYLES
   - Solid bg as fallback
   - Gradient moved to ::before so Safari/iOS behaves */
body {
  font-family: system-ui, sans-serif;
  background: var(--bg);   /* fallback solid colour */
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

/* Fixed gradient glow behind everything – matches original design */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at top, #151933 0%, #050711 65%);
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  backdrop-filter: blur(20px);
  background: rgba(5, 7, 17, 0.7);
  padding: 0.8rem 7vw;   /* same bar size as your GitHub version */
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Real logo, same size as the original TS circle placeholder */
.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(66, 232, 196, 0.6);  /* glow around the logo */
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-links a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--muted);
  transition: var(--transition);
}

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

.nav-cta {
  padding: 0.45rem 1rem;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* HERO */
.hero {
  padding: 6rem 7vw 5rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-text {
  max-width: 45rem;
  margin-bottom: 2rem;
  color: var(--muted);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #000;
}

.btn.primary:hover {
  opacity: 0.9;
}

.btn.ghost {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.07);
  color: var(--text);
}

.btn.ghost:hover {
  background: rgba(255,255,255,0.12);
}

/* SECTIONS */
.section {
  padding: 4.5rem 7vw;
}

.section-title {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 2rem;
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.3rem;
}

.card {
  padding: 1.4rem;
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 12px 25px rgba(0,0,0,0.4);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.5);
}

/* ABOUT BOX */
.about-box {
  background: var(--panel-light);
  padding: 1.7rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.04);
  max-width: 45rem;
  line-height: 1.6;
  color: var(--muted);
}

/* CONTACT */
.contact-card {
  background: var(--panel);
  padding: 1.7rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.04);
  max-width: 30rem;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* SCROLL ANIMATIONS */
.fade-in, .fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 800px) {
  .nav-links { display: none; }
}
