/* =====================================================
   Homepage - Modern Design System
   ===================================================== */

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

:root {
    /* Primary Colors */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --tools-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --games-gradient: linear-gradient(135deg, #fc466b 0%, #3f5efb 100%);

    /* Background Colors */
    --bg-dark: #0a0a1a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.1);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Effects */
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.4);

    /* Sizes */
    --border-radius: 20px;
    --border-radius-sm: 12px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* =====================================================
   Background Animation
   ===================================================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(252, 70, 107, 0.1) 0%, transparent 60%);
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: -100px;
    left: -100px;
    animation: float1 20s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #11998e, #38ef7d);
    top: 50%;
    right: -100px;
    animation: float2 25s ease-in-out infinite;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #fc466b, #3f5efb);
    bottom: -50px;
    left: 30%;
    animation: float3 18s ease-in-out infinite;
}

.shape-4 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    top: 40%;
    left: 10%;
    animation: float4 22s ease-in-out infinite;
}

@keyframes float1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(100px, 50px) rotate(120deg);
    }

    66% {
        transform: translate(50px, 100px) rotate(240deg);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-80px, -60px) rotate(180deg);
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-50px, -80px);
    }
}

@keyframes float4 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(60px, 40px) scale(1.2);
    }
}

/* =====================================================
   Container & Layout
   ===================================================== */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* =====================================================
   Header
   ===================================================== */
.header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo-icon {
    font-size: 3rem;
    animation: rocketFloat 3s ease-in-out infinite;
}

@keyframes rocketFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 3px;
}

/* =====================================================
   Category Sections
   ===================================================== */
.category-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
}

.section-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    box-shadow: var(--shadow-card);
}

.tools-icon {
    background: var(--tools-gradient);
}

.games-icon {
    background: var(--games-gradient);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

#tools-section .section-title {
    background: var(--tools-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#games-section .section-title {
    background: var(--games-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =====================================================
   Cards Grid
   ===================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.card {
    display: flex;
    align-items: center;
    padding: 25px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

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

.card:hover {
    transform: translateY(-8px) scale(1.02);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-hover);
}

.card:hover::before {
    opacity: 1;
}

.tool-card:hover {
    border-color: rgba(56, 239, 125, 0.3);
    box-shadow: 0 20px 60px rgba(17, 153, 142, 0.2);
}

.game-card:hover {
    border-color: rgba(252, 70, 107, 0.3);
    box-shadow: 0 20px 60px rgba(252, 70, 107, 0.2);
}

.card[data-status="coming-soon"] {
    opacity: 0.7;
    cursor: default;
}

.card[data-status="coming-soon"]:hover {
    transform: translateY(-4px) scale(1.01);
}

.card-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-right: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tool-card .card-icon {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.2), rgba(56, 239, 125, 0.2));
}

.game-card .card-icon {
    background: linear-gradient(135deg, rgba(252, 70, 107, 0.2), rgba(63, 94, 251, 0.2));
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.card-badge.available {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
    border: none;
    font-weight: 600;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(56, 239, 125, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(56, 239, 125, 0);
    }
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 40px;
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .logo-text {
        font-size: 1.8rem;
    }

    .logo-icon {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .section-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

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

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 20px;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 1.5rem;
        margin-right: 15px;
    }

    .card-title {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px 10px;
        margin-bottom: 40px;
    }

    .logo {
        flex-direction: column;
        gap: 10px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .category-section {
        margin-bottom: 40px;
    }
}

/* =====================================================
   Entrance Animations
   ===================================================== */
.header,
.category-section {
    animation: fadeInUp 0.8s ease-out;
}

#games-section {
    animation-delay: 0.2s;
}

.card {
    animation: fadeInUp 0.6s ease-out both;
}

.cards-grid .card:nth-child(1) {
    animation-delay: 0.1s;
}

.cards-grid .card:nth-child(2) {
    animation-delay: 0.15s;
}

.cards-grid .card:nth-child(3) {
    animation-delay: 0.2s;
}

.cards-grid .card:nth-child(4) {
    animation-delay: 0.25s;
}

.cards-grid .card:nth-child(5) {
    animation-delay: 0.3s;
}

.cards-grid .card:nth-child(6) {
    animation-delay: 0.35s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}