:root {
    --background: #1A1A1A; /* Dark background similar to the reference */
    --on-background: #E0E0E0; /* Light text color */
    --highlight-color: #303030; /* Darker for containers */
    --accent-color: #6E6E6E; /* Soft gray for subtle accents */
    --button-primary: #1A1A1A; /* Purple as primary button */
    --button-secondary: #161616; /* Dark gray for secondary buttons */
}

/* Globální styl scrollbaru */
::-webkit-scrollbar {
    width: 8px; /* Šířka scrollbaru */
    background-color: #1F1F1F; /* Barva pozadí scrollovací lišty */
  }
  
  ::-webkit-scrollbar-thumb {
    background: #444; /* Barva posuvníku */
    border-radius: 4px; /* Zaoblení posuvníku */
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #666; /* Barva posuvníku při hover */
  }
  
  /* Firefox */
  * {
    scrollbar-width: thin; /* Tenčí scrollbar */
    scrollbar-color: #444 #1F1F1F; /* Barva posuvníku a pozadí ve Firefoxu */
  }

body {
    background-color: var(--background);
    color: var(--on-background);
    font-family: sans-serif;
}

/* Navbar specific styles not covered by Tailwind */
.navbar {
    position: fixed;
    top: 2rem; /* Počáteční odsazení */
    left: 50%;
    transform: translateX(-50%);
    border-color: rgba(73, 73, 73, 0.8);
    background-color: rgba(30, 30, 30, 0.8);
    width: 180px;
    padding: 0.25rem;
    z-index: 50;
    transition: top 0.3s ease; /* Plynulý přechod při změně pozice */
}

/* Highlight animation */
.highlight {
    position: absolute;
    height: 80%; 
    width: 45%; 
    background: linear-gradient(135deg, rgba(51, 51, 51, 0.8), rgba(77, 77, 77, 0.8));
    border-radius: 9999px;
    top: 10%;
    left: 5%;
    transition: transform 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}


/* Button styling */
.tab-button {
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    z-index: 10;
    transition: none;
}

.tab-button:focus {
    outline: none;
    box-shadow: none; /* Ensures no shadow appears on focus */
}

.tab-button.text-white {
    color: white;
    transition: color 0.3s ease; /* Apply transition only for interactions */
}

.tab-button:hover, .tab-button.text-white {
    transition: color 0.3s ease;
}

/* Hover effect for the navbar */
.navbar:hover {
    background-color: rgba(51, 51, 51, 0.8); /* Darker 80% opaque on hover */
    border-color: rgba(109, 109, 109, 0.8); /* Slightly lighter 80% opaque border */
}


