body {
  font-family: 'Montserrat', sans-serif;
}


.transition-all {
transition: all 0.3s ease;
}

/* Section Animation styles */
.section-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s ease-out;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}
.delay-2 {
    transition-delay: 0.2s;
}
.delay-3 {
    transition-delay: 0.3s;
}
.delay-4 {
    transition-delay: 0.4s;
}

.flip-card {
    perspective: 1000px;
    height: 500px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    transform: rotateY(180deg);
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(0deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 0.5rem;
}

.flip-card-front {
    transform: rotateY(0deg);
}

.flip-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 0.5rem;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Update the relay section styles */
#relay {
    position: relative;
    overflow: hidden;
    min-height: 900px; /* Change from min-h-screen to auto */
    height: auto;
    padding-bottom: 2rem; /* Add some padding at the bottom */
}

/* Update the absolute positioned container inside relay */
#relay > .absolute {
    position: relative; /* Change from absolute to relative */
    height: auto; /* Let it adjust to content */
    margin-bottom: 0; /* Remove the mb-16 that was set inline */
}

/* Carousel Responsive Styles */
#carouselExample {
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
}

#carouselExample .carousel-item {     /* instead of 100vh */
    min-height: 700px;
    height: auto;
    position: relative;
    padding-bottom: 2rem;
}

#carouselExample .carousel-item img {
    width: auto;
    height: 80%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-overlay-content {
    position: relative; /* Changed from absolute */
    padding: 2rem;
    color: white;
    text-align: left;
    min-height: 400px; /* Match carousel-item min-height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Keep all your existing responsive text styles */
.carousel-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: bold;
}

.carousel-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.carousel-highlight {
    font-size: 1.3rem;
    font-weight: bold;
    color: #FACC15; /* yellow-400 */
    margin-bottom: 1.5rem;
}

/* Button Container */
.carousel-button-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.carousel-button-container .btn {
    min-width: 120px;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .carousel-title {
        font-size: 3rem;
    }
    
    .carousel-text {
        font-size: 1.25rem;
    }

    .carousel-highlight {
        font-size: 1.5rem;
    }
    
    .carousel-overlay-content {
        padding: 3rem;
    }
}

@media (min-width: 1024px) {
    .carousel-overlay-content {
        padding: 3.5rem;
    }
    
    .carousel-title {
        font-size: 3.5rem;
    }
    #carouselExample .carousel-item img {
        width: auto;
        height: 100%;
    }
}

#carouselExample .carousel-control-prev,
#carouselExample .carousel-control-next {
    width: fit-content;
    z-index: 10;
}

#carouselExample .carousel-control-prev {
    left: 20px; /* Minimal left margin */
}

#carouselExample .carousel-control-next {
    right: 20px; /* Minimal right margin */
}

/* Optional: Customize arrow icon sizes */
#carouselExample .carousel-control-prev-icon,
#carouselExample .carousel-control-next-icon {
    background-size: 30px 30px; /* Resize arrows */
}

.carousel-button-container .btn:hover {
    background-color: #facc15 !important; /* yellow-400 */
    color: #000 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Specific styles for the yellow buttons */
.carousel-button-container .btn.bg-yellow-400:hover {
    background-color: #b98b00 !important; 
}

/* Specific styles for the gray buttons */
.carousel-button-container .btn.bg-gray-800:hover {
    background-color: #090d12 !important;
    color: #facc15 !important; /* yellow-400 */
}


    /* Ensure text doesn't collide with arrows */
.carousel-item .text-left {
        padding-left: 40px;
        padding-right: 40px;
    }

/* Responsive adjustment for smaller screens */
@media (max-width: 768px) {
    .carousel-item .text-left {
        padding-left: 20px;
        padding-right: 20px;
    }
}
/* Update the overlay background */
.carousel-overlay-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Darker for better readability */
    z-index: -1;
}

/* Adjust button container to stay at bottom */
.carousel-button-container {
    margin-top: auto; /* Pushes buttons to bottom */
    padding-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #carouselExample .carousel-item {
        min-height: 100vh; /* Slightly taller on mobile */
    }
    
    .carousel-overlay-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    #carouselExample .carousel-item {
        min-height: 100vh; /* Even taller for small mobile */
    }
    
    .carousel-overlay-content {
        padding: 1rem;
    }
    
    .carousel-title {
        font-size: 1.5rem;
    }
    
    .carousel-text {
        font-size: 1rem;
    }
}

/* Scroll down button animation */
.scroll-down-btn {
    position: static;
    background: rgb(85, 85, 85);
    color: #1f2937;
    border-radius: 50px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: pulse 1.2s infinite;
    z-index: 10;
    transition: all 0.3s ease;
}

.scroll-down-btn:hover {
    transform: translateY(-10%) scale(1.05);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}


/* Custom checkbox styling */
.custom-checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background-color: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.custom-checkbox:checked {
    background-color: #f59e0b;
    border-color: #f59e0b;
}

.custom-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-label span {
    margin-left: 8px;
}

#privacyPolicyCheckbox:invalid {
    outline: 2px solid red;
}