/* Index Page Styles - 2 Apps Introduction */

:root {
    --primary-color: #4CAF50;
    --secondary-color: #FF9800;
    --accent-color: #2196F3;
    --mana-color: #00BCD4;
    --dark-color: #1F2937;
    --light-color: #F8FAFC;
    --gradient-primary: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    --gradient-secondary: linear-gradient(135deg, #FF9800 0%, #FF5722 100%);
    --gradient-accent: linear-gradient(135deg, #2196F3 0%, #03A9F4 100%);
    --gradient-mana: linear-gradient(135deg, #00BCD4 0%, #4FC3F7 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-accent);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.3"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.3"/><circle cx="40" cy="80" r="1" fill="white" opacity="0.3"/><circle cx="90" cy="90" r="1" fill="white" opacity="0.3"/><circle cx="10" cy="60" r="1" fill="white" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    opacity: 0.5;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Apps Grid */
.apps-grid {
    padding: 80px 0;
    background: #f8f9fa;
}

.app-card {
    background: white;
    border-radius: 25px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.app-card.allowance-quest::before {
    background: var(--gradient-primary);
}

.app-card.bug-camera::before {
    background: var(--gradient-secondary);
}

.app-card.mana-log::before {
    background: var(--gradient-mana);
}

.app-card:hover::before {
    transform: scaleX(1);
}

.app-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.app-card.allowance-quest {
    border-color: var(--primary-color);
}

.app-card.bug-camera {
    border-color: var(--secondary-color);
}

.app-card.mana-log {
    border-color: var(--mana-color);
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.app-icon.allowance-quest {
    background: var(--gradient-primary);
}

.app-icon.bug-camera {
    background: var(--gradient-secondary);
}

.app-icon.mana-log {
    background: var(--gradient-mana);
}

.app-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.app-card:hover .app-icon::after {
    transform: rotate(45deg) translate(50%, 50%);
}

.app-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.app-subtitle {
    font-size: 1.1rem;
    color: #6B7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.app-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.app-features li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.app-features li::before {
    content: '✨';
    position: absolute;
    left: 0;
    top: 0.5rem;
}

.btn-app {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-app.bug-camera {
    background: var(--gradient-secondary);
}

.btn-app.mana-log {
    background: var(--gradient-mana);
}

.btn-app::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-app:hover::before {
    left: 100%;
}

.btn-app:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    color: white;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: white;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 4px solid var(--accent-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-text {
    color: #6B7280;
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    background: var(--gradient-accent);
    color: white;
    padding: 60px 0;
}

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

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer .text-muted {
    color: #9CA3AF !important;
}

.footer h5, .footer h6 {
    color: white;
}

.footer-link {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

/* Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Animation */
.floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Bouncing Animation */
.bouncing {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding: 40px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .app-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .app-icon {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .app-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .app-card {
        padding: 1.5rem 1rem;
    }

    .app-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .btn-app {
        padding: 12px 25px;
        font-size: 1rem;
    }
}
