/* Base Styles */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
}

.container {
    position: relative;
    z-index: 10;
}

/* Hero Section */
.hero-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 2rem 0;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Anime Logo */
.anime-logo-container {
    perspective: 1000px;
}

.anime-logo {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 4rem;
    font-weight: bold;
    margin: 2rem 0;
}

.letter {
    display: inline-block;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.letter:hover {
    transform: scale(1.2) rotateY(180deg);
}

/* Shapes */
.shapes-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.shape {
    width: 80px;
    height: 80px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.shape-circle {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border-radius: 50%;
}

.shape-square {
    background: linear-gradient(45deg, #4834d4, #686de0);
    border-radius: 10px;
}

.shape-triangle {
    background: linear-gradient(45deg, #00d2d3, #54a0ff);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.shape-star {
    background: linear-gradient(45deg, #ff9ff3, #f368e0);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Demo Cards */
.demo-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.demo-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.demo-card p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* Interactive Cards Page */
.cards-playground {
    min-height: 70vh;
    position: relative;
}

.card-deck-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
    perspective: 1000px;
}

.interactive-card {
    width: 200px;
    height: 300px;
    position: relative;
    cursor: grab;
    transform-style: preserve-3d;
}

.interactive-card:active {
    cursor: grabbing;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    backface-visibility: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-back {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: rotateY(180deg);
}

.card-front h3,
.card-back h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-front p,
.card-back p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Stats */
.stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    color: white;
    text-align: center;
}

.stat-item h4 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    color: #ffd700;
}

.stat-item p {
    margin: 0.5rem 0 0 0;
    opacity: 0.8;
}

/* Particles */
.particle {
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 1000;
}

/* Page Headers */
.page-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

/* Particles Page */
.particle-canvas {
    position: relative;
    width: 100%;
    height: 500px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.particle-system {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    pointer-events: none;
}

/* Scroll Page */
.scroll-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 15px;
    margin: 2rem 0;
    overflow: hidden;
}

.scroll-section:nth-child(odd) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.scroll-section:nth-child(even) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.scroll-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.reveal-element {
    opacity: 0;
    transform: translateY(50px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .anime-logo {
        font-size: 2.5rem;
    }
    
    .shapes-container {
        gap: 1.5rem;
    }
    
    .shape {
        width: 60px;
        height: 60px;
    }
    
    .card-deck-container {
        flex-direction: column;
        align-items: center;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
}

/* Animation classes */
.animate-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.animate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.animate-btn:active {
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}