/* ============================================================
   Portfolio PHP — app.css
   Google Fonts, CSS custom properties, animations, utilities
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400;1,9..40,700&display=swap');

/* ── Custom Properties ─────────────────────────────────────── */

:root {
  --color-bg:          #ffffff;
  --color-bg-alt:      #f5f5f7;
  --color-surface:     #eeeef0;
  --color-border:      #e0e0e6;
  --color-text:        #1a1a2e;
  --color-text-muted:  #6b6b80;
  --color-header-bg:   rgba(255, 255, 255, 0.55);
  --color-primary:     #6B5CF6;
  --color-primary-hover: #5a4de0;
  --color-primary-light: rgba(107, 92, 246, 0.12);

  --font-display: 'DM Sans', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  --radius-sm:  0.375rem;
  --radius-md:  0.75rem;
  --radius-lg:  1.25rem;
  --radius-xl:  2rem;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.14);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.16);
}

.dark {
  --color-bg:          #0f0f14;
  --color-bg-alt:      #16161e;
  --color-surface:     #1e1e28;
  --color-border:      #2a2a38;
  --color-text:        #f0f0f8;
  --color-text-muted:  #8888a8;
  --color-header-bg:   rgba(15, 15, 20, 0.55);
  --color-primary-light: rgba(107, 92, 246, 0.18);

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.30);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.40);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.50);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.60);
}

/* ── Base Reset & Typography ───────────────────────────────── */

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  margin: 0;
  transition: background-color var(--transition-slow), color var(--transition-slow);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base), opacity var(--transition-base);
}

a:hover {
  opacity: 0.85;
}

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

/* ── Custom Scrollbar ──────────────────────────────────────── */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* ── Navbar ────────────────────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  /* backdrop-filter lives on ::before so .navbar itself does NOT become
     a containing block for position:fixed children (the mobile overlay). */
}

/* The actual glass effect — pseudo-element so it doesn't trap fixed descendants */
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-slow), border-color var(--transition-slow);
  z-index: -1;
  pointer-events: none;
}


.navbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.navbar-logo span {
  color: var(--color-primary);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-base);
  position: relative;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--color-text);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle,
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-body);
}

.theme-toggle:hover,
.lang-toggle:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger { display: flex; }

  /* ── Compact dropdown (height follows content) ─────────────
     Sits directly below the navbar bar. Same glass effect as the
     navbar — looks like a seamless extension. Page content scrolls
     freely underneath since the dropdown is height:auto. */
  .navbar-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    /* no bottom — height wraps the links */
    flex-direction: column;
    align-items: center;
    gap: 0;
    z-index: 48;
    background: var(--color-header-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0 1rem;
  }

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

  /* Link items: large but compact enough to keep the panel short */
  .navbar-links a {
    display: block;
    padding: 0.7rem 3rem;
    font-size: clamp(1.35rem, 4.5vw, 1.7rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--color-text);
    text-align: center;
    opacity: 0.72;
    transition: color var(--transition-base), opacity var(--transition-base);
  }

  .navbar-links a:hover,
  .navbar-links a.active {
    color: var(--color-primary);
    opacity: 1;
  }

  /* Hide the desktop underline indicator on mobile */
  .navbar-links a::after {
    display: none;
  }
}

/* ── Sections ──────────────────────────────────────────────── */

.section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

/* ── Hero Section ──────────────────────────────────────────── */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 2rem 6rem;
  position: relative;
  overflow: hidden;
  /* Theme-aware: white in light mode, dark in dark mode */
  background: var(--color-bg);
}

@media (max-width: 768px) {
  .hero-section {
    padding-bottom: 9rem;
  }
}

/* Top-right glow removed — replaced by the soft glow behind the avatar */
.hero-section::before {
  display: none;
}

