/* ================================================
   MINIMALIST PORTFOLIO - Clean & Professional
   ================================================ */

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

/* ===== CSS VARIABLES ===== */
:root {
  --bg-color: #030303;
  --bg-secondary: #0f0f0f;
  --text-color: #e5e5e5;
  --text-secondary: #9ca3af;
  --accent-color: #a1a1aa;
  --accent-hover: #d4d4d8;
  --accent-rgb: 161, 161, 170;
  --border-color: rgba(255, 255, 255, 0.05);
  /* pagination palette (defaults will be overridden for light theme below) */
  --pagination-track-bg: rgba(255, 255, 255, 0.04);
  --pagination-pill-bg: transparent;
  --pagination-active-bg: color-mix(
    in srgb,
    var(--accent-color) 55%,
    #ffffff 45%
  );
  --pagination-active-shadow: rgba(2, 72, 255, 0.18);
  --pagination-arrow-bg: var(--bg-color);
  --pagination-border: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] {
  --bg-color: #ffffff;
  --bg-secondary: #fafafa;
  --text-color: #171717;
  --text-secondary: #737373;
  --accent-color: #71717a;
  --accent-hover: #52525b;
  --accent-rgb: 113, 113, 122;
  --border-color: rgba(0, 0, 0, 0.05);
  /* light theme pagination overrides */
  --pagination-track-bg: rgba(16, 24, 40, 0.04);
  --pagination-pill-bg: transparent;
  --pagination-active-bg: color-mix(
    in srgb,
    var(--accent-color) 55%,
    #ffffff 45%
  );
  --pagination-active-shadow: rgba(2, 72, 255, 0.12);
  --pagination-arrow-bg: var(--bg-color);
  --pagination-border: rgba(0, 0, 0, 0.06);
}

/* ===== BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  font-size: 16px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

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

/* ===== NAVIGATION ===== */
.main-nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1200px;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  z-index: 100;
  padding: 0.75rem 1.5rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav:hover {
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

[data-theme="light"] .main-nav {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.03) inset;
}

[data-theme="light"] .main-nav:hover {
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.05) inset;
}

.nav-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: -0.01em;
}

.nav-logo {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
  filter: none;
}

/* SVG is black by default; invert it only in dark mode */
body[data-theme="dark"] .nav-logo {
  filter: invert(1);
}

.nav-brand-divider {
  width: 1px;
  height: 18px;
  background: var(--border-color);
  flex: 0 0 auto;
}

.nav-brand-text {
  line-height: 1;
}

.nav-brand:hover {
  opacity: 1;
  color: var(--accent-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav-item a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  font-weight: 500;
}

.nav-item a:hover {
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.05);
  opacity: 1;
}

[data-theme="light"] .nav-item a:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-item a.active {
  color: var(--text-color);
  background: rgba(161, 161, 170, 0.1);
  opacity: 1;
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.theme-toggle,
.language-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9375rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

[data-theme="light"] .theme-toggle,
[data-theme="light"] .language-toggle {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.theme-toggle:hover,
.language-toggle:hover {
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

[data-theme="light"] .theme-toggle:hover,
[data-theme="light"] .language-toggle:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

.language-toggle .fa-chevron-down {
  font-size: 0.75rem;
  opacity: 0.7;
}

.language-dropdown {
  position: relative;
}

.language-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.5rem;
  min-width: 160px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  animation: dropdownFadeIn 0.2s ease;
}

[data-theme="light"] .language-menu {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.03) inset;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.language-menu.active {
  display: block;
}

.language-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  font-weight: 500;
}

.language-menu a span {
  font-size: 1.125rem;
}

.language-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-color);
  opacity: 1;
  transform: translateX(2px);
}

[data-theme="light"] .language-menu a:hover {
  background: rgba(0, 0, 0, 0.05);
}

.language-menu a.active {
  background: rgba(161, 161, 170, 0.15);
  color: var(--accent-color);
}

.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: var(--text-color);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s ease;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .mobile-toggle {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

[data-theme="light"] .mobile-toggle:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

/* ===== IMAGE PLACEHOLDERS ===== */
.project-image-wrapper,
.blog-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-secondary);
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
}

