@import url("https://fonts.googleapis.com/css?family=Poppins:300,400,600,700,800,900,900i&display=swap");

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: white;
    position: relative;
    overflow: hidden;
    background-color: #0a0f18;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(5, 8, 13, 0.1);
    backdrop-filter: blur(3px) brightness(0.7);
    -webkit-backdrop-filter: blur(3px) brightness(0.7);
    z-index: 0;
}

#particles {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

#particles > .pg-canvas {
    display: block;
    position: absolute;
    top: 0; left: 0; width: 100% !important; height: 100% !important;
    background-color: #05080D;
    z-index: -2;
}

#page-container {
    width: 100%;
    height: 100vh; 
    overflow-y: scroll; 
    overflow-x: hidden;
    scroll-snap-type: y mandatory; 
    position: relative; 
    z-index: 1; 
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#page-container::-webkit-scrollbar {
    display: none;
}

.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 80px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid rgba(40, 50, 70, 0.5);
    z-index: 1000;
    overflow: hidden;
    background-color: #0a0f18;
    transition: background-color 0.3s ease;
}

.header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    animation: shimmerEffect 6s infinite linear;
    z-index: -1;
}

.scroll-section {
    width: 100%;
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.main-content-wrapper, .section-content {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.welcome-text {
    margin-bottom: 25px;
}

.welcome-text h1 {
    font-size: 3.8em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    text-shadow: 0 3px 12px rgba(0,0,0,0.35);
}

.welcome-text p {
    font-size: 1.3em;
    color: #d0d0d0;
    max-width: 650px;
    line-height: 1.7;
}

.center-text-container {
    background: rgba(25, 35, 55, 0.6);
    border-radius: 12px;
    padding: 28px 35px;
    max-width: 600px;
    width: 100%;
    margin-top: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.center-text-container p {
    font-size: 1.1em;
    padding-left: 40px;
    line-height: 1.75;
    color: #e0e0e0;
}

.center-text-container p::before {
    font-size: 3.5em;
    top: 0.0em;
    color: rgba(255, 255, 255, 0.25);
}

.section-content h2 {
    font-size: 2.2em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 8px;
}

.section-content h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 48px;
    height: 2.5px;
    background-color: #8E2DE2;
    border-radius: 2px;
}

.section-content p {
    font-size: 1.08em;
    color: #c0c0c0;
    max-width: 700px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.section-content p strong {
    color: #A045F3;
    font-weight: 600;
}

.section-content p em {
    color: #dadada;
    font-style: normal;
}

.logo {
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    font-weight: 700;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    height: 1.2em;
    border-radius: 5px;
    vertical-align: middle;
}

.navbar {
    z-index: 1;
}

.navbar a {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    margin-left: 40px;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s ease;
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #7700ff;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.navbar a:hover {
    color: #f0f0f0;
}

.navbar a:hover::after {
    width: 100%;
    visibility: visible;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: #182230;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px #00000066;
    text-align: center;
    max-width: 450px;
    width: 90%;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

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

.popup-content h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.popup-content p {
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    font-style: normal;
}

.popup-button {
    display: inline-block;
    background-color: #7700ff;
    color: #fff;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.popup-button:hover {
    background-color: #8a2eff;
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .main-content-wrapper, .section-content {
        max-width: 90vw;
        gap: 25px;
    }
    .welcome-text h1 {
        font-size: 2.8em;
    }
    .welcome-text p {
        font-size: 1.15em;
    }
    .center-text-container p {
        font-size: 1em;
    }
    .section-content h2 {
        font-size: 2em;
    }
    .header {
        padding: 0 15px;
    }
    .scroll-section {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 80px;
    }
}

@media (max-width: 600px) {
    .welcome-text h1 {
        font-size: 2.2em;
    }
    .welcome-text p {
        font-size: 1em;
    }
    .center-text-container {
        max-width: 90%;
    }
    .center-text-container p {
        font-size: 0.9em;
        padding-left: 30px;
    }
    .center-text-container p::before {
        font-size: 3em;
    }
     .section-content h2 {
        font-size: 1.8em;
    }
    .section-content p {
        font-size: 0.95em;
    }
}

/* Feedback Carousel Styles */
.feedback-carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 30px auto 0 auto;
}

.feedback-item {
    background: #19233799;
    border-radius: 12px;
    padding: 28px 35px;
    box-shadow: 0 8px 25px #0000004d;
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: none;
    width: 100%;
    text-align: left;
}

.feedback-item.active {
    display: block;
}

.feedback-item p {
    font-size: 1.1em;
    color: #e0e0e0;
    line-height: 1.75;
    padding-left: 45px;
    position: relative;
    margin-bottom: 15px;
    font-style: normal;
}

.feedback-item p::before {
    content: "“";
    position: absolute;
    left: 5px;
    top: -0.05em;
    font-size: 3.5em;
    color: #ffffff40;
    line-height: 1;
}

.feedback-item .author {
    display: block;
    text-align: right;
    font-size: 0.9em;
    color: #b0b0b0;
    margin-top: 10px;
    font-style: normal;
    font-weight: 500;
}

/* Pfeile können beibehalten oder entfernt werden, je nach Präferenz */

/* Image Gallery Styles */
/* Apply these styles to a container element for the gallery, 
   or to the body if the gallery is a full-page component by adding class="gallery-active" to body tag */

.gallery-container {
    --l: calc(70vmin/var(--n, var(--n-cols, 6))); /* Reduced from 100vmin to 70vmin and updated fallback for --n-cols to 6 */
    --hl: calc(.5*var(--l));
    --ri: calc(.5*sqrt(3)*var(--l));
    box-sizing: border-box;
    display: grid;
    place-content: center;
    grid-template: repeat(var(--n-rows, 3), var(--l))/ repeat(var(--n-cols, 6), var(--ri)); /* Define default fallback for rows/cols */
    grid-gap: var(--hl) 0;
    overflow: hidden;
    margin: 0 auto; /* Centering the gallery container */
    padding: var(--hl) 0;
    /* height: 100vh; */ /* Adjust as needed, maybe not full viewport height */
    background: transparent; /* Changed background to transparent to match page background */
    filter: drop-shadow(2px 2px 5px #0a0f18); /* Kept existing drop-shadow, user may want to revise this */
    width: 100%; /* Or a specific max-width */
  }
  
  .hex-cell {
    overflow: hidden;
    grid-column-end: span 2;
    margin: calc(-1*var(--hl)) 0;
    transform: scale(.95);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    cursor: default; /* Changed from pointer as JS will handle timed hover */
    /* Transitions for properties that change when .hex-cell-active-enlarge is added/removed */
    transition: transform 0.35s ease, 
                clip-path 0.35s ease, 
                width 0.35s ease, 
                height 0.35s ease, 
                opacity 0.35s ease, /* Added opacity for smoother visual transition with z-index */
                z-index 0s linear 0.35s; /* Delay z-index change when reverting */
    position: relative; 
    z-index: 1; 
    opacity: 1;
  }
  
  /* Remove complex hover styles from here, JS will add a class */
  .hex-cell:hover {
    /* Can keep a very subtle, immediate hover effect if desired, e.g., slightly brighter */
    /* filter: brightness(1.1); */
    /* z-index will be managed by the .hex-cell-active-enlarge class or JS if absolutely needed */
  }

  /* New class for JS-controlled enlargement */
  .hex-cell-active-enlarge {
    position: fixed; 
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: auto;  
    height: auto; 
    min-width: 300px; 
    min-height: 200px; 
    max-width: 85vw;  
    max-height: 85vh; 
    clip-path: none; 
    border-radius: 8px; 
    box-shadow: 0 15px 50px rgba(0,0,0,0.6); 
    z-index: 1200; 
    opacity: 1; /* Ensure it's fully visible when enlarged */
    overflow: visible; 
    /* No transition-delay here, transitions are on the base .hex-cell */
  }

  .hex-cell-active-enlarge img {
    transform: scale(1); 
    filter: brightness(1); 
    width: 100%; 
    height: 100%;
    object-fit: contain; 
    display: block; 
  }
  
  .hex-cell img {
    --hl: 0;
    width: 100%; height: 100%;
    object-fit: cover; 
    transform: scale(calc(1 + .2*var(--hl))); /* Original small hover effect */
    filter: brightness(calc(.6*(1 + var(--hl))));
    transition: transform 0.3s ease, filter 0.3s ease; /* Shortened original img hover transition */
    display: block; 
  }

  /* Original small image hover effect */
  .hex-cell:not(.hex-cell-active-enlarge) img:hover {
      --hl: 1; /* Activates the scale and brightness on the small hex image */
  }

/* End of Image Gallery Styles */
