/* Basic Styles */
body {
    font-family: sans-serif;
    margin: 0;
}

header {
    display: flex;
    justify-content: center; /* Center the logo */
    align-items: center;
    padding: 1rem;
    position: relative; /* Needed for absolute positioning of nav links */
}

.logo {
    position: relative;
    z-index: 10; /* Ensure logo is on top */
}

.logo img {
    max-height: 50px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.1);
}

.menu-icon {
    display: block; /* Show menu icon on mobile */
    cursor: pointer;
    position: absolute; /* Position it on the left */
    left: 1rem;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
}

/* Navigation */
.nav-links {
    display: none; /* Hide nav links by default */
}

.nav-links a {
    padding: 1rem;
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    background: white;
    width: 100%;
    border-bottom: 1px solid #ccc;
}


/* Main Content */
main {
    padding: 1rem;
}

/* Gallery */
.gallery {
    display: flex;
    flex-wrap: wrap; /* This will allow columns to wrap on smaller screens */
    gap: 1rem;
}

.column {
    width: 100%; /* Single column on mobile */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-item img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s;
}

/* About Page */
.about-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-image {
    order: 1;
    position: relative; /* Added for mobile positioning */
}

.hover-gifs {
    display: none; /* Hidden on mobile */
}

.hover-gifs img {
    max-width: 150px;
    height: auto;
    min-width: 100px; /* Added to prevent shrinking */
}

.about-text {
    order: 3;
}

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

.hello-gif {
    max-width: 100%; /* Changed from 100px */
    height: auto;
    display: block;
    margin: 0; /* Removed auto margin */
    position: absolute; /* Added for overlay */
    top: 0; /* Added for flush positioning */
    left: 0; /* Added for flush positioning */
}

/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-top: 1px solid #ccc;
    margin-top: 2rem;
}

.social-links {
    margin-left: auto; /* Push social links to the right */
}

.social-links a {
    margin-left: 1rem;
    text-decoration: none;
    color: #333;
}

.social-links i {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover i {
    color: #007bff; /* Change to your desired hover color */
}

.cart-icon-footer {
    max-width: 150px; /* Make the cart icon larger */
    height: auto;
}

/* Responsive */
@media (min-width: 768px) {
    .gallery-item img:hover {
        transform: scale(1.02);
    }

    .menu-icon {
        display: none; /* Hide menu icon on widescreen */
    }

    .nav-links {
        display: flex;
        justify-content: space-between;
        width: 100%;
        position: absolute;
        z-index: 1; /* Behind the logo */
    }

    .nav-left {
        margin-right: auto;
    }

    .nav-right {
        margin-left: auto;
    }

    .gallery {
        flex-wrap: nowrap; /* Prevent columns from wrapping on desktop */
    }

    .column {
        width: calc(33.333% - 1rem); /* Three columns with gap */
    }

    .about-container {
        flex-direction: row;
        position: relative; /* For absolute positioning of GIFs */
    }

    .hover-gifs {
        display: block; /* Show on desktop */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .hover-gifs img {
        position: absolute;
    }

    .hover-gif-1 {
        top: 10%;
        right: 5%; /* Changed from left: 5% */
        left: auto; /* Remove the left property */
    }

    .hover-gif-2 {
        top: 50%;
        right: 10%;
    }

    .hover-gif-3 {
        bottom: 15%;
        left: 20%;
    }

    .about-image {
        flex: 1;
        position: relative; /* Add this for absolute positioning of children */
    }

    .hello-gif {
        position: absolute;
        top: 0; /* Changed from 10% */
        left: 0; /* Changed from -20% */
        max-width: 100px; /* Changed from 150px */
        margin: 0;
    }

    .about-text {
        flex: 2;
        padding-left: 2rem;
    }
}
