:root {
    --bg: #0f172a;
    /* Dark Navy */
    --accent: #38bdf8;
    /* Logic Blue */
    --text: #f1f5f9;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    padding: 2rem 5%;
}

header {
    text-align: center;
    padding: 100px 5%;
}

section {
    padding: 2rem 5%;
}

h2 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    border: 1px solid #334155;
    padding: 1.5rem;
    border-radius: 8px;
    transition: 0.3s;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.card {
    position: relative;
}

.card-date {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(56, 189, 248, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    margin-bottom: 0.8rem;
}

.card h3 {
    margin-top: 0;
}

/* Header / Banner Overrides */
header.banner {
    background: linear-gradient(to bottom, #0f172a, #1e293b);
    border-bottom: 1px solid #334155;
    padding: 3rem 5%;
    text-align: left;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    /* Increased gap between text/grid and image */
}

.header-text {
    flex: 1;
    /* Takes up remaining space */
}

.header-text h1 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 2rem;
    /* Add spacing between title and contact grid */
    color: var(--text);
}

.header-text h1 strong {
    font-weight: 700;
    color: var(--accent);
    display: block;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.profile-photo {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--accent);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
    flex-shrink: 0;
    /* Prevent image from shrinking */
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: center;
    }

    .header-text {
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        /* Single column for contact info on mobile */
        justify-items: center;
    }

    .profile-photo {
        width: 200px;
        height: 200px;
        border-width: 4px;
    }
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Force 2 columns */
    gap: 1rem;
    margin-top: 0;
    /* Spacing handled by header-text h1 */
    font-size: 0.95rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
}

.contact-item a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Section Headers */
.section-heading {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    color: var(--text);
    text-transform: uppercase;
}

.subsection-heading {
    color: var(--accent);
    /* Cyan */
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}