/* Custom Stylesheet for Dexterity Community Page
*/

/* CSS Variables (Custom Properties) */
:root {
    --dx-blue: #00A9E2;
    --dx-green: #6CC24A;
    --dx-dark: #1A1A1A;
    --dx-light: #ffffff;
    --dx-bg: #F8F9FA;
}

/* Global Body Styles */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dx-bg);
    color: var(--dx-dark);
    overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

/* Custom Font Application */
h1, h2, h3, .font-fredoka { font-family: 'Fredoka', sans-serif; }

/* Gradient Text Utility */
.gradient-text {
    background: linear-gradient(90deg, var(--dx-blue), var(--dx-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Scroll-triggered Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Background Blob Animations */
@keyframes blob-animation {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}
.animate-blob { animation: blob-animation-subtle 10s infinite ease-in-out; }
.animation-delay-2000 { animation-delay: 2s; }

/* Header Menu Styles (Consistent) */
.hamburger{background:0 0;border:none;cursor:pointer;display:flex;flex-direction:column;justify-content:space-around;width:32px;height:32px;padding:0}.hamburger .line{width:32px;height:3px;background:var(--dx-dark);border-radius:3px;transition:all .3s ease-in-out}.hamburger.active .line-1{transform:rotate(45deg) translate(8px,8px)}.hamburger.active .line-2{opacity:0}.hamburger.active .line-3{transform:rotate(-45deg) translate(7px,-7px)}.fullscreen-nav{position:fixed;top:0;left:0;width:100%;height:100%;background:linear-gradient(135deg,var(--dx-blue),var(--dx-green));z-index:40;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;transform:scale(1.1);transition:opacity .5s ease,transform .5s cubic-bezier(.16,1,.3,1)}.fullscreen-nav.open{opacity:1;pointer-events:auto;transform:scale(1)}.fullscreen-nav .nav-content{display:flex;flex-direction:column;align-items:center;gap:2rem;text-align:center}.fullscreen-nav .nav-link{font-family:'Fredoka',sans-serif;font-size:2.5rem;color:var(--dx-light);text-decoration:none;font-weight:600;opacity:0;transform:translateY(20px);transition:color .3s,transform .5s,opacity .5s}.fullscreen-nav.open .nav-link{opacity:1;transform:translateY(0)}.fullscreen-nav.open .nav-link:nth-child(1){transition-delay:.2s}.fullscreen-nav.open .nav-link:nth-child(2){transition-delay:.3s}.fullscreen-nav.open .nav-link:nth-child(3){transition-delay:.4s}.fullscreen-nav.open .nav-join-button{transition-delay:.5s}.fullscreen-nav .nav-link:hover{transform:scale(1.1)}.fullscreen-nav .nav-join-button{font-family:'Fredoka',sans-serif;font-size:1.25rem;font-weight:600;color:var(--dx-blue);background-color:var(--dx-light);padding:1rem 2.5rem;border-radius:9999px;margin-top:1rem;text-decoration:none;opacity:0;transform:translateY(20px);transition:transform .3s,background-color .3s,opacity .5s}.fullscreen-nav.open .nav-join-button{opacity:1;transform:translateY(0)}.fullscreen-nav .nav-join-button:hover{transform:scale(1.05)}

/* =================================================================== */
/* Spotlight Carousel Styles                                           */
/* =================================================================== */
.spotlight-swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.spotlight-slide {
    background-position: center;
    background-size: cover;
    width: 60%; /* Adjust width for desktop view */
    max-width: 600px;
    aspect-ratio: 16 / 9; /* Landscape mode */
    border-radius: 24px; /* Curved border */
    overflow: hidden;
    border: 6px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.5s, filter 0.5s;
}

.spotlight-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Styles for slides that are NOT active */
.spotlight-swiper .swiper-slide:not(.swiper-slide-active) {
    filter: blur(4px) grayscale(50%);
    transform: scale(0.85);
}

/* =================================================================== */
/* Subgroups Section Styles                                            */
/* =================================================================== */
.subgroup-card {
    background: #ffffff;
    color: var(--dx-dark);
    font-family: 'Fredoka', sans-serif;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px; /* Capsule shape */
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: transform 0.3s ease;
    cursor: default;
}

.subgroup-card:hover {
    transform: translateY(-5px);
}

/* Gradient Shadow Effect */
.subgroup-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--dx-blue), var(--dx-green));
    filter: blur(15px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.subgroup-card:hover::after {
    opacity: 0.7;
}

/* =================================================================== */
/* Other Activities Section Styles                                     */
/* =================================================================== */
.activity-card {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.activity-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
}


/* =================================================================== */
/* Mute Button Styles                                                  */
/* =================================================================== */
.mute-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dx-blue), var(--dx-green));
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
    transition: transform 0.3s ease;
}

.mute-button:hover {
    transform: scale(1.1);
}
