/* General styling */
body, html {
    margin: 0;
    padding: 0;
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    font-style: normal;
    overflow-x: hidden;
    background-color: #ffffff;
}

/* Section base styling */
.section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    max-height: 100vh;
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: all 2s ease-in-out;bottom
}

/* Initial state of the home section */
#home {
    top: -100%;
}

/* Active section styling */
.active {
    opacity: 1;
    visibility: visible;
}

/* Positioning active home section */
.active#home {
    top: 0px;
}

/* Base transform for non-home sections */
.section:not(#home) {
    transform: translateX(-100%);
    top: 0px;
}

/* Adjusting active non-home sections to slide in */
.section:not(#home).active {
    transform: translateX(0);
}

/* Container styling */
.container, .container-home {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

/* Home Section Specific Styling */
#home {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/RWB-blocks.webp') no-repeat center center/cover;
    text-align: center;
    color: white;
}

#home .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Reduced opacity for better image visibility */
}

#home .container-home {
    position: relative;
    z-index: 10;
    padding: 20px;
    text-align: center;
}

#home h1 {
    font-size: 5rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.75);
    margin: 0;
    animation: fadeInDown 1s ease-out;
}

#home-description {
    margin-top: 1rem;
    font-size: 1.5rem;
    max-width: 600px;
    animation: fadeInUp 1.5s ease-out;
}

@media (min-width: 768px) {
    #home h1 {
        font-size: 4rem;
    }

    #home-description {
        font-size: 1.4rem;
    }
}

@media (min-width: 1024px) {
    #home h1 {
        font-size: 7rem;
    }

    #home-description {
        font-size: 2rem;
    }
}

/* Keyframes for animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* About Section Styling */
.about-section {
    position: relative;
    padding: 4rem 1rem;
}

.about-section .container {
    z-index: 1;
}

.about-section .text-center {
    margin-bottom: 2rem;
}

.about-section h1, .about-section p {
    color: #000;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7);
}

/* Header layout improvements */
.about-section .text-center {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 0.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .about-section {
        padding: 2rem 1rem;
    }

    .about-section h1 {
        font-size: 2.5rem;
    }
#about div {
    max-width: 85vw;
}
    #about div h2 {
        font-size: 1.3rem;
    }
    #about div p {
        font-size: 1rem;
    }
    .about-section p {
        font-size: 1rem;
    }
}
#home h1 {
    font-size: 3rem;
}
#grow-title{
    margin-top: 25px;
    font-size:2.5em;
}

#grow-title-with{
    font-size: 2em;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.75);
    margin-top: 0;
    margin-bottom:30vh;
  animation: fadeInDown 1s ease-out;
    line-height: 1em;
}

#home-description {
    font-size: 1.2em;
    margin-bottom: 60px;
}

/* Servces */
#services div {
    flex-direction: column;
}
#services-list div p {
    display: none;
}
#services-list div h3 {
    text-align:center;
}


/* Testimonials*/
#testimonials div {
    flex-direction: column;
}
.testimonial {
    margin-right:0!important;
    margin-left:0!important;
    margin: 1em!important;
}

/* Navigation bullet styling */
.bullet-nav ul {
    display: block;
    text-align: right;
    padding: 0;
    margin: 0;
}

.bullet-nav ul li {
    display: block;
    margin: 10px 0;
}

.bullet-nav ul li a {
    display: inline-block;
    width: 15px;
    height: 15px;
    background-color: #333;
    border-radius: 50%;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.bullet-nav ul li a.active {
    width: 18px;
    height: 18px;
    background-color: DarkRed;
}

.bullet-nav {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

/* Keyframes for animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-in {
    animation: slideInFromRight 2s ease-out forwards;
}

.active #about-image {
    animation: fadeIn 0.5s ease-out 1.8s forwards;
}

#about-image {
    opacity: 0;
}

/* Prevent body scrolling */
.no-scroll {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

/* Popup styling */
.pops {
    display: none;
    opacity: 0;
    transition: opacity 0.5s, visibility 0.5s; /* Ensure consistent transition for opacity and visibility */
}

#about-popup {
    display:none;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    max-height: 100vh; /* Ensure the popup doesn't exceed viewport height */
}

#about-popup.open {
    display: flex;
    opacity: 1;
}

/* Fade-in and fade-out classes */
.fade-in {
    opacity: 1 !important;
    visibility: visible !important;
}

.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
}

.visible {
    display: flex !important;
}

/* Control visibility of navigation bullets */
.hide-nav-bullets .bullet-nav {
    display: none;
}

/* Hide scrollbar but allow scrolling */
#about-popup ::-webkit-scrollbar {
    width: 0;
    background: transparent; /* Optional: just to ensure the scrollbar is hidden */
}

#about-popup {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
/* Gallery Popup Styling */
#gallery-popup ::-webkit-scrollbar {
    width: 0;
    background: transparent; /* Optional: just to ensure the scrollbar is hidden */
}
#gallery-popup {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
#gallery-popup {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 50;
    transition: opacity 0.3s ease;
}

#gallery-popup.open {
    display: flex;
    opacity: 1;
}

#gallery-popup .popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    text-align: center;
}

#gallery-popup img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

#gallery-popup .close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}
/* Artwork Flip Card Styling */
.artwork {
    perspective: 1000px;
    display: flex;
    justify-content: center;
}

.artwork-inner {
    position: relative;
    width: 100%;
    max-width: 350px; /* Increased max-width for larger cards */
    height: 450px; /* Increased height for larger cards */
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.artwork:hover .artwork-inner {
    transform: rotateY(180deg);
}

.artwork-front, .artwork-back {
    position: absolute;
    width: calc(100% - 20px); /* Adjust width to account for padding */
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    left: 10px; /* Center the element by moving it 10px from the left */
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box; /* Ensure padding is included in the width calculation */
}


.artwork-front {
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.artwork-back {
    background-color: #fff;
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.artwork img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.artwork h3, .artwork p {
    margin: 10px 0;
}

/* Responsive Grid Centering */
.gridy {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.gridy > .artwork {
    flex: 1 0 31%; /* Adjusted to allow three cards per row on larger screens */
    min-width: 300px; /* Increased min-width for larger cards */
    max-width: 350px; /* Increased max-width for larger cards */
}
/* Optional additional styles */
@media (min-width: 1024px) {
    #exhibitions img {
        max-width: 100%;
        height: auto;
    }
}

#exhibitions .text-center h2 {
    margin-bottom: 2rem;
}

#exhibitions .grid img {
    width: 100%;
    height: auto;
}
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
