@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ======================== */
/* EVTechs Theme Variables  */
/* ======================== */
:root {
  --bg-body:      #0f172a;
  --bg-card:      #111827;
  --bg-card-alt:  #1a2435;
  --bg-sidebar:   #0d1520;
  --teal:         #2dd4bf;
  --teal-dark:    #14b8a6;
  --teal-light:   #5eead4;
  --teal-glow:    rgba(45, 212, 191, 0.15);
  --teal-glow2:   rgba(45, 212, 191, 0.08);
  --text-primary: #e5e7eb;
  --text-muted:   #9ca3af;
  --text-dim:     #6b7280;
  --border:       rgba(45, 212, 191, 0.12);
  --border-dim:   rgba(255,255,255,0.06);
}

* { box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

/* ======================== */
/* Navigation               */
/* ======================== */
nav {
  background: rgba(13, 21, 32, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.9em 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap;
}
nav a {
  margin: 0 6px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.93rem;
  padding: 0.4em 0.8em;
  border-radius: 6px;
  transition: all 0.2s;
}
nav a:hover {
  color: var(--teal);
  background: var(--teal-glow2);
}
nav a.nav-live-demo {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: #0f172a !important;
  font-weight: 700;
  padding: 0.4em 1.1em;
  border-radius: 20px;
  font-size: 0.88rem;
  margin-left: 10px;
  box-shadow: 0 2px 12px rgba(45,212,191,0.35);
}
nav a.nav-live-demo:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(45,212,191,0.5);
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
}

/* ======================== */
/* Hero Section             */
/* ======================== */
.hero-section {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-body);
}

.hero-bg-anim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 15% 25%, rgba(45,212,191,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 45% at 85% 75%, rgba(45,212,191,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(20,184,166,0.06) 0%, transparent 60%);
  animation: bgShift 7s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.04); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3.5em 1.5em 3em;
  max-width: 820px;
  margin: 0 auto;
}

.open-to-work {
  display: inline-block;
  background: rgba(45,212,191,0.12);
  border: 1px solid rgba(45,212,191,0.35);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3em 1em;
  border-radius: 20px;
  margin-bottom: 1.2em;
  letter-spacing: 0.3px;
  animation: pulse-border 2.5s ease-in-out infinite;
}
@keyframes pulse-border {
  0%, 100% { border-color: rgba(45,212,191,0.35); box-shadow: none; }
  50% { border-color: rgba(45,212,191,0.7); box-shadow: 0 0 10px rgba(45,212,191,0.2); }
}

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  margin: 1em 0 1.2em;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 0.75em;
}
.stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.1);
}

.hero-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1em;
}
.hero-avatar {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--teal-dark);
  box-shadow:
    0 0 0 6px rgba(45,212,191,0.1),
    0 0 40px rgba(45,212,191,0.2),
    0 8px 40px rgba(0,0,0,0.5);
  animation: avatarPulse 3.5s ease-in-out infinite;
}

@keyframes avatarPulse {
  0%, 100% {
    box-shadow: 0 0 0 6px rgba(45,212,191,0.1), 0 0 40px rgba(45,212,191,0.2), 0 8px 40px rgba(0,0,0,0.5);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(45,212,191,0.06), 0 0 60px rgba(45,212,191,0.3), 0 12px 50px rgba(0,0,0,0.6);
  }
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.2em 0;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--teal);
  margin: 0.4em 0 1em;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.hero-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 1.5em;
}

.hero-skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4em;
  margin-bottom: 1.2em;
}

.skill-badge {
  background: var(--teal-glow2);
  border: 1px solid var(--border);
  color: var(--teal-light);
  padding: 0.28em 0.8em;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s;
}
.skill-badge:hover {
  background: var(--teal-glow);
  border-color: var(--teal-dark);
  color: var(--teal);
}

/* Skill badges on light bg (fallback) */
.featured-tags .skill-badge {
  background: rgba(45,212,191,0.08);
  border-color: rgba(45,212,191,0.25);
  color: var(--teal);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75em;
  margin-bottom: 1.6em;
}

.btn-primary {
  display: inline-block;
  padding: 0.72em 1.6em;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: #000000 !important;
  text-decoration: none !important;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(45,212,191,0.35);
  transition: all 0.25s;
  font-size: 0.95rem;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(45,212,191,0.5);
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
}