.project-image,
.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-image-placeholder,
.blog-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(161, 161, 170, 0.1) 0%,
    rgba(212, 212, 216, 0.1) 100%
  );
  font-size: 3rem;
  color: var(--text-secondary);
}

/* Blog author badge on image */
.blog-author-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  z-index: 2;
}

.author-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
}

.author-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.author-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.author-text {
  font-size: 0.8125rem;
  color: white;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .blog-author-badge {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    gap: 0.375rem;
  }

  .author-logo {
    width: 20px;
    height: 20px;
    padding: 3px;
  }

  .author-divider {
    height: 14px;
  }

  .author-text {
    font-size: 0.75rem;
  }

  .blog-tag {
    font-size: 0.6875rem;
    padding: 0.2rem 0.625rem;
  }

  .blog-meta,
  .blog-post-meta {
    gap: 0.375rem;
  }
}

.project-image-placeholder i,
.blog-image-placeholder i {
  font-size: 3rem;
  opacity: 0.4;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 10rem 0 5rem;
}

.hero .container {
  max-width: 1100px;
}

.hero-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: none;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text-color);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 400;
}

.hero .description {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-link {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.hero-link:hover {
  color: var(--text-color);
  opacity: 1;
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  height: 500px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0);
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0.5rem;
  line-height: 1;
}

.carousel-prev {
  left: -52px;
}

.carousel-next {
  right: -52px;
}

.carousel-arrow:hover,
.hero-carousel:hover .carousel-arrow {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .carousel-arrow {
  color: rgba(0, 0, 0, 0);
}

[data-theme="light"] .carousel-arrow:hover,
[data-theme="light"] .hero-carousel:hover .carousel-arrow {
  color: rgba(0, 0, 0, 0.5);
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
}

.carousel-container .service-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid rgb(150, 150, 150);
  border-radius: 24px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.carousel-container .service-card.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.service-card-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.service-card-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 4rem;
  opacity: 0.8;
}

.service-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0.9) 100%
  );
  backdrop-filter: blur(2px);
  z-index: 2;
}

.carousel-discount-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ff3b30 0%, #ff6b6b 100%);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 25px;
  font-weight: 800;
  font-size: 1.25rem;
  z-index: 3;
  box-shadow: 0 6px 20px rgba(255, 59, 48, 0.5);
  animation: pulse-discount 2s infinite;
}

@keyframes pulse-discount {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.service-card-content {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}

.service-card-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.service-card-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s ease;
}

.service-card-dots .dot.active {
  background: white;
}

.service-card-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.service-card-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #ffd700;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.carousel-original-price {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: line-through;
  font-weight: 500;
}

.carousel-discount-price {
  font-size: 2.75rem;
  color: #ff3b30;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(255, 59, 48, 0.3);
}

[data-theme="light"] .carousel-discount-price {
  color: #ff0000;
  text-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}

.price-from {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: #ffd700;
  margin-bottom: -1rem;
}

.service-card-description {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.service-card-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.service-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.service-card-btn:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* ===== ORDER CTA ===== */
.order-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.75rem;
  background: linear-gradient(
    135deg,
    var(--accent-color) 0%,
    var(--accent-hover) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: var(--bg-color);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(161, 161, 170, 0.15);
}

.order-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--accent-hover) 0%,
    var(--accent-color) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.order-cta:hover {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(161, 161, 170, 0.25);
}

.order-cta:hover::before {
  opacity: 1;
}

.order-cta:active {
  transform: translateY(-1px);
}

.order-cta-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  animation: pulseIcon 2s ease-in-out infinite;
}

@keyframes pulseIcon {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.order-cta-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
  z-index: 1;
}

.order-cta-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.order-cta-subtitle {
  font-size: 0.875rem;
  opacity: 0.9;
  font-weight: 400;
}

