/*--------------------------------------------------------------
  Design System — Umang Mavani Portfolio
  Typography: Sora (headings) + Plus Jakarta Sans (body) + JetBrains Mono (code)
  Dark-first with light mode via [data-theme="light"]
--------------------------------------------------------------*/

/* ===== Design Tokens ===== */
:root {
  /* Dark theme (default) */
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161e;
  --bg-card-hover: #1c1c26;
  --bg-nav: rgba(10, 10, 15, 0.85);

  --text-primary: #eaeaf0;
  --text-secondary: #9898a6;
  --text-muted: #5c5c6e;

  --accent: #4f8ff7;
  --accent-hover: #6ea3ff;
  --accent-subtle: rgba(79, 143, 247, 0.1);
  --accent-glow: rgba(79, 143, 247, 0.25);

  --border: #222230;
  --border-hover: #333345;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);

  /* Font families */
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Sizing */
  --nav-width: 72px;
  --nav-width-mobile: 280px;
  --section-padding: 100px;
  --container-max: 1140px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;

  /* Z-index scale */
  --z-nav: 100;
  --z-overlay: 200;
  --z-preloader: 999;
}

/* ===== Light Theme ===== */
[data-theme="light"] {
  --bg-primary: #fafafa;
  --bg-secondary: #f0f0f2;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5f8;
  --bg-nav: rgba(250, 250, 250, 0.9);

  --text-primary: #1a1a2e;
  --text-secondary: #555566;
  --text-muted: #8888a0;

  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-subtle: rgba(37, 99, 235, 0.08);
  --accent-glow: rgba(37, 99, 235, 0.15);

  --border: #e0e0e8;
  --border-hover: #c8c8d4;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

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

ul {
  list-style: none;
  padding: 0;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ===== Preloader ===== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

#preloader::before {
  content: "";
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===== Header / Navigation ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--nav-width);
  z-index: var(--z-nav);
  overflow: hidden;
  transition: width 0.35s var(--ease);
}

.header-inner {
  height: 100%;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 20px 12px;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
}

.profile-brief {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.profile-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.nav-menu {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-menu ul {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.nav-menu a i {
  font-size: 18px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.nav-menu a span {
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  font-size: 13px;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent);
  background: var(--accent-subtle);
}

/* Theme toggle */
.theme-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease);
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: auto;
  align-self: center;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Dark mode: show sun icon, hide moon */
[data-theme="dark"] .theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: inline; }
[data-theme="light"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: inline; }

/* Mobile nav toggle */
.mobile-nav-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: calc(var(--z-nav) + 1);
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 22px;
  transition: all var(--duration) var(--ease);
}

.mobile-nav-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Desktop nav */
@media (min-width: 992px) {
  #main, #hero, #footer {
    margin-left: var(--nav-width);
  }

  .mobile-nav-toggle {
    display: none;
  }

  /* On hover, widen the sidebar and reveal labels */
  #header:hover {
    width: 200px;
  }

  #header:hover .nav-menu a span {
    opacity: 1;
  }
}

/* Mobile nav */
@media (max-width: 991px) {
  #header {
    width: var(--nav-width-mobile);
    left: calc(-1 * var(--nav-width-mobile));
    overflow-y: auto;
  }

  .header-inner {
    width: 100%;
  }

  .nav-menu a span {
    opacity: 1;
  }

  .mobile-nav-active #header {
    left: 0;
  }

  .mobile-nav-active .mobile-nav-toggle i::before {
    content: "\F659";
  }
}

