:root {
    --bg-dark: #0A192F;
    --bg-light-navy: #112240;
    --text-light: #CCD6F6;
    --text-lightest: #E6F1FF;
    --accent: #64FFDA;
}

* {
    box-sizing: border-box;
}

html {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

/* Utility Classes */
.bg-dark { background-color: var(--bg-dark); }
.bg-light-navy { background-color: var(--bg-light-navy); }
.text-light { color: var(--text-light); }
.text-accent { color: var(--accent); }
.text-lightest { color: var(--text-lightest); }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-dark { color: var(--bg-dark); }

.font-display {
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Layout */
.fixed { position: fixed; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-10 { z-index: 10; }

.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.grid { display: grid; }
.hidden { display: none; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }

.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.w-full { width: 100%; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }
.w-80 { width: 20rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-24 { height: 6rem; }
.h-32 { height: 8rem; }
.h-48 { height: 12rem; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-8 { padding-top: 2rem; }
.pt-20 { padding-top: 5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-8 { margin-top: 2rem; }

.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

.border { border: 1px solid; }
.border-t { border-top: 1px solid; }
.border-gray-600 { border-color: #4b5563; }
.border-gray-700 { border-color: #374151; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-weight-500 { font-weight: 500; }
.tracking-wide { letter-spacing: 0.025em; }
.uppercase { text-transform: uppercase; }

.bg-opacity-20 { background-color: rgba(100, 255, 218, 0.2); }
.bg-opacity-50 { background-color: rgba(0, 0, 0, 0.5); }
.bg-opacity-80 { background-color: rgba(16, 34, 64, 0.8); }
.bg-opacity-90 { background-color: rgba(10, 25, 47, 0.9); }
.opacity-0 { opacity: 0; }

.transition-colors { transition: color 0.15s ease-in-out; }
.transition-all { transition: all 0.3s ease; }
.duration-300 { transition-duration: 300ms; }

.transform { transform: translateZ(0); }
.translate-x-full { transform: translateX(100%); }

.aspect-square { aspect-ratio: 1 / 1; }

.resize-none { resize: none; }
.focus\:outline-none:focus { outline: none; }
.focus\:border-accent:focus { border-color: var(--accent); }

.hover\:text-accent:hover { color: var(--accent); }
.hover\:text-lightest:hover { color: var(--text-lightest); }
.hover\:bg-opacity-80:hover { background-color: rgba(16, 34, 64, 0.8); }

.cursor-pointer { cursor: pointer; }

/* Responsive */
@media (min-width: 640px) {
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:text-2xl { font-size: 1.5rem; }
    .sm\:text-5xl { font-size: 3rem; }
    .sm\:flex { display: flex; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:text-6xl { font-size: 3.75rem; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Components */
.btn-primary {
    background-color: transparent;
    color: var(--accent);
    padding: 12px 32px;
    border-radius: 4px;
    border: 1px solid var(--accent);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
}

/* Ripple Effect */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text-lightest);
    font-size: 2.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3.5rem;
    }
}

/* Header */
header {
    backdrop-filter: blur(12px);
}

/* Enhanced Mobile Menu */
#menu-overlay {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999 !important;
}

#menu-content {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -20px 0 40px -10px rgba(0, 0, 0, 0.5);
    border-left: 2px solid rgba(100, 255, 218, 0.2);
    z-index: 10000 !important;
    max-width: 320px;
    width: 85vw;
}

/* Enhanced Mobile Menu Button with Hamburger-to-X Animation */
.menu-btn {
    position: relative;
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.menu-btn:hover {
    transform: scale(1.05);
}

.menu-btn .hamburger,
.menu-btn .hamburger::before,
.menu-btn .hamburger::after {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-btn .hamburger {
    top: 50%;
    transform: translateY(-50%);
}

.menu-btn .hamburger::before,
.menu-btn .hamburger::after {
    content: '';
    left: 0;
}

.menu-btn .hamburger::before {
    top: -8px;
}

.menu-btn .hamburger::after {
    top: 8px;
}

/* Active state - X animation */
.menu-btn.active .hamburger {
    background-color: transparent;
}

.menu-btn.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-btn.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Enhanced Mobile Menu Content */
#menu-content {
    padding: 2rem 0;
    background: linear-gradient(145deg, var(--bg-light-navy), rgba(17, 34, 64, 0.98));
    min-height: 100vh;
    overflow-y: auto;
    position: relative;
}

#menu-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, 
        rgba(100, 255, 218, 0.05) 0%, 
        rgba(100, 255, 218, 0.02) 50%, 
        transparent 100%);
    pointer-events: none;
}

#menu-content .menu-link {
    display: block;
    width: 100%;
    padding: 1.2rem 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    text-decoration: none;
    color: #E6F1FF;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.025em;
}

#menu-content .menu-link:last-child {
    border-bottom: none;
}

#menu-content .menu-link::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
    transform: translateY(-50%);
}

#menu-content .menu-link:hover::before {
    width: 1rem;
}

#menu-content .menu-link:hover {
    color: #64FFDA;
    background: rgba(100, 255, 218, 0.05);
    transform: translateX(0.5rem);
    border-left: 3px solid #64FFDA;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
}

