@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700;900&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(10px);
    transition: transform 0.15s ease-out;
    mix-blend-mode: screen;
}

.cursor-shadow {
    position: fixed;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.575) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(20px);
    transition: 
        transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        height 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.infinity-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vw;
    height: 70vw;
    filter: blur(20px);
    z-index: 0;
    opacity: 0.4;
    animation: continuousPulse 6s infinite ease-in-out;
}

@keyframes continuousPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.2; }
}

.infinity-svg {
    width: 100%;
    height: 100%;
    fill: white;
}

.infipro-glow {
    color: #fff;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.95),
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(255, 255, 255, 0.6),
        0 0 80px rgba(255, 255, 255, 0.4),
        0 0 120px rgba(255, 255, 255, 0.2);
    animation: 
        rapidFlicker 0.5s infinite steps(1),
        floatAnimation 8s infinite ease-in-out;
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translate(0, 0) rotate(0.5deg);
    }
    25% {
        transform: translate(-5px, -5px) rotate(-0.5deg);
    }
    50% {
        transform: translate(5px, 3px) rotate(0.7deg);
    }
    75% {
        transform: translate(3px, -3px) rotate(-0.3deg);
    }
}

@keyframes rapidFlicker {
    0%, 10%, 20%, 30%, 40%, 50%, 60%, 70%, 80%, 90%, 100% {
        opacity: 1;
    }
    5%, 15%, 25%, 35%, 45%, 55%, 65%, 75%, 85%, 95% {
        opacity: 0.97;
    }
}

.text-animate {
    display: inline-block;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

nav {
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.215, 0.610, 0.355, 1);
}

nav.visible {
    transform: translateY(0);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.title-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.title-letter.visible {
    opacity: 1;
    transform: translateY(0);
}

::selection {
    background: #ffffff;
    color: #000000;
    text-shadow: none;
}

::-moz-selection {
    background: #ffffff;
    color: #000000;
    text-shadow: none;
}

.tilt-container {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 25px 45px rgba(0, 0, 0, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.light-reflection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 20% 30%,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0) 50%
    );
    z-index: 2;
    pointer-events: none;
    opacity: 0.7;
    transition: all 0.5s ease;
    mix-blend-mode: overlay;
}

.tilt-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.tilt-container:hover {
    box-shadow: 
        0 35px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 50px rgba(255, 255, 255, 0.2);
}

.tilt-container:hover::before {
    opacity: 1;
}

.tilt-container img {
    position: relative;
    z-index: 1;
    transition: filter 0.5s ease;
    filter: brightness(0.95);
}

.tilt-container:hover img {
    filter: brightness(1.05);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 100;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.5s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.mobile-menu.active {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu a {
    font-size: 1.5rem;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: white;
    position: relative;
}

.mobile-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.mobile-menu a:hover::after {
    width: 100%;
}

.close-menu {
    position: absolute;
    top: 0.5rem;
    right: 1.5rem;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.team-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 10px 20px rgba(255,255,255,0.05);
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 3px solid rgba(255,255,255,0.1);
}

.team-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.member-name {
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
}

.team-card p:last-child {
    color: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
    .mobile-menu {
        display: flex;
    }
    
    .md\\:hidden + .mobile-menu-btn {
        display: block;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

.page-header {
    padding-top: 120px;
    text-align: center;
}

.team-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-card img {
    transition: all 0.4s ease;
    filter: grayscale(0.3);
}

.team-card:hover img {
    filter: grayscale(0);
    transform: scale(1.05);
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-state {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .team-card {
        padding: 1.5rem;
    }
    
    .team-card img {
        width: 120px;
        height: 120px;
    }
}

.team-card img[src*="default-avatar"] {
    filter: grayscale(0.5);
    opacity: 0.8;
}