/**
 * DiabloDesign Team Module - Styles
 * @package     DiabloDesign.Module
 * @subpackage  mod_dd_team
 * @author      Paweł Kawka - DiabloDesign
 * @copyright   (C) 2025 DiabloDesign. All rights reserved.
 * @license     GNU General Public License version 2 or later
 */

/* =====================================================
   CSS VARIABLES (defaults - overridden by inline styles)
   ===================================================== */
.dd-team {
    --dd-team-primary: #2563eb;
    --dd-team-secondary: #1e40af;
    --dd-team-card-bg: #ffffff;
    --dd-team-name: #1f2937;
    --dd-team-position: #2563eb;
    --dd-team-bio: #6b7280;
    --dd-team-social: #9ca3af;
    --dd-team-social-hover: #2563eb;
    --dd-team-button-bg: #2563eb;
    --dd-team-button-text: #ffffff;
    --dd-team-columns: 4;
    --dd-team-gap: 20px;
    --dd-team-image-size: 150px;
    --dd-team-animation-delay: 100ms;
    --dd-team-transition: 0.3s ease;
}

/* =====================================================
   BASE CONTAINER
   ===================================================== */
.dd-team {
    width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
}

.dd-team__title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dd-team-name);
    margin-bottom: 2.5rem;
    position: relative;
}

.dd-team__title--left {
    text-align: left;
}

.dd-team__title--center {
    text-align: center;
}

.dd-team__title--right {
    text-align: right;
}

.dd-team__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--dd-team-primary), var(--dd-team-secondary));
    border-radius: 2px;
}

.dd-team__title--left::after {
    left: 0;
    transform: none;
}

.dd-team__title--right::after {
    left: auto;
    right: 0;
    transform: none;
}

/* Title Sizes */
.dd-team__title--size-small {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.dd-team__title--size-medium {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.dd-team__title--size-large {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
}

.dd-team__title--size-xlarge {
    font-size: 3.5rem;
    margin-bottom: 3rem;
}

/* Title Styles */
.dd-team__title--style-default {
    /* Default style - no changes */
}

.dd-team__title--style-gradient {
    background: linear-gradient(135deg, var(--dd-team-primary), var(--dd-team-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dd-team__title--style-gradient::after {
    display: none;
}

.dd-team__title--style-shadow {
    text-shadow: 
        3px 3px 0 var(--dd-team-primary),
        6px 6px 0 rgba(0, 0, 0, 0.1);
}

.dd-team__title--style-outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--dd-team-primary);
    text-stroke: 2px var(--dd-team-primary);
}

.dd-team__title--style-outline::after {
    display: none;
}

.dd-team__title--style-neon {
    color: var(--dd-team-primary);
    text-shadow: 
        0 0 5px var(--dd-team-primary),
        0 0 10px var(--dd-team-primary),
        0 0 20px var(--dd-team-primary),
        0 0 40px var(--dd-team-secondary);
    animation: dd-title-neon-pulse 2s ease-in-out infinite alternate;
}

@keyframes dd-title-neon-pulse {
    from {
        text-shadow: 
            0 0 5px var(--dd-team-primary),
            0 0 10px var(--dd-team-primary),
            0 0 20px var(--dd-team-primary),
            0 0 40px var(--dd-team-secondary);
    }
    to {
        text-shadow: 
            0 0 10px var(--dd-team-primary),
            0 0 20px var(--dd-team-primary),
            0 0 30px var(--dd-team-primary),
            0 0 60px var(--dd-team-secondary);
    }
}

.dd-team__title--style-neon::after {
    display: none;
}

.dd-team__title--style-underline {
    display: block;
    width: fit-content;
    max-width: 100%;
    position: relative;
}

.dd-team__title--style-underline::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--dd-team-primary), var(--dd-team-secondary));
    animation: dd-title-underline-grow 1s ease-out forwards;
    border-radius: 2px;
    transform: none;
}

.dd-team__title--style-underline.dd-team__title--center::after {
    left: 50%;
    transform: translateX(-50%);
}

.dd-team__title--style-underline.dd-team__title--right::after {
    left: auto;
    right: 0;
}

.dd-team__title--style-underline.dd-team__title--center {
    margin-left: auto;
    margin-right: auto;
}

.dd-team__title--style-underline.dd-team__title--right {
    margin-left: auto;
    margin-right: 0;
}

@keyframes dd-title-underline-grow {
    to {
        width: 100%;
    }
}

