@font-face {
    font-family: 'Fjalla One';
    src: url('ASSETS/FjallaOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@keyframes spin {
    from {
        --angle: 0deg;
    }
    to {
        --angle: 360deg;
    }
}

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

*{
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Fjalla One', Arial, sans-serif;

    height: 100%;
    display: flex;
    flex-direction: column;
}

button {
    font-family: 'Fjalla One', Arial, sans-serif;
}

.header-container {
    width: 100%;

    top: 0;
    left: 0;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.logo {
    padding: 0;
    margin-left: 7em;
}

.logo img {
    width: 10em;
}

nav {
    display: flex;
    margin-right: 30em;
}

nav ul {
    list-style-type: none;
    padding: 10px;
    display: flex;
    font-weight: bold;
    font-size: 1.3em;
}

nav ul li {
    margin-left: 40px;
}

nav ul li a {
    color: black;
    text-decoration: none;
    padding: 5px 10px;
    display: block;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-image: linear-gradient(to right, #104788, #67c2ef);
    transition: width 1s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.nav-link.active::after {
    width: 100%;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #104788;
}

.info-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three equal columns */
    grid-template-rows: auto auto; /* Two rows */
    gap: 20px;
    margin: 0 auto; /* Center align the grid */
}

.info-box:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.info-box:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.info-box:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}

.info-box:nth-child(4) {
    grid-row: 2;
}

.info-box:nth-child(5) {
    grid-column: 3; /* Align below the second gap */
    grid-row: 2;
}

.info-box {
    background-color: white;
    color: black;
    margin: 0 10px;
    padding: 20px;
    width: 200px;
    height: 125px;
    border-radius: .5em;
    box-shadow: 0 5px 10px rgba(0,0,0,0.25);
    transition: transform .75s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Ensures the text stays at the top */
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
}

.info-box i {
    font-size: 60px; /* Adjust icon size */
    margin-top: 10;
    margin-top: auto; /* Pushes the icon to the bottom */
    color: #104788; /* Icon color */
}

.info-box img {
    max-width: 120px; /* Adjust size of the logo if needed */
    margin-top: auto; /* Align the logo to the bottom */
}

.info-box:hover {
    transform: translateY(-20px);
}

.info-box a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Keeps the text at the top */
}

.info-box a:hover {
    color: inherit;
    text-decoration: none;
}

.main-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    max-width: 100%;
    height: auto;
    margin-right: 15em;
}

.profile-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 0 150px 20em;
}

.profile-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%; 
    border: 5px solid #104788;
    object-fit: cover; 
}

.card {
    color: white;
    margin: 0 auto;
    padding: 2em;
    background: #1c1f2b;
    text-align: center;
    border-radius: 10px;
    position: relative;
    width: 40%;
    margin-left: 13em;
}

.card::after, .card::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    background-image: conic-gradient(from var(--angle), transparent, #104788, transparent, #67c2ef);
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    z-index: -1;
    padding: 5px;
    border-radius: 15px;
    animation: 10s spin linear infinite;
}

.card::before {
    filter: blur(1.5em);
    opacity: .5;
}

.site-footer {
    width: 100%;
    background-color: #104788;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-content {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-item {
    flex-direction: column;
    align-items: center;
    margin: 10px;
    font-weight: bold;
}

.address, .contact {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.name {
    font-size: 1.5em;
}

.ikonka {
    margin-right: 1em;
}

.footer-item img {
    margin-bottom: 5px;
}

.footer-item div {
    text-align: center;
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links a {
    margin: 5px 0;
}

.social-links img {
    width: 40px;
}

.about-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 10%; 
    gap: 20px; 
}

.about-text {
    flex: 1; 
    max-width: 600px;
}

.about-image {
    flex: 1; 
    display: flex;
    justify-content: center;
    max-width: 300px; 
}

.about-image img {
    width: 100%; 
    border-radius: 50%;
    border: 5px solid #104788;
}

.hamburger {
    display: none;
    font-size: 2em;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    z-index: 1001; 
}

.logo {
    margin-right: auto;
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-links {
    display: flex;
    flex-direction: row;
    list-style: none;
    padding: 0;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
    }

    .logo {
        order: 1;
        margin-right: 0;
    }

    .hamburger {
        display: block;
        order: 2;
    }

    nav {
        display: none;
        width: 100%;
        position: absolute; 
        top: 60px;
        left: 0;
        background: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1000; 
    }

    nav.active {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: left;
        padding: 10px;
        margin: 0;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-links li a {
        display: block;
        padding: 10px;
        width: 100%;
        text-align: left;
    }

    .main-content, .content-wrapper {
        flex-direction: column;
    }

    .main-image {
        order: -1; 
        width: 100%;
        margin: 0 auto;
        padding: 10px 0;
    }

    .main-image img {
    margin-right: 0;
    }

    .info-boxes {
        flex-direction: column;
        transform: translateY(0);
        width: 100%;
        padding: 10px 0;
        margin-top: 0; 
    }

    .info-box {
        width: 90%;
        margin: 10px auto;
    }

    .profile-section {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

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

    .card {
        width: 90%;
        margin: 20px 0;
        padding: 15px;
    }

    .site-footer {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .footer-item {
        margin: 10px 0;
    }

    .social-links {
        flex-direction: row;
        justify-content: center;
        margin-top: 10px;
    }

    .social-links a {
        margin: 0 10px;
    }

    .name {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .logo img {
        width: 8em;
    }

    .nav-links {
        font-size: 0.9em;
    }

    .info-box {
        width: 95%;
        padding: 15px;
    }

    .profile-image img {
        width: 120px;
        height: 120px;
    }

    .card {
        padding: 1.5em;
    }

    .social-links img {
        width: 30px;
    }
}