/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



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

header {
    background-color: #333;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#logo {
    max-width: 100px;
    height: auto;
}

#site-name {
    font-size: 3rem;
    color: #fff;
    font-weight: bold;
    text-align:left;
}

.icon svg{
    width: 2rem;
    height: auto;
}

nav {
    background-color:#666;
    padding: 10px 0;
}

ul.navigation {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 5px;
}

ul.navigation li {
    position: relative;
}

ul.navigation li a {
    padding: 10px 15px;
    display: block;
    transition: fill 0.3s ease, color 0.3s ease;
}

ul.navigation li a:hover {
    fill: #f39c12;
    color: #222;
    border-radius: 5px;
}


main {
    padding: 20px;
    background-color: white;
}

.intro {
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    color: #333;
    margin-top: 20px;
}

p {
    font-size: 1.2rem;
    color: #666;
}

.content {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.card {
    background-color: #f9f9f9;
    padding: 20px;
    width: 30%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 20px;
}

.card h2 {
    color: #333;
    margin-bottom: 15px;
}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Footer Styling */
footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px; 
    margin-top: 10px;
}

.social-icons li {
    list-style: none;
}

.social-icons a {
    color: white;
    text-decoration: none;
    font-size: 1rem; 
    padding: 0px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #f39c12; 
}

footer p {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .social-icons {
        justify-content: space-around;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
        align-items: center;
        text-align: center;
        justify-content: flex-start;
    }

    #logo {
        max-width: 80px;
    }

    #site-name {
        font-size: 1.6rem;
        margin-left: 10px;
    }

    nav {
        width: 100%;
    }

    ul.navigation {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 0 10px;
    }

    ul.navigation li {
        margin: 0;
    }

    ul.navigation li a {
        font-size: 0.9rem;
        padding: 5px;
        flex-grow: 1;
        text-align: center;
    }

    /* Content and card layout */
    .content {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
        margin-bottom: 20px;
    }

    /* Resize heading and paragraphs for smaller screens */
    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 1.1rem;
    }

    .social-icons img {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1rem;
    }

    #site-name {
        font-size: 1.4em;
    }

    .card h2 {
        font-size: 1.3em;
    }

    .card {
        width: 100%;
    }
}