.dd-team__title--style-elegant {
    font-style: italic;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dd-team__title--style-elegant::before,
.dd-team__title--style-elegant::after {
    content: '—';
    display: inline-block;
    margin: 0 0.5em;
    color: var(--dd-team-primary);
    vertical-align: middle;
}

.dd-team__title--style-elegant::after {
    position: static;
    width: auto;
    height: auto;
    background: none;
    transform: none;
}

/* =====================================================
   GRID LAYOUT
   ===================================================== */
.dd-team__grid {
    display: grid;
    grid-template-columns: repeat(var(--dd-team-columns), 1fr);
    gap: var(--dd-team-gap);
}

@media (max-width: 1200px) {
    .dd-team__grid {
        grid-template-columns: repeat(min(var(--dd-team-columns), 3), 1fr);
    }
}

@media (max-width: 992px) {
    .dd-team__grid {
        grid-template-columns: repeat(min(var(--dd-team-columns), 2), 1fr);
    }
}

@media (max-width: 576px) {
    .dd-team__grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   BASE CARD STYLES
   ===================================================== */
.dd-team-card {
    position: relative;
    opacity: 0;
    animation: ddTeamFadeIn 0.6s ease forwards;
    animation-delay: var(--dd-animation-delay, 0ms);
}

.dd-team-card__inner {
    background: var(--dd-team-card-bg);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all var(--dd-team-transition);
}

/* Image Wrapper */
.dd-team-card__image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 1.5rem;
    overflow: hidden;
}

.dd-team-card__image {
    width: var(--dd-team-image-size);
    height: var(--dd-team-image-size);
    object-fit: cover;
    transition: transform var(--dd-team-transition);
}

/* Image Shapes */
.dd-team--image-circle .dd-team-card__image {
    border-radius: 50%;
}

.dd-team--image-rounded .dd-team-card__image {
    border-radius: 12px;
}

.dd-team--image-square .dd-team-card__image {
    border-radius: 0;
}

/* Content */
.dd-team-card__content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dd-team-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dd-team-name);
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.dd-team-card__position {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dd-team-position);
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dd-team-card__bio {
    font-size: 0.9rem;
    color: var(--dd-team-bio);
    line-height: 1.6;
    margin: 0 0 1rem;
    flex: 1;
}

/* Text Alignment */
.dd-team--align-center .dd-team-card__content {
    text-align: center;
    align-items: center;
}

.dd-team--align-left .dd-team-card__content {
    text-align: left;
    align-items: flex-start;
}

.dd-team--align-right .dd-team-card__content {
    text-align: right;
    align-items: flex-end;
}

/* Social Links */
.dd-team-card__social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.dd-team--align-center .dd-team-card__social {
    justify-content: center;
}

.dd-team-card__social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dd-team-social);
    background: transparent;
    border-radius: 50%;
    font-size: 1rem;
    transition: all var(--dd-team-transition);
    text-decoration: none;
}

.dd-team-card__social-link:hover {
    color: var(--dd-team-social-hover);
    background: rgba(var(--dd-team-primary-rgb, 37, 99, 235), 0.1);
    transform: translateY(-2px);
}

/* Button */
.dd-team-card__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--dd-team-button-bg);
    color: var(--dd-team-button-text);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--dd-team-transition);
    margin-top: auto;
}

.dd-team-card__button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* =====================================================
   SHADOWS
   ===================================================== */
.dd-team-card--shadow-subtle .dd-team-card__inner {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dd-team-card--shadow-medium .dd-team-card__inner {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.dd-team-card--shadow-strong .dd-team-card__inner {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* =====================================================
   HOVER ANIMATIONS
   ===================================================== */

/* Zoom */
.dd-team-card--hover-zoom:hover .dd-team-card__image {
    transform: scale(1.1);
}

/* Lift */
.dd-team-card--hover-lift:hover .dd-team-card__inner {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Fade */
.dd-team-card--hover-fade .dd-team-card__inner {
    opacity: 0.9;
}

.dd-team-card--hover-fade:hover .dd-team-card__inner {
    opacity: 1;
}

/* Shine */
.dd-team-card--hover-shine .dd-team-card__inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
    z-index: 10;
    pointer-events: none;
}

.dd-team-card--hover-shine:hover .dd-team-card__inner::before {
    left: 150%;
}

/* Border Glow */
.dd-team-card--hover-border-glow .dd-team-card__inner {
    border: 2px solid transparent;
}

.dd-team-card--hover-border-glow:hover .dd-team-card__inner {
    border-color: var(--dd-team-primary);
    box-shadow: 0 0 20px rgba(var(--dd-team-primary-rgb, 37, 99, 235), 0.3);
}

/* Flip (simple Y-axis rotation) */
.dd-team-card--hover-flip {
    perspective: 1000px;
}

.dd-team-card--hover-flip .dd-team-card__inner {
    transform-style: preserve-3d;
}

.dd-team-card--hover-flip:hover .dd-team-card__inner {
    transform: rotateY(10deg) translateY(-5px);
}

/* Slide Up */
.dd-team-card--hover-slide-up .dd-team-card__content {
    transform: translateY(10px);
    opacity: 0.8;
    transition: all var(--dd-team-transition);
}

.dd-team-card--hover-slide-up:hover .dd-team-card__content {
    transform: translateY(0);
    opacity: 1;
}

/* =====================================================
   ENTRANCE ANIMATIONS
   ===================================================== */
@keyframes ddTeamFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes ddTeamFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ddTeamFadeDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ddTeamScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes ddTeamSlideLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ddTeamSlideRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dd-team--entrance-fade .dd-team-card {
    animation-name: ddTeamFadeIn;
}

.dd-team--entrance-fade-up .dd-team-card {
    animation-name: ddTeamFadeUp;
}

.dd-team--entrance-fade-down .dd-team-card {
    animation-name: ddTeamFadeDown;
}

.dd-team--entrance-scale .dd-team-card {
    animation-name: ddTeamScale;
}

.dd-team--entrance-slide-left .dd-team-card {
    animation-name: ddTeamSlideLeft;
}

.dd-team--entrance-slide-right .dd-team-card {
    animation-name: ddTeamSlideRight;
}

/* =====================================================
   CARD STYLE: CLASSIC
   ===================================================== */
.dd-team-card--classic .dd-team-card__inner {
    /* Default styling applies */
}

/* =====================================================
   CARD STYLE: HORIZONTAL
   ===================================================== */
.dd-team-card--horizontal .dd-team-card__inner--horizontal {
    flex-direction: row;
    align-items: center;
}

.dd-team-card--horizontal .dd-team-card__image-wrapper {
    padding: 1.5rem;
    flex-shrink: 0;
}

.dd-team-card--horizontal .dd-team-card__footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
}

@media (max-width: 768px) {
    .dd-team-card--horizontal .dd-team-card__inner--horizontal {
        flex-direction: column;
    }
}

/* =====================================================
   CARD STYLE: OVERLAY
   ===================================================== */
.dd-team-card--overlay .dd-team-card__inner--overlay {
    position: relative;
    min-height: 350px;
    padding: 0;
}

.dd-team-card--overlay .dd-team-card__image-wrapper--overlay {
    position: absolute;
    inset: 0;
    padding: 0;
}

.dd-team-card--overlay .dd-team-card__image--cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.dd-team-card--overlay .dd-team-card__overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
}

.dd-team-card--overlay .dd-team-card__content-visible {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
    transition: opacity var(--dd-team-transition);
}

.dd-team-card--overlay .dd-team-card__content-visible .dd-team-card__name,
.dd-team-card--overlay .dd-team-card__content-visible .dd-team-card__position {
    color: #ffffff;
}

.dd-team-card--overlay .dd-team-card__content-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--dd-team-primary), var(--dd-team-secondary));
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--dd-team-transition);
    z-index: 3;
}

