:root {
    --bg-color: #0d0b14;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-hover-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.05);
    --card-hover-border: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent: #ff00a0;
    --accent-glow: rgba(255, 0, 160, 0.5);
    --gradient-1: #ff00a0;
    --gradient-2: #6500ff;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.7), rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 90px 40px, rgba(255,255,255,0.9), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.5), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 130px 180px, #ffffff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

/* Background Effects */
.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: pulse 10s infinite alternate;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: -200px;
    left: -100px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.1); opacity: 0.5; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

header {
    text-align: center;
    margin-bottom: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px var(--accent-glow);
}

.header-icon {
    font-size: 32px;
    color: white;
}

.logo-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    line-height: 1;
}

.sub-logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 6px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: var(--accent);
    text-align: center;
}

.logo-exclam {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    transform: translateY(-2px);
}

.logo-exclam .stem {
    width: 10px;
    height: 38px;
    background-color: white;
    margin-bottom: 6px;
    border-radius: 2px;
}

.logo-exclam .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
}

.author-badge {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.author-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--accent);
}

.author-badge strong {
    color: var(--text-primary);
    font-weight: 600;
}

.gems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.gem-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.gem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 0;
}

.gem-card:hover {
    background: var(--card-hover-bg);
    border-color: var(--card-hover-border);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

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

.gem-card > * {
    position: relative;
    z-index: 1;
}

.gem-icon-wrapper {
    background: rgba(255, 255, 255, 0.05);
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.gem-card:hover .gem-icon-wrapper {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-color: transparent;
}

.gem-icon-wrapper i {
    font-size: 24px;
    color: var(--text-primary);
}

.gem-content {
    flex-grow: 1;
}

.gem-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.gem-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.gem-arrow {
    background: transparent;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s;
    opacity: 0.5;
}

.gem-arrow i {
    font-size: 18px;
}

.gem-card:hover .gem-arrow {
    opacity: 1;
    color: var(--text-primary);
    transform: translate(2px, -2px);
    background: rgba(255, 255, 255, 0.1);
}

footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .logo-title {
        font-size: 2.8rem;
    }
    
    .logo-exclam .stem {
        height: 26px;
        width: 8px;
        margin-bottom: 4px;
    }
    
    .logo-exclam .dot {
        width: 10px;
        height: 10px;
    }

    .sub-logo {
        font-size: 1.2rem;
        letter-spacing: 4px;
    }
    
    .gems-grid {
        grid-template-columns: 1fr;
    }
}