.order-cta-arrow {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.order-cta:hover .order-cta-arrow {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .order-cta {
    width: 100%;
    padding: 1rem 1.25rem;
  }

  .order-cta-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .order-cta-title {
    font-size: 1rem;
  }

  .order-cta-subtitle {
    font-size: 0.8125rem;
  }
}

[data-theme="light"] .order-cta {
  color: white;
  box-shadow: 0 4px 20px rgba(113, 113, 122, 0.2);
}

[data-theme="light"] .order-cta:hover {
  box-shadow: 0 8px 30px rgba(113, 113, 122, 0.3);
}

/* ===== SECTIONS ===== */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 1.625rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}

/* ===== PROJECTS GRID ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  display: block;
  transition: opacity 0.2s ease;
}

.project-card:hover {
  opacity: 0.8;
}

.project-image {
  border-radius: 0.5rem;
  background-color: var(--bg-secondary);
}

.project-title {
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  color: var(--text-color);
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.9375rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.tech-tag:not(:last-child)::after {
  content: "·";
  margin-left: 0.5rem;
  opacity: 0.5;
}

.project-links {
  display: flex;
  gap: 1.25rem;
}

.project-link {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.project-link:hover {
  color: var(--text-color);
  opacity: 1;
}

/* ===== BLOG GRID (BLOG PAGE) ===== */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.blog-card {
  display: block;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  transition: opacity 0.2s ease;
}

.blog-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-card:hover {
  opacity: 0.8;
}

/* ===== HOME BLOG CAROUSEL ===== */
.home-blog-carousel {
  position: relative;
}

.home-blog-viewport {
  overflow: hidden;
}

.home-blog-track {
  display: flex;
  gap: 1.5rem;
  will-change: transform;
  transition: transform 0.4s ease;
}

.home-blog-card {
  flex: 0 0 280px;
  max-width: 280px;
  padding-bottom: 0;
  border-bottom: none;
}

.home-blog-card .blog-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.home-blog-card .blog-excerpt {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.home-blog-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 15, 15, 0.9);
  color: var(--text-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.home-blog-prev {
  left: -1.5rem;
}

.home-blog-next {
  right: -1.5rem;
}

.home-blog-nav:hover {
  background: rgba(39, 39, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Light mode: keep carousel nav buttons from looking too dark */
[data-theme="light"] .home-blog-nav {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text-color);
}

[data-theme="light"] .home-blog-nav:hover {
  background: rgba(245, 245, 245, 0.95);
  border-color: rgba(0, 0, 0, 0.16);
}

@media (max-width: 768px) {
  .home-blog-nav {
    display: none;
  }
  .home-blog-card {
    flex: 0 0 80%;
    max-width: 80%;
  }
}

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.blog-date {
  color: var(--text-secondary);
}

.blog-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--text-color);
}

.blog-excerpt {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* Blog hover preview cursor */
.blog-cursor-preview,
.project-cursor-preview {
  position: fixed;
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
  transition: opacity 0.15s ease;
}

.blog-cursor-preview img,
.project-cursor-preview img {
  width: 180px;
  border-radius: 14px;
  display: block;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .blog-cursor-preview img,
[data-theme="light"] .project-cursor-preview img {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* ===== EXPERIENCE SECTION ===== */
.experience-hero {
  padding: 10rem 0 3rem;
}

.experience-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.experience-hero .subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.experience-section {
  padding: 3rem 0 5rem;
}

.experience-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.timeline-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:last-child .timeline-line {
  display: none;
}

.timeline-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 4px solid var(--bg-color);
  box-shadow: 0 0 0 4px rgba(161, 161, 170, 0.2);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.2);
  box-shadow: 0 0 0 6px rgba(161, 161, 170, 0.3);
}

.timeline-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(
    180deg,
    var(--accent-color) 0%,
    rgba(161, 161, 170, 0.1) 100%
  );
  margin-top: 0.5rem;
}

.timeline-content {
  padding-bottom: 1rem;
}

.timeline-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

[data-theme="light"] .timeline-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.timeline-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .timeline-card:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.timeline-period,
.timeline-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.timeline-period i,
.timeline-location i {
  opacity: 0.7;
}

