:root {
  --bg: #0f172a;
  --bg-alt: #020617;
  --card-bg: #020617;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --border: #1f2937;
  --danger: #f97373;
  --font-main: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-main);
  color: var(--text);
  background: radial-gradient(circle at top left, #1e293b, #020617 45%, #000 100%);
}

/* Containers & sections */

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 5rem 0 4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 0.5rem;
}

.section-subtitle {
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 640px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Header / navbar */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(to right, #020617dd, #020617f5);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1.25rem;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
  padding-bottom: 0.1rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
}

/* Hero */

.hero {
  padding: 5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 3rem;
}

.tagline {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  margin: 0 0 0.6rem;
}

.hero-subtitle {
  margin: 0 0 1.5rem;
  max-width: 540px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.accent {
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.3rem;
}

.btn {
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.primary-btn {
  background: var(--accent);
  color: #0b1120;
  box-shadow: 0 14px 30px rgba(56, 189, 248, 0.35);
}

.primary-btn:hover {
  background: #0ea5e9;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.45);
}

.ghost-btn {
  background: transparent;
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.5);
}

.ghost-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-links a {
  color: var(--accent);
  text-decoration: none;
}

.hero-links a:hover {
  text-decoration: underline;
}

/* Hero image card */

.hero-image {
  display: flex;
  justify-content: flex-end;
}

.profile-card {
  text-align: center;
}

.profile-avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  overflow: hidden;
  border: 3px solid var(--accent-soft);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  margin: 0 0 0.3rem;
  font-size: 1.3rem;
}

.profile-role {
  margin: 0 0 0.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.profile-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Grid helpers */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Cards + hover effect */

.card {
  background: radial-gradient(circle at top left, #0f172a, #020617 55%);
  border-radius: 1rem;
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.7);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

/* Subtle gradient overlay */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

/* Global hover effect for all cards */
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.85);
  border-color: var(--accent);
  background: radial-gradient(circle at top left, #0b1220, #020617 55%);
}

.card:hover::before {
  opacity: 1;
}

/* Focus-visible for keyboard navigation */
.card:focus-within,
.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* About cards */

.about-card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
}

.about-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Skill cards */

.skill-card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.skill-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.area-cards .card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Projects */

.project-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 170px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Extra hover for project images */
.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.1rem 1.2rem 1.3rem;
}

.project-content h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.project-tags {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  color: var(--accent);
}

.project-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Timeline / Experience */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-card {
  position: relative;
}

.timeline-header {
  margin-bottom: 0.8rem;
}

.timeline-header h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.timeline-role {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--accent);
  margin-right: 0.5rem;
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timeline-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Education */

.edu-card h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
  font-size: 1.02rem;
}

.edu-institute {
  margin: 0 0 0.3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.edu-meta {
  margin: 0 0 0.3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.edu-highlight {
  margin: 0;
  font-size: 0.9rem;
  color: var(--accent);
}

/* Contact */

.contact-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-card li + li {
  margin-top: 0.35rem;
}

.contact-card a {
  color: var(--accent);
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-form h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #020617;
  color: var(--text);
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.form-note {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Footer */

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.2rem 0;
  margin-top: 2rem;
  background: #020617f5;
}

.footer-inner {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-image {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .nav {
    position: absolute;
    inset-inline: 0;
    top: 56px;
    background: #020617f5;
    flex-direction: column;
    padding: 0.8rem 1.2rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Large Certification Card */
.cert-large {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 720px;   /* 🔥 this makes it large */
  width: 100%;
  padding: 2rem;
}

.cert-large h3 {
  font-size: 1.25rem;
}

.cert-large ul li {
  margin-bottom: 0.35rem;
}


