/* Premium Dark Mode — Sadiqul Islam Executive Portfolio */

:root {
  --bg-primary: #0B0F19;
  --bg-card: #161F30;
  --bg-card-hover: #1C2840;
  --accent: #10B981;
  --accent-hover: #059669;
  --accent-glow: rgba(16, 185, 129, 0.25);
  --text-primary: #F1F5F9;
  --text-muted: #94A3B8;
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-accent: rgba(16, 185, 129, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.45);
  --max-width: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Header */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bg-primary);
  background: var(--accent);
  border-radius: var(--radius-sm);
  transition: background 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Hero */
#hero {
  padding: 64px 0 80px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

#profile-name {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 8px;
}

#profile-title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.hero-bio {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--border-accent);
}

.btn-outline:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--accent);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.hidden {
  display: none !important;
}

/* Avatar */
#avatar-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-elevated);
  background: var(--bg-card);
}

#avatar-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 60%,
    rgba(11, 15, 25, 0.4) 100%
  );
  pointer-events: none;
}

#profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Stats Ribbon */
#stats-ribbon {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 40px 0;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.stat-block {
  flex: 1 1 160px;
  max-width: 220px;
  min-width: 140px;
  text-align: center;
  padding: 20px 16px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s, transform 0.2s;
}

.stat-block:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.stat-value {
  display: block;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Campaigns */
#campaigns {
  padding: 80px 0;
}

.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.campaign-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.campaign-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.campaign-type {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
}

.campaign-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.campaign-metric {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.08);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

.campaign-detail {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.campaign-detail strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

/* Skills */
#skills {
  padding: 80px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-pill {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  transition: border-color 0.2s, background 0.2s;
}

.skill-pill:hover {
  border-color: var(--border-accent);
  background: rgba(16, 185, 129, 0.06);
}

/* Footer CTA */
#contact-cta {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(
    180deg,
    var(--bg-primary) 0%,
    #0D1525 100%
  );
  border-top: 1px solid var(--border-subtle);
}

.contact-inner {
  max-width: 640px;
}

.contact-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.contact-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.footer-admin-link {
  margin-top: 24px;
  font-size: 0.85rem;
}

.footer-admin-link a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-admin-link a:hover {
  color: var(--accent);
}

/* Error state */
.error-message {
  color: #F87171;
  font-size: 0.95rem;
  padding: 16px;
  background: rgba(248, 113, 113, 0.08);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  #hero-image {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }

  #hero {
    padding: 40px 0 56px;
  }

  .nav-links {
    gap: 4px;
  }

  .nav-link {
    display: none;
  }

  .stats-grid {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .stat-block {
    flex: 0 0 auto;
    min-width: 150px;
  }

  #campaigns,
  #skills,
  #contact-cta {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .nav-brand {
    font-size: 0.95rem;
  }

  .nav-cta {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
