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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
    color: #1e293b;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.15), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 32px 60px;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 64px;
}

header h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

header p {
    font-size: 1.25em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    letter-spacing: 0.2px;
}

.experiments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.experiment-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.experiment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.4s;
    transform-origin: left;
}

.experiment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.3);
}

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

.experiment-card h3 {
    color: #0f172a;
    margin-bottom: 20px;
    font-size: 1.75em;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.experiment-card .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
}

.experiment-card .meta span:not(.badge) {
    font-size: 0.9em;
    color: #64748b;
    font-weight: 500;
}

.experiment-card .badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.badge.chemistry {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge.physics {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.badge.biology {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.experiment-card .description {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 32px;
    font-size: 0.95em;
}

.experiment-card .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.experiment-card .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.experiment-card .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.45);
}

.experiment-card .btn:hover::before {
    width: 300px;
    height: 300px;
}

.experiment-card .btn:active {
    transform: translateY(-1px);
}

.experiment-card .btn span {
    position: relative;
    z-index: 1;
}

.admin-link {
    text-align: center;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.admin-link a {
    color: white;
    text-decoration: none;
    font-size: 1em;
    font-weight: 600;
    padding: 14px 32px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.admin-link a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.loading {
    text-align: center;
    color: white;
    font-size: 1.2em;
    padding: 80px 32px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.empty-state {
    text-align: center;
    color: white;
    padding: 100px 32px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.empty-state h2 {
    font-size: 2.5em;
    margin-bottom: 16px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.empty-state p {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.empty-state a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 14px 32px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.empty-state a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .container {
        padding: 60px 24px 40px;
    }

    header h1 {
        font-size: 2.5em;
    }

    header p {
        font-size: 1.1em;
    }

    .experiments-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .experiment-card {
        padding: 32px;
    }
}