.menu-header {
    padding: 1rem 1.5rem;
    border-bottom: 2px solid rgba(100, 255, 218, 0.2);
    margin-bottom: 1rem;
}

.menu-header h3 {
    color: #64FFDA;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

/* Enhanced Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(17, 34, 64, 0.8);
    border-radius: 1.5rem;
    padding: 0.25rem;
    border: 1px solid rgba(100, 255, 218, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.language-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    border-radius: 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-light);
    outline: none;
}

.language-btn:hover {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent);
    transform: translateY(-1px);
}

.language-btn.active {
    background: linear-gradient(135deg, var(--accent), rgba(100, 255, 218, 0.8));
    color: var(--bg-dark);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(100, 255, 218, 0.3);
}

.language-btn.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.4);
}

.flag-icon {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

/* Flag specific styles */
.flag-icon.flag-en {
    background: #B22234;
    position: relative;
}

.flag-icon.flag-en::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* White stripes */
        repeating-linear-gradient(0deg, 
            #B22234 0px, #B22234 1.2px,
            #FFFFFF 1.2px, #FFFFFF 2.4px
        );
}

.flag-icon.flag-en::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 50%;
    background: #3C3B6E;
}

.flag-icon.flag-pt {
    background: linear-gradient(90deg, #046A38 40%, #DA020E 40%);
}

.flag-icon.flag-es {
    background: linear-gradient(0deg, #AA151B 25%, #F1BF00 25%, #F1BF00 75%, #AA151B 75%);
}

/* Mobile language switcher enhancements */
@media (max-width: 767px) {
    #menu-content .language-switcher {
        margin: 2rem 1.5rem;
        padding: 1rem;
        background: rgba(100, 255, 218, 0.08);
        border-radius: 1rem;
        border: 1px solid rgba(100, 255, 218, 0.2);
        gap: 0.5rem;
        justify-content: center;
    }
    
    #menu-content .language-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        font-weight: 600;
        min-width: 4rem;
        justify-content: center;
    }
    
    #menu-content .language-btn.active {
        background: var(--accent);
        color: var(--bg-dark);
        box-shadow: 0 4px 12px rgba(100, 255, 218, 0.3);
    }
    
    #menu-content .language-btn:hover {
        background: rgba(100, 255, 218, 0.15);
        transform: translateY(-2px);
    }
    
    #menu-content .language-btn.active:hover {
        background: var(--accent);
        color: var(--bg-dark);
        transform: translateY(-2px);
    }
}

/* Form Elements */
input, textarea {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border: 1px solid #4b5563;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    width: 100%;
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Gradients */
.bg-gradient-to-br {
    background: linear-gradient(to bottom right, var(--bg-color-from), var(--bg-color-to));
}

.from-accent { --bg-color-from: var(--accent); }
.to-blue-400 { --bg-color-to: #60a5fa; }
.from-green-400 { --bg-color-from: #4ade80; }

/* Swiper */
.project-swiper {
    overflow: hidden;
    position: relative;
}

.swiper-wrapper {
    display: flex;
    transition: transform 0.3s ease;
}

.swiper-slide {
    flex: 0 0 100%;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .swiper-slide {
        flex: 0 0 50%;
    }
}

.swiper-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: var(--accent) !important;
}

/* Mobile Hero Text Contrast Improvements */
@media (max-width: 768px) {
    /* Stronger background overlay for mobile */
    .hero-section::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
            135deg,
            rgba(10, 25, 47, 0.85) 0%,
            rgba(17, 34, 64, 0.8) 50%,
            rgba(10, 25, 47, 0.85) 100%
        );
        z-index: 1;
    }
    
    /* Ensure hero content stays above overlay */
    .hero-content {
        position: relative;
        z-index: 3;
    }
    
    /* Enhanced text shadows for mobile hero title */
    .hero-title {
        text-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.8),
            0 0 20px rgba(100, 255, 218, 0.3),
            0 4px 16px rgba(0, 0, 0, 0.6);
        font-weight: 800; /* Bolder for mobile */
    }
    
    /* Subtitle improvements for mobile */
    .hero-subtitle {
        text-shadow: 
            0 2px 6px rgba(0, 0, 0, 0.8),
            0 0 15px rgba(0, 0, 0, 0.5);
        font-weight: 500;
        color: rgba(230, 241, 255, 0.95) !important; /* Slightly more opaque */
    }
    
    /* Slogan improvements for mobile */
    .hero-slogan {
        text-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.8),
            0 0 25px rgba(100, 255, 218, 0.4),
            0 4px 16px rgba(0, 0, 0, 0.6);
        font-weight: 800;
    }
    
    /* Tagline improvements for mobile */
    .hero-tagline {
        text-shadow: 
            0 2px 6px rgba(0, 0, 0, 0.8),
            0 0 15px rgba(0, 0, 0, 0.5);
        font-weight: 500;
        color: rgba(230, 241, 255, 0.95) !important;
    }
}

/* 360° Team Section Styles */
.helix-team-360 {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-light-navy) 100%);
    position: relative;
    overflow: hidden;
}

