/* Video Section Styles */
.play-pause-button {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.play-pause-button img {
    background: transparent !important;
    width: 80px;
    height: auto;
}

/* Counter Section Styles */
.counter-title {
    font-weight: bold;
}

.counter-subtitle {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    display: block;
    margin: auto;
}

/* Button Image Styles */
.button-image-top {
    width: 200px;
    height: auto;
    margin-bottom: 10px;
}

.button-image-bottom {
    width: 250px;
    height: auto;
}

/* SEPARATE TITLE BANNER SECTION */
.staff-title-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    margin: 0;
}

.staff-title-banner .section-title {
    color: white !important;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* BOBBLEHEAD SECTION WITH WHITE BACKGROUND */
.bobblehead-section {
    background: white;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    min-height: clamp(500px, 60vw, 700px);
}

/* Remove title from bobblehead section since it's now in banner */
.bobblehead-section .section-title {
    display: none;
}

/* Dynamic container that scales with viewport */
.bobbleheads-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: clamp(400px, 45vw, 500px);
    min-height: clamp(400px, 45vw, 500px);
    padding: 40px 20px;
    box-sizing: border-box;
}

.bobblehead {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.bobblehead:hover {
    transform: scale(1.1);
    z-index: 10;
}

/* Dynamic bobblehead sizing - CHANGED TO ROUNDED SQUARES */
.bobblehead-avatar {
    width: clamp(60px, 7vw, 90px);
    height: clamp(60px, 7vw, 90px);
    font-size: clamp(16px, 1.8vw, 24px);
    border-radius: 20%; /* Changed from 50% to 20% for rounded squares */
    border: 4px solid white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    object-fit: cover;
    background: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    overflow: hidden;
    position: relative;
}

.bobblehead-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20%; /* Changed from 50% to 20% for rounded squares */
    display: block;
}

.bobblehead:hover .bobblehead-avatar {
    border-color: #ffd700;
    box-shadow: 0 12px 35px rgba(255,215,0,0.5);
}

/* POSITIONING - 2 NORTH-SOUTH, 8 EAST-WEST */
/* North-South movement avatars (pos-1, pos-2) - SYNCHRONIZED */
.bobblehead.pos-1 { 
    top: 10%; 
    left: 15%; 
    animation: floatVertical 6s linear infinite;
}

.bobblehead.pos-2 { 
    top: 20%; 
    left: 85%; 
    animation: floatVertical 6s linear infinite;
}

/* East-West movement avatars (pos-3 through pos-10) - SYNCHRONIZED */
.bobblehead.pos-3 { 
    top: 5%; 
    left: 45%; 
    animation: floatHorizontal 8s linear infinite;
}

.bobblehead.pos-4 { 
    top: 25%; 
    left: 5%; 
    animation: floatHorizontal 8s linear infinite;
}

.bobblehead.pos-5 { 
    top: 45%; 
    left: 60%; 
    animation: floatHorizontal 8s linear infinite;
}

.bobblehead.pos-6 { 
    top: 55%; 
    left: 25%; 
    animation: floatHorizontal 8s linear infinite;
}

.bobblehead.pos-7 { 
    top: 65%; 
    left: 75%; 
    animation: floatHorizontal 8s linear infinite;
}

.bobblehead.pos-8 { 
    top: 75%; 
    left: 10%; 
    animation: floatHorizontal 8s linear infinite;
}

.bobblehead.pos-9 { 
    top: 85%; 
    left: 50%; 
    animation: floatHorizontal 8s linear infinite;
}

.bobblehead.pos-10 { 
    top: 35%; 
    left: 40%; 
    animation: floatHorizontal 8s linear infinite;
}

/* ANIMATION DEFINITIONS */
/* North-South (vertical) movement - SMOOTH CONTINUOUS */
@keyframes floatVertical {
    0%   { transform: translateY(0px) rotate(0deg); }
    50%  { transform: translateY(-40px) rotate(0deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* East-West (horizontal) movement - SMOOTH CONTINUOUS */
@keyframes floatHorizontal {
    0%   { transform: translateX(0px) rotate(0deg); }
    50%  { transform: translateX(40px) rotate(0deg); }
    100% { transform: translateX(0px) rotate(0deg); }
}

/* Staff Modal Styles */
.staff-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.staff-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
    color: white;
}

@keyframes modalSlideIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.staff-modal-close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    transition: all 0.3s ease;
}

.staff-modal-close:hover {
    color: #ffd700;
    transform: scale(1.2);
}

.staff-modal-body {
    text-align: center;
    padding-top: 20px;
}

.staff-modal-avatar {
    width: 120px;
    height: 120px;
    border-radius: 20%; /* Changed from 50% to 20% for rounded squares */
    border: 5px solid white;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    object-fit: cover;
    background: white !important;
    color: white;
    font-weight: bold;
    font-size: 32px;
    overflow: hidden;
    position: relative;
}

.staff-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20%; /* Changed from 50% to 20% for rounded squares */
    display: block;
}

