:root {
    --primary-color: #334155;
    /* Slate for a neutral, integrated look */
    --primary-hover: #1e293b;
    --secondary-color: #94a3b8;
    --text-color: #0f172a;
    --text-muted: #475569;
    --glass-bg: rgba(255, 255, 255, 0.75);
    /* Increased opacity to mask the detailed background */
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --animation-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: url('../images/background.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Add a subtle overlay to ensure text legibility over the detailed 3D render */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

body::after {
    display: none;
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .landing-container {
        padding: 2rem;
    }
}

.header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
    background: rgba(255, 255, 255, 0.85);
    padding: 1.5rem;
    border-radius: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    width: 100%;
}

@media (min-width: 768px) {
    .header {
        margin-bottom: 4rem;
        padding: 2rem 4rem;
    }
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

@media (min-width: 768px) {
    .header h1 {
        font-size: 3rem;
    }
}

.header p {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

@media (min-width: 768px) {
    .header p {
        font-size: 1.25rem;
    }
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2.5rem;
    width: 100%;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Selection page specific grid */
.selection-grid {
    max-width: 800px;
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .selection-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2.5rem;
    }
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all var(--animation-speed) ease;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 320px;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #ffffff;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: #f8fafc;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    transition: all var(--animation-speed);
}

.card:hover .card-icon {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
}

.card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0f172a;
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-weight: 500;
}

.arrow-icon {
    margin-top: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all var(--animation-speed);
}

.card:hover .arrow-icon {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Professional Corporate Accents - Matched to the new image's neutral/wood tones */
.card:nth-child(1):hover .card-icon,
.card:nth-child(1):hover .arrow-icon {
    background: #3b82f6;
}

/* Royal Blue */

.card:nth-child(2):hover .card-icon,
.card:nth-child(2):hover .arrow-icon {
    background: #d97706;
}

/* Warm Amber (matches wood) */

.card:nth-child(3):hover .card-icon,
.card:nth-child(3):hover .arrow-icon {
    background: #10b981;
}

/* Emerald */