.dd-team-card--overlay .dd-team-card__content-overlay .dd-team-card__name,
.dd-team-card--overlay .dd-team-card__content-overlay .dd-team-card__position,
.dd-team-card--overlay .dd-team-card__content-overlay .dd-team-card__bio {
    color: #ffffff;
}

.dd-team-card--overlay .dd-team-card__content-overlay .dd-team-card__social-link {
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dd-team-card--overlay .dd-team-card__content-overlay .dd-team-card__social-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.dd-team-card--overlay .dd-team-card__button--light {
    background: #ffffff;
    color: var(--dd-team-primary);
}

.dd-team-card--overlay:hover .dd-team-card__content-visible {
    opacity: 0;
}

.dd-team-card--overlay:hover .dd-team-card__content-overlay {
    opacity: 1;
}

/* =====================================================
   CARD STYLE: MINIMAL
   ===================================================== */
.dd-team-card--minimal .dd-team-card__inner--minimal {
    background: transparent;
    box-shadow: none;
    text-align: center;
}

.dd-team-card--minimal .dd-team-card__link-wrapper {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dd-team-card--minimal .dd-team-card__link-wrapper:hover .dd-team-card__name {
    color: var(--dd-team-primary);
}

.dd-team-card--minimal .dd-team-card__social--minimal {
    justify-content: center;
    margin-top: 0.5rem;
}

/* =====================================================
   CARD STYLE: GLASS
   ===================================================== */
.dd-team-card--glass .dd-team-card__inner--glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: visible;
}

.dd-team-card--glass .dd-team-card__glass-bg {
    position: absolute;
    inset: -1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border-radius: 12px;
    z-index: -1;
}

.dd-team-card--glass .dd-team-card__image-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--dd-team-image-size) + 8px);
    height: calc(var(--dd-team-image-size) + 8px);
    transform: translate(-50%, -50%);
    border: 2px solid var(--dd-team-primary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--dd-team-transition);
    pointer-events: none;
}

.dd-team-card--glass:hover .dd-team-card__image-ring {
    opacity: 1;
}

.dd-team-card--glass .dd-team-card__social-link--glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dd-team-card--glass .dd-team-card__social-link--glass:hover {
    background: var(--dd-team-primary);
    color: #ffffff;
    border-color: var(--dd-team-primary);
}

.dd-team-card--glass .dd-team-card__button--glass {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.dd-team-card--glass .dd-team-card__button--glass:hover {
    background: var(--dd-team-primary);
    border-color: var(--dd-team-primary);
}

/* =====================================================
   CARD STYLE: BORDERED
   ===================================================== */
.dd-team-card--bordered .dd-team-card__inner--bordered {
    border: 2px solid #e5e7eb;
    position: relative;
}

.dd-team-card--bordered .dd-team-card__accent-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--dd-team-primary), var(--dd-team-secondary));
}

.dd-team-card--bordered .dd-team-card__position--badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(var(--dd-team-primary-rgb, 37, 99, 235), 0.1);
    color: var(--dd-team-position);
    border-radius: 20px;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.dd-team-card--bordered .dd-team-card__divider {
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    margin: 1rem 0;
}

