
/* 
    Created on : Apr 13, 2026, 11:16:37 AM
    Author     : axlsln
*/

/*header and background design */
#header {
    background-color: #92C8B4;
    overflow: hidden;
    display: flex;
    align-items: center;
    #title {
        font-family: "Times New Roman", Times, serif;
        font-weight: bold;
        font-size: 250%;
        background: linear-gradient(to right, #4e4376, #2b5876);
        background-clip: text;
        color: transparent;
    }
}


#header a {
    text-align: center;
    float: right;
    padding-left: 5%;
    font-size: 125%;
    color: #F5F0D7;
}

#header a:hover {
    color: yellow;
}

body {
    background-color: #F5F0D7;
}

/* About me page styling */
#home_content p{
    text-align: left;
    line-height: 1.5;
    width: 50%;
    font-size: 115%;
    color: #2A2A63;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

#axel_hs {
   float: right;
    width: 30%;            /* Sets a narrow width */
    height: auto;           /* Sets a tall height */
    object-fit: cover;       /* Ensures image covers area without stretching */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10%;       /* Adds space between text and image */
    position: relative;
    margin-top: -25%;
}

/* Resume Page Styling*/
#experience_content *{
    color: #2A2A63;
}

#experience_content p{
    font-style: italic;
    font-size: 115%;
}

#experience_content li{
    font-size: 115%;
}

#experience_content hr{
    border: 1px solid;
}

/* Projects Page Styling */
#projects_content *{
    color: #2A2A63;
}
#projects_content hr{
    border: 1px solid;
}
#projects_content li{
    font-size: 115%;
}

/* Hobbies Page Styling */
#hobbies_content h3, h2, hr{
    color: #2A2A63;
}
#hobbies_content hr{
    border: 1px solid;
}
#hobbies_content p{
    color: #2A2A63;
    font-size: 120%;
}

.car-gallery {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    width: 100%;
    flex-wrap: wrap;
}
.car-gallery figure{
    display: flex;
    flex-direction: column; /* Stacks image on top, text on bottom */
    align-items: center;    /* Centers the caption under the image */
    margin: 0;             /* Resets default browser margins */
    flex: 0 0 32%;
}
.car-gallery img{
    width: 100%;               /* Adjust this so three images fit on one line */
    height: auto;             /* Maintains aspect ratio so they don't stretch */
    border-radius: 8px;       /* Optional: adds nice rounded corners */
    object-fit: cover;
    min-width: 250px;
}
figcaption {
    margin-top: 10px;
    font-family: Arial, sans-serif;
    color: #2A2A63;
    font-weight: bold;
    text-align: center;
}

.cat-gallery {
   display: flex;
   justify-content: center;
   gap: 15px;
   padding: 20px;
   width: 100%;
   flex-wrap: wrap;
}
.cat-gallery figure{
   display: flex;
    flex-direction: column; /* Stacks image on top, text on bottom */
    align-items: center;    /* Centers the caption under the image */
    margin: 0;             /* Resets default browser margins */
    flex: 0 0 32%; 
}
.cat-gallery img{
    width: 100%;
    aspect-ratio: 16 / 12;
    border-radius: 8px;
    object-fit: cover;
    min-width: 250px;
}

.music-section{
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
}
.music-section p{
    flex: 1;
    margin: 0;
}
#music1 {
    width: 22%;
    height: 22%;
    border-radius: 8px;
    object-fit: cover;
}

.brew-section{
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
}
.brew-section p{
    flex: 1;
    margin: 0;
}
#brew1 {
    width: 10%;
    height: 10%;
    border-radius: 8px;
    object-fit: cover;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    
    /* 1. Stack the Header links vertically */
    #header {
        flex-direction: column;
        text-align: center;
        padding-bottom: 10px;
    }

    #header a {
        float: none;      /* Remove the float */
        display: block;   /* Make links stack */
        padding: 10px 0;
        width: 100%;
    }

    /* 2. Fix the Home Page Content */
    #home_content p {
        width: 90%;       /* Use most of the screen width on mobile */
        margin: 0 auto;   /* Center the text block */
    }

    #axel_hs {
        float: none;      /* Stop floating the headshot */
        margin: 20px auto;/* Center it and give it space */
        width: 60%;       /* Make it larger on mobile so it's visible */
        position: static; /* Remove the relative positioning */
    }

    /* 3. Stack the Galleries (Cars and Cats) */
    .car-gallery figure, 
    .cat-gallery figure {
        flex: 0 0 100%;   /* Make each image take up the full width */
    }

    /* 4. Stack the Hobbies Sections (Music and Brewing) */
    .music-section, 
    .brew-section {
        flex-direction: column; /* Move image below the text */
        align-items: center;
    }

    #music1, #brew1 {
        width: 80%;       /* Make these images much larger on mobile */
        height: auto;
        margin-top: 15px;
    }
}
