

/*html, body {*/
/*    margin: 0;*/
/*    padding: 0;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    font-family: 'Roboto', sans-serif;*/
/*}*/

/*body {*/
/*    min-height: 100vh;*/
/*    font-family: 'Crimson Text', serif;*/
/*    background-color: #f7f7f7; !* Set a background color for the whole page *!*/
/*    color: #001c00;*/
/*    cursor: url('../images/mouse.png'), auto;*/
/*    overflow-x: hidden;*/
/*    overflow-y: auto;*/
/*    scroll-behavior: smooth;*/
/*}*/

@font-face {
    font-family: 'SweetieBeastie';
    src: url('/Users/joaoleal/Library/Fonts/Sweetie Besstie.ttf') format('truetype'); /* Replace with the correct path to your font */
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex; /* Using flex to arrange sections */
    flex-direction: column; /* Stack sections vertically */
    justify-content: flex-start; /* Align content to the top */
    font-family: 'Poppins', sans-serif;
    background-color: #f7f7f7;
    color: #001c00;
    cursor: url('../images/mouse.png'), auto;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    min-height: 100vh;
}

/* Updated Nav Styles with Fade-Out Animation */
nav {
    position: relative;
    top: 40px;
    left: 0;
    right: 0;
    background-color: transparent;
    z-index: 1000; /* Ensure the header is on top */
    height: 80px;
    width: 100vw;
    max-width: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
    box-shadow: none;
    margin: 0; /* Center align the header */
    transition: background-color 0.3s ease, opacity 0.3s ease;
    opacity: 1; /* Initial opacity */

}
nav > * {
    color: #001c00; /* Ensure color of text and links in the header is preserved */
    opacity: 1; /* Ensure child elements are fully opaque */
}


.nav-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 80%; /* Adjust this to compress the content more */
    max-width: 1200px; /* Add a max-width to limit the header's size */
    height: 50px;
    padding: 0 10px; /* Add horizontal padding to provide margins */
    margin-left: 80px;

    margin-top: 35px;
    
}

.header-hidden {
    top: -80px; /* Adjust based on header height */
}

.content {
    margin-top: 0; /* Adjust this margin so that the content doesn't get hidden behind the fixed header */
    padding-top: 120px; /* Space for fixed header */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.project-details {
    position: relative;
    margin-top: 20px; /* Adjust as needed */
}



h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

.logo {
    font-size: 2.9em;
    margin: 0; /* Remove the margin */
    color: #001c00; /* Ensure the logo maintains its color */
    opacity: 1; /* Keep the logo fully opaque */
    transition: font-size 0.3s, margin-left 0.3s;
    display: flex;
    align-items: center;
    margin-left: 85px;
    font-family: 'SweetieBeastie', sans-serif;
}

.jp, .leal {
    display: inline-block; /* Ensure they are on the same line */
    margin: 0;
    margin-right: 7px;
}

.jp {
    margin-right: 7px; /* Add space between JP and LEAL */
}

.jp, .leal, .FILMS {
    display: inline-block;
}


.nav-links {
    display: flex;
    justify-content: flex-end;
    padding: 0;
    margin-top: 30px;
    width: 100%; /* Ensure links take full width */
    margin-right: 200px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    margin: 0;
}

nav li {
    height: 50px;
    margin-left: 10px; /* Adjust spacing between links */
}

nav a {
    font-family: 'Poppins', sans-serif; /* Ensure Poppins is applied */
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    text-decoration: none;
    color: #001c00;
    font-size: 1em;
    position: relative;
    transition: color 0.3s;
    cursor: url('../images/mouse.png'), auto;
}

nav a:hover {
    color: #004d00;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #004d00;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
nav .nav-links li:last-child {
    margin-right: 20px; /* Adjust space for the last item */
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    margin: 0;
    height: 100vh;
    width: 250px;
    background-color: white;
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px rgba(255, 255, 255, 0.2);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    z-index: 999;
}

.sidebar a,
.sidebar li {
    width: 100%;
}


/* Portfolio Section */
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
 max-width: 1250px;
    padding: 40px;
    margin: 80px auto;
    margin-bottom: 0;
    
}

.grid-item {
    aspect-ratio: 16 / 9; /* Maintain the 16:9 aspect ratio */
    position: relative;
    overflow: hidden;
    cursor: url('../images/mouse.png'), auto;
    transition: opacity 0.3s;
    display: flex;

}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s;
}

.grid-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    z-index: 1;
}

.grid-item::before {
    content: attr(data-title);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 1.2em;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    z-index: 2;
}

.grid-item:hover::after,
.grid-item:hover::before,
.grid-item:hover img {
    opacity: 1;
}

.grid-item:hover img {
    opacity: 1;
}

/* About Section */
.about-section {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Align text and image on opposite sides */
    padding: 40px 20px;
    margin-top: 120px;
    max-width: 1200px; /* Limit the overall width of the section */
    margin-left: auto;
    margin-right: auto; /* Center the section on the page */
   
    
}

.about-container {
    display: flex;
    width: 100%;
    gap: 40px; /* Add space between text and image */
}

