:root {
    /* Colour palette */
    --black: #000000;
    --white: #FFFFFF;
    --blue: #021639;
    --orange: #F57333;
    --background-grey: #cfcaca;
}

/* =========================================================
   GENERAL PAGE STRUCTURE
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

img {
    max-width: 100%;
}

.site-container {
    width: 100%;
    max-width: 1900px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0 auto;
    background-color: var(--background-grey);
}

.site-header,
.site-footer {
    width: 100%;
    background: var(--blue);
    padding: 20px;
    text-align: center;
    color: var(--white);
}

.site-header {
    padding-left: 0;
    padding-right: 0;
}

.site-header,
.navbar-custom {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.site-main {
    width: 100%;
    max-width: 100%;
    flex-grow: 1;
    overflow-y: auto;
    background-color: white;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.navbar-toggler-icons {
    color: var(--orange);
}

.navbar-custom {
    width: 100%;
    background-color: var(--blue);
    border-bottom: 3px solid var(--orange);
}

.navbar-custom .container-fluid {
    width: 100%;
    padding-left: clamp(15px, 3vw, 45px);
    padding-right: clamp(15px, 3vw, 45px);
}

.navbar-brand,
.nav-link,
.dropdown-item,
.site-footer a {
    color: var(--white);
    transition: color 0.3s ease-in-out;
}

.navbar-brand:hover,
.nav-link:hover,
.dropdown-item:hover,
.site-footer a:hover {
    color: var(--orange);
}

.nav-item i {
    margin-right: 8px;
}

.dropdown-menu {
    background-color: var(--blue);
    border: none;
}

.logo-container {
    max-width: 100%;
}

.logo-resize {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    object-position: center;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    width: 100%;
    max-width: 100%;
    border-top: 3px solid var(--orange);
}

.footer-container {
    display: flex;
    width: 100%;
    max-width: 1140px;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 15px;
    color: white !important;
}

.footer-column {
    flex: 1;
    text-align: center;
}

hr {
    height: 1px;
    border: 0;
    background-color: var(--orange);
}


/* =========================================================
   MODAL AND COOKIE CONSENT
   ========================================================= */

.modal {
    color: black;
}

#cookieConsentContainer {
    display: none;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    z-index: 1050;
    background: var(--blue);
    color: var(--white);
    text-align: center;
}

#cookieConsentButton {
    border: none;
    background-color: var(--orange);
    color: var(--white);
    cursor: pointer;
}

#cookieConsentButton:hover {
    background-color: var(--blue);
}


/* =========================================================
   BOOTSTRAP PAGE COLOUR HELPERS
   ========================================================= */

.bg-dark {
    background-color: #333;
    color: white;
}

.bg-light {
    background-color: #f8f9fa;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1200px;
}

.text-primary {
    color: #F57333 !important;
}

.text-color-blue {
    color: #021639;
}


/* =========================================================
   GENERAL ABOUT PAGE TYPOGRAPHY
   ========================================================= */

h1,
h2 {
    color: #F57333;
    font-weight: bold;
}

p {
    font-size: 18px;
    line-height: 1.6;
}

.section-title {
    margin-bottom: 20px;
    font-size: 2em;
    text-align: center;
}

section {
    width: 100%;
    max-width: 100%;
    padding: 40px 20px;
    margin-bottom: 50px;
}

.custom-btn {
    padding: 10px 20px;
    border-radius: 0.25rem;
    background-color: #F57333;
    color: white;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.custom-btn:hover {
    background-color: #cc3700;
}


/* =========================================================
   INTRODUCTION SECTION
   ========================================================= */

#intro-section {
    width: 100%;
    max-width: 1100px;
}

.profile-img {
    width: 220px;
    height: 220px;
    margin-bottom: 20px;
    border-radius: 50%;
    object-fit: cover;
}


/* =========================================================
   EXPERIENCE SECTION
   ========================================================= */

#experience {
    width: calc(100% - 30px);
    max-width: 1000px;
    padding: 40px 0;
}

#experience .accordion {
    width: 100%;
}

.section-title {
    margin-bottom: 20px;
    font-size: 24px;
}

.accordion-item {
    overflow: hidden;
    border-bottom: 1px solid #ccc;
}

.accordion-button {
    width: 100%;
    background-color: #021639;
    color: white;
}

.accordion-button:not(.collapsed) {
    background-color: #f57333;
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M4.5 6l4 4 4-4'/%3E%3C/svg%3E");
}

.accordion-body {
    overflow-wrap: break-word;
    color: #666;
    font-size: 16px;
}


/* =========================================================
   PERSONAL PHILOSOPHY
   ========================================================= */

