
/* Base and Shared Styles */
:root {
    --primary-color: #003366;
    --secondary-color: #4a90e2;
    --text-color: #333;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
}

body { 
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.header { 
    background-color: var(--primary-color);
    color: white;
    padding: 1em 3em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header h1 {
    margin: 0;
    font-size: 1.7em;
    font-weight: bold;
}

.header nav a {
    margin: 0 20px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

.header nav a:hover {
    color: var(--secondary-color);
}

.container {
    padding: 3em 2em;
    max-width: 1400px;
    margin: auto;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 1.5em;
    color: var(--primary-color);
    font-weight: 600;
}

.footer { 
    background-color: var(--primary-color); 
    color: #fff;
    padding: 2em; 
    text-align: center; 
    margin-top: 3em;
}

/* Index Page Specific Styles */
.main-visual {
    width: 100%;
    height: 60vh;
    overflow: hidden;
    position: relative;
    text-align: center;
    color: white;
}

.main-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.main-visual-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

/* MODIFIED: Card Layout Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
}

.card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    padding: 2em 1.5em;
    /* width and max-width are removed to allow the grid to control the size */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.card img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 1.5em;
    background-color: #f0f0f0;
}

.card-content {
    padding: 0;
}

.card h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-top: 0;
}

/* Form-specific styles from llm.html */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5em;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 1.5em;
}

label {
    display: block;
    margin-bottom: 0.5em;
    color: var(--text-color);
    font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.8em;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
    background-color: #fff;
    color: var(--text-color);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

button {
    display: block;
    width: 100%;
    padding: 1em;
    border: none;
    border-radius: 4px;
    background-color: var(--secondary-color);
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--primary-color);
}

#result-container {
    margin-top: 2em;
    padding: 1.5em;
    background-color: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#result {
    min-height: 50px;
}

.loading-message, .error-message {
    color: #777;
    font-style: italic;
}

.error-message {
    color: #d9534f;
}
