/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #EEE;
    font-family: 'Titillium Web', sans-serif;
    line-height: 1.6;
    color: #333;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
#container {
    max-width: 1200px;
    margin: auto;
    background: #CCC;
    padding: 10px;
}

/* Banner */
#banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: #FFF;
    padding: 10px;
}

#logo img {
    max-height: 80px;
}

#bannerimage {
    flex: 1 1 60%;
    height: 150px;
    background-image: url('../images/home/banner.jpg');
    background-size: cover;
    background-position: center;
    margin-left: 10px;
}

/* Mobile Menu Toggle Button */
#mobile-menu {
    display: none;
    background: #D76A09;
    color: #FFF;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    margin-top: 5px;
}

/* Navigation */
#buttonbar {
    background: #D76A09;
}

ul#nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

ul#nav li {
    flex: 1 1 auto;
}

ul#nav li a {
    display: block;
    text-align: center;
    padding: 10px;
    color: #EEE;
    text-decoration: none;
    border-top: 3px solid #D76A09;
    border-bottom: 3px solid #D76A09;
    transition: background 0.3s, color 0.3s;
}

ul#nav li a:hover {
    background: #F90;
    color: #FFF;
}

/* Main Content */
#maincontent {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #FFF;
    padding: 20px;
    margin-top: 10px;
}

/* Welcome Note */
#welcomenote {
    flex: 2;
    min-width: 280px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px;
}

/* Content Section Titles */
#contentbar {
    background: #8DC115;
    color: #FFF;
    font-size: 20px;
    font-weight: bold;
    padding: 5px 10px;
    margin: 15px 0 5px 0;
    opacity: 0.9;
    border-radius: 4px;
}

/* Credentials Sidebar */
#credentials {
    flex: 1;
    min-width: 250px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px;
    background: #FFF;
    border-left: 3px solid #D76A09;
}

#downloadbar, #skillbar, #hobbiesbar {
    margin-top: 10px;
    padding: 5px 10px;
    background: #f3f3f3;
    border-left: 3px solid #D76A09;
    font-weight: bold;
}

/* Footer */
#footernote {
    background-image: url('../images/home/footerbg.jpg');
    color: #FFF;
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    margin-top: 20px;
}

#footertextleft, #footertextright {
    flex: 1;
    min-width: 250px;
}

#footertextleft p, #footertextright p {
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Responsive Design */

/* Tablets */
@media (max-width: 992px) {
    ul#nav li a {
        width: 25%;
    }
    #maincontent {
        flex-direction: column;
    }
    #welcomenote, #credentials {
        width: 90%;
        margin: auto;
    }
}

/* Mobiles */
@media (max-width: 768px) {
    ul#nav {
        display: none;
        flex-direction: column;
    }

    #mobile-menu {
        display: block;
    }

    ul#nav li a {
        width: 100%;
    }
}

@media (max-width: 576px) {
    #banner {
        flex-direction: column;
    }
    #bannerimage {
        height: 100px;
    }
    #footertextleft, #footertextright {
        flex: 100%;
    }
}