.current-badge {
  background: linear-gradient(135deg, #4b10b9 0%, #6d0596 100%);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-position {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.timeline-company {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.company-link {
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.company-link:hover {
  color: var(--accent-hover);
  gap: 0.75rem;
}

.company-link i {
  font-size: 0.875rem;
  opacity: 0.7;
}

.timeline-description {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.timeline-description ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0 0;
}

.timeline-description li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.625rem;
}

.timeline-description li:before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.timeline-description strong {
  color: var(--text-color);
  font-weight: 600;
}

.timeline-description em {
  color: var(--accent-color);
  font-style: normal;
  font-weight: 500;
}

.experience-list {
  max-width: 700px;
  margin: 0 auto;
}

.experience-item {
  margin-bottom: 2.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border-color);
}

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

.experience-company {
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--text-color);
}

.experience-position {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
}

.experience-period {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
}

.experience-description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* ===== SOCIAL PAGE ===== */
.social-hero,
.music-hero {
  padding: 10rem 0 3rem;
}

.social-hero h1,
.music-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.social-section {
  padding: 3rem 0 5rem;
}

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

.social-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

[data-theme="light"] .social-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.social-card::before {
  content: none;
}

.social-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .social-card:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.social-icon {
  font-size: 3.5rem;
  color: var(--text-color);
  transition: all 0.4s ease;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.social-card:hover .social-icon {
  transform: none;
  margin-bottom: 0;
}

.social-platform {
  display: none;
}

.social-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(161, 161, 170, 0.1);
  border-radius: 50%;
  color: var(--accent-color);
  opacity: 0;
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 10px);
  transition: all 0.4s ease;
  margin-top: 0;
}

.social-card:hover .social-arrow {
  opacity: 1;
  transform: translate(-50%, 0);
  background: var(--accent-color);
  color: var(--bg-color);
}

.contact-section {
  margin-top: 5rem;
}

.contact-card {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 3rem;
  text-align: center;
}

[data-theme="light"] .contact-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-card h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.contact-card > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  font-size: 0.9375rem;
}

[data-theme="light"] .contact-item {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-color);
  color: var(--text-color);
  transform: translateX(4px);
}

[data-theme="light"] .contact-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.contact-item i {
  color: var(--accent-color);
  font-size: 1.125rem;
}

/* ===== MUSIC PAGE ===== */
.music-section {
  padding: 3rem 0 5rem;
}

.music-category {
  margin-bottom: 4rem;
}

.music-category:last-child {
  margin-bottom: 0;
}

.music-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.music-category-header i {
  font-size: 2rem;
  color: var(--accent-color);
}

.music-category-header h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

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

.playlist-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .playlist-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.playlist-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .playlist-card:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.playlist-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.playlist-embed {
  border-radius: 0.75rem;
  overflow: hidden;
}

.playlist-embed iframe {
  display: block;
  border-radius: 0.75rem;
}

/* ===== FOOTER ===== */
.main-footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  margin-top: 6rem;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.social-link:hover {
  color: var(--text-color);
  opacity: 1;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

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

/* ===== BLOG POST PAGE ===== */
.blog-post {
  max-width: 700px;
  margin: 0 auto;
  padding: 7rem 2rem 4rem;
}

.blog-post-header {
  margin-bottom: 2rem;
}

.blog-post-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--text-color);
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-post-image-wrapper {
  margin-bottom: 2rem;
}

.blog-post-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 0.75rem;
  display: block;
}

.blog-post-content {
  color: var(--text-secondary);
  line-height: 1.75;
}

.blog-post-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--text-color);
}

.blog-post-content h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-color);
}

.blog-post-content p {
  margin-bottom: 1.25rem;
}

.blog-post-content a {
  color: var(--accent-color);
}

.blog-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.blog-navigation .btn {
  display: inline-flex;
}