.card {
    background-color: var(--highlight-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
}

.card:hover {
    background-color: #2A2A2A;
}

/* Titles and text styling */
.card-title {
    color: var(--on-background);
    font-size: 1.25rem;
    font-weight: bold;
}

.card-subtitle {
    color: #A0A0A0; /* Softer text for secondary info */
    font-size: 0.875rem;
}

.card-value {
    font-size: 2.5rem;
    color: #7F5AF0; /* Primary highlight color */
    font-weight: bold;
}

/* Button styles */
.button-primary {
    background: var(--button-primary);
    color: white;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button-primary:hover {
    background-color: var(--highlight-color);
    transform: scale(1.05);
}

.button-secondary {
    background: var(--button-secondary);
    color: var(--on-background);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
}

.button-secondary:hover {
    background-color: #242424;
}

/* Carousel navigation buttons */
.carousel-nav {
    background-color: #333333;
    border-radius: 50%;
    padding: 0.75rem;
    transition: background-color 0.3s ease;
}

.carousel-nav:hover {
    background-color: #4A4A4A;
}

@keyframes popupZoomIn {
    0% {
        transform: scale(1);
        opacity: 0;
    }
    100% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Apply animation to popup */
#popupContent {
    transition: width 0.3s ease-out, height 0.3s ease-out, left 0.3s ease-out, top 0.3s ease-out;
    border-radius: 1rem; /* Match the border-radius of item7 */
    overflow: hidden; /* Keep content within bounds */
}




/* Rounded borders and full-bleed image */
#popupContent img {
    border-radius: 1rem; /* Match the grid items’ border radius */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-container {
    width: 100%;
    height: 100%;
    background-color: #1F1F1F;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.timeline {
    display: flex;
    align-items: center;
    white-space: nowrap;
    transform: translateX(0); /* Žádná výchozí animace */
}

.timeline:hover {
    animation-play-state: paused; /* Pause animation on hover */
}

.timeline-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #57F287;
    opacity: 0.7;
    margin: 0 2px;
    position: relative;
}

.timeline-january {
    background-color: #FF7F50;
    opacity: 1;
}

.timeline-label {
    color: #ffffff;
    font-size: 0.7rem;
    position: absolute;
    top: -18px;
    white-space: nowrap;
}

.year-label {
    color: #ffffff;
    font-size: 0.7rem;
    position: absolute;
    top: 10px;
    white-space: nowrap;
}

@keyframes scroll-right-to-left {
    from {
        transform: translateX(45%);
    }
    to {
        transform: translateX(-110%);
    }
}


/* Timeline Animation from Left to Right */
@keyframes scroll-left-to-right {
    from {
        transform: translateX(-110%);
    }
    to {
        transform: translateX(45%);
    }
}

.card-timeline {
    background-color: var(--highlight-color);
    border-radius: 1rem;
    padding: 5rem;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
}

.card-timeline:hover {
    background-color: #2A2A2A;
    animation-play-state: paused;
}


/* Circular Carousel Container */
.circle-carousel {
    position: absolute;
    top: 50%;
    right: 0; /* Align to the right edge */
    transform: translate(50%, -50%); /* Center circle to the right-middle */
    width: 350px; /* Circle size */
    height: 350px;
    border-radius: 50%;
    animation: rotate-circle 10s linear infinite; /* Smooth rotation */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Icons inside the circle */
.carousel-icon {
    width: 50px;
    height: 50px;
    position: absolute;
    border-radius: 50%; /* Optional, for rounded icons */
    object-fit: cover;
    transform-origin: center;
    transition: transform 0.3s ease, z-index 0.3s ease; /* Smooth scaling effect */
}

/* Icon Hover Effect */
.carousel-icon:hover {
    z-index: 10; /* Bring the icon to the front */
    transform: scale(1.5) translate(0, 0); /* Scale in place */
}


/* Circle Rotation Animation */
@keyframes rotate-circle {
    from {
        transform: translate(50%, -50%) rotate(360deg);
    }
    to {
        transform: translate(50%, -50%) rotate(0deg);
    }
}


/* Styling for the right-side links */
.navbar-wrapper a {
    position: relative;
    display: inline-flex;
    padding: 0.5rem 1rem;
    color: #fff;
    font-size: 1rem;
    transition: background 0.3s ease-in, box-shadow 0.3s ease-in, transform 0.3s ease-in; /* Smooth transitions */
    border-radius: 9999px; /* Makes it look like a button */
}

/* Hover effect for the right-side links */
.navbar-wrapper a:hover {
    background: rgba(255, 255, 255, 0.1); /* Light background effect */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Slight shadow */
    transform: scale(1.05); /* Slight scaling effect */
}

/* Fix for arrow icon to ensure no unwanted styles */
.navbar-wrapper a span {
    color: inherit; /* Ensure the arrow inherits the text color */
    transition: none; /* Prevent transitions for the arrow */
    padding-left: 0.25rem;
}

/* Remove focus outline and any unwanted focus styles */
.navbar-wrapper a:focus {
    outline: none; /* Removes the blue outline */
    background: rgba(255, 255, 255, 0.1); /* Keep hover-like background on focus */
}

/* Explicit fix for the arrow on focus */
.navbar-wrapper a:focus span {
    color: #fff; /* Ensure the arrow remains white */
}

#socialCarousel .social-slide {
    opacity: 0; /* Initial state: hidden */
    transition: opacity 0.5s ease-in-out; /* Smooth transition */
    position: absolute;
    inset: 0; /* Ensure slides overlap */
    z-index: 0;
    display: block;
}

#socialCarousel .social-slide.active {
    opacity: 1; /* Fully visible slide */
    z-index: 1; /* Ensure the active slide is on top */
}

#socialCarousel1 .social-slide {
    opacity: 0; /* Initial state: hidden */
    transition: opacity 0.5s ease-in-out; /* Smooth transition */
    position: absolute;
    inset: 0; /* Ensure slides overlap */
    z-index: 0;
    display: block;
}

#socialCarousel1 .social-slide.active {
    opacity: 1; /* Fully visible slide */
    z-index: 1; /* Ensure the active slide is on top */
}

#socialCarousel22 .social-slide {
    opacity: 0; /* Initial state: hidden */
    transition: opacity 0.5s ease-in-out; /* Smooth transition */
    position: absolute;
    inset: 0; /* Ensure slides overlap */
    z-index: 0;
    display: block;
}

#socialCarousel22 .social-slide.active {
    opacity: 1; /* Fully visible slide */
    z-index: 1; /* Ensure the active slide is on top */
}

/* Vlastní scrollbar */
.scrollbar-custom::-webkit-scrollbar {
    width: 8px; /* Šířka scrollbar */
    background-color: #1F1F1F; /* Barva pozadí scrollovací lišty */
  }
  
  .scrollbar-custom::-webkit-scrollbar-thumb {
    background: #444; /* Barva posuvníku */
    border-radius: 4px; /* Zaoblení posuvníku */
  }
  
  .scrollbar-custom::-webkit-scrollbar-thumb:hover {
    background: #666; /* Barva posuvníku při hover */
  }
  
  .scrollbar-custom {
    scrollbar-width: thin; /* Tenčí scrollbar pro Firefox */
    scrollbar-color: #444 #1F1F1F; /* Barva posuvníku a pozadí ve Firefoxu */
  }
  
  .grid-responsive {
    grid-template-columns: repeat(4, 250px);
    grid-template-rows: repeat(4, 190px);
}

/* Pro tablety (šířka max 1024px) */
@media (max-width: 1280px) {
    .grid-responsive {
        grid-template-columns: repeat(3, 250px);
        grid-template-rows: repeat(4, 190px);
    }
}