@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;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.37);
    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);
}

.cursor-shadow.active {
    transform: translate(-50%, -50%) scale(1.5);
    width: 120px;
    height: 120px;
}

.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.infinity-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vw;
    height: 70vw;
    filter: blur(20px);
    z-index: 0;
    opacity: 0;
    animation: 
        initialFadeIn 3s forwards,
        continuousPulse 6s 3s infinite ease-in-out;
}

@keyframes initialFadeIn {
    to { opacity: 0.4; }
}

@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;
    }
}

.client-carousel {
    position: relative;
    padding: 0 50px;
}

.client-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
}

.client-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.client-logo {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    overflow: hidden;
}

.client-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.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%;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

.service-card {
    transition: all 0.2s ease, opacity 0.1s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 10px 20px rgba(255,255,255,0.05);
}

.services-container:hover .service-card:not(:hover) {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.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);
}

.main-title {
    opacity: 0;
    animation: 
        fadeIn 1s ease-out forwards,
        rapidFlicker 0.5s infinite steps(1) 1s,
        floatAnimation 8s infinite ease-in-out 1s;
    animation-delay: 0.3s;
}

.main-title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.main-title.visible span {
    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);
}

.discord-widget {
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.discord-widget:hover {
    transform: scale(1.01);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.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;
}

@media (max-width: 768px) {
    .mobile-menu {
        display: flex;
    }
    
    .md\\:hidden + .mobile-menu-btn {
        display: block;
    }
}

.scrollbar-track {
    background: rgba(255, 255, 255, 0.05) !important;
    width: 6px !important;
}

.scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 3px !important;
}

.scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5) !important;
}

@media (max-width: 768px) {

    .scrollbar-track {
        display: none !important;
    }
}