/* ========================================
  CSS Custom Properties (Variables)
  ======================================== */
:root {
    --color-primary: #007bff;
    --color-primary-hover: #0056b3;
    --color-background: #f0f2f5; /* Slightly darker background for more contrast */
    --color-surface: #ffffff;
    --color-heading-text: #212529;
    --color-body-text: #495057;
    --color-subtle-border: #dee2e6;
    --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --border-radius-lg: 12px;
    --border-radius-md: 8px;
    --card-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* More prominent shadow */
}

/* ========================================
  Global Reset & Base Styles
  ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-background);
    color: var(--color-body-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
}

/* ========================================
  Main Layout
  ======================================== */
.main-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hero-panel {
    height: 250px;
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('hero-image.jpg');
    background-size: cover;
    background-position: center;
}

.content-panel {
    display: flex;
    justify-content: center;
    padding: 2rem 1.5rem;
    background-color: var(--color-background); /* Use a slightly darker background for contrast */
    flex-grow: 1;
    /* Minimalist background texture to fill space without being empty */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e0e3e7' fill-opacity='0.6'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.content-wrapper {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Consistent spacing between sections */
}

/* ========================================
  Animations
  ======================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.brand-logo { animation: fadeIn 0.5s ease-out; animation-fill-mode: backwards; }
.main-hero-card { animation: fadeIn 0.5s ease-out 0.1s; animation-fill-mode: backwards; }
.access-portal-card { animation: fadeIn 0.5s ease-out 0.2s; animation-fill-mode: backwards; }
.key-focus-card { animation: fadeIn 0.5s ease-out 0.3s; animation-fill-mode: backwards; }
footer { animation: fadeIn 0.5s ease-out 0.4s; animation-fill-mode: backwards; }

@keyframes ripple {
  0% { transform: scale(0, 0) translate(-50%, -50%); opacity: 1; }
  100% { transform: scale(20, 20) translate(-50%, -50%); opacity: 0; }
}

/* ========================================
  Content Modules & Card Style (3D)
  ======================================== */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    align-self: flex-start;
    margin-bottom: 0.5rem; /* Add some space below logo */
}

.brand-logo span {
    font-weight: 500;
    color: var(--color-body-text);
    font-size: 0.9rem;
}

/* Card Style for 3D effect */
.card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-subtle-border);
    border-radius: var(--border-radius-lg);
    padding: 1.75rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.12); /* Slightly more pronounced hover shadow */
}

.main-hero-content h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-heading-text);
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--color-body-text);
}

.access-portal h2 {
    font-size: 1.25rem;
    color: var(--color-heading-text);
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.role-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.btn {
    background-color: var(--color-primary);
    color: var(--color-surface);
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius-md);
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    text-align: center;
    border: none;
    position: relative;
    overflow: hidden; /* For ripple effect */
}
.btn:hover, .btn:focus {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
/* Shimmer effect on hover */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255,255,255,0.5);
    opacity: 0;
    border-radius: 50%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}
.btn:hover::after {
    animation: ripple 1s ease-out;
}

.key-focus {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem; /* Slightly reduced gap inside card for density */
}

.focus-item {
    text-align: center;
}

.focus-item h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-heading-text);
}

.focus-item p {
    font-size: 0.85rem;
    color: var(--color-body-text);
}

/* Footer */
footer {
    text-align: center;
    padding-top: 1rem; /* Reduced padding for more compact look */
}
footer p {
    font-size: 0.8rem;
    color: #6c757d;
}

/* ========================================
  Tablet & Desktop Responsiveness
  ======================================== */
@media (min-width: 768px) {
    .role-buttons { grid-template-columns: 1fr 1fr; }
    .content-wrapper { gap: 1.75rem; } /* Slightly more space between cards on larger screens */
    .card { padding: 2rem; } /* More padding inside cards on larger screens */
}

@media (min-width: 1024px) {
    .main-container {
        flex-direction: row;
    }
    .hero-panel {
        flex: 1 1 45%;
        height: 100vh;
    }
    .content-panel {
        flex: 1 1 55%;
        align-items: center;
        padding: 3rem;
        overflow: hidden;
    }
    .content-wrapper { 
        max-width: 600px;
        gap: 2rem;
    }
    .main-hero-content h1 { font-size: 2.2rem; }
}