/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
}

/* Body styling */
body {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    background-color: aliceblue;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* Header section styling */
header {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4);
}

/* Header title styling */
header h1{
    font-size: 2.5rem;
    color: rgb(0, 0, 30);
    margin-bottom: 5px;
}

/* Profile image styling */
header img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgb(0, 0, 30);
    margin-bottom: 5px;
}

/* Header paragraph text styling */
header p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 5px;
}

/* Biography section styling */
#bio {
    background-color: white;
    margin-bottom: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4);
    padding: 20px;

    /* Quote subsection within bio */
    #quote {
        margin-top: 20px;
    }
}

/* Biography heading styling */
#bio h2 {
    color: rgb(0, 0, 30);
    margin-bottom: 5px;
}

/* Hobbies section styling */
#hobbies {
    background-color: white;
    margin-bottom: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4);
    padding: 20px;
}

/* List styling for hobbies */
ul {
    list-style: none;
    margin-top: 5px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Footer section styling */
footer {
    background-color: white;
    text-align: center;
    text-align-last: center;
    border-radius: 10px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4);
    padding: 20px;
}

/* Footer content layout */
#footer {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 5px;
}

/* Responsive design for mobile devices */
@media (max-width: 760px) {
    /* Stack list items vertically on small screens */
    ul {
        flex-direction: column;
        gap: 7px;
    }

    /* Stack footer items vertically on small screens */
    #footer {
        flex-direction: column;
        gap: 5px;
    }
}

/* Link styling */
a {
    color: #333;
    text-decoration: none;
    transition: color 0.5s;  /* Smooth color transition for hover effect */
}

/* Link hover effect */
a:hover {
    color: rgb(75, 75, 155);
}

#mode {
    font: inherit;
    font-size: 12px;
    padding-right: 3px;
    cursor: pointer;
    color: #333;
}

/* Dark mode */
body.dark {
    background-color: #121212;
}

/* Dark mode for the main sections */
body.dark header,
body.dark #bio,
body.dark #hobbies,
body.dark footer {
    background-color: #1e1e1e;
    color: #eee;

    /* Dark mode text color */
    h1 {color: #eee;}
    h2 {color: #eee;}
    p {color: #eee;}

    /* Dark mode link styling */
    a {color: #ddd}

    /* Dark mode link hover effect */
    a:hover {
        transition: color 0.5s;
        color: rgb(100,100,255);
    }
}