:root {
  --primary-beige: #f4eee0;
  --secondary-wine: #6d2932;
  --accent-dark: #2c2c2c;

  /* Dark mode variables */
  --dark-bg: #23272f;
  --dark-text: #a259f7;
  --dark-secondary: #a259f7;
  --dark-accent: #f4eee0;
  --dark-card-bg: #2a2f38;
  --dark-border: #3e4451;

  /* Transition variables */
  --theme-transition: color 0.3s ease, background-color 0.3s ease,
    border-color 0.3s ease, box-shadow 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
  transition: var(--theme-transition);
}

body {
  background-color: var(--primary-beige);
  color: var(--accent-dark);
  line-height: 1.6;
}

body.darkmode {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

#header-container {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 5%;
  background: rgba(244, 238, 224, 0.95);
  width: 100%;
  border-bottom: 2px solid var(--secondary-wine);
}

body.darkmode nav {
  background: rgba(35, 39, 47, 0.95);
  border-bottom: 2px solid var(--dark-secondary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a:first-child {
  margin-left: 0;
}

.nav-links a {
  color: var(--accent-dark);
  text-decoration: none;
  margin-left: 2rem;
  transition: color 0.3s ease;
  position: relative;
}

body.darkmode .nav-links a {
  color: var(--dark-text);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--secondary-wine);
  transition: width 0.3s ease;
}

body.darkmode .nav-links a::after {
  background: var(--dark-secondary);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Dark mode toggle button */
.darkmode-btn {
  background: none;
  border: none;
  color: var(--accent-dark);
  font-size: 1.2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-left: 1rem;
}

.darkmode-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

body.darkmode .darkmode-btn {
  color: var(--dark-text);
}

body.darkmode .darkmode-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile navigation */
.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--accent-dark);
  font-size: 1.5rem;
  cursor: pointer;
  margin-right: 1rem;
}

nav.open .nav-links {
  display: flex;
  flex-direction: column;
  background: var(--primary-beige);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 1rem 5%;
}

nav.open .nav-links:first-of-type {
  display: none;
}

body.darkmode nav.open .nav-links {
  background: var(--dark-bg);
}

@media (max-width: 768px) {
  nav {
    position: relative;
    justify-content: space-between;
  }
  .nav-links {
    display: none;
  }
  .menu-btn {
    display: flex;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 1100;
    align-items: center;
    justify-content: center;
  }
  .about-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 2vw;
    gap: 0;
    width: 100%;
  }
  .about-text {
    max-width: 90vw;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    padding: 0;
  }
}
body.darkmode .menu-btn {
  color: var(--dark-text);
}