.blog-navigation .btn svg {
  flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Navbar */
  .main-nav {
    top: 1rem;
    width: calc(100% - 2rem);
    padding: 0.75rem 1rem;
  }

  .nav-container {
    padding: 0;
  }

  .nav-brand {
    font-size: 1rem;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 4.5rem;
    left: 1rem;
    right: 1rem;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }

  [data-theme="light"] .nav-menu {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item a {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
  }

  .nav-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
  }

  .mobile-toggle {
    display: block;
    padding: 0.5rem;
    margin-left: 0.5rem;
  }

  .theme-toggle,
  .language-toggle {
    padding: 0.5rem;
    font-size: 0.875rem;
  }

  .language-toggle span {
    display: none;
  }

  .language-toggle .fa-chevron-down {
    display: none;
  }

  .container {
    padding: 0 1.5rem;
  }

  .hero {
    padding: 6rem 0 4rem;
  }

  .hero-content-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-carousel {
    height: 400px;
  }

  .carousel-arrow {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .service-card-content {
    padding: 1.25rem;
  }

  .service-card-title {
    font-size: 1.5rem;
  }

  .service-card-price {
    font-size: 2.25rem;
  }

  .carousel-discount-badge {
    top: 12px;
    right: 12px;
    padding: 0.5rem 0.875rem;
    font-size: 1rem;
  }

  .carousel-original-price {
    font-size: 1.15rem;
  }

  .carousel-discount-price {
    font-size: 2.25rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.375rem;
    margin-bottom: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-grid {
    gap: 2rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  /* Experience Timeline Mobile */
  .experience-hero h1 {
    font-size: 2rem;
  }

  .experience-hero .subtitle {
    font-size: 1rem;
  }

  .timeline-item {
    grid-template-columns: 40px 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .timeline-card {
    padding: 1.5rem;
  }

  .timeline-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .timeline-position {
    font-size: 1.25rem;
  }

  .timeline-company {
    font-size: 1rem;
  }

  /* Social & Music Mobile */
  .social-hero h1,
  .music-hero h1 {
    font-size: 2rem;
  }

  .social-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .social-card {
    padding: 2rem 1.5rem;
  }

  .contact-card {
    padding: 2rem 1.5rem;
  }

  .playlists-grid {
    grid-template-columns: 1fr;
  }

  .music-category-header h2 {
    font-size: 1.5rem;
  }

  /* Project & Blog Detail Mobile */
  .project-header h1 {
    font-size: 1.6rem;
    line-height: 1.25;
  }

  .tech-ticker {
    padding: 1rem 0;
  }

  .tech-ticker__group {
    gap: 1.5rem;
    padding-right: 1.5rem;
  }

  .tech-ticker__item {
    font-size: 1.5rem;
  }

  .project-header p {
    font-size: 1rem;
  }

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

  .btn {
    width: 100%;
    justify-content: center;
  }

  .blog-post {
    padding: 6rem 1.5rem 3rem;
  }

  .blog-post-title {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tech-ticker__track {
    animation: none;
  }
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1rem;
  margin: 0;
}

/* ===== PROJECT DETAIL PAGE ===== */
.project-header {
  padding: 10rem 0 3rem;
}

/* ===== HOME: TECH TICKER ===== */
.tech-ticker {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
}

.tech-ticker__viewport {
  overflow: hidden;
}

.tech-ticker__track {
  display: flex;
  width: max-content;
  animation: techTickerScroll 25s linear infinite;
}

.tech-ticker__group {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 0 0 auto;
  padding-right: 2rem;
}

.tech-ticker__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 2.5rem;
  line-height: 1;
}

@keyframes techTickerScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.project-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.project-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.project-detail {
  padding: 2rem 0 5rem;
}

.project-detail .container {
  max-width: 900px;
}

.project-hero-image {
  margin-bottom: 3rem;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--bg-secondary);
}

.project-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Project Gallery */
.project-gallery {
  margin-bottom: 3rem;
}

.gallery-main {
  border-radius: 1rem;
  overflow: hidden;
  background: var(--bg-secondary);
  margin-bottom: 1rem;
}

.gallery-main img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  display: block;
}

.gallery-thumbnails {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) transparent;
}

.gallery-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 3px;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

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

.gallery-thumb.active {
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(161, 161, 170, 0.3);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-info {
  margin-bottom: 3rem;
}

.project-tech-section {
  margin-bottom: 2rem;
}

.project-tech-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-tag {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

[data-theme="light"] .tech-tag {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.tech-tag:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-color);
}

[data-theme="light"] .tech-tag:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

.project-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: var(--text-color);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

[data-theme="light"] .btn {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

[data-theme="light"] .btn:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
}

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

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

/* Light theme overrides: .btn has higher specificity than .btn-primary */
[data-theme="light"] .btn.btn-primary {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
}

[data-theme="light"] .btn.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 3rem;
}

.project-description h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 2.5rem 0 1rem;
}