/* Second subtle glow bottom-left for depth */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(107,92,246,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-avatar { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-avatar-wrap { order: -1; margin: 0 auto; }
}

.hero-greeting {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin: 0 0 1rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero avatar — matches Next.js design (w-80 h-80 with decorative ring) */
.hero-avatar-wrap {
  position: relative;
  width: 320px;
  height: 320px;
  flex-shrink: 0;
}

.hero-avatar-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240%;
  height: 240%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(107, 92, 246, 0.18) 0%,
    rgba(107, 92, 246, 0.08) 40%,
    transparent 68%
  );
  z-index: 0;
}

.hero-avatar-inner {
  position: absolute;
  inset: 1rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(107, 92, 246, 0.35);
  z-index: 2;
  animation: spin 20s linear infinite;
}

.avatar-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  color: rgba(107, 92, 246, 0.3);
  user-select: none;
}

@media (max-width: 768px) {
  .hero-avatar-wrap { width: 220px; height: 220px; }
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
  text-decoration: none;
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

/* Hero social links (shown below CTA buttons) */
.hero-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.hero-social-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.hero-social-link svg {
  width: 16px;
  height: 16px;
}

.hero-social-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  opacity: 1;
}

/* ── Buttons ───────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(107, 92, 246, 0.4);
}

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

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-danger {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

/* ── Cards ─────────────────────────────────────────────────── */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

/* ── Skills ────────────────────────────────────────────────── */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .skills-grid { grid-template-columns: 1fr; }
}

.skill-category-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.skill-category-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.skill-category-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.skill-category-icon {
  width: 32px;
  height: 32px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.skill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-item {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  transition: color var(--transition-base), border-color var(--transition-base);
}

.skill-item:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ── Services ──────────────────────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.service-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ── Portfolio Grid ────────────────────────────────────────── */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

.project-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-border);
  position: relative;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.project-card:hover .project-card-image img {
  transform: scale(1.08);
}

/* Purple overlay on image hover */
.project-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(45, 28, 160, 0);
  transition: background 400ms ease;
  pointer-events: none;
}

.project-card:hover .project-card-image::after {
  background: rgba(45, 28, 160, 0.70);
}

.project-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-surface));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.project-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  transition: color var(--transition-base);
}

.project-card:hover .project-card-title {
  color: var(--color-primary);
}

.project-card-desc {
  position: relative;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
  max-height: calc(1.6em * 3);
  overflow: hidden;
}

/* Fade-out gradient instead of hard clip */
.project-card-desc::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.6em;
  background: linear-gradient(to bottom, transparent, var(--color-surface));
  pointer-events: none;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.tag-pill {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-primary-light);
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

/* ── Contact ───────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.contact-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

a.contact-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: flex;
}

.contact-icon {
  width: 52px;
  height: 52px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
}

.socials-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-base);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Footer ────────────────────────────────────────────────── */

footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 3rem 1.5rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.footer-logo span { color: var(--color-primary); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color var(--transition-base);
}

.footer-nav a:hover { color: var(--color-primary); }

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-social {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all var(--transition-base);
}

.footer-social svg { width: 16px; height: 16px; }

.footer-social:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ── About Section — Purple ────────────────────────────────── */

.section-purple {
  background: var(--color-primary) !important;
  position: relative;
  overflow: hidden;
}

.section-purple::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.section-purple .section-label {
  color: rgba(255,255,255,0.65);
}

.section-purple .section-heading {
  color: #fff;
}

.about-purple-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .about-purple-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.about-stat-large {
  margin: 1.75rem 0 1.5rem;
}

.about-stat-large-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  display: block;
}

.about-stat-large-label {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  margin-top: 0.25rem;
}

.about-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.about-skill-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 0.8125rem;
  font-weight: 500;
}

.about-purple-bio {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.85;
  margin-bottom: 2rem;
}