.hero {
  min-height: 400px;
  display: flex;
  align-items: center;
  padding: 0 5%;
  margin-top: 4rem;
  background: linear-gradient(135deg, var(--primary-beige) 0%, #fff 100%);
}

body.darkmode .hero {
  background: linear-gradient(
    135deg,
    var(--dark-bg) 0%,
    var(--dark-card-bg) 100%
  );
}

.hero-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-image {
  flex-shrink: 0;
}

.profile-image {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 10%;
  transform: scale(1.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 4px solid white;
}

body.darkmode .profile-image {
  border: 4px solid var(--dark-card-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-wine);
  line-height: 1.2;
}

body.darkmode .hero-content h1 {
  color: var(--dark-secondary);
}

.tagline {
  font-size: 1.1rem;
  color: var(--accent-dark);
  margin-bottom: 1rem;
}

body.darkmode .tagline {
  color: var(--dark-text);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  font-size: 1.8rem;
  color: var(--secondary-wine);
  transition: transform 0.3s ease;
}

body.darkmode .social-link {
  color: var(--dark-secondary);
}

.social-link:hover {
  transform: translateY(-3px);
}

.about,
.education,
.skills,
.experience {
  padding: 2rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.about {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.education {
  padding-top: 1rem;
}

.about-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 1.5rem auto;
}

.timeline-item {
  margin-bottom: 2rem;
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--secondary-wine);
}

body.darkmode .timeline-item {
  border-left: 2px solid var(--dark-secondary);
}

.timeline-content {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.darkmode .timeline-content {
  background: var(--dark-card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.timeline-content h3 {
  color: var(--secondary-wine);
  margin-bottom: 0.5rem;
}

body.darkmode .timeline-content h3 {
  color: var(--dark-secondary);
}

.date {
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: block;
}

body.darkmode .date {
  color: #aaa;
}

.languages {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 5%;
}

.experience {
  background: linear-gradient(135deg, var(--primary-beige) 0%, #fff 100%);
  padding: 4rem 5%;
  margin-top: 2rem;
}

body.darkmode .experience {
  background: linear-gradient(
    135deg,
    var(--dark-bg) 0%,
    var(--dark-card-bg) 100%
  );
}

.experience h2 {
  color: var(--secondary-wine);
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.2rem;
}

body.darkmode .experience h2 {
  color: var(--dark-secondary);
}

.experience-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.experience-item {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--secondary-wine);
}

body.darkmode .experience-item {
  background: var(--dark-card-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-left: 4px solid var(--dark-secondary);
}

.experience-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.experience-header h3 {
  color: var(--secondary-wine);
  font-size: 1.5rem;
}

body.darkmode .experience-header h3 {
  color: var(--dark-secondary);
}

.experience-badge {
  background: var(--primary-beige);
  color: var(--secondary-wine);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  align-self: flex-start;
}

body.darkmode .experience-badge {
  background: var(--dark-bg);
  color: var(--dark-secondary);
}

.experience-duration {
  color: var(--accent-dark);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

body.darkmode .experience-duration {
  color: var(--dark-text);
}

.experience-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.tech-tag {
  background: var(--primary-beige);
  color: var(--secondary-wine);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

body.darkmode .tech-tag {
  background: var(--dark-bg);
  color: var(--dark-secondary);
}

.experience-description {
  color: var(--accent-dark);
  line-height: 1.6;
  font-size: 0.95rem;
}

body.darkmode .experience-description {
  color: var(--dark-text);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

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

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

  .project-content {
    margin-top: 6rem;
    padding: 0 1rem;
  }

  .project-header h1 {
    font-size: 2rem;
  }

  .experience {
    padding: 3rem 5%;
  }

  .experience h2 {
    font-size: 1.8rem;
  }

  .experience-item {
    padding: 1.5rem;
  }

  /* Center About Me section text and heading */
  .about,
  .about h2 {
    text-align: center;
  }
  .about-text {
    text-align: center;
  }
}

@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
  }
  .hero-image {
    margin-top: 1.5rem;
  }
  .profile-image {
    width: 180px;
    height: 180px;
    transform: scale(1);
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 2%;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 2%;
  }
  .experience {
    padding: 2rem 2%;
  }
}

@media (max-width: 600px) {
  nav {
    flex-direction: column;
    padding: 1rem 3%;
    gap: 1rem;
  }
  .nav-links {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  .hero {
    margin-top: 2rem;
    padding: 0 2%;
  }
  .hero-content h1 {
    font-size: 1.7rem;
  }
  .tagline {
    font-size: 1rem;
  }
  .about-grid {
    padding: 2rem 2%;
  }
  .profile-image {
    width: 220px;
    height: 220px;
  }
  .project-header h1 {
    font-size: 1.4rem;
  }
  .projects-grid {
    gap: 1rem;
    padding: 1rem 1%;
  }
  .project-card {
    min-height: unset;
    padding: 1rem;
  }
  .company-link {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
  .contact-form {
    margin-top: 4rem;
    padding: 0 2%;
  }
  .about-text p {
    font-size: 0.95rem;
  }
}

@media (max-width: 400px) {
  .hero-content h1 {
    font-size: 1.1rem;
  }
  .tagline {
    font-size: 0.85rem;
  }
  .profile-image {
    width: 80px;
    height: 80px;
  }
}

/* Custom mobile adjustments */
@media (max-width: 768px) {
  /* Ensure About text sits directly under heading */
  .about-grid {
    padding-top: 0;
  }
  /* Push hero below fixed header */
  .hero {
    margin-top: 6rem;
  }
  /* Center social icons */
  .social-links {
    width: 100%;
    justify-content: center;
    margin-top: 1.5rem;
  }
  /* Center About Me section text and heading */
  .about,
  .about h2 {
    text-align: center;
  }
  .about-text {
    text-align: center;
  }
}

.skill-bars {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.skill-item {
  display: grid;
  gap: 0.5rem;
}

.skill-name {
  font-weight: 500;
  color: var(--accent-dark);
}

body.darkmode .skill-name {
  color: var(--dark-text);
}

.skill-bar {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

body.darkmode .skill-bar {
  background: #3e4451;
}

.skill-level {
  height: 100%;
  background: var(--secondary-wine);
  border-radius: 4px;
  transition: width 1s ease;
}

body.darkmode .skill-level {
  background: var(--dark-secondary);
}

.skill-category h3 {
  color: var(--secondary-wine);
  margin-bottom: 1rem;
}

body.darkmode .skill-category h3 {
  color: var(--dark-secondary);
}

.experience-details {
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.experience-details li {
  margin-bottom: 0.5rem;
  position: relative;
}

.experience-details li::before {
  content: "•";
  color: var(--secondary-wine);
  position: absolute;
  left: -1.2rem;
}

body.darkmode .experience-details li::before {
  color: var(--dark-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding: 5rem 5%;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 5rem 5%;
  margin-top: 4rem;
}

.project-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 400px;
}

body.darkmode .project-card {
  background: var(--dark-card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.projects-grid .project-card {
  transition: none;
}

.project-card .project-description {
  display: -webkit-box;
  -webkit-line-clamp: 8;
  line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.project-card .project-link {
  margin-top: auto;
  align-self: flex-start;
}

.project-title {
  font-size: 1.5rem;
  color: var(--secondary-wine);
  margin-bottom: 1rem;
}

body.darkmode .project-title {
  color: var(--dark-secondary);
}

.project-description {
  color: var(--accent-dark);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

body.darkmode .project-description {
  color: var(--dark-text);
}

.project-divider {
  height: 2px;
  background: var(--secondary-wine);
  margin: 1rem 0;
  opacity: 0.3;
}

body.darkmode .project-divider {
  background: var(--dark-secondary);
}

.project-link {
  display: inline-block;
  color: var(--secondary-wine);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

body.darkmode .project-link {
  color: var(--dark-secondary);
}

.project-link:hover {
  color: #551d25;
}

body.darkmode .project-link:hover {
  color: #8a3dd9;
}

.project-content {
  max-width: 800px;
  margin: 8rem auto 4rem;
  padding: 0 2rem;
}

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

.project-header h1 {
  font-size: 2.5rem;
  color: var(--secondary-wine);
  margin-bottom: 1rem;
}

body.darkmode .project-header h1 {
  color: var(--dark-secondary);
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--secondary-wine);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  margin-bottom: 1rem;
}

body.darkmode .github-link {
  background: var(--dark-secondary);
  color: var(--dark-bg);
}

.github-link:hover {
  background: #551d25;
}

body.darkmode .github-link:hover {
  background: #8a3dd9;
}

.github-link i {
  font-size: 1.2rem;
}

.confidential-notice {
  background: rgba(109, 41, 50, 0.1);
  border-left: 4px solid var(--secondary-wine);
  padding: 1rem;
  border-radius: 0 4px 4px 0;
  margin: 1rem 0;
  line-height: 1.6;
}

body.darkmode .confidential-notice {
  background: rgba(162, 89, 247, 0.1);
  border-left: 4px solid var(--dark-secondary);
}

.company-link-container {
  margin: 2rem 0;
  text-align: center;
}

.company-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: var(--secondary-wine);
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-wine);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.darkmode .company-link {
  background: var(--dark-card-bg);
  color: var(--dark-secondary);
  border: 2px solid var(--dark-secondary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.company-link:hover {
  background: var(--secondary-wine);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(109, 41, 50, 0.2);
}

body.darkmode .company-link:hover {
  background: var(--dark-secondary);
  color: var(--dark-bg);
  box-shadow: 0 4px 15px rgba(162, 89, 247, 0.2);
}

.company-link i {
  font-size: 1rem;
}

.project-details {
  display: grid;
  gap: 3rem;
}

.project-details h2 {
  color: var(--secondary-wine);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

body.darkmode .project-details h2 {
  color: var(--dark-secondary);
}

.project-details p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.project-technologies ul,
.project-features ul {
  list-style: none;
  padding: 0;
}

.project-technologies li,
.project-features li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.project-technologies li::before,
.project-features li::before {
  content: "•";
  color: var(--secondary-wine);
  position: absolute;
  left: 0;
}

body.darkmode .project-technologies li::before,
body.darkmode .project-features li::before {
  color: var(--dark-secondary);
}

.project-images {
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-images img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

body.darkmode .project-images img {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.project-images img:hover {
  transform: scale(1.02);
  cursor: pointer;
}

/* Lightbox Overlay immer über Header und zentriert */
.lightbox {
  z-index: 3000 !important;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  position: fixed;
  background: rgba(30, 30, 40, 0.75);
  cursor: zoom-out;
  transition: background 0.3s cubic-bezier(0.4, 2, 0.6, 1);
  animation: lightbox-fade-in 0.3s;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  margin: 0 auto;
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  background: #fff;
  padding: 0.5rem;
  animation: lightbox-img-in 0.3s;
}

@media (max-width: 600px) {
  .lightbox img {
    max-width: 98vw;
    max-height: 60vh;
  }
}

.contact-form {
  max-width: 600px;
  margin: 5rem auto;
  padding: 0 5%;
  margin-top: 8rem;
}

.contact-form h1 {
  color: var(--secondary-wine);
  margin-bottom: 2rem;
  font-size: 2.2rem;
  text-align: center;
}

body.darkmode .contact-form h1 {
  color: var(--dark-secondary);
}

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

input,
textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

body.darkmode input,
body.darkmode textarea {
  background: var(--dark-card-bg);
  border: 1px solid var(--dark-border);
  color: var(--dark-text);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--secondary-wine);
}

body.darkmode input:focus,
body.darkmode textarea:focus {
  border-color: var(--dark-secondary);
}

.btn {
  background: var(--secondary-wine);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

body.darkmode .btn {
  background: var(--dark-secondary);
  color: var(--dark-bg);
}

.btn:hover {
  background: #551d25;
}

body.darkmode .btn:hover {
  background: #8a3dd9;
}

/* Hide mobile-only on desktop; align mobile menu items under the X by resetting margins and spacing */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  /* Show mobile-only links */
  .mobile-only {
    display: block;
  }
  /* Reset indent for mobile menu items and add vertical spacing */
  nav.open .nav-links > a,
  nav.open .nav-links > button {
    margin-left: 0;
    margin-bottom: 1rem;
  }
  /* Remove bottom margin on last item */
  nav.open .nav-links > a:last-child,
  nav.open .nav-links > button:last-child {
    margin-bottom: 0;
  }
}

/* About-Me Card NUR auf Mobile anzeigen */
.about-centerbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  text-align: center;
  color: var(--accent-dark);
  font-size: 1.25rem;
}
body.darkmode .about-centerbox {
  color: var(--dark-secondary);
}
@media (max-width: 768px) {
  .about-centerbox {
    max-width: 98vw;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(109, 41, 50, 0.1);
    padding: 1.2rem 0.5rem;
    color: var(--accent-dark);
    font-size: 1.18rem;
  }
  body.darkmode .about-centerbox {
    background: rgba(35, 39, 47, 0.95);
    color: var(--dark-secondary);
  }
}

/* --- NEUE LIGHTBOX --- */
.simple-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 30, 40, 0.8);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.simple-lightbox-img {
  max-width: 92vw;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  background: #fff;
  padding: 0.5rem;
  display: block;
}
.simple-lightbox-close {
  position: absolute;
  top: 32px;
  right: 40px;
  color: #fff;
  font-size: 2.5rem;
  background: rgba(0, 0, 0, 0.25);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5100;
  transition: background 0.2s, transform 0.2s;
}
.simple-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.45);
  transform: scale(1.1);
}
@media (max-width: 600px) {
  .simple-lightbox-img {
    max-width: 98vw;
    max-height: 60vh;
  }
  .simple-lightbox-close {
    top: 12px;
    right: 12px;
    font-size: 2rem;
    width: 36px;
    height: 36px;
  }
}

/* Image Gallery Styles */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.image-item {
  text-align: center;
}

.image-item img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-item img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.image-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--accent-dark);
  font-weight: 500;
}

body.darkmode .image-caption {
  color: var(--dark-text);
}

/* Sponsor Logos Styles */
.sponsor-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.sponsor-item {
  text-align: center;
}

.sponsor-logo {
  max-width: 150px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.sponsor-logo:hover {
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .image-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .image-item img {
    max-width: 350px;
  }

  .sponsor-logos {
    gap: 2rem;
  }

  .sponsor-logo {
    max-width: 120px;
    max-height: 60px;
  }
}

@media (max-width: 480px) {
  .image-item img {
    max-width: 300px;
  }

  .sponsor-logos {
    gap: 1.5rem;
  }

  .sponsor-logo {
    max-width: 100px;
    max-height: 50px;
  }
}
