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

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    background: url('background.png') repeat;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Loader Styles */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 50, 1);
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.hidden {
    opacity: 0; 
    pointer-events: none;
}

#loader-img {
    width: 100px;
    height: 100px;
    animation: spin 2s linear infinite;
    transform-origin: center;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Layout Styling */
header {
    background-color: rgba(255, 255, 255, 0.87);
    background-image: url('paperTexture.jpg');
    background-repeat: repeat;
    background-size: cover;
    text-align: center;
    color: rgba(0, 0, 50, 1);
    font-family: "French Script MT", cursive;
    padding: 1rem;
}

.header-image {
    max-width: 100%;
}

main {
    padding: 1rem;
    flex: 1;
}

a{
    color: inherit;
}
h1{
    font-family: "French Script MT", cursive;
    font-size: xx-large;
}

.textBox {
    background-color: rgba(0, 0, 40, 0.92);
    border-radius: 3rem;
    margin: 0 auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0 1rem;
    box-sizing: border-box;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    width: 100%;
    margin-bottom: 1rem;
}

.nav-links {
    list-style: none;
    display: none;
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    padding: 10px 20px;
    max-width: calc(100% - 2rem);
}

.nav-links li {
    margin: 0.5rem 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

.hamburger {
    font-size: 1.2rem;
    cursor: pointer;
    position: absolute;
    top: 7%;
    right: 1%;
}

/* Content Sections */
.hero, .blog, .contact {
    padding: 2rem;
    text-align: center;
}

label {
    display: block;
    margin-bottom: 0.5rem;
}

input, textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #fff;
    border-radius: 5px;
}

button {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 5px;
    background-color: white;
    color: rgba(0, 0, 56, 0.616);
    cursor: pointer;
}

.post{
    display: flex;
    flex-direction: column;
    text-align: left;
}
.post-img{
    display:block;
    max-height: 20rem;
    max width:20rem;
    border-radius: 2rem;
    margin: 0 auto;
}

.post-text{
    padding: 1rem;
}

footer {
    text-align: center;
    background-color: rgba(0, 0, 50, 0.651);
    width: 100%;
    padding: 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.footer-content p {
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-icon {
    width: 30px;
    height: 30px;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    filter: invert(0.7);
}

/* Icon backgrounds */
.gitlab { background-image: url('gitlab.svg'); }
.github { background-image: url('github.svg'); }
.linkedin { background-image: url('linkedin.svg'); }

/* Media Queries for Larger Screens */
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        text-align: left;
    }

    .nav-links {
        flex-direction: row;
    }
}

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

    .hero {
        padding: 3rem;
    }
    
    .post{
        flex-direction:row;

    }
    .post-text{
        padding: 2rem;
    }

    .social-links {
        gap: 20px;
    }
}

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

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

    .footer-content {
        font-size: 1.1rem;
    }
    .social-links {
        gap: 25px;
    }

    body {
        font-size: 1.125rem;
    }
}