.about-section img {
    /*margin-left: 40px;*/
    /*margin-bottom: 20px;*/
    /*margin-top: 20px; !* Optional: Add top margin to the image for more spacing *!*/
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-section .about-text {
    flex: 1; /* Allow the text to take up equal space */
    max-width: 60%; /* Limit text width to half of the container */
    /*margin-right: 40px; !* Add space between text and image *!*/
    text-align: left;
    font-size: 1rem; /* Increased font size */
}

.about-section h2 {
    font-size: 3em;
    color: #333;
    margin-bottom: 20px;
}

.about-section p {
    font-size: 1.2em;
    line-height: 1.5;
    color: #555;
}

/* Divider */
.divider {
    width: 100%;
    height: 1px;
    background-color: #ccc;
    margin: 40px 0;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
}

h4 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.testimonials {
    text-align: center;
    padding: 60px 20px;
    background: #f8f8f8;
}

.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.testimonial {
    max-width: 400px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.testimonial p {
    font-style: italic;
    color: #555;
}

/* Footer Styles */
.footer {
    background-color: #f7f7f7;
    color: #001c00;
    padding: 40px 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    border-top: 1px solid #ccc;
    box-sizing: border-box;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

/* Contact Form & Info */
.contact-form,
.contact-info {
    flex: 1;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-form h2,
.contact-info h2 {
    font-size: 1.7em;
    margin-bottom: 10px;
    text-align: center;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.contact-form label {
    font-size: 1.2em;
    color: #001c00;
}

.contact-form input,
.contact-form textarea {
    font-size: 1em;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    max-width: 400px;
}

.contact-form button {
    padding: 10px 20px;
    background-color: #004d00;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #002600;
}

.contact-info p {
    margin: 10px 0;
    padding: 10px;
    font-size: 1.1em;
    text-align: center;
}

.contact-info a {
    color: #001c00;
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icons a {
    color: #ababab;
    font-size: 30px;
    text-decoration: none;
    transition: transform 0.5s, color 0.3s;
}

.social-icons a:hover {
    color: #ff004f;
    transform: translateY(-5px);
}

/* Contact Left & Right */
.contact-left {
    flex-basis: 35%;
}

.contact-right {
    flex-basis: 60%;
}

.contact-left p {
    margin-top: 30px;
}

.contact-left p i {
    color: #ff004f;
    margin-left: 15px;
    font-size: 25px;
}

/* Menu Button */
.menu-button {
    display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* Logo Adjustment */
    nav {
        top: 15px; /* Reset */
        height: auto; /* Let content define height */
    }
    
    .logo {
        font-size: 1.5em;
        margin-left: -39px;
        padding-top: 0;
        transform: scaleY(0.97); /* Compress the height */
    }
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%; /* Ensure the container takes up full width */
       padding: 0 100px;
        margin-top: 20px;
    }

    .testimonials {
        text-align: center;
        padding: 20px 10px;
        background: #f8f8f8;
    }

    .testimonials h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .testimonial-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .testimonial {
        max-width: 400px;
        background: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
      h4{
          font-size: 0.9em;
      }
    

    /* About Section Adjustment */
    .about-section {
        flex-direction: column;
        text-align: center;
        padding: 5px 20px;
        margin-top: 50px;
    }

    .about-section img {
        max-width: 100%;
        margin-left: 0;
        margin-bottom: 20px;
    }

    .about-section .about-text {
        max-width: 100%;
    }

    .about-section h2 {
        font-size: 1.7em;
    }

    .about-section p {
        font-size: 1.1em;
    }

    .about-container {
        display: block; /* Disable .about-container on smaller screens */
    }

    /* Portfolio Grid Adjustment */
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        width: calc(100% - 30px); /* Adds 10px margin on each side */
        padding: 0;
        margin: 50px auto;
        display: grid;
        gap: 10px;
    }

    .portfolio-container > * {
        width: 100%;
    }

    /* Footer Contact Section */
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .contact-form,
    .contact-info {
        max-width: 90%;
        margin-bottom: 20px;
    }

    /* Menu Button Display */
    .menu-button {
        display: flex;
        margin-left: 65px;
        top: 15px;
        right: 75px;
        width: 25px;
        height: 5px;
    }
    .menu-button svg {
         width: 35px; /* Make icon bigger */
         height: 35px;
     }

    /* Hide Elements on Mobile */
    .hideOnMobile {
        display: none;
    }
    

    /* Header Text Alignment */
    h2, h5 {
        text-align: center;
    }
}

.grid-item::before {
    font-size: 1em;  /* Smaller font size on small screens */
}

@media (max-width: 480px) {

  
    /* Logo Further Adjustment */
    .logo {
        font-size: 1.4em;
        margin-left: 10px;
        padding-top: 5px;
    }

    .grid-item::before {
        font-size: 0.6em;  /* Smaller font size on small screens */
    }
    
    .menu-button {
        display: flex;
        margin-left: 0px;
        top: 15px;
        right: 5px;
        width: 25px;
        height: 5px;
    }
    .menu-button svg {
        width: 35px; /* Make icon bigger */
        height: 35px;
    }
 
    nav a {
        padding: 0 5px;
    }

    /* About Section Further Adjustment */
    .about-section {
        padding: 50px 15px;
    }

    .about-section h2 {
        font-size: 1.5em;
    }

    .about-section p {
        font-size: 1em;
    }

    .about-section img {
        max-width: 100%;
    }

    /* Portfolio Grid Single Column */
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr); /* Switch to 2 columns */
    }

    /* Sidebar Adjustment */
    .sidebar {
        width:50%;
    }
}
