.animated-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 1;
}

.animated-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, #ff000030 50%, transparent 100%);
    animation: pulse 8s ease infinite;
    z-index: 2;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.btn-primary {
    background: rgba(255, 0, 0, 0.1);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-family: 'Albert Sans', sans-serif;
    border: 1px solid rgba(255, 0, 0, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 0, 0, 0.1) 0%,
        rgba(255, 0, 0, 0.2) 50%,
        rgba(255, 0, 0, 0) 100%
    );
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

.btn-primary:hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.feature-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 0, 0, 0.1);
    padding: 1.5rem;
    border-radius: 0.75rem;
    color: white;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 0, 0, 0.3);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.1);
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 0, 0, 0.3);
}

.scrollbar-hidden {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hidden::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
}

.lang-switch {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .btn-primary {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .lang-switch {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 640px) {
    .btn-primary {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

.waifu-container {
    position: fixed;
    bottom: 0;
    z-index: 3;
    pointer-events: none;
    will-change: transform, opacity;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.waifu-container.right {
    right: 0;
    animation: fadeInFloatRight 2s cubic-bezier(0.4, 0, 0.2, 1) forwards,
               floatAnimation 6s ease-in-out infinite;
}

.waifu-container.left {
    left: 0;
    top: 0;
    bottom: auto;
    animation: fadeInFloatTop 2s cubic-bezier(0.4, 0, 0.2, 1) forwards,
               floatAnimationTop 6s ease-in-out infinite;
}

@keyframes fadeInFloatRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInFloatLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInFloatTop {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.waifu-image {
    height: 90vh;
    max-height: 800px;
    width: auto;
    opacity: 0.65; /* Reduced from 0.85 */
    filter: drop-shadow(0 0 25px rgba(255, 0, 0, 0.4)) brightness(1.1);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    75% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes floatAnimationTop {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -5px) rotate(1deg); }
    75% { transform: translate(-10px, 5px) rotate(-1deg); }
}

.waifu-container::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 0, 0, 0.2) 0%,
        rgba(255, 0, 0, 0.1) 25%,
        rgba(255, 0, 0, 0.05) 50%,
        transparent 70%
    );
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: -1;
}

.waifu-container::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 0, 0, 0.1) 50%,
        transparent 100%
    );
    top: 0;
    left: 0;
    mix-blend-mode: overlay;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; }
}

/* Add character lighting effects */
.waifu-container::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(
        circle,
        rgba(255, 0, 0, 0.15) 0%,
        rgba(255, 0, 0, 0.1) 30%,
        transparent 70%
    );
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    mix-blend-mode: screen;
    animation: glowPulse 3s ease-in-out infinite;
}

.waifu-container.right::after {
    animation-delay: 1.5s;
}

@keyframes glowPulse {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.95);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.95);
    }
}

@media (max-width: 1024px) {
    .waifu-image {
        height: 70vh;
    }
    .waifu-container.left {
        left: -20%;
        top: -10%;
    }
    .waifu-container.right {
        right: -20%;
    }
    .waifu-container.right {
        transform: scale(0.8);
        right: -10%;
    }
    .waifu-container.left {
        transform: scale(0.8);
        left: -10%;
    }
}

@media (max-width: 768px) {
    .waifu-container.left {
        left: -30%;
        top: -15%;
    }
    .waifu-container.right {
        right: -30%;
    }
    .waifu-image {
        height: 60vh;
        opacity: 0.25;
    }
    .waifu-container::before,
    .waifu-container::after {
        opacity: 0.5;
    }
    .waifu-container::after {
        opacity: 0.3;
        width: 120%;
        height: 120%;
    }
    .waifu-container.right {
        transform: scale(0.6);
        right: -20%;
    }
    .waifu-container.left {
        transform: scale(0.6);
        left: -20%;
        top: -5%;
    }
    .waifu-image {
        opacity: 0.4;
        transition: opacity 0.3s ease;
    }
    .waifu-container:hover .waifu-image {
        opacity: 0.6;
    }
}

@media (max-width: 640px) {
    .waifu-container.left {
        left: -40%;
        top: -20%;
    }
    .waifu-container.right {
        right: -40%;
    }
    .waifu-image {
        height: 50vh;
    }
    .waifu-container.right {
        transform: scale(0.5);
        right: -25%;
    }
    .waifu-container.left {
        transform: scale(0.5);
        left: -25%;
        top: -10%;
    }
}

/* Portrait Mode Adjustments */
@media (max-width: 480px) and (orientation: portrait) {
    .waifu-container.right {
        transform: scale(0.4);
        right: -30%;
        bottom: 10%;
    }
    .waifu-container.left {
        transform: scale(0.4);
        left: -30%;
        top: 0;
    }
}

/* Add hover effects */
@media (hover: hover) {
    .waifu-container:hover .waifu-image {
        transform: scale(1.02);
        filter: drop-shadow(0 0 35px rgba(255, 0, 0, 0.6)) brightness(1.2);
    }
}

footer a {
    position: relative;
    text-decoration: none;
}

footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -1px;
    left: 0;
    background-color: rgba(255, 0, 0, 0.6);
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}