.btn-on-purple {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.btn-on-purple:hover {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ── Education Timeline ────────────────────────────────────── */

.edu-timeline {
  position: relative;
  padding-left: 2.5rem;
  margin-top: 2.5rem;
}

/* Vertical line — left: 3.5px so its 2px-wide centre sits at 4.5px,
   matching the 9px-wide dot whose centre is also at 4.5px */
.edu-timeline::before {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--color-border);
  border-radius: 2px;
}

/* Each row */
.edu-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.edu-item:last-child {
  margin-bottom: 0;
}

/* Bullet dot — smaller core with lighter halo ring behind */
.edu-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-primary);
  /* white gap → light purple outer ring */
  box-shadow:
    0 0 0 3px var(--color-bg),
    0 0 0 7px rgba(107, 92, 246, 0.22);
  z-index: 1;
}

/* Card */
.edu-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
  border: 1px solid var(--color-border);
}

.edu-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.edu-card-left {
  min-width: 0;
  flex: 1;
}

.edu-school-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.3rem;
}

.edu-degree {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.edu-city {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.edu-city svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Year pill badge */
.edu-year {
  flex-shrink: 0;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.3rem 0.875rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  margin-top: 0.125rem;
  letter-spacing: 0.01em;
}

/* ── Service card number ───────────────────────────────────── */

.service-card-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.service-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-border);
  line-height: 1;
}

/* ── Portfolio card overlay text ───────────────────────────── */

.project-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 400ms ease;
  z-index: 2;
  pointer-events: none;
}

.project-card-overlay span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.95);
  color: var(--color-primary);
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  letter-spacing: 0.01em;
}

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

/* ── Language switcher — plain text, active = purple ───────── */

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-btn {
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--color-text-muted);
  transition: color var(--transition-base);
  text-decoration: none;
  line-height: 1;
  padding: 0;
  background: none;
  border: none;
}

.lang-btn:hover {
  color: var(--color-primary);
  opacity: 1;
}

.lang-btn.active {
  color: var(--color-primary);
}

.lang-sep {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  user-select: none;
  opacity: 0.6;
}

/* ── Project Detail ────────────────────────────────────────── */

.project-hero-image {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  border-radius: var(--radius-lg);
  cursor: pointer;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
}

@media (max-width: 640px) {
  .project-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

.project-gallery-thumb {
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  width: 100%;
}

.project-gallery-thumb:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.video-embed {
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Lightbox ──────────────────────────────────────────────── */

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}

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

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-base);
}

.lightbox-close:hover { background: var(--color-primary); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-base);
}

.lightbox-prev:hover,
.lightbox-next:hover { background: var(--color-primary); }

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
}

/* ── Admin Layout ──────────────────────────────────────────── */

.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--color-bg);
}

.admin-sidebar {
  width: 240px;
  background: var(--color-bg-alt);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.75rem;
  }
}

.admin-sidebar-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.admin-sidebar-logo span { color: var(--color-primary); }

.admin-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: background var(--transition-base), color var(--transition-base);
}

.admin-nav a:hover,
.admin-nav a.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.admin-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }

.admin-nav-divider {
  height: 1px;
  background: var(--color-border);
  margin: 0.75rem 0;
}

.admin-main {
  flex: 1;
  padding: 2rem;
  overflow-x: auto;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

/* ── Admin Forms ───────────────────────────────────────────── */

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.375rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--color-text);
  font-family: var(--font-body);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
  text-align: left;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  user-select: none;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* ── Admin Table ───────────────────────────────────────────── */

.admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.admin-table th,
.admin-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.admin-table th {
  background: var(--color-bg-alt);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-table tr:hover td { background: var(--color-surface); }

/* ── Stat Cards ────────────────────────────────────────────── */

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.stat-card-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.stat-card-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Alert / Flash ─────────────────────────────────────────── */

.alert {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
}

.alert-success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.30);
  color: #15803d;
}

.dark .alert-success { color: #86efac; }

.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.30);
  color: #b91c1c;
}

