/* ==========================================================================
   Executive Dark Tech & Glassmorphism Portfolio - Abbas Jamali Nejad
   ========================================================================== */

:root {
  --bg-dark: #070b14;
  --bg-surface: rgba(15, 23, 42, 0.65);
  --bg-surface-hover: rgba(30, 41, 59, 0.78);
  --border-glass: rgba(148, 163, 184, 0.14);
  --border-highlight: rgba(56, 189, 248, 0.4);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-cyan: #38bdf8;
  --accent-indigo: #818cf8;
  --accent-emerald: #10b981;
  --gradient-main: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --radius-lg: 20px;
  --radius-md: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Ambient Background Effects */
.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -2;
  pointer-events: none;
  opacity: 0.22;
}

.glow-1 {
  top: -150px;
  right: -100px;
  background: #38bdf8;
}

.glow-2 {
  bottom: 10%;
  left: -150px;
  background: #6366f1;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: -1;
  pointer-events: none;
}

/* Glass Card Component */
.glass-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--border-highlight);
  background: var(--bg-surface-hover);
}

/* Typography Helpers */
.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.5px;
  direction: ltr;
}

.brand strong {
  font-weight: 800;
  color: var(--accent-cyan);
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-main);
  box-shadow: 0 0 12px var(--accent-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:not(.btn-nav)::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: var(--transition);
}

.nav-link:not(.btn-nav):hover::after,
.nav-link:not(.btn-nav).active::after {
  width: 100%;
}

.btn-nav {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent-cyan);
  padding: 8px 18px;
  border-radius: 99px;
}

.btn-nav:hover {
  background: var(--accent-cyan);
  color: #070b14;
}

.nav-toggle {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient-main);
  color: #060a12;
  box-shadow: 0 10px 25px -8px rgba(56, 189, 248, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -8px rgba(56, 189, 248, 0.7);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-cyan);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
}

.btn-outline:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.w-100 {
  width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-subtitle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 620px;
}

.hero-desc strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.88rem;
  direction: ltr;
}

.social-pill:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* Profile Card in Hero */
.profile-card {
  padding: 32px;
  text-align: center;
  position: relative;
}

.profile-img-wrap {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  position: relative;
}

.profile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(56, 189, 248, 0.5);
  padding: 4px;
  background: var(--bg-dark);
}

.verified-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 2px solid var(--accent-cyan);
}

.profile-meta h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-meta p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  direction: ltr;
  margin-bottom: 22px;
}

.profile-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(7, 11, 20, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  margin-bottom: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: var(--border-glass);
}

.code-snippet-mini {
  background: #04070e;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  text-align: left;
  overflow: hidden;
}

.snippet-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-glass);
}

.snippet-header .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.snippet-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

.code-snippet-mini pre {
  padding: 12px 14px;
  font-size: 0.8rem;
  font-family: 'Fira Code', monospace;
  color: #cbd5e1;
  overflow-x: auto;
  line-height: 1.5;
}

.kw { color: #c084fc; }
.cls { color: #38bdf8; }
.str { color: #34d399; }

/* ==========================================================================
   Sections Common
   ========================================================================== */
.section {
  padding: 90px 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: start;
}

.about-main {
  padding: 36px;
}

.about-main h3 {
  font-size: 1.4rem;
  margin-bottom: 18px;
  color: var(--accent-cyan);
}

.about-main p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  text-align: justify;
}

.about-main strong {
  color: var(--text-primary);
}

.info-pills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

.info-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(7, 11, 20, 0.5);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.info-pill i {
  font-size: 1.4rem;
  color: var(--accent-cyan);
}

.info-pill .label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.info-pill strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.pillars-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pillar-card {
  padding: 24px;
}

.pillar-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.pillar-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.skill-group {
  padding: 28px;
}

.skill-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.skill-group-header i {
  font-size: 1.6rem;
  color: var(--accent-cyan);
}

.skill-group-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  direction: ltr;
  justify-content: flex-end;
}

.tech-tag {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.tech-tag.primary {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--accent-cyan);
  font-weight: 600;
}

.skill-note {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-img-box {
  height: 190px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-glass);
}

.project-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img-box img {
  transform: scale(1.06);
}

.project-img-box.no-img img {
  display: none;
}

.project-fallback {
  display: none;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--accent-cyan);
}

.project-img-box.no-img .project-fallback {
  display: flex;
}