.btn-outline {
  display: inline-block;
  padding: 0.72em 1.6em;
  background: transparent;
  color: var(--text-primary) !important;
  text-decoration: none !important;
  font-weight: 600;
  border-radius: 8px;
  border: 1.5px solid var(--teal-dark);
  transition: all 0.25s;
  font-size: 0.95rem;
}
.btn-outline:hover {
  background: var(--teal-glow);
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

.btn-live {
  display: inline-block;
  padding: 0.72em 1.6em;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: #000000 !important;
  text-decoration: none !important;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(45,212,191,0.3);
  transition: all 0.25s;
  font-size: 0.95rem;
}
.btn-live:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(45,212,191,0.5);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1em;
}
.social-links a {
  color: var(--text-dim);
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
}
.social-links a:hover {
  color: var(--teal);
  transform: translateY(-2px);
}

/* ======================== */
/* Container & Layout       */
/* ======================== */
.container {
  max-width: 980px;
  margin: 1.5em auto;
  padding: 0 1.5em;
}

/* ======================== */
/* Featured Banner          */
/* ======================== */
.featured-banner {
  border: 1px solid rgba(45,212,191,0.25);
  background: linear-gradient(135deg, rgba(45,212,191,0.06), rgba(20,184,166,0.03));
  position: relative;
  overflow: hidden;
}
.featured-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--teal-dark), var(--teal), var(--teal-light));
}
.featured-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: #0f172a;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25em 0.8em;
  border-radius: 20px;
  margin-bottom: 0.75em;
  letter-spacing: 0.5px;
}
.featured-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5em;
  flex-wrap: wrap;
}
.featured-content h3 {
  margin: 0 0 0.4em;
  font-size: 1.2rem;
  color: var(--text-primary);
}
.featured-content p {
  color: var(--text-muted);
  margin: 0 0 0.75em;
  font-size: 0.93rem;
}
.featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}
.featured-cta {
  flex-shrink: 0;
  white-space: nowrap;
}
.credentials-note {
  margin: 0.6em 0 0;
  font-size: 0.78rem;
  color: var(--teal);
  opacity: 0.85;
  font-style: italic;
}

/* ======================== */
/* What I Do                */
/* ======================== */
.what-i-do {
  margin-top: 0;
}
.what-i-do h2 {
  margin-bottom: 1em;
  color: var(--text-primary);
}
.grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.icon-card {
  text-align: center;
  padding: 1.5em 1.2em;
  margin-top: 0 !important;
}
.icon-card:hover {
  transform: translateY(-6px);
  border-color: rgba(45,212,191,0.3);
  box-shadow: 0 12px 32px rgba(45,212,191,0.1);
}
.icon-card-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5em;
}
.icon-card h4 {
  margin: 0 0 0.5em;
  color: var(--teal);
  font-size: 1.02rem;
}
.icon-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ======================== */
/* Cards                    */
/* ======================== */
/* ======================== */
/* Why Hire Me              */
/* ======================== */
.why-hire {
  margin-top: 1.5em !important;
}
.why-hire h2 {
  color: var(--teal);
  margin: 0 0 1em;
  font-size: 1.2rem;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1em;
}
.why-item {
  display: flex;
  gap: 0.85em;
  align-items: flex-start;
}
.why-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.why-item strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 0.2em;
}
.why-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
}

.card {
  background: var(--bg-card);
  padding: 1.5em;
  border-radius: 12px;
  border: 1px solid var(--border-dim);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  margin-top: 1.5em;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.3);
  border-color: var(--border);
}

/* ======================== */
/* Headings                 */
/* ======================== */
h2 {
  color: var(--text-primary);
}
h3 {
  color: var(--text-primary);
}
h4 {
  color: var(--text-primary);
}

/* ======================== */
/* Lists & Quotes           */
/* ======================== */
ul {
  list-style: none;
  padding: 0;
}
li {
  margin-bottom: 0.75em;
  color: var(--text-muted);
}
.quote blockquote {
  font-style: italic;
  border-left: 3px solid var(--teal);
  padding-left: 1em;
  color: var(--text-muted);
}

/* ======================== */
/* About page sections      */
/* ======================== */
.system-design ul li,
.coding ul li {
  color: var(--text-muted);
}
.system-design strong,
.coding strong {
  color: var(--teal-light);
}
.system-design p,
.coding p {
  color: var(--text-muted);
}

/* ======================== */
/* Contact Page             */
/* ======================== */
.contact-list li {
  background: var(--bg-card);
  padding: 0.75em 1em;
  border-radius: 8px;
  border: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  gap: 0.75em;
  color: var(--text-muted);
}
.contact-list li strong {
  width: 4em;
  color: var(--teal);
}

