/* FILENAME: styles/team.css */
/* Team page specific styles with AI animations */

/* Team Page Container */
.team-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* AI Robot Container */
.ai-robot-container {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 200px;
    height: 300px;
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
}

/* Robot as grid item - positioned after Noor (4th column, 2nd row on xl screens) */
.robot-grid-item {
    position: static;
    transform: none;
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.25;
    pointer-events: none;
}

/* Darker colors for robot in light mode - override inline styles */
:not(.dark) .robot-head-base,
:not(.dark) .robot-hair,
:not(.dark) .robot-torso,
:not(.dark) .robot-arm-left,
:not(.dark) .robot-arm-right,
:not(.dark) .robot-leg-left,
:not(.dark) .robot-leg-right,
:not(.dark) .robot-chest-panel,
:not(.dark) .robot-antenna,
:not(.dark) .robot-antenna-tip,
:not(.dark) .robot-dot-1,
:not(.dark) .robot-dot-2,
:not(.dark) .robot-dot-3,
:not(.dark) .robot-dot-4 {
    fill: #00668c !important;
    stroke: #00668c !important;
}

:not(.dark) .robot-head-inner,
:not(.dark) .robot-body-inner,
:not(.dark) .robot-hand-left,
:not(.dark) .robot-hand-right,
:not(.dark) .robot-foot-left,
:not(.dark) .robot-foot-right {
    fill: #004d66 !important;
}

/* In dark mode, use lighter colors */
.dark .robot-head-base,
.dark .robot-hair,
.dark .robot-torso,
.dark .robot-arm-left,
.dark .robot-arm-right,
.dark .robot-leg-left,
.dark .robot-leg-right,
.dark .robot-chest-panel,
.dark .robot-antenna,
.dark .robot-antenna-tip,
.dark .robot-dot-1,
.dark .robot-dot-2,
.dark .robot-dot-3,
.dark .robot-dot-4 {
    fill: #71c4ef !important;
    stroke: #71c4ef !important;
}

.dark .robot-head-inner,
.dark .robot-body-inner,
.dark .robot-hand-left,
.dark .robot-hand-right,
.dark .robot-foot-left,
.dark .robot-foot-right {
    fill: #00668c !important;
}

/* Increase opacity in light mode for better visibility */
:not(.dark) .robot-grid-item {
    opacity: 0.35;
}

/* Position robot in grid: 4th column, 2nd row on xl screens (after Noor) */
@media (min-width: 1280px) {
    .robot-grid-item {
        grid-column: 4;
        grid-row: 2;
    }
}

/* Hide robot on smaller screens when it's a grid item */
@media (max-width: 1279px) {
    .robot-grid-item {
        display: none;
    }
}

@media (max-width: 1024px) {
    .ai-robot-container {
        width: 150px;
        height: 225px;
        right: 2%;
    }
}

@media (max-width: 768px) {
    .ai-robot-container {
        display: none;
    }
}

/* Robot SVG Styling */
.ai-robot-illustration {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(0, 102, 140, 0.3));
    animation: robot-float 6s ease-in-out infinite;
}

/* Robot Animations */
@keyframes robot-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(2deg);
    }
    50% {
        transform: translateY(-10px) rotate(0deg);
    }
    75% {
        transform: translateY(-20px) rotate(-2deg);
    }
}

@keyframes robot-blink {
    0%, 90%, 100% {
        opacity: 1;
        transform: scaleY(1);
    }
    92%, 94% {
        opacity: 0.3;
        transform: scaleY(0.1);
    }
}

@keyframes robot-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes robot-glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(0, 102, 140, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(0, 102, 140, 0.6));
    }
}

/* Robot Parts Animations */
.robot-eye-left,
.robot-eye-right {
    animation: robot-blink 4s ease-in-out infinite;
}

.robot-eye-right {
    animation-delay: 0.1s;
}

.robot-chest-core {
    animation: robot-pulse 3s ease-in-out infinite;
}

