/* Custom Stylesheet for Dexterity About 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;
}

/* Class to prevent scrolling when nav is open */
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 (for hero) */
@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 8s infinite ease-in-out;
}
.animation-delay-2000 { animation-delay: 2s; }


/* =================================================================== */
/* Header Menu Styles (Consistent with homepage)                       */
/* =================================================================== */

.hamburger {
    background: transparent;
    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 0.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 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.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 0.3s, transform 0.5s, opacity 0.5s;
}
.fullscreen-nav.open .nav-link {
    opacity: 1;
    transform: translateY(0);
}
.fullscreen-nav.open .nav-link:nth-child(1) { transition-delay: 0.2s; }
.fullscreen-nav.open .nav-link:nth-child(2) { transition-delay: 0.3s; }
.fullscreen-nav.open .nav-link:nth-child(3) { transition-delay: 0.4s; }
.fullscreen-nav.open .nav-join-button { transition-delay: 0.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 0.3s, background-color 0.3s, opacity 0.5s;
}
.fullscreen-nav.open .nav-join-button {
    opacity: 1;
    transform: translateY(0);
}
.fullscreen-nav .nav-join-button:hover { transform: scale(1.05); }


/* =================================================================== */
/* START: Team Section Styles                                          */
/* =================================================================== */

/* The main container for a team member card */
.team-card {
    display: block; /* Makes the whole card a clickable link */
    text-decoration: none;
    color: var(--dx-dark);
    transition: transform 0.3s ease;
}

/* Hover effect for the entire card */
.team-card:hover {
    transform: translateY(-10px); /* Lifts the card up slightly */
}

/* A wrapper to help with the image's squircle shape and hover effect */
.team-card-image-wrapper {
    position: relative;
    padding-top: 100%; /* Creates a perfect square aspect ratio */
    border-radius: 35%; /* The key to the squircle shape */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover effect on the image wrapper */
.team-card:hover .team-card-image-wrapper {
    transform: scale(1.05) rotate(3deg); /* Slightly enlarges and tilts on hover */
}

/* The team member's image */
.team-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the space without distortion */
    border-radius: 35%; /* Matches the wrapper's shape */
    border: 6px solid; /* Creates the colored border */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