/* ======================== */
/* Certifications Scroll    */
/* ======================== */
.cert-scroll-vertical {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 0.5em;
  scrollbar-width: thin;
  scrollbar-color: var(--teal-dark) var(--bg-card);
}
.cert-scroll-vertical::-webkit-scrollbar {
  width: 4px;
}
.cert-scroll-vertical::-webkit-scrollbar-track {
  background: var(--bg-card);
}
.cert-scroll-vertical::-webkit-scrollbar-thumb {
  background: var(--teal-dark);
  border-radius: 4px;
}

/* ======================== */
/* Certification Cards      */
/* ======================== */
.cert-card {
  background: var(--bg-card-alt);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-dim);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  transition: transform 0.2s, border-color 0.2s;
  margin-bottom: 0.75em;
}
.cert-card:hover {
  transform: translateY(-2px);
  border-color: rgba(45,212,191,0.3);
  background: rgba(45,212,191,0.04);
}
.cert-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.cert-logo {
  width: 28px;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}
.cert-card h4 {
  font-size: 14px;
  margin: 0;
  color: var(--text-primary);
}
.cert-card p {
  margin: 2px 0;
  font-size: 12px;
  color: var(--text-muted);
}
.cert-card a {
  font-size: 12px;
  color: var(--teal);
  text-decoration: none;
}
.cert-card a:hover {
  text-decoration: underline;
  color: var(--teal-light);
}

/* ======================== */
/* Education Cards          */
/* ======================== */
.edu-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-dim);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 10px;
  margin-bottom: 0.75em;
}
.edu-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.edu-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
  flex-shrink: 0;
}
.edu-card h4 {
  color: var(--text-primary);
  margin: 0 0 2px;
}
.edu-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.88rem;
}
.edu-card a {
  color: var(--teal);
  text-decoration: none;
  font-size: 0.88rem;
}
.edu-card a:hover {
  text-decoration: underline;
}

/* ======================== */
/* Call to Action           */
/* ======================== */
.cta {
  margin: 4em 0;
  padding: 2.5em;
  text-align: center;
  background: linear-gradient(135deg, rgba(45,212,191,0.12), rgba(20,184,166,0.06));
  border: 1px solid rgba(45,212,191,0.25);
  color: var(--text-primary);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--teal-dark), var(--teal-light));
}
.cta h2 {
  color: var(--teal);
}
.cta a.resume-link {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(45,212,191,0.3);
}
.cta a.resume-link:hover {
  box-shadow: 0 6px 22px rgba(45,212,191,0.5);
}

/* ======================== */
/* Resume/CTA Button        */
/* ======================== */
.resume-link {
  display: inline-block;
  margin-top: 1.5em;
  padding: 0.72em 1.5em;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(45,212,191,0.3);
}
.resume-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45,212,191,0.5);
}

/* ======================== */
/* Live Badge               */
/* ======================== */
.live-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25em 0.85em;
  border-radius: 20px;
  margin-bottom: 0.6em;
  letter-spacing: 0.5px;
}

/* ======================== */
/* CMS Featured Project     */
/* ======================== */
.cms-featured {
  border: 1px solid rgba(45,212,191,0.25) !important;
  position: relative;
  overflow: hidden;
}
.cms-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--teal-dark), var(--teal-light), var(--teal-dark));
}
.cms-featured h2 {
  color: var(--teal-light);
  font-size: 1.5rem;
  margin: 0.2em 0 0.5em;
}
.cms-featured-header {
  margin-bottom: 0.5em;
}

/* Employer/Company section heading */
.section-employer-title {
  margin-top: 2.5em;
  margin-bottom: 0.3em;
  font-size: 1.3rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.employer-tag {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(45, 212, 191, 0.15);
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 20px;
  padding: 0.2em 0.8em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.employer-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.2em;
}
.nda-note {
  display: block;
  margin-top: 0.5em;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ======================== */
/* Project Cards            */
/* ======================== */
.project {
  background: var(--bg-card);
  padding: 1.5em;
  border-radius: 12px;
  border: 1px solid var(--border-dim);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
  margin-bottom: 1.5em;
}
.project:hover {
  transform: translateY(-4px);
  border-color: rgba(45,212,191,0.25);
  box-shadow: 0 10px 32px rgba(45,212,191,0.08);
}
.project h2, .project h3 {
  color: var(--teal-light);
}
.project > p {
  color: var(--text-muted);
}
.project ul li {
  color: var(--text-muted);
}
.project p strong {
  color: var(--teal);
}
.project a {
  color: var(--teal);
  text-decoration: none;
}
.project a:hover {
  color: var(--teal-light);
  text-decoration: underline;
}

/* ======================== */
/* Gallery Section Title    */
/* ======================== */
.gallery-section-title {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin: 1.75em 0 0.85em;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--teal);
}
.gallery-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ======================== */
/* Gallery Grid             */
/* ======================== */
.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin: 0 0 0.5em;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-dim);
  cursor: pointer;
  background: var(--bg-card-alt);
  aspect-ratio: 16 / 9;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.gallery-item:hover {
  border-color: var(--teal-dark);
  box-shadow: 0 6px 22px rgba(45,212,191,0.18);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,15,30,0.85) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.28s;
  display: flex;
  align-items: flex-end;
  padding: 0.7em 0.8em;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay span {
  color: #fff;
  font-size: 0.73rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.1px;
}

