/* Custom styles based on the style guide */
body {
    font-family: 'Nunito', sans-serif;
    color: #1f2937; /* Text Dark */
    background-color: white;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
    font-weight: 800;
}

/* Re-defining some Tailwind colors as CSS variables for easier use in custom CS
S if needed */
:root {
    --color-primary: #8b5cf6;
    --color-background: #f7f3ef;
    --color-text-dark: #1f2937;
    --color-text-medium: #6b7280;
}

.bg-primary { background-color: var(--color-primary); }
.text-primary { color: var(--color-primary); }
.bg-background { background-color: var(--color-background); }
.text-dark { color: var(--color-text-dark); }
.text-medium { color: var(--color-text-medium); }

.gradient-bg {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Animation for elements on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.text-3d {
    text-shadow:
        1px 1px 0px rgba(0,0,0,0.4),
        2px 2px 0px rgba(0,0,0,0.3),
        3px 3px 0px rgba(0,0,0,0.2),
        4px 4px 5px rgba(0,0,0,0.2);
}

/* Carousel Styles */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.carousel-track {
    animation: scroll 60s linear infinite;
}
.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

/* Flip Card Styles */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 14rem; /* h-56 */
    perspective: 1000px;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.7s;
    transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem; /* rounded-xl */
}
.flip-card-front {
    background-color: white;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.
1); /* shadow-lg */
}
.flip-card-back {
    background-color: var(--color-primary);
    color: white;
    transform: rotateY(180deg);
    padding: 1.25rem; /* p-5 */
    font-size: 0.875rem; /* text-sm */
    line-height: 1.25rem;
}

/* Modal Styles */
.modal-overlay {
    transition: opacity 0.3s ease;
}
.modal-panel {
    transition: transform 0.3s ease, opacity 0.3s ease;
}