@import url('https://fonts.googleapis.com/css2?family=Lexend+Exa:wght@100..900&display=swap');

/* Reset default styles */
body, ul {
    margin: 0;
    padding: 0;
    font-family: "Lexend Exa", serif;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* Prevent scrolling */
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: black;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 1px;
    transition: color 0.3s ease-in-out, text-shadow 0.3s ease-in-out, text-decoration 0.3s ease-in-out;
}

a:hover {
    text-decoration: underline;
}

a:active, a:focus {
    text-decoration: underline;
}

/* Header styles */
header {
    background: transparent;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    z-index: 10;
    box-sizing: border-box;
    transition: background 0.3s ease-in-out;
    top: 0;
    left: 0;
}

header.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
    padding: 5px 50px;
}

/* Navigation container */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo on the left */
.logo img {
    height: 60px;
}

/* Right-side menu */
.nav-right {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: -10px;
}

.nav-right a {
    font-size: large;
}

/* Fade Animation */
.fade {
    animation: fadeEffect .5s ease-in-out;
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Main content */
main {
    margin-top: 10px;
    padding: 10px;
}

.section-title {
    text-align: center;
    padding-top: 50px;
}

.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 25px;
    max-width: 1500px;
    margin: 0 auto;
}

.alt-projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 25px;
    max-width: 1500px;
    margin: 0 auto;
}

.project-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
    max-width: 1500px;
    margin: 0 auto;
}

.project-item img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.center-image {
    flex: 0 1 auto;
}

.side-images {
    flex: 0 1 auto;
}

/* Intro section */
.intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 150px;
}

.intro-title {
    font-size: 40px;
    font-weight: 600;
    flex: 1;
    max-width: 40%;
    text-transform: capitalize;
}

.intro-description {
    padding-top: 100px;
    font-size: 18px;
    color: #444;
    flex: 2;
    max-width: 50%;
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: black;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.footer-section {
    flex: 1;
    min-width: 300px;
}

.footer-bottom {
    margin-top: 20px;
    font-size: 14px;
}

.footer-section a {
    text-transform: none;
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.footer-title {
    padding-bottom: 5px;
}

/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
    /* Header adjustments */
    header {
        padding: 10px 15px;
    }

    header.scrolled {
        padding: 5px 15px;
    }

    .logo img {
        height: 35px;
    }

    .nav-right {
        gap: 10px;
    }

    .nav-right a {
        font-size: 12px;
    }

    .brake {
        display: inline;
    }

    /* Intro section adjustments */
    .intro {
        flex-direction: column;
        padding-top: 100px;
        align-items: center; /* Center align items */
        text-align: center; /* Center align text */
    }

    .intro-title {
        font-size: 24px;
        max-width: 100%;
        text-align: center; /* Center align title */
    }

    .intro-description {
        padding-top: 20px;
        font-size: 14px;
        max-width: 100%;
        text-align: center; /* Center align description */
    }


    /* Projects grid adjustments */
    .projects {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .alt-projects {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    /* Footer adjustments */
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        text-align: center;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .nav-right {
        gap: 5px;
    }

    .nav-right a {
        font-size: 10px;
    }

    header.scrolled .nav-right {
        margin-left: 15px;
    }
}