/* ======================== */
/* Lightbox                 */
/* ======================== */
#lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
#lightbox-img {
  max-width: 88%;
  max-height: 80vh;
  border-radius: 8px;
  border: 1px solid rgba(45,212,191,0.2);
  box-shadow: 0 0 60px rgba(45,212,191,0.12);
  object-fit: contain;
  display: block;
}
.lightbox-caption {
  margin-top: 0.75em;
  color: var(--text-muted);
  font-size: 0.83rem;
  text-align: center;
  max-width: 600px;
  padding: 0 1em;
}
.lightbox-counter {
  position: absolute;
  bottom: 1.4em;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  font-size: 0.78rem;
  background: rgba(0,0,0,0.5);
  padding: 0.25em 0.75em;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
}
.lightbox-close {
  position: absolute;
  top: 1em;
  right: 1.4em;
  color: rgba(255,255,255,0.55);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 0.2em;
  font-family: inherit;
}
.lightbox-close:hover { color: #fff; }
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.55);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.lightbox-arrow:hover {
  color: var(--teal);
  background: rgba(45,212,191,0.12);
  border-color: rgba(45,212,191,0.3);
}
.lightbox-prev { left: 1.2em; }
.lightbox-next { right: 1.2em; }

/* ======================== */
/* Forms                    */
/* ======================== */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 2em;
}
input, textarea {
  padding: 12px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  font-size: 15px;
  resize: vertical;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.2s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 3px rgba(45,212,191,0.1);
}
input::placeholder, textarea::placeholder {
  color: var(--text-dim);
}
button {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: #0f172a;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(45,212,191,0.3);
}
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(45,212,191,0.45);
}

/* ======================== */
/* Video                    */
/* ======================== */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border-dim);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.intro-video h2 {
  color: var(--teal);
}
.intro-video .video-note {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.intro-video .video-note a {
  color: var(--teal);
  text-decoration: none;
}
.intro-video .video-note a:hover {
  text-decoration: underline;
}

/* ======================== */
/* Grid                     */
/* ======================== */
.grid-2-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* ======================== */
/* Intro (legacy)           */
/* ======================== */
.intro {
  text-align: center;
  padding: 3em 1em;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-dim);
}
.intro-image img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--teal-dark);
  margin-bottom: 1em;
}
.intro h1 { font-size: 2.5rem; margin: 0.5em 0; color: var(--text-primary); }
.intro h1 span { color: var(--teal); }
.intro p { font-size: 1.05rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; }

/* ======================== */
/* Footer                   */
/* ======================== */
.site-footer {
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  text-align: center;
  padding: 2em 1em;
  margin-top: 3em;
}
.site-footer p {
  margin: 0 0 0.75em;
  font-size: 0.88rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1em;
}
.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--teal);
}

/* ======================== */
/* Responsive               */
/* ======================== */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 1.9rem; }
  .hero-section { padding: 0; }
  .hero-avatar { width: 120px; height: 120px; }
  .hero-stats { gap: 0; }
  .stat-item { padding: 0 0.5em; }
  .stat-num { font-size: 1.3rem; }
  .why-grid { grid-template-columns: 1fr; }
  .grid-2-col, .grid-3-col { grid-template-columns: 1fr; }
  .featured-content { flex-direction: column; align-items: flex-start; }
  .featured-cta { align-self: stretch; text-align: center; }
  .cert-card, .edu-card { padding: 8px 10px; }
  .cert-logo, .edu-logo { width: 26px; height: 26px; }
  .cert-scroll-vertical { max-height: 300px; }
  nav { padding: 0.7em 1em; }
  nav a { margin: 0 3px; font-size: 0.86rem; }
}