.project-description h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 2rem 0 0.75rem;
}

.project-description p {
  margin-bottom: 1.25rem;
}

.project-description ul,
.project-description ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.project-description li {
  margin-bottom: 0.5rem;
}

.project-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.project-navigation .btn {
  display: inline-flex;
}

.project-navigation .btn svg {
  flex-shrink: 0;
}

.btn-link {
  color: var(--text-secondary);
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 3rem 0;
  width: 100%;
}

.pagination .btn {
  padding: 0.5rem 0.9rem;
}

/* Pill-style pagination (desktop + mobile) */
.pagination.pagination-pill {
  background: var(--bg-secondary);
  display: inline-flex;
  padding: 0.4rem;
  border-radius: 20px;
  gap: 0.35rem;
  align-items: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex-wrap: nowrap;
  max-width: fit-content;
}

.pagination.pagination-pill .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.65rem;
  min-width: 36px;
  height: 36px;
  border-radius: 9px;
  color: var(--text-color);
  background: transparent;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.pagination.pagination-pill .page-btn:hover {
  background: rgba(161, 161, 170, 0.1);
  transform: translateY(-1px);
}

[data-theme="light"] .pagination.pagination-pill .page-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.pagination.pagination-pill .page-btn.active,
.pagination.pagination-pill .page-btn.active:hover {
  background: var(--accent-color);
  color: var(--bg-color);
  box-shadow: 0 3px 8px rgba(161, 161, 170, 0.25);
  transform: translateY(0);
  font-weight: 600;
}

[data-theme="light"] .pagination.pagination-pill .page-btn.active {
  box-shadow: 0 3px 8px rgba(113, 113, 122, 0.25);
}

.pagination.pagination-pill .page-ellipsis {
  padding: 0 0.35rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.pagination.pagination-pill .page-arrow {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: transparent;
  color: var(--text-color);
  border: none;
  text-decoration: none;
  font-size: 1.125rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.pagination.pagination-pill .page-arrow:hover {
  background: rgba(161, 161, 170, 0.1);
  transform: translateY(-1px);
}

[data-theme="light"] .pagination.pagination-pill .page-arrow:hover {
  background: rgba(0, 0, 0, 0.05);
}

.pagination.pagination-pill .page-arrow.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* Focus states for accessibility */
.pagination.pagination-pill .page-btn:focus,
.pagination.pagination-pill .page-arrow:focus {
  outline: 3px solid rgba(10, 110, 255, 0.18);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .pagination.pagination-pill .page-btn,
  .pagination.pagination-pill .page-arrow {
    transition: none;
  }
}

/* Mobile responsive pagination */
@media (max-width: 767px) {
  .pagination {
    margin: 2rem auto;
    width: 100%;
  }

  .pagination.pagination-pill {
    padding: 0.35rem;
    gap: 0.3rem;
    max-width: fit-content;
  }

  .pagination.pagination-pill .page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0.35rem 0.55rem;
    font-size: 0.8125rem;
  }

  .pagination.pagination-pill .page-arrow {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .pagination.pagination-pill .page-ellipsis {
    padding: 0 0.25rem;
    font-size: 0.8125rem;
  }
}

/* ===== GO TO TOP BUTTON ===== */
.go-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: var(--text-color);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background 0.2s ease;
  z-index: 999;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.go-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.go-to-top:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}

.go-to-top:active {
  transform: translateY(0);
}

[data-theme="light"] .go-to-top {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .go-to-top:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
  .go-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
}

/* Make Back to Projects look like a clean text link in all themes */
.btn.btn-link {
  background: none;
  border: none;
  padding: 0;
}

[data-theme="light"] .btn.btn-link {
  background: none;
  border: none;
}

.btn-link:hover {
  color: var(--text-color);
  background: none;
  transform: none;
}