.project-fallback i {
  font-size: 2.6rem;
}

.project-fallback span {
  font-weight: 700;
  font-size: 1rem;
  direction: ltr;
}

.project-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-highlight);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  direction: ltr;
}

.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-top h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  flex-grow: 1;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  direction: ltr;
  justify-content: flex-end;
}

.project-stack span {
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(129, 140, 248, 0.12);
  color: #a5b4fc;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.link-btn:hover {
  gap: 12px;
}

/* ==========================================================================
   Timeline (Experience & Education)
   ========================================================================== */
.timeline-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 32px;
}

.col-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.col-heading i {
  color: var(--accent-cyan);
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-item {
  padding: 26px;
  position: relative;
}

.timeline-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 3px 12px;
  border-radius: 99px;
  margin-bottom: 10px;
}

.timeline-item h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-org {
  font-size: 0.9rem;
  color: var(--accent-indigo);
  font-weight: 500;
  margin-bottom: 14px;
}

.timeline-bullets {
  padding-right: 18px;
  list-style: disc;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.timeline-bullets li {
  margin-bottom: 8px;
}

.timeline-bullets strong {
  color: var(--text-primary);
}

.timeline-text {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.philosophy-box {
  padding: 28px;
}

.philosophy-box h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.12rem;
  margin-bottom: 18px;
  color: var(--accent-cyan);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.check-list li i {
  color: var(--accent-emerald);
  font-size: 1.2rem;
  margin-top: 2px;
}

.check-list strong {
  color: var(--text-primary);
}

/* ==========================================================================
   Certificates Section
   ========================================================================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cert-card {
  overflow: hidden;
  cursor: pointer;
}

.cert-thumb {
  height: 200px;
  background: #0b1120;
  position: relative;
  overflow: hidden;
}

.cert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cert-card:hover .cert-thumb img {
  transform: scale(1.05);
}

.cert-thumb.cert-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(129, 140, 248, 0.08));
}

.cert-thumb.cert-placeholder::after {
  content: "تصویر گواهینامه";
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cert-thumb.cert-placeholder img {
  display: none;
}

.cert-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 20, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  font-size: 2rem;
  color: var(--accent-cyan);
}

.cert-card:hover .cert-overlay {
  opacity: 1;
}

.cert-info {
  padding: 18px 20px;
}

.cert-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cert-info span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-wrapper {
  padding: 44px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.contact-info h2 {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 12px 0 16px;
  line-height: 1.4;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid var(--border-glass);
}

.contact-item:hover {
  border-color: var(--accent-cyan);
}

.c-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.contact-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-item strong {
  font-size: 0.98rem;
}

.contact-form {
  background: rgba(7, 11, 20, 0.65);
  border: 1px solid var(--border-glass);
  padding: 30px;
  border-radius: var(--radius-lg);
}

.contact-form h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

/* ==========================================================================
   Footer & Lightbox
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: 28px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  direction: ltr;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.92);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 850px;
  width: 100%;
  text-align: center;
  position: relative;
}

.lightbox-content img {
  max-height: 78vh;
  margin: 0 auto 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-highlight);
}

.lightbox-content p {
  color: var(--text-primary);
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  left: 0;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid,
  .about-grid,
  .timeline-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .projects-grid,
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    right: 24px;
    left: 24px;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .skills-grid,
  .projects-grid,
  .cert-grid,
  .info-pills-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    padding: 24px;
  }
}

/* Print Styles (Executive PDF Export) */
@media print {
  body {
    background: #fff !important;
    color: #111 !important;
  }
  .navbar, .bg-glow, .grid-overlay, .hero-actions, .contact-form, .lightbox-modal {
    display: none !important;
  }
  .glass-card {
    background: #fff !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    color: #111 !important;
  }
  .text-gradient, .hero-subtitle, .section-tag, .stat-num, .pillar-icon, .skill-group-header i {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
  }
  p, li, span {
    color: #334155 !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* Certificate Category & Archive Card Enhancements */
.cert-cat {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 10px;
  border-radius: 99px;
  margin-bottom: 8px;
}

.cert-more-card {
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  border-color: rgba(56, 189, 248, 0.35);
}

.cert-more-body {
  padding: 28px 22px;
  text-align: center;
}

.more-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: rgba(129, 140, 248, 0.14);
  color: var(--accent-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.cert-more-body h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.cert-more-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.more-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 4px 12px;
  border-radius: 99px;
}
