:root {
    /* Apple Intelligence Color Palette */
    --ai-blue: #007AFF;
    --ai-purple: #AF52DE;
    --ai-pink: #FF2D92;
    --ai-orange: #FF9500;
    --ai-gradient: linear-gradient(135deg, #007AFF 0%, #5856D6 25%, #AF52DE 50%, #FF2D92 75%, #FF9500 100%);
    --ai-subtle-gradient: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(175, 82, 222, 0.1) 100%);
}

.fa {
    font-size: 50px;
    cursor: pointer;
    user-select: none;
    background: var(--ai-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.fa:hover {
    transform: scale(1.05);
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    color: #1d1d1f;
    transition: all 0.5s ease;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    background: var(--ai-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3em;
    font-weight: 700;
    text-align: center;
    margin: 40px 0;
    position: relative;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--ai-gradient);
    border-radius: 2px;
}

h2 {
    color: var(--ai-blue);
    font-weight: 600;
    margin: 30px 0 20px 0;
    padding: 15px 25px;
    background: var(--ai-subtle-gradient);
    border-radius: 12px;
    border-left: 4px solid var(--ai-blue);
}

h2 a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

h2 a:hover {
    background: var(--ai-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: #86868b;
    font-size: 1.1em;
    margin: 20px 0;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    margin-bottom: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border-left: 3px solid transparent;
    background-clip: padding-box;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

li:hover {
    background: rgba(255, 255, 255, 0.9);
    border-left-color: var(--ai-blue);
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.1);
}

a {
    color: var(--ai-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    background: var(--ai-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

iframe {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1c1c1e 0%, #000000 100%);
        color: #f2f2f7;
    }

    h2 {
        background: linear-gradient(135deg, rgba(0, 122, 255, 0.2) 0%, rgba(175, 82, 222, 0.2) 100%);
        border-left-color: var(--ai-purple);
    }

    p {
        color: #98989d;
    }

    li {
        background: rgba(28, 28, 30, 0.8);
        border-left-color: transparent;
    }

    li:hover {
        background: rgba(28, 28, 30, 0.95);
        border-left-color: var(--ai-purple);
    }

    a {
        color: var(--ai-blue);
    }
}

/* Subtle animation for gradient elements */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2.5em;
    }
    
    h2 {
        padding: 12px 20px;
    }
    
    li {
        padding: 12px 15px;
    }
}