.robot-antenna-tip {
    animation: robot-pulse 2s ease-in-out infinite;
}

.robot-head-base {
    animation: robot-glow 4s ease-in-out infinite;
}

.robot-arm-left {
    animation: robot-arm-sway-left 5s ease-in-out infinite;
    transform-origin: top center;
}

.robot-arm-right {
    animation: robot-arm-sway-right 5s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes robot-arm-sway-left {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

@keyframes robot-arm-sway-right {
    0%, 100% {
        transform: rotate(5deg);
    }
    50% {
        transform: rotate(-5deg);
    }
}

.robot-dot-1,
.robot-dot-2,
.robot-dot-3,
.robot-dot-4 {
    animation: robot-pulse 2s ease-in-out infinite;
}

.robot-dot-1 { animation-delay: 0s; }
.robot-dot-2 { animation-delay: 0.5s; }
.robot-dot-3 { animation-delay: 1s; }
.robot-dot-4 { animation-delay: 1.5s; }

/* AI Particles */
.ai-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.ai-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    opacity: 0.4;
    box-shadow: 0 0 10px rgba(0, 102, 140, 0.5);
}

.particle-1 {
    top: 10%;
    left: 10%;
    animation: particle-float-1 8s ease-in-out infinite;
}

.particle-2 {
    top: 30%;
    right: 15%;
    animation: particle-float-2 10s ease-in-out infinite;
    animation-delay: 1s;
}

.particle-3 {
    bottom: 20%;
    left: 20%;
    animation: particle-float-3 9s ease-in-out infinite;
    animation-delay: 2s;
}

.particle-4 {
    top: 60%;
    right: 25%;
    animation: particle-float-4 11s ease-in-out infinite;
    animation-delay: 0.5s;
}

.particle-5 {
    bottom: 40%;
    left: 5%;
    animation: particle-float-5 7s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes particle-float-1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(30px, -30px) scale(1.2);
        opacity: 0.6;
    }
    50% {
        transform: translate(60px, -60px) scale(0.8);
        opacity: 0.3;
    }
    75% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.5;
    }
}

@keyframes particle-float-2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(-40px, 40px) scale(1.3);
        opacity: 0.7;
    }
    50% {
        transform: translate(-80px, 80px) scale(0.7);
        opacity: 0.2;
    }
    75% {
        transform: translate(-40px, 40px) scale(1.1);
        opacity: 0.5;
    }
}

@keyframes particle-float-3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    33% {
        transform: translate(50px, -20px) scale(1.4);
        opacity: 0.8;
    }
    66% {
        transform: translate(100px, -40px) scale(0.6);
        opacity: 0.2;
    }
}

@keyframes particle-float-4 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(-30px, -50px) scale(1.1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-60px, -100px) scale(0.9);
        opacity: 0.3;
    }
    75% {
        transform: translate(-30px, -50px) scale(1.0);
        opacity: 0.5;
    }
}

@keyframes particle-float-5 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    33% {
        transform: translate(40px, 30px) scale(1.2);
        opacity: 0.7;
    }
    66% {
        transform: translate(80px, 60px) scale(0.8);
        opacity: 0.3;
    }
}

/* Team Card Enhancements */
.team-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 140, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.team-card:hover::before {
    left: 100%;
}

.team-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 102, 140, 0.25);
}

.team-member-image {
    transition: transform 0.5s ease;
}

.team-card:hover .team-member-image {
    transform: scale(1.1);
}

/* Dark mode adjustments */
.dark .ai-robot-illustration {
    filter: drop-shadow(0 0 20px rgba(113, 196, 239, 0.5));
    opacity: 0.2;
}

.dark .ai-particle {
    opacity: 0.5;
    box-shadow: 0 0 15px rgba(113, 196, 239, 0.7);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .team-page {
        padding-bottom: 2rem;
    }
    
    .ai-particles {
        display: none;
    }
}

