@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #0f172a;
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.65);
    --card-border: rgba(255, 255, 255, 0.8);
    --text-color: #334155;
    --text-muted: #64748b;
    --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%), url('../bg.jpg') center/cover fixed no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Glassmorphism utilities */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
    z-index: 1;
    position: relative;
}

/* Decorative Background Blobs */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: rgba(37, 99, 235, 0.25);
    top: -150px;
    left: -150px;
}

.shape-2 {
    width: 600px;
    height: 600px;
    background: rgba(147, 51, 234, 0.15);
    bottom: -200px;
    right: -150px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 30px) scale(1.1);
    }
}

header {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 4rem;
    animation: fadeInDown 0.8s ease-out;
}

header h1 {
    font-size: 3.5rem;
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
}

header h1 span {
    color: var(--primary);
    background: linear-gradient(120deg, #2563eb, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid Layout */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* System Cards */
.system-card {
    border-radius: 1.25rem;
    padding: 2.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.8s ease-out backwards;
}

.system-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 0;
}

.system-card>* {
    position: relative;
    z-index: 1;
}

.system-card:nth-child(1) {
    animation-delay: 0.1s;
}

.system-card:nth-child(2) {
    animation-delay: 0.2s;
}

.system-card:nth-child(3) {
    animation-delay: 0.3s;
}

.system-card:nth-child(4) {
    animation-delay: 0.4s;
}

.system-card:nth-child(5) {
    animation-delay: 0.5s;
}

.system-card:nth-child(6) {
    animation-delay: 0.6s;
}

.system-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -5px rgba(37, 99, 235, 0.15);
    border-color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.85);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    width: 75px;
    height: 75px;
    border-radius: 1rem;
}

.system-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.card-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.card-action {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.card-action i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.system-card:hover .card-action i {
    transform: translateX(6px);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: auto;
    z-index: 1;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Quick Admin Link Setup */
.admin-link {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.admin-link:hover {
    background: white;
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .systems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    .admin-link {
        top: 1rem;
        right: 1rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    .systems-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}