/* Custom styles for Ammon Larson's personal site */

:root {
    --bg-color: #0f172a; /* Slate 900 */
    --text-color: #f8fafc; /* Slate 50 */
    --accent-color: #38bdf8; /* Sky 400 */
    --accent-hover: #7dd3fc; /* Sky 300 */
    --overlay-bg: rgba(15, 23, 42, 0.6);
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Card Styling */
.card {
    background: transparent;
    border: none;
    border-radius: 0;
}

.img-fluid {
    width: 100%;
    height: auto;
    object-fit: cover;
    /* Ensure image doesn't get too tall on large screens if desired, or let it be */
    max-height: 85vh; 
}

/* Overlay Styling - Glassmorphism */
.card-img-overlay {
    background: var(--overlay-bg);
    backdrop-filter: blur(1px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem 2rem 2rem;
}

/* Typography */
h1.card-title {
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Responsive font size */
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3.card-text {
    font-weight: 400;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    
    /* Glass card container for text */
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Link Styling */
h3.card-text a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

h3.card-text a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

h3.card-text a:hover {
    color: var(--accent-hover);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

h3.card-text a:hover::after {
    width: 100%;
}

/* Footer Styling */
.card-footer {
    background-color: #020617; /* Darker than body */
    color: #94a3b8;
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
}