.dd-team-card--bordered .dd-team-card__social-link--bordered {
    border: 1px solid #e5e7eb;
}

.dd-team-card--bordered .dd-team-card__social-link--bordered:hover {
    border-color: var(--dd-team-primary);
    background: var(--dd-team-primary);
    color: #ffffff;
}

.dd-team-card--bordered .dd-team-card__button--bordered {
    background: transparent;
    color: var(--dd-team-primary);
    border: 2px solid var(--dd-team-primary);
}

.dd-team-card--bordered .dd-team-card__button--bordered:hover {
    background: var(--dd-team-primary);
    color: #ffffff;
}

.dd-team-card--bordered:hover .dd-team-card__inner--bordered {
    border-color: var(--dd-team-primary);
}

/* =====================================================
   SOCIAL POSITION: OVERLAY
   ===================================================== */
.dd-team--social-overlay .dd-team-card__social--overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--dd-team-transition);
}

.dd-team--social-overlay .dd-team-card:hover .dd-team-card__social--overlay {
    opacity: 1;
    transform: translateY(0);
}

.dd-team--social-overlay .dd-team-card__social--overlay .dd-team-card__social-link {
    color: #ffffff;
}

/* =====================================================
   CAROUSEL STYLES
   ===================================================== */
.dd-team--carousel {
    overflow: hidden;
}

.dd-team__carousel {
    position: relative;
    padding: 0 50px;
}

.dd-team__carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.dd-team__carousel-slide {
    flex: 0 0 auto;
    padding: 0 calc(var(--dd-team-gap) / 2);
    box-sizing: border-box;
}

.dd-team__carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--dd-team-card-bg);
    color: var(--dd-team-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all var(--dd-team-transition);
    z-index: 10;
}

.dd-team__carousel-nav:hover {
    background: var(--dd-team-primary);
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.dd-team__carousel-nav--prev {
    left: 0;
}

.dd-team__carousel-nav--next {
    right: 0;
}

.dd-team__carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.dd-team__carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5e7eb;
    border: none;
    cursor: pointer;
    transition: all var(--dd-team-transition);
    padding: 0;
}

.dd-team__carousel-dot:hover,
.dd-team__carousel-dot.active {
    background: var(--dd-team-primary);
    transform: scale(1.2);
}

