/* --- Global Styles & Font --- */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&display=swap');

body {
    font-family: 'Fira Code', monospace;
    color: #c9d1d9;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-size: 16px;
    background-image: linear-gradient(rgba(13, 17, 23, 0.85), rgba(13, 17, 23, 0.85)), url('background.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.container {
    max-width: 700px;
    width: 100%;
    animation: fadeIn 1s ease-in-out;
}

/* --- Header --- */
/* MOBILE-FIRST STYLES */
header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #58a6ff;
    margin-bottom: 0.5em;
    text-align: left; /* CHANGED from center to left */
}

.header-content {
    text-align: left; /* CHANGED from center to left */
}

.profile-picture {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #30363d;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    /* This centers the image by putting it in its own block and using auto margins */
    display: block;
    margin: 1.5em auto; 
}

header .bio {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #c9d1d9;
    margin: 0;
    /* ADDED the border for consistency and style */
    border-left: 3px solid #00bfff;
    padding-left: 1.5em;
}

/* --- Link Cards --- */
.link-grid {
    display: grid;
    gap: 15px;
    margin-top: 2.5em; 
}

.link-card {
    display: block;
    background-color: rgba(22, 27, 34, 0.8);
    border: 1px solid #30363d;
    padding: 20px 25px;
    text-decoration: none;
    color: #c9d1d9;
    border-radius: 8px;
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.link-card:hover {
    transform: translateY(-5px);
    border-color: #00bfff;
    background-color: rgba(31, 37, 45, 0.9);
}

.link-card .link-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #58a6ff;
    margin-bottom: 5px;
}

.link-card .link-desc {
    font-size: 0.95rem;
    color: #8b949e;
}

/* --- Footer --- */
footer {
    text-align: center;
    margin-top: 3em;
    font-size: 0.9rem;
    color: #8b949e;
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 
==============================================
  RESPONSIVE STYLES FOR WIDER SCREENS
==============================================
*/
@media (min-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    .header-content {
        display: flex;
        align-items: center;
        gap: 2em;
    }

    .text-column {
        flex: 1;
    }

    .image-column {
        flex-shrink: 0;
    }

    .profile-picture {
        width: 200px;
        height: 240px;
        border-radius: 8px;
        margin: 0;
    }
}