@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Container */
.aas-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header Section */
.aas-header {
    text-align: center;
    margin-bottom: 60px;
    animation: aas-fadeInDown 0.8s ease;
    padding: 0 15px;
}

.aas-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, #7476FC 0%, #a89fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.3vw, 3px);
    line-height: 1.2;
    word-wrap: break-word;
}

.aas-header p {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: #9b9b9b;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Statistics Bar */
.aas-stats-bar {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 5vw, 40px);
    margin-bottom: 50px;
    flex-wrap: wrap;
    padding: 0 15px;
}

.aas-stat-item {
    text-align: center;
    min-width: 100px;
}

.aas-stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #7476FC 0%, #a89fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.aas-stat-label {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    color: #9b9b9b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

/* Category Section */
.aas-category-section {
    margin-bottom: 60px;
    animation: aas-fadeInUp 0.8s ease;
}

.aas-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(116, 118, 252, 0.3);
    flex-wrap: wrap;
    gap: 10px;
}

.aas-category-icon {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-right: 10px;
}

.aas-category-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
    font-weight: 600;
    color: #fff;
    flex: 1;
    min-width: 200px;
}

.aas-category-count {
    background: rgba(116, 118, 252, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    color: #7476FC;
    font-weight: 500;
    white-space: nowrap;
}

/* Staff Grid */
.aas-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.aas-staff-grid.single-card {
    justify-content: center;
}

.aas-staff-grid.single-card .aas-staff-card {
    max-width: 350px;
}

/* Staff Card */
.aas-staff-card {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(145deg, #1e1e2e 0%, #252535 100%);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.aas-staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #7476FC, #a89fff);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.aas-staff-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(116, 118, 252, 0.4);
}

.aas-staff-card:hover::before {
    opacity: 1;
}

/* Developer Card - Special */
.aas-staff-card.developer {
    background: linear-gradient(145deg, #0a0e27 0%, #171525 100%);
    position: relative;
    overflow: visible;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.aas-staff-card.developer[data-bg-image]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    border-radius: 20px;
    z-index: 0;
    pointer-events: none;
}

.aas-staff-card.developer > * {
    position: relative;
    z-index: 1;
}

.aas-staff-card.developer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #ff0844 0%, 
        #00ff88 25%, 
        #171525 50%, 
        #00ff88 75%, 
        #ff0844 100%);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    background-size: 300% 300%;
    animation: aas-gradient-shift 4s ease infinite;
}

@keyframes aas-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.aas-staff-card.developer:hover::before {
    opacity: 1;
}

.aas-staff-card.developer .aas-avatar-ring {
    background: conic-gradient(
        from 0deg,
        #ff0844 0deg,
        #00ff88 120deg,
        #171525 240deg,
        #ff0844 360deg
    );
    box-shadow: 
        0 0 30px rgba(255, 8, 68, 0.6),
        0 0 50px rgba(0, 255, 136, 0.4),
        0 0 70px rgba(23, 21, 37, 0.3);
    animation: aas-rotate-rainbow 3s linear infinite, aas-pulse-ring 2s ease-in-out infinite;
}

@keyframes aas-rotate-rainbow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes aas-pulse-ring {
    0%, 100% { 
        box-shadow: 
            0 0 30px rgba(255, 8, 68, 0.6),
            0 0 50px rgba(0, 255, 136, 0.4),
            0 0 70px rgba(23, 21, 37, 0.3);
    }
    50% { 
        box-shadow: 
            0 0 40px rgba(255, 8, 68, 0.8),
            0 0 60px rgba(0, 255, 136, 0.6),
            0 0 80px rgba(23, 21, 37, 0.5);
    }
}

.aas-staff-card.developer .aas-avatar {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.aas-staff-card.developer .aas-role-tag {
    background: linear-gradient(135deg, rgba(255, 8, 68, 0.2), rgba(0, 255, 136, 0.2));
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.4);
}

.aas-staff-card.developer .aas-role-tag.primary {
    background: linear-gradient(135deg, #ff0844, #00ff88, #171525);
    color: #fff;
    border: none;
    box-shadow: 0 5px 25px rgba(0, 255, 136, 0.4);
    font-weight: 700;
    animation: aas-glow-pulse 2s ease-in-out infinite;
}

@keyframes aas-glow-pulse {
    0%, 100% { box-shadow: 0 5px 25px rgba(0, 255, 136, 0.4); }
    50% { box-shadow: 0 5px 35px rgba(255, 8, 68, 0.6); }
}

.aas-staff-card.developer:hover {
    box-shadow: 
        0 25px 70px rgba(255, 8, 68, 0.4),
        0 15px 40px rgba(0, 255, 136, 0.4),
        0 10px 30px rgba(23, 21, 37, 0.3);
}

.aas-staff-card.developer .aas-staff-name {
    background: linear-gradient(135deg, #ff0844, #00ff88, #ff0844);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: aas-gradient-text 3s ease infinite;
}

@keyframes aas-gradient-text {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Founder Card - Special */
.aas-staff-card.founder {
    background: linear-gradient(145deg, #1a1510 0%, #2d2415 100%);
    position: relative;
    overflow: visible;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.aas-staff-card.founder::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, 
        #ffd700 0%, 
        #ffed4e 25%,
        #ffa500 50%,
        #ffed4e 75%,
        #ffd700 100%);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    background-size: 300% 300%;
    animation: aas-gold-shimmer 4s ease infinite;
}

@keyframes aas-gold-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.aas-staff-card.founder:hover::before {
    opacity: 1;
}

.aas-staff-card.founder::after {
    content: '👑';
    position: absolute;
    font-size: 180px;
    opacity: 0.04;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: aas-crown-float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
}

@keyframes aas-crown-float {
    0%, 100% { 
        transform: translate(-50%, -50%) rotate(-5deg) scale(1); 
        opacity: 0.04;
    }
    50% { 
        transform: translate(-50%, -55%) rotate(5deg) scale(1.05); 
        opacity: 0.07;
    }
}

.aas-staff-card.founder .aas-avatar-ring {
    background: conic-gradient(
        from 0deg,
        #ffd700 0deg,
        #ffed4e 90deg,
        #ffa500 180deg,
        #ffed4e 270deg,
        #ffd700 360deg
    );
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.5),
        0 0 50px rgba(255, 215, 0, 0.3),
        0 0 70px rgba(255, 165, 0, 0.2);
    animation: aas-rotate-gold 4s linear infinite;
}

@keyframes aas-rotate-gold {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.aas-staff-card.founder .aas-avatar {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
}

.aas-staff-card.founder .aas-role-tag {
    background: rgba(255, 215, 0, 0.15);
    color: #ffed4e;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.aas-staff-card.founder .aas-role-tag.primary {
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffa500);
    color: #1a1510;
    border: none;
    box-shadow: 0 5px 25px rgba(255, 215, 0, 0.5);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.aas-staff-card.founder:hover {
    box-shadow: 
        0 30px 80px rgba(255, 215, 0, 0.4),
        0 20px 50px rgba(255, 237, 78, 0.3),
        0 10px 30px rgba(255, 165, 0, 0.2);
}

.aas-staff-card.founder .aas-staff-name {
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
    font-weight: 700;
}

.aas-staff-card.founder .aas-status-badge.active {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.5);
}

.aas-staff-card.founder .aas-status-badge.retired {
    background: rgba(255, 159, 67, 0.2);
    color: #ff9f43;
    border: 1px solid rgba(255, 159, 67, 0.3);
}

/* 3D Mouse Tracking */
.aas-staff-card.founder,
.aas-staff-card.developer {
    transition: transform 0.1s ease-out, box-shadow 0.4s ease;
}

.aas-staff-card.founder:hover,
.aas-staff-card.developer:hover {
    transform: translateY(-10px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) scale(1.02);
}

/* Quote Tooltip */
.aas-quote-tooltip {
    position: absolute;
    bottom: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(30, 30, 46, 0.98);
    backdrop-filter: blur(10px);
    color: #e0e0e0;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: normal;
    max-width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    pointer-events: none;
    border: 1px solid rgba(116, 118, 252, 0.2);
}

.aas-quote-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: rgba(30, 30, 46, 0.98);
}

/* Show tooltip on hover OR when card has active class (from click) */
.aas-staff-card.has-quote:hover .aas-quote-tooltip,
.aas-staff-card.quote-active .aas-quote-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Cursor pointer for cards with quotes */
.aas-staff-card.has-quote {
    cursor: pointer;
}

.aas-staff-card.developer .aas-quote-tooltip {
    border-color: rgba(0, 255, 136, 0.3);
}

.aas-staff-card.founder .aas-quote-tooltip {
    border-color: rgba(255, 215, 0, 0.3);
}

/* Status Badge */
.aas-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.aas-status-badge.active {
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.aas-status-badge.retired {
    background: rgba(255, 159, 67, 0.2);
    color: #ff9f43;
    border: 1px solid rgba(255, 159, 67, 0.3);
}

.aas-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: aas-pulse 2s infinite;
}

@keyframes aas-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Avatar */
.aas-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.aas-avatar-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7476FC, #a89fff);
    animation: aas-rotate 3s linear infinite;
}

@keyframes aas-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.aas-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #1e1e2e;
    transition: transform 0.4s ease;
    z-index: 1;
}

.aas-staff-card:hover .aas-avatar {
    transform: scale(1.1);
}

/* Staff Info */
.aas-staff-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.aas-staff-roles {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.aas-role-tag {
    background: rgba(116, 118, 252, 0.15);
    color: #a89fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(116, 118, 252, 0.3);
    transition: all 0.3s ease;
}

.aas-role-tag:hover {
    background: rgba(116, 118, 252, 0.25);
    border-color: #7476FC;
    transform: translateX(5px);
}

.aas-role-tag.primary {
    background: rgba(116, 118, 252, 0.3);
    color: #fff;
    border-color: #7476FC;
    font-weight: 600;
}

/* Animations */
@keyframes aas-fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aas-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .aas-container {
        padding: 20px 10px;
    }

    .aas-header {
        margin-bottom: 40px;
    }

    .aas-category-section {
        margin-bottom: 40px;
    }

    .aas-category-header {
        justify-content: center;
        text-align: center;
    }

    .aas-staff-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .aas-staff-card {
        padding: 20px;
    }

    .aas-stats-bar {
        gap: 15px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .aas-container {
        padding: 15px 8px;
    }

    .aas-staff-grid {
        grid-template-columns: 1fr;
    }

    .aas-avatar-wrapper,
    .aas-avatar {
        width: 100px;
        height: 100px;
    }

    .aas-staff-name {
        font-size: 1.1rem;
    }

    .aas-role-tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .aas-stats-bar {
        gap: 10px;
    }

    .aas-stat-item {
        min-width: 80px;
    }
}

@media (max-width: 360px) {
    .aas-avatar-wrapper,
    .aas-avatar {
        width: 90px;
        height: 90px;
    }
}