/* Carousel responsive */
@media (max-width: 768px) {
    .dd-team__carousel {
        padding: 0 40px;
    }
    
    .dd-team__carousel-nav {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .dd-team__carousel {
        padding: 0 30px;
    }
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */
@media (max-width: 768px) {
    .dd-team__title {
        font-size: 2rem;
    }
    
    .dd-team-card__name {
        font-size: 1.1rem;
    }
    
    .dd-team-card__bio {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .dd-team {
        padding: 1rem 0;
    }
    
    .dd-team__title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    .dd-team-card,
    .dd-team-card__inner,
    .dd-team-card__image,
    .dd-team-card__content,
    .dd-team-card__social-link,
    .dd-team-card__button,
    .dd-team__carousel-track {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus styles */
.dd-team-card__social-link:focus,
.dd-team-card__button:focus,
.dd-team__carousel-nav:focus,
.dd-team__carousel-dot:focus {
    outline: 2px solid var(--dd-team-primary);
    outline-offset: 2px;
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
    .dd-team-card__social,
    .dd-team__carousel-nav,
    .dd-team__carousel-dots {
        display: none !important;
    }
    
    .dd-team__grid {
        display: block;
    }
    
    .dd-team-card {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* =====================================================
   CARD STYLE: LAYERED - Stacked cards effect
   ===================================================== */
.dd-team-card--layered {
    perspective: 1000px;
}

.dd-team-card--layered .dd-team-card__inner--layered {
    position: relative;
    width: 300px;
    height: 420px;
    background: var(--dd-team-card-bg);
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: visible;
}

.dd-team-card--layered .dd-team-card__inner--layered::before,
.dd-team-card--layered .dd-team-card__inner--layered::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background: var(--dd-team-card-bg);
    transition: 0.5s;
    z-index: -1;
}

.dd-team-card--layered:hover .dd-team-card__inner--layered::before {
    transform: rotate(20deg);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.dd-team-card--layered:hover .dd-team-card__inner--layered::after {
    transform: rotate(10deg);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

/* Active state (same as hover) */
.dd-team-card--layered.dd-team-card--active .dd-team-card__inner--layered::before {
    transform: rotate(20deg);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.dd-team-card--layered.dd-team-card--active .dd-team-card__inner--layered::after {
    transform: rotate(10deg);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.dd-team-card--layered .dd-team-card__imgbox {
    position: absolute;
    top: 10px;
    left: 10px;
    bottom: 10px;
    right: 10px;
    background: #222;
    transition: 0.5s;
    z-index: 1;
    overflow: hidden;
}

.dd-team-card--layered:hover .dd-team-card__imgbox {
    bottom: 170px;
}

/* Active state imgbox */
.dd-team-card--layered.dd-team-card--active .dd-team-card__imgbox {
    bottom: 170px;
}

.dd-team-card--layered .dd-team-card__imgbox .dd-team-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* Name & Position overlay on image */
.dd-team-card--layered .dd-team-card__overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    text-align: center;
    z-index: 2;
}

.dd-team-card--layered .dd-team-card__overlay-info .dd-team-card__name {
    margin: 0;
    padding: 0;
    font-weight: 600;
    font-size: 18px;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.dd-team-card--layered .dd-team-card__overlay-info .dd-team-card__position {
    font-weight: 500;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    display: block;
    margin-top: 4px;
    text-transform: none;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.dd-team-card--layered .dd-team-card__details {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 15px;
    height: 160px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.dd-team-card--layered:hover .dd-team-card__details {
    opacity: 1;
    transform: translateY(0);
}

/* Active state details */
.dd-team-card--layered.dd-team-card--active .dd-team-card__details {
    opacity: 1;
    transform: translateY(0);
}

.dd-team-card--layered .dd-team-card__bio {
    margin: 0;
    font-size: 12px;
    color: var(--dd-team-bio);
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    text-align: center;
    max-height: 80px;
    overflow: hidden;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.dd-team-card--layered .dd-team-card__bio::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.dd-team-card--layered .dd-team-card__name {
    margin: 0;
    padding: 0;
    font-weight: 600;
    font-size: 18px;
    color: var(--dd-team-name);
    text-transform: uppercase;
    line-height: 1.2;
}

.dd-team-card--layered .dd-team-card__social--layered {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dd-team-card--layered .dd-team-card__social-link {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
}

.dd-team-card--layered .dd-team-card__button--layered {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    border-radius: 4px;
}

/* Responsive for layered */
@media (max-width: 768px) {
    .dd-team-card--layered .dd-team-card__inner--layered {
        width: 260px;
        height: 340px;
    }
    
    .dd-team-card--layered:hover .dd-team-card__imgbox {
        bottom: 110px;
    }
}

/* ============================================
   CARD STYLE: GLASSMORPHISM
   Blur effect with sliding content on hover
   ============================================ */

.dd-team-card--glassmorphism {
    position: relative;
    width: 300px;
    height: 400px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--dd-team-card-bg);
}

.dd-team-card--glassmorphism .dd-team-card__imgbox {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.dd-team-card--glassmorphism .dd-team-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dd-team-card--glassmorphism:hover .dd-team-card__image {
    transform: scale(1.1);
}

.dd-team-card--glassmorphism .dd-team-card__content {
    position: absolute;
    bottom: -250px;
    width: 100%;
    height: 250px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 10;
    flex-direction: column;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 -10px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    transition: bottom 0.5s;
    transition-delay: 0.65s;
    padding: 15px 10px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
}

.dd-team-card--glassmorphism:hover .dd-team-card__content {
    bottom: 0;
    transition-delay: 0s;
}

.dd-team-card--glassmorphism .dd-team-card__contentbox {
    padding: 0 10px;
    width: 100%;
    text-align: center;
}

.dd-team-card--glassmorphism .dd-team-card__name {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    margin: 0 0 5px 0;
    line-height: 1.2em;
    transition: 0.5s;
    opacity: 0;
    transform: translateY(20px);
    transition-delay: 0.5s;
}

.dd-team-card--glassmorphism:hover .dd-team-card__name {
    opacity: 1;
    transform: translateY(0);
}

.dd-team-card--glassmorphism .dd-team-card__position {
    font-size: 11px;
    font-weight: 300;
    text-transform: initial;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
}

.dd-team-card--glassmorphism .dd-team-card__bio {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    opacity: 0;
    transform: translateY(15px);
    transition: 0.5s;
    transition-delay: 0.4s;
}

.dd-team-card--glassmorphism:hover .dd-team-card__bio {
    opacity: 1;
    transform: translateY(0);
}

.dd-team-card--glassmorphism .dd-team-card__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    width: 100%;
}

.dd-team-card--glassmorphism .dd-team-card__sci {
    position: relative;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.dd-team-card--glassmorphism .dd-team-card__sci li {
    transform: translateY(40px);
    transition: 0.5s;
    opacity: 0;
    transition-delay: calc(0.2s * var(--i));
}

.dd-team-card--glassmorphism:hover .dd-team-card__sci li {
    transform: translateY(0);
    opacity: 1;
}

.dd-team-card--glassmorphism .dd-team-card__sci li a {
    color: #fff;
    font-size: 18px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dd-team-card--glassmorphism .dd-team-card__sci li a:hover {
    background: var(--dd-team-primary);
    transform: translateY(-3px);
}

.dd-team-card--glassmorphism .dd-team-card__button--glassmorphism {
    padding: 0.35rem 1rem;
    font-size: 0.7rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease;
    transition-delay: 0.5s;
}

.dd-team-card--glassmorphism:hover .dd-team-card__button--glassmorphism {
    opacity: 1;
    transform: translateY(0);
}

.dd-team-card--glassmorphism .dd-team-card__button--glassmorphism:hover {
    background: var(--dd-team-primary);
    border-color: var(--dd-team-primary);
}

/* Responsive for glassmorphism */
@media (max-width: 768px) {
    .dd-team-card--glassmorphism {
        width: 280px;
        height: 360px;
    }
    
    .dd-team-card--glassmorphism .dd-team-card__content {
        height: 180px;
        bottom: -180px;
    }
    
    .dd-team-card--glassmorphism .dd-team-card__name {
        font-size: 14px;
    }
    
    .dd-team-card--glassmorphism .dd-team-card__bio {
        -webkit-line-clamp: 1;
    }
}

/* ============================================
   CARD STYLE: GRAYSCALE
   B&W image, colorizes on hover, icons on side
   ============================================ */

.dd-team-card--grayscale {
    position: relative;
    width: 300px;
    height: 380px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 70px 63px -60px #000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.dd-team-card--grayscale .dd-team-card__img-holder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.dd-team-card--grayscale .dd-team-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    transform: scale(1);
    transform-origin: center center;
    filter: grayscale(100%);
}

.dd-team-card--grayscale:hover .dd-team-card__image {
    transform: scale(1.2);
    filter: grayscale(0%);
}

.dd-team-card--grayscale .dd-team-card__border {
    position: relative;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 40%, transparent 70%);
    border-radius: 10px;
    border: none;
    transition: border 0.5s ease, background 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    box-sizing: border-box;
}

.dd-team-card--grayscale:hover .dd-team-card__border {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.2) 80%, transparent 100%);
}

.dd-team-card--grayscale .dd-team-card__name {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #fff;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.dd-team-card--grayscale:hover .dd-team-card__name {
    opacity: 1;
}

.dd-team-card--grayscale .dd-team-card__position {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-top: 5px;
    opacity: 0;
    transition: opacity 0.5s ease;
    transition-delay: 0.1s;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.dd-team-card--grayscale:hover .dd-team-card__position {
    opacity: 1;
}

.dd-team-card--grayscale .dd-team-card__bio {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    line-height: 1.4;
    margin: 8px 0 0 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    transition-delay: 0.15s;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    max-width: 70%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.dd-team-card--grayscale:hover .dd-team-card__bio {
    opacity: 1;
}

.dd-team-card--grayscale .dd-team-card__icons {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.dd-team-card--grayscale .dd-team-card__social-link {
    color: #fff;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.dd-team-card--grayscale .dd-team-card__social-link:nth-child(1) { transition-delay: 0.1s; }
.dd-team-card--grayscale .dd-team-card__social-link:nth-child(2) { transition-delay: 0.2s; }
.dd-team-card--grayscale .dd-team-card__social-link:nth-child(3) { transition-delay: 0.3s; }
.dd-team-card--grayscale .dd-team-card__social-link:nth-child(4) { transition-delay: 0.4s; }
.dd-team-card--grayscale .dd-team-card__social-link:nth-child(5) { transition-delay: 0.5s; }

.dd-team-card--grayscale:hover .dd-team-card__social-link {
    opacity: 1;
}

.dd-team-card--grayscale .dd-team-card__social-link:hover {
    transform: scale(1.3);
    color: var(--dd-team-primary);
}

.dd-team-card--grayscale .dd-team-card__button--grayscale {
    display: inline-block;
    margin-top: 10px;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transition: all 0.5s ease;
    transition-delay: 0.2s;
    width: fit-content;
}

.dd-team-card--grayscale:hover .dd-team-card__button--grayscale {
    opacity: 1;
}

.dd-team-card--grayscale .dd-team-card__button--grayscale:hover {
    background: var(--dd-team-primary);
    border-color: var(--dd-team-primary);
}

/* Responsive for grayscale */
@media (max-width: 768px) {
    .dd-team-card--grayscale {
        width: 280px;
        height: 340px;
    }
    
    .dd-team-card--grayscale .dd-team-card__name {
        font-size: 18px;
    }
    
    .dd-team-card--grayscale .dd-team-card__icons {
        gap: 10px;
    }
    
    .dd-team-card--grayscale .dd-team-card__social-link {
        font-size: 16px;
    }
}

/* ============================================
   CARD STYLE: NEON
   Skewed gradient background with glass effect
   ============================================ */

.dd-team-card--neon {
    position: relative;
    width: 320px;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 30px;
    transition: 0.5s;
}

.dd-team-card--neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    width: 50%;
    height: 100%;
    background: linear-gradient(315deg, #ffbc00, #ff0058);
    border-radius: 8px;
    transform: skewX(15deg);
    transition: 0.5s;
}

.dd-team-card--neon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    width: 50%;
    height: 100%;
    background: linear-gradient(315deg, #ffbc00, #ff0058);
    border-radius: 8px;
    transform: skewX(15deg);
    transition: 0.5s;
    filter: blur(30px);
}

/* Different colors for each card */
.dd-team-card--neon:nth-child(1)::before,
.dd-team-card--neon:nth-child(1)::after {
    background: linear-gradient(315deg, #ffbc00, #ff0058);
}

.dd-team-card--neon:nth-child(2)::before,
.dd-team-card--neon:nth-child(2)::after {
    background: linear-gradient(315deg, #03a9f4, #ff0058);
}

.dd-team-card--neon:nth-child(3)::before,
.dd-team-card--neon:nth-child(3)::after {
    background: linear-gradient(315deg, #4dff03, #00d0ff);
}

.dd-team-card--neon:nth-child(4)::before,
.dd-team-card--neon:nth-child(4)::after {
    background: linear-gradient(315deg, #ff6b6b, #feca57);
}

.dd-team-card--neon:nth-child(5)::before,
.dd-team-card--neon:nth-child(5)::after {
    background: linear-gradient(315deg, #a55eea, #45aaf2);
}

.dd-team-card--neon:nth-child(6)::before,
.dd-team-card--neon:nth-child(6)::after {
    background: linear-gradient(315deg, #26de81, #fd79a8);
}

.dd-team-card--neon:hover::before,
.dd-team-card--neon:hover::after {
    transform: skewX(0deg);
    left: 20px;
    width: calc(100% - 90px);
}

/* Floating glass elements */
.dd-team-card--neon > span {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    pointer-events: none;
}

.dd-team-card--neon > span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: 0.1s;
    animation: dd-neon-float 2s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.dd-team-card--neon:hover > span::before {
    top: -50px;
    left: 50px;
    width: 100px;
    height: 100px;
    opacity: 1;
}

.dd-team-card--neon > span::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: 0.5s;
    animation: dd-neon-float 2s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    animation-delay: -1s;
}

.dd-team-card--neon:hover > span::after {
    bottom: -50px;
    right: 50px;
    width: 100px;
    height: 100px;
    opacity: 1;
}

@keyframes dd-neon-float {
    0%, 100% {
        transform: translateY(10px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Content */
.dd-team-card--neon .dd-team-card__content {
    position: relative;
    left: 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1;
    transition: 0.5s;
    color: #fff;
    text-align: center;
    width: 85%;
    max-height: 380px;
    overflow: hidden;
    box-sizing: border-box;
}

.dd-team-card--neon:hover .dd-team-card__content {
    left: -25px;
    padding: 25px 20px;
}

/* Image */
.dd-team-card--neon .dd-team-card__image-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: 0.5s;
    flex-shrink: 0;
    position: relative;
}

.dd-team-card--neon:hover .dd-team-card__image-wrapper {
    width: 100px;
    height: 100px;
    border-color: rgba(255, 255, 255, 0.6);
}

.dd-team-card--neon .dd-team-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.dd-team-card--neon .dd-team-card__name {
    font-size: 1.5em;
    color: #fff;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.dd-team-card--neon .dd-team-card__position {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 10px;
}

.dd-team-card--neon .dd-team-card__bio {
    font-size: 0.85em;
    margin: 0 0 10px 0;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    max-height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    box-sizing: border-box;
}

.dd-team-card--neon .dd-team-card__social--neon {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.dd-team-card--neon .dd-team-card__social-link {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    transition: 0.3s;
}

.dd-team-card--neon .dd-team-card__social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.dd-team-card--neon .dd-team-card__button--neon {
    display: inline-block;
    font-size: 0.95em;
    color: #111;
    background: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 10px;
    transition: 0.3s;
}

.dd-team-card--neon .dd-team-card__button--neon:hover {
    background: var(--dd-team-primary, #ffcf4d);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive for neon */
@media (max-width: 768px) {
    .dd-team-card--neon {
        width: 280px;
        height: 380px;
        margin: 30px 15px;
    }
    
    .dd-team-card--neon .dd-team-card__content {
        padding: 15px;
    }
    
    .dd-team-card--neon:hover .dd-team-card__content {
        left: -15px;
        padding: 20px 15px;
    }
    
    .dd-team-card--neon .dd-team-card__name {
        font-size: 1.3em;
    }
}

/* =====================================================
   CARD STYLE: PROFILE
   Circle avatar expanding to card on hover
   ===================================================== */

.dd-team-card--profile {
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 250px;
    width: 250px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    box-shadow: 0 0 60px 5px rgba(255, 255, 255, 0.5);
    transition: all ease 0.4s;
    position: relative;
}

/* Background blur overlay - ALWAYS blurred */
.dd-team-card--profile::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    transition: filter 0.4s ease;
    z-index: 0;
}

.dd-team-card--profile:hover::before {
    filter: blur(12px);
}

/* Dark gradient overlay */
.dd-team-card--profile::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.dd-team-card--profile:hover::after {
    opacity: 1;
}

.dd-team-card--profile:hover {
    border-radius: 10px;
    height: 450px;
    width: 320px;
    box-shadow: 0 0 40px 5px rgba(255, 255, 255, 0.4);
    justify-content: flex-start;
}

/* Different colors for each card */
.dd-team-card--profile:nth-child(1) {
    box-shadow: 0 0 60px 5px rgba(38, 166, 154, 0.5);
}
.dd-team-card--profile:nth-child(1):hover {
    box-shadow: 0 0 40px 5px rgba(38, 166, 154, 0.6);
}

.dd-team-card--profile:nth-child(2) {
    box-shadow: 0 0 60px 5px rgba(198, 0, 0, 0.5);
}
.dd-team-card--profile:nth-child(2):hover {
    box-shadow: 0 0 40px 5px rgba(198, 0, 0, 0.6);
}

.dd-team-card--profile:nth-child(3) {
    box-shadow: 0 0 60px 5px rgba(63, 81, 181, 0.5);
}
.dd-team-card--profile:nth-child(3):hover {
    box-shadow: 0 0 40px 5px rgba(63, 81, 181, 0.6);
}

.dd-team-card--profile:nth-child(4) {
    box-shadow: 0 0 60px 5px rgba(255, 152, 0, 0.5);
}
.dd-team-card--profile:nth-child(4):hover {
    box-shadow: 0 0 40px 5px rgba(255, 152, 0, 0.6);
}

.dd-team-card--profile:nth-child(5) {
    box-shadow: 0 0 60px 5px rgba(156, 39, 176, 0.5);
}
.dd-team-card--profile:nth-child(5):hover {
    box-shadow: 0 0 40px 5px rgba(156, 39, 176, 0.6);
}

.dd-team-card--profile:nth-child(6) {
    box-shadow: 0 0 60px 5px rgba(0, 188, 212, 0.5);
}
.dd-team-card--profile:nth-child(6):hover {
    box-shadow: 0 0 40px 5px rgba(0, 188, 212, 0.6);
}

/* Avatar Wrapper - perfectly centered */
.dd-team-card--profile .dd-team-card__avatar-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: all 0.4s ease;
}

.dd-team-card--profile:hover .dd-team-card__avatar-wrapper {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-top: 20px;
}

/* Avatar Link */
.dd-team-card--profile .dd-team-card__avatar-link {
    display: block;
    width: 180px;
    height: 180px;
}

.dd-team-card--profile:hover .dd-team-card__avatar-link {
    width: 100px;
    height: 100px;
}

.dd-team-card--profile .dd-team-card__image {
    border-radius: 50%;
    display: block;
    width: 180px;
    height: 180px;
    min-width: 180px;
    min-height: 180px;
    max-width: 180px;
    max-height: 180px;
    aspect-ratio: 1 / 1;
    border: 5px solid rgba(255, 255, 255, 0.9);
    object-fit: cover;
    object-position: center top;
    transition: all ease 0.4s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dd-team-card--profile:hover .dd-team-card__image {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    max-width: 100px;
    max-height: 100px;
}

/* Content - hidden by default, visible on hover */
.dd-team-card--profile .dd-team-card__content--profile {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 10px 15px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.dd-team-card--profile:hover .dd-team-card__content--profile {
    opacity: 1;
    max-height: 300px;
}

/* Name */
.dd-team-card--profile .dd-team-card__name {
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    font-size: 1.3em;
    line-height: 1.2;
    padding: 8px 15px;
    margin: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* Position */
.dd-team-card--profile .dd-team-card__position {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-size: 0.9em;
    font-weight: normal;
    margin: 0 0 5px 0;
}

/* Bio */
.dd-team-card--profile .dd-team-card__bio {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8em;
    line-height: 1.4;
    margin: 5px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Social Links */
.dd-team-card--profile .dd-team-card__social--profile {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.dd-team-card--profile .dd-team-card__social--profile li {
    list-style: none;
}

.dd-team-card--profile .dd-team-card__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #333;
    font-size: 1em;
    transition: all 0.3s ease;
}

.dd-team-card--profile .dd-team-card__social-link:hover {
    background: #fff;
    transform: scale(1.1);
}

/* Read More Button */
.dd-team-card--profile .dd-team-card__button--profile {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    color: #fff;
    font-size: 0.85em;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dd-team-card--profile .dd-team-card__button--profile:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* No Glow Option */
.dd-team-card--profile.dd-team-card--no-glow {
    box-shadow: none !important;
}

.dd-team-card--neon.dd-team-card--no-glow {
    box-shadow: none !important;
}

.dd-team-card--neon.dd-team-card--no-glow > span {
    box-shadow: none !important;
}

.dd-team-card--glassmorphism.dd-team-card--no-glow {
    box-shadow: none !important;
}

/* Profile Grid - horizontal row layout */
.dd-team-grid--profile {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 60px 40px;
    padding: 40px 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .dd-team-card--profile {
        height: 200px;
        width: 200px;
    }
    
    .dd-team-card--profile .dd-team-card__image,
    .dd-team-card--profile .dd-team-card__avatar-link {
        width: 150px;
        height: 150px;
        min-width: 150px;
        min-height: 150px;
        max-width: 150px;
        max-height: 150px;
    }
    
    .dd-team-card--profile:hover {
        height: 380px;
        width: 260px;
    }
    
    .dd-team-card--profile:hover .dd-team-card__image,
    .dd-team-card--profile:hover .dd-team-card__avatar-link {
        width: 90px;
        height: 90px;
        min-width: 90px;
        min-height: 90px;
        max-width: 90px;
        max-height: 90px;
    }
    
    .dd-team-grid--profile {
        gap: 50px 20px;
    }
}
