:root {
    --bg-color: #050f1e;
    --card-bg: rgba(20, 35, 60, 0.4);
    --card-border: rgba(100, 180, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0b3d1;
    --accent-glow: #0077be;
    --accent-hover: #00aaff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 80, 150, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 100, 200, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cards-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

/* Card Styles */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: clamp(1.6rem, 2.8vw, 3rem) clamp(1rem, 2.2vw, 2rem);
    width: 45%;
    height: clamp(170px, 25vh, 280px);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(30, 50, 80, 0.6);
    border-color: rgba(100, 200, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0, 119, 190, 0.25);
}

.card-content {
    z-index: 2;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 170, 255, 0.3));
    transition: transform 0.3s ease;
}

.card:hover .icon {
    transform: scale(1.1);
}

.card h2 {
    color: var(--text-primary);
    font-size: clamp(1.15rem, 2.0vw, 1.8rem);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Card Internal Glow Effect */
.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 170, 255, 0.1) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.card:hover .card-glow {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Card Background Image */
.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    /*opacity: 0.5;*/
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    /*filter: saturate(0.8) brightness(0.8);*/
}

.card:hover .card-background {
    transform: scale(1.1);
    opacity: 0.7;
    filter: saturate(1) brightness(1);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 15, 30, 0.3) 0%, rgba(5, 15, 30, 0.8) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .card {
        width: min(100%, 520px);
    }
}

@media (max-width: 768px) {
    main {
        padding: 1rem;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .card {
        width: 100%;
        max-width: 100%;
        height: clamp(150px, 32vh, 220px);
    }
}
