body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg,#667eea,#764ba2);
    display: flex;
    height: 100vh;
    overflow: hidden;
    transition: 0.4s;
}


.sidebar {
    width: 230px;
    backdrop-filter: blur(15px);
    background: rgba(255,255,255,0.15);
    padding: 20px;
    color: white;
    box-shadow: 5px 0 20px rgba(0,0,0,0.3);
}

.sidebar h2 {
    text-align: center;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    padding: 10px;
    margin: 8px 0;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.3s;
}

.sidebar li:hover {
    background: rgba(255,255,255,0.3);
    transform: translateX(5px);
}

.sidebar button {
    margin-top: 20px;
    padding: 8px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
}

.main {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}


.topbar input {
    width: 300px;
    padding: 12px;
    border-radius: 30px;
    border: none;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
    gap: 25px;
}

.card {
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    color: white;
    transition: 0.4s;
    transform-style: preserve-3d;
    animation: fadeIn 0.6s ease;
}

.card:hover {
    transform: rotateY(8deg) rotateX(8deg) scale(1.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card img {
    width: 60px;
    margin-bottom: 10px;
    transition: 0.4s;
}

.card:hover img {
    transform: scale(1.2) rotate(8deg);
}

.card button {
    margin-top: 10px;
    padding: 8px 15px;
    border-radius: 25px;
    border: none;
    background: linear-gradient(45deg,#ff6a00,#ee0979);
    color: white;
    cursor: pointer;
}


.dark {
    background: #121212;
}

.dark .sidebar {
    background: rgba(0,0,0,0.6);
}

.dark .card {
    background: rgba(0,0,0,0.5);
}


@keyframes fadeIn {
    from {opacity: 0; transform: translateY(20px);}
    to {opacity: 1; transform: translateY(0);}
}
.description-box {
    position: relative;
    background: linear-gradient(135deg, #1f2937, #111827);
    padding: 25px;
    border-radius: 16px;
    margin: 25px;
    border: 1px solid #3b82f6;
    box-shadow: 0 0 25px rgba(59,130,246,0.2);
    color: #e5e7eb;
}

.description-box h2 {
    color: #3b82f6;
    margin-bottom: 12px;
}

.description-box p {
    font-size: 14px;
    line-height: 1.6;
    color: #d1d5db;
}


.close-btn {
    position: absolute;
    top: 12px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
    color: #f87171;
    font-weight: bold;
    transition: 0.3s;
}

.close-btn:hover {
    color: #ef4444;
    transform: scale(1.2);
}