.dark .alert-error { color: #fca5a5; }

/* ── Image Upload Zone ─────────────────────────────────────── */

.upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-base), background var(--transition-base);
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.upload-zone-icon {
  width: 48px;
  height: 48px;
  color: var(--color-text-muted);
  margin: 0 auto 0.75rem;
}

.upload-zone p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

.image-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.image-preview-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--color-border);
  cursor: grab;
  aspect-ratio: 1;
  background: var(--color-surface);
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-item:active { cursor: grabbing; }

.image-preview-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: rgba(239, 68, 68, 0.9);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background var(--transition-base);
}

.image-preview-delete:hover { background: #dc2626; }

.image-preview-drag-handle {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0,0,0,0.5);
  border-radius: 4px;
  padding: 2px 4px;
  color: #fff;
  font-size: 10px;
}

/* ── Video Entry (with cover image) ───────────────────────── */

.video-entry {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.video-entry-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.video-cover-row {
  margin-top: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.video-cover-thumb {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  display: none;
}

.video-cover-thumb.visible {
  display: block;
}

.video-cover-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ── Password Strength ─────────────────────────────────────── */

.password-strength-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--color-border);
  overflow: hidden;
  margin-top: 0.5rem;
}

.password-strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 300ms ease, background 300ms ease;
  width: 0%;
}

/* ── Search & Filter ───────────────────────────────────────── */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 2rem;
  align-items: center;
}

.filter-btn {
  padding: 0.4375rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.search-wrap {
  position: relative;
  max-width: 360px;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.625rem 0.875rem 0.625rem 2.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  color: var(--color-text);
  font-family: var(--font-body);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.search-input::placeholder { color: var(--color-text-muted); }

/* ── Animations ────────────────────────────────────────────── */

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Resume / Timeline ─────────────────────────────────────── */

.resume-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .resume-columns { grid-template-columns: 1fr; gap: 2rem; }
}

.resume-column-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.resume-column-title svg {
  color: var(--color-primary);
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0.75rem;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 1.75rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-primary);
  z-index: 1;
}

.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.125rem;
}

.timeline-org {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Re-declare card hover lifts AFTER .animate-on-scroll.visible so they win
   by source order (same 0,2,0 specificity — last declaration wins). */
.service-card:hover { transform: translateY(-8px); }
.project-card:hover { transform: translateY(-8px); }

.hero-animate {
  animation: fadeInUp 700ms ease both;
}

.hero-animate:nth-child(1) { animation-delay: 100ms; }
.hero-animate:nth-child(2) { animation-delay: 200ms; }
.hero-animate:nth-child(3) { animation-delay: 300ms; }
.hero-animate:nth-child(4) { animation-delay: 400ms; }

/* ── Utility ───────────────────────────────────────────────── */

.text-primary { color: var(--color-primary); }
.text-muted   { color: var(--color-text-muted); }
.font-display { font-family: var(--font-display); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-text-muted);
  font-size: 1.125rem;
}

/* Status badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-green {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}
.dark .badge-green { color: #86efac; }

.badge-gray {
  background: var(--color-surface);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.badge-purple {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* ── Content Editor Tabs ────────────────────────────────────── */

.content-tabs {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.375rem;
}

.content-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base);
}

.content-tab:hover {
  color: var(--color-text);
  background: var(--color-bg);
}

.content-tab.active {
  background: var(--color-primary);
  color: #fff;
}

.content-tab-panel {
  display: none;
}

.content-tab-panel.active {
  display: block;
}

.content-lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .content-lang-grid { grid-template-columns: 1fr; }
}

.content-lang-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.form-hint-inline {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-left: 0.25rem;
}

/* ── Admin Content Editor ───────────────────────────────────── */

.admin-content-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.admin-content-section-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.content-repeater-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.content-repeater-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

/* ── Dashboard section cards ────────────────────────────────── */

.section-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.section-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.section-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-card-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
}

.section-card-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  flex: 1;
}

.section-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
