/* ========================================
   BEX-BOX - Stylesheet (ohne Build)
   ======================================== */

/* --- Fonts lokal einbinden (KEINE Google-Verbindung) --- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('../fonts/montserrat-v31-cyrillic_latin-200.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/montserrat-v31-cyrillic_latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-v31-cyrillic_latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/montserrat-v31-cyrillic_latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-v31-cyrillic_latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-v31-cyrillic_latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/montserrat-v31-cyrillic_latin-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/montserrat-v31-cyrillic_latin-900.woff2') format('woff2');
}

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

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.5;
  color: #1e293b;
  background-color: #f8fafc;
  transition: background-color 0.3s, color 0.3s;
}

.dark body {
  background-color: #0f172a;
  color: #f1f5f9;
}

#root {
  min-height: 100vh;
}

/* --- Animationen --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes blob {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0px, 0px) scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.animate-fade-in { animation: fadeIn 0.5s ease-out; }
.animate-slide-up { animation: slideUp 0.5s ease-out; }
.animate-slide-in-right { animation: slideInRight 0.3s ease-out forwards; }
.animate-blob { animation: blob 7s infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-scale-in { animation: scaleIn 0.2s ease-out; }

.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #6366f1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4f46e5; }

.dark ::-webkit-scrollbar-thumb { background: #4f46e5; }
.dark ::-webkit-scrollbar-thumb:hover { background: #6366f1; }

/* --- Utility Classes --- */
.hidden { display: none; }
.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.text-center { text-center; }