/* ===== Hero ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.hero-particles {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, var(--accent-glow) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(120, 80, 255, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

[data-theme="light"] .hero-particles {
  background:
    radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(120, 80, 255, 0.04) 0%, transparent 40%);
}

.hero-content {
  max-width: 680px;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-name {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-typed-wrap {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 24px;
  min-height: 24px;
}

.typed-cursor {
  animation: blink 1s step-end infinite;
  color: var(--accent);
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 12px;
  transition: all var(--duration) var(--ease);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 12px;
  transition: all var(--duration) var(--ease);
}

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

.btn-sm {
  padding: 10px 20px;
  font-size: 13px;
}

.hero-social {
  display: flex;
  gap: 16px;
}

.hero-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 20px;
  transition: all var(--duration) var(--ease);
}

.hero-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-scroll-indicator span {
  display: block;
  width: 2px;
  height: 40px;
  background: var(--accent);
  border-radius: 2px;
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

@media (max-width: 768px) {
  #hero {
    padding: 120px 0 60px;
  }

  .hero-scroll-indicator {
    display: none;
  }
}

/* ===== Section Shared ===== */
section {
  padding: var(--section-padding) 0;
}

.section-header {
  margin-bottom: 60px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
}

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

.about-image-frame {
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color var(--duration) var(--ease);
}

.about-image-frame:hover {
  border-color: var(--accent);
}

.about-image-frame img {
  width: 100%;
  display: block;
}

.about-content h3 {
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--accent);
}

.about-content > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.detail-item {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.detail-label {
  display: block;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.detail-value {
  font-weight: 600;
  font-size: 15px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-item {
  text-align: center;
  padding: 20px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all var(--duration) var(--ease);
}

.stat-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

  .about-image-frame {
    max-width: 220px;
    margin: 0 auto;
  }

  .about-details {
    grid-template-columns: 1fr;
  }

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

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

.skill-category {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all var(--duration) var(--ease);
}

.skill-category:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.skill-category h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.skill-category h4 i {
  color: var(--accent);
  font-size: 20px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease);
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

.skill-tag.accent {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

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

/* ===== Resume / Timeline ===== */
.timeline {
  position: relative;
  padding-left: 40px;
}

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

.timeline-section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 48px 0 24px;
  color: var(--text-primary);
  position: relative;
}

.timeline-section-title:first-child {
  margin-top: 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-marker {
  position: absolute;
  left: -40px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: var(--bg-primary);
  z-index: 1;
}

.timeline-content {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all var(--duration) var(--ease);
}

.timeline-content:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.timeline-header h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.timeline-company {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.timeline-courses {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

.timeline-content ul {
  padding-left: 18px;
  list-style: disc;
}

.timeline-content ul li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--duration) var(--ease);
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

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

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

[data-theme="light"] .project-overlay {
  background: rgba(255, 255, 255, 0.8);
}

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

.project-overlay a {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  font-size: 20px;
  transition: transform var(--duration) var(--ease);
}

.project-overlay a:hover {
  transform: scale(1.1);
  color: #fff;
}

.project-info {
  padding: 20px 24px;
}

.project-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.project-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tech span {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent-subtle);
  color: var(--accent);
}

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

@media (min-width: 769px) and (max-width: 991px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Certificates ===== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all var(--duration) var(--ease);
  color: var(--text-primary);
}

.cert-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}

.cert-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: 8px;
}

.cert-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.cert-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Testimonials ===== */
.testimonials .swiper-wrapper {
  padding-bottom: 48px;
}

.testimonial-card {
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all var(--duration) var(--ease);
}

.testimonial-card:hover {
  border-color: var(--border-hover);
}

.testimonial-quote {
  margin-bottom: 20px;
}

.testimonial-quote i {
  font-size: 40px;
  color: var(--accent);
  opacity: 0.4;
}

.testimonial-card > p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 28px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.testimonial-author h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.testimonial-author span {
  font-size: 13px;
  color: var(--text-muted);
}

.testimonials .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--text-muted);
  opacity: 0.3;
}

.testimonials .swiper-pagination-bullet-active {
  background: var(--accent);
  opacity: 1;
}

/* ===== Footer ===== */
#footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 18px;
  transition: all var(--duration) var(--ease);
}

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

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration) var(--ease);
  z-index: 50;
}

.back-to-top:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

/* ===== Portfolio Details (for lightbox pages) ===== */
.portfolio-details {
  padding-top: 40px;
}

.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .portfolio-info {
  padding: 30px;
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.portfolio-details .portfolio-description {
  padding-top: 30px;
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ===== AOS disable on mobile ===== */
@media (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}
