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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: url('img/background_blue.webp') no-repeat center center fixed; 
    background-size: cover; /* Ensures the background covers the entire viewport */
}

section {
    max-width: 100%; /* Ensure sections don't overflow */
}

/* Logo Container: Top-left Corner */
.logo-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000; /* Keep it above other content */
}

.logo {
    width: 100px; /* Adjust the logo size */
    height: auto;
}

#top-section {
    padding: 0;
}

/* Full-width image section */
.full-width-image-section {
    position: relative;
    width: 100%;
    height: 550px; /* Adjust the height as per your design */
    overflow: hidden;
}

/* Background image that takes the full width */
.image-background {
    background: url('img/crafting_studio.jpg') no-repeat center center/cover;
    width: 100%;
    height: 100%;
}

/* Floating logo card on top of the image */
.logo-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: none;
}

/* Logo image inside the card */
.logo-card img {
    width: 55%;
    max-width: 450px;
    height: auto;
}

/* Parallax Section */
.parallax-section {
    background-color: rgba(255, 222, 246, 0.8);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 25vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding-bottom: 50px;
}

.parallax-section .content {
    padding: 20px;
    text-align: center;
    width: 80%;
    max-width: 900px;
    z-index: 1;
}

/* Image gallery at the bottom of the parallax section */
.image-gallery {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.image-gallery img {
    width: 200px; /* Adjust to your preferred image size */
    height: auto; /* Maintain image aspect ratio */
    border-radius: 5px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Optional shadow */
    object-fit: cover; /* Ensures the image fits within its dimensions */
}

.image-modal {
        display: none; /* Hidden by default */
}

.josefin-sans-title {
  font-family: "Josefin Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.josefin-sans-p {
  font-family: "Josefin Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

#about {
    padding: 50px 0;
}

#about h1, #about p {
    margin-bottom: 20px; /* Add spacing between heading and paragraph */
}

#designs {
    padding: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none; /* No background for the section, background will be on the card */
}

#designs .content {
    background-color: white; /* Card background color */
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1); /* Soft shadow for the floating effect */
    border-radius: 10px; /* Rounded corners to make it look like a card */
    padding: 40px 30px; /* Padding inside the card for spacing */
    text-align: center; /* Center the text */
    max-width: 800px; /* Limit the width of the card */
    width: 100%; /* Make sure it spans full width until the max-width */
    opacity: 0.95; /* Slight transparency for the card */
}

/* Social Media Section */
.social-icons {
    display: flex;
    flex-direction: column; /* Text above buttons */
    align-items: center; /* Center text and buttons horizontally */
    margin-top: 20px;
}

.social-icons p {
    font-size: 16px;
    margin-bottom: 10px; /* Space between text and buttons */
    text-align: center;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
    font-size: 30px; /* Icon size */
    color: #333; /* Icon color */
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #f0a500; /* Change icon color on hover */
}

/* Ensuring buttons are side by side */
.social-btns {
    display: flex; /* Keep icons side by side */
    justify-content: center; /* Center the icons horizontally */
}

/* Design Gallery */
#designs-gallery img {
    width: 100%;
    max-width: 300px;
    margin: 10px;
}

#contact {
    text-align: center;
    padding: 50px 0;
    background-color: rgba(255, 222, 246, 0.8); /* Optional background color */
}

/* Contact Icons Styling */
.contact-icons {
    display: flex;
    justify-content: center;
    gap: 30px; /* Space between icons */
    margin-top: 20px;
}

footer {
    text-align: center;
    padding: 20px 0;
    background-color: #333; /* Dark background for the footer */
    color: white; /* White text */
    position: relative;
    bottom: 0;
    width: 100%;
}

.email-icon {
    color: #333;
    width: 48px; /* Set width */
    height: 48px; /* Set height */
    transition: filter 0.3s; /* Add hover effect */
}

.email-icon:hover {
    fill: #f0a500; /* Change color on hover */
}

.instagram-icon {
    fill: #333;
    width: 48px; /* Set width */
    height: 48px; /* Set height */
    transition: filter 0.3s; /* Add hover effect */
}

.instagram-icon:hover {
    fill: #f0a500; /* Change color on hover */
}

footer p {
    margin: 0;
    font-size: 14px;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .image-gallery {
        display: grid;
        grid-template-columns: repeat(3, minmax(150px, 1fr)); /* Show 3 columns of images */
        gap: 10px;
    }

    .image-gallery img {
        width: 100%; /* Let the grid cells define the size */
        height: 150px; /* Slightly larger than mobile squares */
        object-fit: cover;
        cursor: pointer;
        border-radius: 5px;
    }

    /* Hidden popup modal for the expanded image */
    .image-modal {
        display: none; /* Hidden by default */
        position: fixed;
        z-index: 1000;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
        justify-content: center;
        align-items: center;
    }

    /* Expanded image in modal */
    .modal-content {
        max-width: 90%;
        max-height: 90%;
        border-radius: 5px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    }

    /* Close button for modal */
    .close-btn {
        position: absolute;
        top: 20px;
        right: 30px;
        font-size: 40px;
        color: white;
        cursor: pointer;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* Mobile Menu Styling */
    header nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        right: 20px;
        top: 70px;
        background: rgba(0, 0, 0, 0.8);
        padding: 20px;
        border-radius: 10px;
    }

    header nav ul.open {
        display: flex;
    }

    .menu-toggle {
        display: flex;
        position: fixed;
        top: 20px;
        right: 20px;
    }

    /* Mobile Menu Items */
    header nav ul li {
        margin: 5px 0;
    }

    /* Responsive Design Gallery */
    #designs-gallery img {
        width: 100%;
    }

    #designs .content {
        padding: 20px 15px; /* Adjust the padding for smaller screens */
    }

    #designs {
        padding: 20px 0; /* Add padding to the section on mobile if needed */
    }

    /* Image Gallery (Mobile as little squares) */
    .image-gallery {
        display: grid;
        grid-template-columns: repeat(2, minmax(150px, 1fr)); /* Adjust to small squares */
        gap: 10px;
    }

    .image-gallery img {
        width: 100%;
        height: 100px; /* Fixed height to create square effect */
        object-fit: cover; /* Ensures images fit within the square */
        cursor: pointer; /* Cursor changes to indicate clickability */
        border-radius: 5px; /* Optional, for rounded corners */
    }

    /* Hidden popup modal for the expanded image */
    .image-modal {
        display: none; /* Hidden by default */
        position: fixed;
        z-index: 1000;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
        justify-content: center;
        align-items: center;
    }

    /* Expanded image in modal */
    .modal-content {
        max-width: 90%;
        max-height: 90%;
        border-radius: 5px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    }

    /* Close button for modal */
    .close-btn {
        position: absolute;
        top: 20px;
        right: 30px;
        font-size: 40px;
        color: white;
        cursor: pointer;
    }
}

@media screen and (max-height: 500px) and (orientation: landscape) {
    .content {
        padding: 10px; /* Reduce padding for landscape */
        font-size: 0.9rem; /* Adjust font size if necessary */
    }

    .image-gallery img {
        width: 150px; /* Scale down images */
        height: 150px;
    }

    .logo {
        width: 60px; /* Reduce logo size for better fit */
    }
}