/* --- Navigation --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
}

.dark .navbar {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 6rem;
}

/* Mobile Header schmaler */
@media (max-width: 767px) {
  .navbar-content {
    height: 4rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.logo-icon {
  width: 3rem;
  height: 3rem;
  background: #4f46e5;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
  transition: background-color 0.3s;
}

.logo:hover .logo-icon { background: #6366f1; }

.logo-text {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  transition: color 0.3s;
}

.dark .logo-text { color: #fff; }
.logo-text { color: #1e293b; }
.logo:hover .logo-text { color: #6366f1; }

/* Logo auf Mobile kleiner und ohne Icon */
@media (max-width: 767px) {
  .logo-icon-desktop {
    display: none !important;
  }
  .logo-text {
    font-size: 1.5rem !important;
  }
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

.nav-btn {
  font-size: 1rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
  color: #64748b;
}

.dark .nav-btn { color: #cbd5e1; }
.nav-btn:hover { color: #6366f1; }
.nav-btn.active { color: #6366f1; }

/* Theme Toggle */
.theme-toggle {
  padding: 0.5rem;
  border-radius: 9999px;
  background: #eef2ff;
  color: #312e81;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark .theme-toggle {
  background: #1e293b;
  color: #facc15;
}

.theme-toggle:hover {
  background: #e0e7ff;
}

.dark .theme-toggle:hover { background: #334155; }

/* Cart Button */
.cart-btn {
  position: relative;
  padding: 0.5rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid #f1f5f9;
  cursor: pointer;
  transition: all 0.3s;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark .cart-btn {
  background: #1e293b;
  border-color: #334155;
  color: #fff;
}

.cart-btn:hover {
  background: #eef2ff;
}

.cart-count {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  background: #ef4444;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contact Button */
.contact-btn {
  background: #0f172a;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.dark .contact-btn { background: #4f46e5; }
.contact-btn:hover {
  background: #4f46e5;
  transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #1e293b;
  transition: color 0.3s;
}

.dark .mobile-menu-btn {
  color: #fff;
}

.dark .mobile-menu-btn:hover {
  color: #6366f1;
}

/* Mobile theme toggle und cart button - standardmäßig versteckt */
#mobile-theme-toggle,
#mobile-cart-btn {
  display: none;
}

@media (max-width: 767px) {
  .mobile-menu-btn { display: block; }
  #mobile-theme-toggle,
  #mobile-cart-btn {
    display: block !important;
  }
  /* Desktop Navigation verstecken auf Mobile */
  .nav-desktop { display: none !important; }
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
  #mobile-theme-toggle,
  #mobile-cart-btn {
    display: none !important;
  }
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #f1f5f9;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 50;
}

.dark .mobile-menu {
  background: #0f172a;
  border-top-color: #1e293b;
}

.mobile-menu.open { display: block; }

.mobile-menu-item {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  color: #e2e8f0;
}

.dark .mobile-menu-item { color: #e2e8f0; }
.mobile-menu-item { color: #374151; }
.mobile-menu-item:hover { background: #f1f5f9; }
.dark .mobile-menu-item:hover { background: #1e293b; }

/* --- Main Content --- */
.main-content {
  flex-grow: 1;
}

.back-btn-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid #f1f5f9;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  color: #64748b;
}

.dark .back-btn {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}

.back-btn:hover {
  color: #6366f1;
  border-color: #475569;
}

.back-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark .back-icon { background: #334155; }
.back-btn:hover .back-icon { background: #312e81; }

/* --- Hero Section --- */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: #f8fafc;
}

.dark .hero-section { background: #0f172a; }

.hero-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
  opacity: 0.3;
  mix-blend-mode: multiply;
  animation: blob 7s infinite;
}

.hero-blob-1 {
  top: 0;
  left: -1rem;
  width: 24rem;
  height: 24rem;
  background: rgba(168, 85, 247, 0.3);
}

.hero-blob-2 {
  top: 0;
  right: -1rem;
  width: 24rem;
  height: 24rem;
  background: rgba(99, 102, 241, 0.3);
  animation-delay: 2s;
}

.hero-blob-3 {
  bottom: -2rem;
  left: 5rem;
  width: 24rem;
  height: 24rem;
  background: rgba(59, 130, 246, 0.3);
  animation-delay: 4s;
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.dark .hero-badge {
  background: #1e293b;
  border-color: #334155;
  color: #a78bfa;
}

.hero-badge {
  background: #fff;
  border-color: #e0e7ff;
  color: #4338ca;
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #6366f1;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 2rem;
}

.hero-title-2 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero-title { font-size: 4.5rem; }
  .hero-title-2 { font-size: 2rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 5rem; }
}

/* Mobile: IT-Сервис kleiner */
@media (max-width: 767px) {
  .hero-title-2 {
    font-size: 1.25rem !important;
  }
}

.hero-title-gradient {
  background: linear-gradient(to right, #6366f1, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.625;
  margin-bottom: 2.5rem;
  color: #64748b;
}

.dark .hero-subtitle { color: #94a3b8; }

@media (min-width: 768px) {
  .hero-subtitle { font-size: 1.5rem; }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; }
}

.btn-primary {
  background: #4f46e5;
  color: #fff;
  padding: 1.25rem 2rem;
  border-radius: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: #4338ca;
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
  background: #fff;
  border: 2px solid #f1f5f9;
  color: #1e293b;
  padding: 1.25rem 2rem;
  border-radius: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark .btn-secondary {
  background: transparent;
  border-color: #334155;
  color: #fff;
}

.btn-secondary:hover {
  background: #f9fafb;
}

.dark .btn-secondary:hover { background: #1e293b; }

/* --- Features Section --- */
.features-section {
  padding: 6rem 0;
  position: relative;
  z-index: 20;
  background: #fff;
}

.dark .features-section { background: #1e293b; }

.features-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  padding: 2.5rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.3s;
}

.dark .feature-card {
  background: #0f172a;
}

.feature-card { background: #f8fafc; }

.feature-card:hover {
  transform: scale(1.02);
}

.dark .feature-card:hover { background: #334155; }
.feature-card:nth-child(1):hover { background: #eef2ff; }
.dark .feature-card:nth-child(1):hover { background: #1e293b; }
.feature-card:nth-child(2):hover { background: #faf5ff; }
.dark .feature-card:nth-child(2):hover { background: #1e293b; }
.feature-card:nth-child(3):hover { background: #ecfdf5; }
.dark .feature-card:nth-child(3):hover { background: #1e293b; }

.feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon { transform: scale(1.1); }

.dark .feature-icon {
  background: #1e293b;
  color: #a78bfa;
}

.feature-icon {
  background: #fff;
  color: #4f46e5;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
}

.dark .feature-title { color: #fff; }

.feature-description {
  line-height: 1.625;
  color: #64748b;
}

.dark .feature-description { color: #94a3b8; }

/* --- Page Sections --- */
.page-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: #1e293b;
}

.dark .section-title { color: #fff; }

@media (min-width: 768px) {
  .section-title { font-size: 3rem; }
}

.section-subtitle {
  font-size: 1.25rem;
  color: #64748b;
}

.dark .section-subtitle { color: #94a3b8; }

@media (min-width: 768px) {
  .section-subtitle { font-size: 1.5rem; max-width: 42rem; margin: 0 auto; }
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

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

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  border-radius: 2rem;
  padding: 2rem;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.dark .service-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.service-card { background: #fff; border-color: #e0e7ff; box-shadow: 0 4px 6px -1px rgba(148, 163, 184, 0.1); }

.service-card:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) scale(1.02);
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
  animation: float 3s ease-in-out infinite;
}

.dark .service-icon {
  background: #334155;
  color: #cbd5e1;
}

.service-icon {
  background: #f8fafc;
  color: #374151;
}

.service-card:hover .service-icon {
  background: #4f46e5;
  color: #fff;
}

.service-price {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
}

.dark .service-price { color: #34d399; }

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1e293b;
}

.dark .service-title { color: #fff; }

.service-description {
  font-size: 0.875rem;
  line-height: 1.625;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  color: #64748b;
}

.dark .service-description { color: #94a3b8; }

.service-features {
  margin-bottom: 2rem;
  space-y: 0.5rem;
}

.service-feature {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #cbd5e1;
}

.dark .service-feature { color: #cbd5e1; }
.service-feature { color: #374151; }

.feature-check {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: #e0e7ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  font-size: 0.75rem;
}

.dark .feature-check {
  background: rgba(67, 56, 202, 0.2);
  color: #a78bfa;
}

.service-btn {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.service-btn.added {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  cursor: default;
}

.dark .service-btn.added {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
}

.service-btn {
  background: #0f172a;
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dark .service-btn { background: #4f46e5; }

.service-btn:hover:not(.added) {
  background: #4f46e5;
}

/* --- Portfolio Grid --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

.portfolio-card {
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  transition: all 0.5s;
}

.dark .portfolio-card {
  background: #1e293b;
  border-color: #334155;
}

.portfolio-card { background: #fff; border-color: #f9fafb; }

.portfolio-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
  height: 16rem;
  overflow: hidden;
  position: relative;
}

.portfolio-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.6), transparent);
  opacity: 0.6;
  transition: opacity 0.3s;
  z-index: 10;
}

.portfolio-card:hover .portfolio-image-overlay { opacity: 0.4; }

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

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

.portfolio-category {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 20;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.5rem;
}

.portfolio-content { padding: 2rem; }

.portfolio-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
  color: #1e293b;
}

.dark .portfolio-title { color: #fff; }
.portfolio-card:hover .portfolio-title { color: #6366f1; }

.portfolio-result {
  font-size: 0.875rem;
  line-height: 1.625;
  margin-bottom: 1.5rem;
  border-left: 4px solid #6366f1;
  padding-left: 1rem;
  padding-right: 1rem;
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.dark .portfolio-result {
  background: #334155;
  color: #cbd5e1;
}

.portfolio-result {
  background: #f8fafc;
  color: #475569;
}

.portfolio-btn {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s;
  background: none;
  cursor: pointer;
  color: #374151;
}

.dark .portfolio-btn {
  border-color: #475569;
  color: #cbd5e1;
}

.portfolio-btn:hover {
  background: #0f172a;
  color: #fff;
}

.dark .portfolio-btn:hover { background: #1e293b; color: #fff; }

/* --- Blog List --- */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 64rem;
  margin: 0 auto;
}

.blog-card {
  border-radius: 2rem;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.3s;
}

.dark .blog-card {
  background: #1e293b;
  border-color: #334155;
}

.blog-card { background: #fff; border-color: #f9fafb; }

.blog-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
  .blog-card { flex-direction: row; }
}

.blog-image {
  height: 16rem;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .blog-image { width: 41.666667%; height: auto; }
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

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

.blog-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 1024px) {
  .blog-content { width: 58.333333%; }
}

.blog-meta {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #9ca3af;
}

.blog-date { color: #4f46e5; }

.blog-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.25;
  transition: color 0.3s;
  color: #1e293b;
}

.dark .blog-title { color: #fff; }
.blog-card:hover .blog-title { color: #6366f1; }

.blog-excerpt {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #64748b;
}

.dark .blog-excerpt { color: #cbd5e1; }

.blog-read-more {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: #6366f1;
}

.blog-read-more svg {
  margin-left: 0.5rem;
  transition: transform 0.3s;
}

.blog-card:hover .blog-read-more svg { transform: translateX(4px); }

/* --- Blog Post View --- */
.blog-post-container {
  max-width: 56rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.blog-post-image {
  height: 16rem;
  border-radius: 1.5rem;
  overflow: hidden;
  margin-bottom: 2rem;
  position: relative;
}

@media (min-width: 768px) {
  .blog-post-image { height: 24rem; }
}

.blog-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
}

.blog-post-header {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 10;
}

.blog-post-meta {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.blog-post-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .blog-post-title { font-size: 2.5rem; }
}

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

.blog-post-content p {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  color: #64748b;
}

.dark .blog-post-content p { color: #cbd5e1; }

/* Comments */
.comments-section {
  border-radius: 1.5rem;
  padding: 2rem;
}

.dark .comments-section { background: #1e293b; }
.comments-section { background: #f8fafc; }

.comments-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1e293b;
}

.dark .comments-title { color: #fff; }

.comment {
  padding: 1.5rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.dark .comment { background: #0f172a; }
.comment { background: #fff; }

.comment-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.comment-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark .comment-avatar {
  background: rgba(67, 56, 202, 0.2);
  color: #a78bfa;
}

.comment-avatar {
  background: #e0e7ff;
  color: #4f46e5;
}

.comment-author {
  font-weight: 600;
  color: #1e293b;
}

.dark .comment-author { color: #fff; }

.comment-date {
  font-size: 0.75rem;
  color: #94a3b8;
}

.comment-text {
  color: #64748b;
}

.dark .comment-text { color: #cbd5e1; }

/* Comment Form */
.comment-form {
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.dark .comment-form { background: #0f172a; }
.comment-form { background: #fff; }

.comment-form-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
}

.dark .comment-form-title { color: #fff; }

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #cbd5e1;
}

.dark .form-label { color: #cbd5e1; }
.form-label { color: #374151; }

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  transition: border-color 0.3s;
}

.dark .form-input,
.dark .form-textarea {
  background: #1e293b;
  border-color: #334155;
  color: #fff;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #6366f1;
}

.form-textarea { resize: vertical; }

.submit-btn {
  width: 100%;
  background: #4f46e5;
  color: #fff;
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-btn:hover { background: #4338ca; }

/* --- Cart Modal --- */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  pointer-events: auto;
  transition: opacity 0.3s;
}

.cart-modal {
  position: relative;
  width: 100%;
  max-width: 30rem;
  height: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
  animation: slideInRight 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

.dark .cart-modal { background: #0f172a; }
.cart-modal { background: #fff; }

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.dark .cart-header {
  border-color: #334155;
  background: #0f172a;
}

.cart-header { background: #fff; }

.cart-title {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #1e293b;
}

.dark .cart-title { color: #fff; }
.cart-title svg { color: #6366f1; }

.cart-close {
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
  color: #94a3b8;
}

.cart-close:hover { color: #fff; }

.cart-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #94a3b8;
  gap: 1rem;
}

.cart-empty svg { opacity: 0.2; }

.cart-empty-btn {
  background: #4f46e5;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.cart-empty-btn:hover {
  background: #4338ca;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

.dark .cart-empty-btn {
  background: #4f46e5;
  color: #fff;
}

.dark .cart-empty-btn:hover {
  background: #4338ca;
}

.cart-items { space-y: 1rem; }

.cart-item {
  padding: 1rem;
  border-radius: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dark .cart-item { background: #1e293b; }
.cart-item { background: #f8fafc; }

.cart-item-title {
  font-weight: 700;
  color: #1e293b;
}

.dark .cart-item-title { color: #fff; }

.cart-item-price {
  font-weight: 500;
  color: #6366f1;
}

.dark .cart-item-price { color: #a78bfa; }

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
  color: #cbd5e1;
  padding: 0.5rem;
}

.cart-item-remove:hover { color: #ef4444; }

/* Cart Suggestions */
.cart-suggestions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed #e2e8f0;
}

.dark .cart-suggestions { border-color: #334155; }

.suggestions-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.suggestion-item {
  border: 1px solid #e2e8f0;
  padding: 1rem;
  border-radius: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.3s;
  cursor: pointer;
}

.dark .suggestion-item {
  border-color: #334155;
}

.suggestion-item:hover {
  border-color: #6366f1;
}

.suggestion-info {
  flex-grow: 1;
}

.suggestion-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: #e2e8f0;
}

.dark .suggestion-title { color: #e2e8f0; }
.suggestion-title { color: #374151; }

.suggestion-price {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.suggestion-add {
  padding: 0.375rem;
  border-radius: 0.5rem;
}

.dark .suggestion-add {
  background: rgba(67, 56, 202, 0.2);
  color: #a78bfa;
}

.suggestion-add {
  background: #e0e7ff;
  color: #4f46e5;
}

/* Cart Footer */
.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.dark .cart-footer {
  border-color: #334155;
  background: #0f172a;
}

.cart-footer { background: #fff; }

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cart-total-label {
  font-size: 1.125rem;
  font-weight: 500;
  color: #64748b;
}

.dark .cart-total-label { color: #94a3b8; }

.cart-total-amount {
  font-size: 1.5rem;
  font-weight: 900;
  color: #1e293b;
}

.dark .cart-total-amount { color: #fff; }

.cart-checkout {
  width: 100%;
  background: #4f46e5;
  color: #fff;
  padding: 1rem;
  border-radius: 0.75rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cart-checkout:hover {
  background: #4338ca;
}

/* --- Footer --- */
#footer {
  border-top: 1px solid #e2e8f0;
  margin-top: 5rem;
  background: #fff;
  border-color: #e5e7eb;
}

.dark #footer {
  background: #0f172a;
  border-color: #1e293b;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-content { grid-template-columns: repeat(4, 1fr); }
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #1e293b;
}

.dark .footer-brand { color: #fff; }

.footer-description {
  font-size: 0.875rem;
  line-height: 1.625;
  margin-top: 1rem;
  color: #64748b;
}

.dark .footer-description { color: #94a3b8; }

.footer-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e293b;
}

.dark .footer-title { color: #fff; }

.footer-links {
  list-style: none;
  space-y: 0.5rem;
}

.footer-link {
  font-size: 0.875rem;
  color: #64748b;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
  text-decoration: none;
  padding: 0;
}

.dark .footer-link { color: #94a3b8; }
.footer-link:hover { color: #6366f1; }
a.footer-link { display: inline; }

.footer-contact {
  space-y: 0.75rem;
  font-size: 0.875rem;
  color: #64748b;
}

.dark .footer-contact { color: #94a3b8; }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.footer-contact-item:hover { color: #6366f1; }

.footer-contact a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #e5e7eb;
  padding: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
}

.dark .footer-bottom {
  border-color: #1e293b;
  color: #64748b;
}

/* --- SVG Icons --- */
.icon { width: 1.25rem; height: 1.25rem; }
.icon-sm { width: 0.875rem; height: 0.875rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-xl { width: 2rem; height: 2rem; }

/* ========================================
   PROJECT MODAL STYLES
   ======================================== */
.project-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.project-modal-overlay.open {
  display: flex;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
}

.project-modal {
  background: #fff;
  border-radius: 1.5rem;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: scaleIn 0.3s ease-out;
}

.dark .project-modal {
  background: #1e293b;
}

.project-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #f1f5f9;
}

.dark .project-modal-header {
  border-bottom-color: #334155;
}

.project-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 9999px;
  transition: background-color 0.3s;
  color: #64748b;
}

.dark .project-modal-close {
  color: #94a3b8;
}

.project-modal-close:hover {
  background: #f1f5f9;
}

.dark .project-modal-close:hover {
  background: #334155;
}

.project-modal-body {
  padding: 2rem;
}

.project-modal-logo {
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.project-modal-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-modal-title {
  font-size: 1.875rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.dark .project-modal-title {
  color: #fff;
}

.project-modal-category {
  font-size: 0.875rem;
  color: #6366f1;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.project-modal-description {
  font-size: 1rem;
  line-height: 1.75;
  color: #64748b;
  margin-bottom: 2rem;
}

.dark .project-modal-description {
  color: #94a3b8;
}

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

.project-modal-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dark .project-modal-section-title {
  color: #fff;
}

.project-modal-tasks {
  list-style: none;
  space-y: 0.75rem;
}

.project-modal-task {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: #64748b;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
}

.dark .project-modal-task {
  background: #0f172a;
  color: #94a3b8;
}

.task-check {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: #e0e7ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dark .task-check {
  background: rgba(99, 102, 241, 0.2);
  color: #a78bfa;
}

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

.tech-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f1f5f9;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  transition: all 0.3s;
}

.dark .tech-badge {
  background: #334155;
  color: #cbd5e1;
}

.tech-badge:hover {
  background: #e0e7ff;
  transform: translateY(-2px);
}

.dark .tech-badge:hover {
  background: #4f46e5;
}

.tech-badge svg {
  width: 1rem;
  height: 1rem;
}

.project-modal-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #f1f5f9;
}

.dark .project-modal-buttons {
  border-top-color: #334155;
}

.project-btn {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
}

.project-btn-primary {
  background: #4f46e5;
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.project-btn-primary:hover {
  background: #4338ca;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

.project-btn-secondary {
  background: #f1f5f9;
  color: #1e293b;
  border: 2px solid #e2e8f0;
}

.dark .project-btn-secondary {
  background: #334155;
  color: #fff;
  border-color: #475569;
}

.project-btn-secondary:hover {
  background: #e0e7ff;
  border-color: #6366f1;
}

.dark .project-btn-secondary:hover {
  background: #4f46e5;
  border-color: #818cf8;
}

.project-modal-screenshots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.project-modal-screenshot {
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.project-modal-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.project-modal-screenshot:hover img {
  transform: scale(1.05);
}

/* Mobile adjustments for project modal */
@media (max-width: 767px) {
  .project-modal-body {
    padding: 1.5rem;
  }

  .project-modal-title {
    font-size: 1.5rem;
  }

  .project-modal-buttons {
    flex-direction: column;
  }

  .project-modal-screenshots {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   SCREENSHOT SCROLL STYLES (Swipe-fähig)
   ======================================== */
.screenshot-scroll-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #6366f1 #f1f5f9;
  padding-bottom: 0.5rem;
}

.screenshot-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.screenshot-scroll-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.screenshot-scroll-container::-webkit-scrollbar-thumb {
  background: #6366f1;
  border-radius: 3px;
}

.dark .screenshot-scroll-container::-webkit-scrollbar-track {
  background: #1e293b;
}

.dark .screenshot-scroll-container::-webkit-scrollbar-thumb {
  background: #4f46e5;
}

.screenshot-item {
  flex: 0 0 280px;
  height: 400px;
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.3s;
  border: 2px solid transparent;
}

.screenshot-item:hover {
  transform: scale(1.02);
  border-color: #6366f1;
}

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

/* Mobile: kleinere Bilder */
@media (max-width: 767px) {
  .screenshot-item {
    flex: 0 0 220px;
    height: 320px;
  }
}

/* ========================================
   LIGHTBOX STYLES
   ======================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: -5rem;
}

.lightbox-next {
  right: -5rem;
}

/* Mobile adjustments for lightbox */
@media (max-width: 767px) {
  .lightbox-nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }
  
  .lightbox-prev {
    left: 0.5rem;
  }
  
  .lightbox-next {
    right: 0.5rem;
  }
  
  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }
}

