/* Global Styles */

/* Header styles */
header {
    color: #fffff6;
    background-color: #30353f;
    padding: 10px;
    box-shadow: 0 0 3px #000;
    box-sizing: border-box;
    margin: 0;
    display: flex; /* Add this */
    align-items: center; /* Add this */
    justify-content: space-between; /* Add this */
    position: sticky; /* Make the header sticky */
    top: 0; /* Position at the top */
    z-index: 1000; /* Ensure it appears above other content */
}

.top-logo {
    float: left;
    flex-wrap: wrap;
    margin-left: 25px;
}

/* Styles for the nav element */
nav {
    display: flex;
    align-items: center;
    flex: 1; /* Take up remaining space */
    justify-content: space-between; /* Distribute space between children */
}

.Nav_Links_Centre {
    display: flex;
    justify-content: center; /* Center the links */
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
    column-gap: 12px;
    margin: 0;
    padding: 0;
    flex: 1; /* Take up available space */
    margin-left: 35%; /* Adjust this value to push the center links to the right */
}

.Nav_Links_Centre li {
    display: inline-flex;
    align-items: center;
}

.lang-menu {
    width: 100px;
    text-align: right;
    position: relative;
    margin-left: 37em;
    display: inline-block; /* Change to inline-block to allow side-by-side layout */
}

.lang-menu .selected-lang {
    display: flex;
    justify-content: flex-end;
    line-height: 2;
    cursor: pointer;
}

.lang-menu .selected-lang:before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
}

.lang-menu ul {
    margin: 0;
    padding: 0;
    display: none;
    background-color: #30353f;
    border: 1px solid #5baed4;
    position: absolute;
    right: 0px;
    width: 125px;
    border-radius: 5px;
}

.lang-menu ul li {
    list-style: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
}

.lang-menu ul li a {
    text-decoration: none;
    width: 125px;
    padding: 5px 10px;
    display: block;
}

.lang-menu ul li:hover {
    background-color: #292c31;
}

.lang-menu ul li a:before {
    display: inline-block;
    vertical-align: end;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
}

.lang-menu:hover ul {
    display: block;
}

.Contact {
    display: flex;
    justify-content: flex-end; /* Align to the right */
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

/* Styles for anchor links within header list items */
header li a {
    color: #f1f1f1; /* Light color for text */
    text-decoration: none; /* Removes underline from links */
    padding: 12px; /* Space inside the link */
    transition: .3s ease; /* Smooth transition for hover effects */
}

header li a:hover,
.active {
    color: #5baed4;
    border-bottom: 2px solid #5baed4;
    border-bottom-style: groove;
    transition: .3s ease-in;
}

/* Body styles */
body {
    font-family: 'Archivo', sans-serif; /* Sets font family */
    text-align: center; /* Centers text */
    line-height: 1.5; /* Increases line spacing for readability */
    background-color: #292c31;
    color: #fffff6;
}

/* Universal styles for all elements */
* {
    margin: 0; /* Removes default margin */
    padding: 0; /* Removes default padding */
    box-sizing: border-box; /* Includes padding and border in element's total width/height */
}

/* Portfolio Styles */
.Portfolio {
    color: #fffff6;
    background-color: #30353f;
    border-radius: 15px;
    margin-inline: 5%;
    padding: 10px;
    box-shadow: 0 0 3px #757575;
}

.Portfolio h1 {
    font-size: 24px;
    margin-bottom: 0.5em;
}

.Portfolio li {
    background-color: #4c5361;
    margin: 20px;
    margin-inline: 25%;
    border-radius: 15px;
    padding: 12px;
}

.Portfolio li:hover {
    color: #fffff6;
    background-color: #5baed4;
}

.Portfolio a {
    text-decoration: none;
    color: #fffff6;
}

/* Container styles for layout */
.container {
    max-width: 1170px; /* Sets maximum width of the container */
    background-color: #212427; /* Background color for the container */
    margin: auto; /* Centers the container horizontally */
}

/* Row styles for flexbox layout */
.row {
    display: flex; /* Enables flexbox layout */
    flex-wrap: wrap; /* Allows items to wrap onto the next line */
}

/* Styles for unordered lists */
ul {
    list-style: none; /* Removes default bullet points */
}

/* Footer styles */
.footer {
    background-color: #212427; /* Dark background for the footer */
    padding: 2em 0; /* Space above and below the footer content */
    box-shadow: 0 0 3px #000;
}

.bot-logo {
    float: left;
    flex-wrap: wrap;
    margin-left: 50px;
    margin-top: 15px;
}

/* Styles for footer columns */
.footer-col {
    width: 25%; /* Sets width of each footer column */
    padding: 0 15px; /* Space on the left and right of each column */
}

/* Header styles for footer column titles */
.footer-col h4 {
    font-size: 18px; /* Font size for the title */
    color: #ffffff; /* White color for the title */
    text-transform: capitalize; /* Capitalizes the first letter of each word */
    margin-bottom: 30px; /* Space below the title */
    font-weight: 500; /* Medium font weight */
    position: relative; /* Allows positioning of pseudo-elements */
}

/* Pseudo-element for decorative line below footer column titles */
.footer-col h4::before {
    content: ""; /* Creates an empty content for the pseudo-element */
    position: absolute; /* Positions the line absolutely within the header */
    left: 0; /* Aligns to the left */
    bottom: -10px; /* Positions it 10px below the title */
    background-color: #5baed4; /* Color of the decorative line */
    height: 2px; /* Height of the line */
    width: 100%; /* Width of the line */
}

/* Margin for footer list items, except the last one */
.footer-col ul li:not(:last-child) {
    margin-bottom: 10px; /* Space below each list item */
}

/* Styles for anchor links in footer lists */
.footer-col ul li a {
    font-size: 16px; /* Font size for links */
    text-transform: capitalize; /* Capitalizes the first letter of each word */
    color: #bbbbbb; /* Gray color for links */
    text-decoration: none; /* Removes underline from links */
    font-weight: 300; /* Light font weight */
    display: block; /* Makes the link a block element */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
}

.footer-col ul li a:hover {
    color: #5baed4;
    padding-left: 5px;
    transition: all 0.3s ease;
}

.footer-col .social-links a {
    display: inline-block;
    height: 35px;
    width: 38px;
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: wrap;
    border-radius: 35px;
    color: #ffffff;
    transition: all 0.8s ease;
}

.footer-col .social-links a:hover {
    color: #292c31;
    background-color: #5baed4;
    border-radius: 35px;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #30353f
}

::-webkit-scrollbar-thumb {
    background: #5baed4;
    border-radius: 15px;
}

::-webkit-scrollbar-thumb:hover {
    background: #427d99;
}