.staff-modal-name {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.staff-modal-role {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.staff-modal-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Testimonial Section Styles */
.testimonial-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.testimonial-title {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.testimonial-content {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    padding: 20px;
}

.testimonial-avatar {
    width: 120px;
    height: 120px;
    border-radius: 20%; /* Changed from 50% to 20% for rounded squares */
    border: 4px solid white;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: #ff6b6b;
    color: white;
    font-weight: bold;
    font-size: 32px;
}

.testimonial-text {
    font-size: 1.1rem;
    color: white;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.testimonial-role {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
}

.testimonial-company {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.testimonial-dots {
    text-align: center;
    margin-top: 30px;
}

.testimonial-dot {
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot:hover,
.testimonial-dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* TABLET RESPONSIVE */
@media (max-width: 768px) {
    .bobblehead-section {
        padding: 40px 15px;
        min-height: 400px;
    }
    
    .bobbleheads-container {
        height: 350px;
        min-height: 350px;
    }
    
    /* Adjust positioning for tablets */
    .bobblehead.pos-1 { top: 8%; left: 10%; }
    .bobblehead.pos-2 { top: 15%; left: 80%; }
    .bobblehead.pos-3 { top: 5%; left: 45%; }
    .bobblehead.pos-4 { top: 25%; left: 5%; }
    .bobblehead.pos-5 { top: 35%; left: 65%; }
    .bobblehead.pos-6 { top: 50%; left: 20%; }
    .bobblehead.pos-7 { top: 65%; left: 75%; }
    .bobblehead.pos-8 { top: 75%; left: 10%; }
    .bobblehead.pos-9 { top: 80%; left: 50%; }
    .bobblehead.pos-10 { top: 45%; left: 40%; }
    
    /* Reduce animation distance for tablets - SMOOTH */
    @keyframes floatVertical {
        0%   { transform: translateY(0px) rotate(0deg); }
        50%  { transform: translateY(-30px) rotate(0deg); }
        100% { transform: translateY(0px) rotate(0deg); }
    }
    
    @keyframes floatHorizontal {
        0%   { transform: translateX(0px) rotate(0deg); }
        50%  { transform: translateX(30px) rotate(0deg); }
        100% { transform: translateX(0px) rotate(0deg); }
    }
}

/* MOBILE RESPONSIVE */
@media (max-width: 480px) {
    .bobblehead-section {
        padding: 30px 10px;
        min-height: 350px;
    }
    
    .bobbleheads-container {
        position: relative;
        max-width: 100%;
        margin: 0 auto;
        height: 300px;
        min-height: 300px;
        padding: 20px 10px;
        box-sizing: border-box;
    }

    .bobblehead {
        position: absolute !important;
    }

    .bobblehead-avatar {
        width: 45px !important;
        height: 45px !important;
        font-size: 14px !important;
    }
    
    /* Mobile positioning - keep same layout but scaled down */
    .bobblehead.pos-1 { top: 8%; left: 8%; }
    .bobblehead.pos-2 { top: 15%; left: 80%; }
    .bobblehead.pos-3 { top: 5%; left: 40%; }
    .bobblehead.pos-4 { top: 25%; left: 5%; }
    .bobblehead.pos-5 { top: 35%; left: 60%; }
    .bobblehead.pos-6 { top: 50%; left: 20%; }
    .bobblehead.pos-7 { top: 65%; left: 70%; }
    .bobblehead.pos-8 { top: 75%; left: 8%; }
    .bobblehead.pos-9 { top: 80%; left: 45%; }
    .bobblehead.pos-10 { top: 40%; left: 35%; }
    
    /* Reduce animation distance for mobile - SMOOTH */
    @keyframes floatVertical {
        0%   { transform: translateY(0px) rotate(0deg); }
        50%  { transform: translateY(-20px) rotate(0deg); }
        100% { transform: translateY(0px) rotate(0deg); }
    }
    
    @keyframes floatHorizontal {
        0%   { transform: translateX(0px) rotate(0deg); }
        50%  { transform: translateX(20px) rotate(0deg); }
        100% { transform: translateX(0px) rotate(0deg); }
    }
    
    .testimonial-section {
        padding: 40px 15px;
        min-height: 350px;
    }
    
    .testimonial-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .testimonial-avatar {
        width: 80px;
        height: 80px;
        font-size: 24px;
    }
    
    .testimonial-text {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .testimonial-name {
        font-size: 1.1rem;
    }
    
    .staff-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .staff-modal-avatar {
        width: 80px;
        height: 80px;
        font-size: 24px;
    }
    
    .staff-modal-name {
        font-size: 1.5rem;
    }
    
    .staff-modal-role {
        font-size: 1rem;
    }
}



/* EXTRA SMALL SCREENS */
@media (max-width: 360px) {
    .bobblehead-avatar {
        width: 40px !important;
        height: 40px !important;
        font-size: 12px !important;
    }

    .bobbleheads-container {
        height: 280px;
        min-height: 280px;
    }
    
    /* Extra small positioning - even more compact */
    .bobblehead.pos-1 { top: 8%; left: 5%; }
    .bobblehead.pos-2 { top: 15%; left: 82%; }
    .bobblehead.pos-3 { top: 5%; left: 42%; }
    .bobblehead.pos-4 { top: 25%; left: 3%; }
    .bobblehead.pos-5 { top: 35%; left: 62%; }
    .bobblehead.pos-6 { top: 50%; left: 18%; }
    .bobblehead.pos-7 { top: 65%; left: 72%; }
    .bobblehead.pos-8 { top: 75%; left: 5%; }
    .bobblehead.pos-9 { top: 80%; left: 47%; }
    .bobblehead.pos-10 { top: 40%; left: 37%; }
}