:root {
  --bg: #0b1020;
  --card: #11162a;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8;
  --accent2: #22d3ee;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: linear-gradient(180deg, #050816, #0b1020);
  color: var(--text);
  line-height: 1.7;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(56,189,248,0.15), transparent 60%);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-bottom: 10px;
}

.hero .tagline {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 18px;
}


.hero .intro {
  max-width: 720px;
  margin: 18px auto 36px;
  font-size: 1.05rem;
  color: #cbd5e1;
}

.cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  z-index: 1;
}

.btn {
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #020617;
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(56,189,248,0.35);
}

.btn.secondary {
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn.secondary:hover {
  background: rgba(56,189,248,0.1);
}

.social-links {
  margin-top: 28px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  z-index: 1;
}
.social-links a {
  padding: 8px 14px;
  font-size: 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(56,189,248,0.35);
  color: var(--accent);
  text-decoration: none;
  transition: all 0.25s ease;
}
.social-links a:hover {
  background: var(--accent);
  color: #020617;
  box-shadow: 0 0 18px rgba(56,189,248,0.5);
}

/* ===== SECTIONS & CARDS ===== */
section {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 24px;
  scroll-margin-top: 80px;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  position: relative;
}
section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 25px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.card span {
  font-size: 0.9rem;
  color: var(--muted);
}
.card ul {
  margin-top: 12px;
  padding-left: 18px;
}
.card ul li {
  margin-bottom: 8px;
  color: #d1d5db;
}

/* ===== SKILLS ===== */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.skills span {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.4);
  color: var(--accent);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.skills span:hover {
  background: var(--accent);
  color: #020617;
  transform: scale(1.05);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s ease;
}
.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== TYPING ===== */
#typing {
  border-right: 2px solid var(--accent);
  padding-right: 4px;
  animation: blink 1s infinite;
  font-weight: 600;
}
@keyframes blink {
  0%,50%,100% { border-color: transparent; }
  25%,75% { border-color: var(--accent); }
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.project-type {
  font-size: 0.85rem;
  color: var(--accent2);
  font-weight: 600;
}

.tagline {
  font-size: 1.2rem;
  font-weight: 600;
  color: #e5e7eb; /* Fixed role professional color */
}

.fixed-role {
  color: #e5e7eb; /* fixed main text */
}

#typing {
  color: #38bdf8; /* animated roles accent color */
  border-right: 2px solid #38bdf8;
  padding-left: 6px; 
  animation: blink 1s infinite;
  font-weight: 600;
}

@keyframes blink {
  0%, 50%, 100% { border-color: transparent; }
  25%, 75% { border-color: #38bdf8; }
}