#philosophy {
    width: calc(100% - 30px);
    max-width: 900px;
}


/* =========================================================
   HOBBIES AND INTERESTS
   ========================================================= */

.hobbies-section {
    width: 100%;
    padding: 50px 10px;
}

.hobbies-section .row {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
}

.hobby-card {
    padding: 20px;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.hobby-card:hover {
    transform: translateY(-10px);
}

.hobby-image-container {
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 20px;
}

.hobby-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.hobby-description {
    margin-top: 10px;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}


/* =========================================================
   QUALIFICATIONS
   ========================================================= */

#qualifications {
    width: 100%;
    max-width: 100%;
    padding: 3rem 0;
    color: black;
}

#qualifications > .container {
    width: min(100% - 30px, 1200px);
    margin-right: auto;
    margin-left: auto;
}

#qualifications .row {
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
}

#qualifications img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.qualification-item {
    margin-bottom: 1rem;
}

.qualification-logo {
    display: block;
    width: 100%;
    max-width: 150px;
    height: auto;
    margin: 0 auto;
}

.qualification-text {
    overflow-wrap: break-word;
}


/* =========================================================
   SKILLS
   ========================================================= */

#skills {
    width: 100%;
    max-width: 100%;
    color: black;
}


/* =========================================================
   LARGE LAPTOPS AND MONITORS
   ========================================================= */

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }

    #intro-section {
        max-width: 1100px;
    }

    #experience {
        max-width: 1000px;
    }

    #philosophy {
        max-width: 900px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }

    #intro-section {
        max-width: 1200px;
    }

    #experience {
        max-width: 1100px;
    }

    #philosophy {
        max-width: 1000px;
    }
}


/* =========================================================
   TABLETS AND SMALL LAPTOPS
   ========================================================= */

@media (max-width: 991.98px) {
    .navbar-collapse {
        width: 100%;
    }

    .navbar-nav {
        width: 100%;
    }

    .dropdown-menu {
        width: 100%;
    }

    section {
        padding-right: 18px;
        padding-left: 18px;
    }

    #intro-section,
    #experience,
    #philosophy {
        width: calc(100% - 30px);
    }

    .profile-img {
        width: 240px;
        height: 240px;
    }

    .hobbies-section {
        padding-right: 15px;
        padding-left: 15px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
    .site-header {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .navbar-brand {
        max-width: calc(100% - 70px);
    }

    .logo-resize {
        max-width: 70px;
        max-height: 70px;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-column {
        width: 100%;
        margin-bottom: 20px;
    }

    section {
        padding: 30px 15px;
        margin-bottom: 30px;
    }

    #intro-section,
    #experience,
    #philosophy {
        width: calc(100% - 20px);
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    h1,
    h2 {
        font-size: 1.5em;
    }

    p {
        font-size: 16px;
    }

    .accordion-button {
        padding: 15px;
        font-size: 0.95rem;
        overflow-wrap: break-word;
    }

    .accordion-body {
        padding: 15px;
    }

    .hobby-card {
        width: 100%;
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 2rem;
    }

    .hobby-description {
        font-size: 1rem;
    }

    .qualification-item {
        margin-bottom: 2rem;
    }

    #qualifications {
        padding: 2rem 0;
    }

    #qualifications > .container {
        width: calc(100% - 20px);
        padding-right: 5px;
        padding-left: 5px;
    }

    #qualifications .row {
        width: 100% !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {
    .site-header,
    .site-footer {
        padding-right: 10px;
        padding-left: 10px;
    }

    .site-header {
        padding-right: 0;
        padding-left: 0;
    }

    .navbar-custom .container-fluid {
        padding-right: 10px;
        padding-left: 10px;
    }

    .navbar-brand {
        max-width: calc(100% - 60px);
        font-size: 0.9rem;
    }

    .logo-resize {
        max-width: 55px;
        max-height: 55px;
    }

    section {
        padding: 25px 10px;
    }

    #intro-section,
    #experience,
    #philosophy {
        width: calc(100% - 12px);
    }

    .profile-img {
        width: 135px;
        height: 135px;
    }

    h1,
    h2 {
        font-size: 1.35em;
    }

    p {
        font-size: 15px;
    }

    .accordion-button {
        padding: 13px 12px;
        font-size: 0.88rem;
    }

    .accordion-body {
        padding: 13px 12px;
        font-size: 15px;
    }

    .hobbies-section {
        padding-right: 8px;
        padding-left: 8px;
    }

    .hobby-card {
        padding: 15px;
    }

    .hobby-description {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    #cookieConsentContainer {
        padding: 12px;
        font-size: 0.9rem;
    }

    #cookieConsentButton {
        display: block;
        margin: 8px auto 0;
    }
}