.helix-team-360::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(100, 255, 218, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(100, 255, 218, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.team-360-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.team-member-360 {
    background: linear-gradient(145deg, rgba(100, 255, 218, 0.05) 0%, rgba(17, 34, 64, 0.8) 100%);
    border-radius: 2rem;
    padding: 2rem;
    border: 1px solid rgba(100, 255, 218, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.team-member-360::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(100, 255, 218, 0.1), transparent);
    animation: rotate-background 20s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-member-360:hover::before {
    opacity: 1;
}

@keyframes rotate-background {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.team-member-360.hovered {
    transform: translateY(-1rem);
    box-shadow: 
        0 2rem 4rem rgba(100, 255, 218, 0.2),
        0 0 0 1px rgba(100, 255, 218, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(100, 255, 218, 0.4);
}

.video-360-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    min-height: 400px; /* ← AGREGA ESTA LÍNEA */
    /* Use a gradient that transitions from dark blue to darker gray */
    background: linear-gradient(135deg, #1a2942 0%, #0f1923 100%);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.video-360-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(100, 255, 218, 0.05) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.video-360-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 40%,
        rgba(10, 25, 47, 0.3) 80%,
        rgba(10, 25, 47, 0.6) 100%
    );
    z-index: 3;
    pointer-events: none;
    border-radius: 1.5rem;
}

.team-360-video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed to contain - shows full body */
    object-position: center; /* Keep person centered */
    border-radius: 1.5rem;
    position: relative;
    z-index: 2;
    filter: brightness(1.05) contrast(1.1) saturate(1.15);
    transition: filter 0.3s ease;
    background: linear-gradient(135deg, #1a2942 0%, #0f1923 100%);
}

.team-member-360:hover .team-360-video {
    filter: contrast(1.25) brightness(1.15);
}

.member-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent 0%, rgba(10, 25, 47, 0.95) 30%);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 4; /* Above vignette */
}

.team-member-360:hover .member-info-overlay {
    transform: translateY(0);
}

.member-info-overlay h3 {
    font-size: 1.8rem;
    color: #64FFDA;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.member-info-overlay .role {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: rgba(255, 255, 255, 0.9);
}

.member-info-overlay .location {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.member-info-overlay .location::before {
    content: '📍';
    font-size: 0.9rem;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill {
    background: rgba(100, 255, 218, 0.2);
    color: #64FFDA;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(100, 255, 218, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.skill:hover {
    background: rgba(100, 255, 218, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(100, 255, 218, 0.2);
}

.rotation-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 5; /* Above everything */
}

.team-member-360:hover .rotation-controls {
    opacity: 1;
    transform: translateY(0);
}

.rotate-btn, .auto-rotate-btn {
    background: rgba(10, 25, 47, 0.8);
    border: 1px solid rgba(100, 255, 218, 0.3);
    color: #64FFDA;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.rotate-btn::before, .auto-rotate-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(100, 255, 218, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.rotate-btn:hover, .auto-rotate-btn:hover {
    background: rgba(100, 255, 218, 0.2);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.3);
}

.rotate-btn:hover::before, .auto-rotate-btn:hover::before {
    width: 100%;
    height: 100%;
}

.rotate-btn:active, .auto-rotate-btn:active {
    transform: scale(0.95);
}

.auto-rotate-btn {
    font-size: 0.7rem;
    width: 3rem;
    border-radius: 1.5rem;
}

/* Enhanced section titles for team section */
.helix-team-360 .section-title {
    position: relative;
    z-index: 3;
    text-align: center;
    margin-bottom: 1rem;
}

.helix-team-360 .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4rem;
    position: relative;
    z-index: 3;
    font-weight: 400;
    letter-spacing: 0.025em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .helix-team-360 {
        padding: 4rem 0;
    }
    
    .team-360-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .team-member-360 {
        padding: 1.5rem;
    }
    
    .member-info-overlay {
        padding: 1rem;
        transform: translateY(0); /* Always show on mobile */
        background: linear-gradient(transparent 0%, rgba(10, 25, 47, 0.95) 30%);
    }
    
    .member-info-overlay h3 {
        font-size: 1.5rem;
    }
    
    .member-info-overlay .role {
        font-size: 1rem;
    }
    
    .rotation-controls {
        opacity: 1;
        transform: translateY(0);
        top: 0.5rem;
        right: 0.5rem;
        gap: 0.3rem;
    }
    
    .rotate-btn, .auto-rotate-btn {
        width: 2rem;
        height: 2rem;
        font-size: 0.8rem;
    }
    
    .auto-rotate-btn {
        width: 2.5rem;
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .team-360-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .team-member-360 {
        padding: 1rem;
        border-radius: 1.5rem;
    }
    
    .video-360-container {
        border-radius: 1rem;
    }
    
    .member-skills {
        gap: 0.3rem;
    }
    
    .skill {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }
}

/* Loading spinner element - hidden by default */
.loading-spinner {
    display: none;
}

/* Show spinner only when container has loading class */
.video-360-container.loading .loading-spinner {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 4px solid rgba(100, 255, 218, 0.2);
    border-top-color: #64FFDA;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 100;
    pointer-events: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
