/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Ensure sections don't cause overflow */
.container {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

/* Fix elements that may cause extra width */
.some-element { 
    max-width: 100%; /* Ensure images or large elements don’t cause overflow */
    display: block;  /* Prevent inline elements from adding space */
}

/* Ensure flex/grid containers do not expand beyond viewport */
.flex-container {
    display: flex;
    flex-wrap: wrap; /* Prevents flex items from exceeding width */
    justify-content: center; /* Adjust alignment */
    max-width: 100%;
}

/* Debugging tool (Optional) */
@media (max-width: 1200px) {
    body {
        outline: 2px solid rgb(0, 0, 0); /* Helps identify overflowing elements */
    }
}


/*loader start*/
.loader {
    display: none;
    width: 50px;
    height: 50px;
    border: 5px solid #fff;
    border-top: 5px solid #444;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*loader end*/






/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: black;
    color: white;
    text-align: center;
}

/* General Header Styling */
header {
    background: #000;
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* Logo */
header h1 {
    margin: 0;
}

/* Navigation */
header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin: 0 10px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
}

header nav ul li a:hover {
    color: hsl(0, 0%, 71%); /* Adds a subtle hover effect */
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* Responsive Styling */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    header nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #000;
        display: none;
        text-align: center;
    }

    header nav ul {
        font-family: Arial, Helvetica, sans-serif;
        font-weight: lighter;
        flex-direction: column;
        padding: 0;
        margin: 0;
        width: 100%;
        gap: 15px;
        padding-top: 20px;
        padding-bottom: 20px;
        text-align: right;
        padding-right: 20px;
    }

    header nav ul li {
        margin: 10px 0;
    }

    /* Show menu when active */
    header nav.active {
        display: block;
    }
}

/* Logo Link Styling */
.logo-link {
    text-decoration: none; /* Remove underline */
    color: white; /* Keep the text white */
    transition: opacity 0.3s ease-in-out;
}

.logo-link:hover {
    opacity: 0.8; /* Slight fade effect on hover */
}




/* About Us Section */
/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000000;
    color: white;
    text-align: center;
}

/* About Us Section */
.about {
    padding-top: 100px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #111;
    color: white;
    text-align: center;
}

.about-container {
    display: flex;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

/* Section Title */
section h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: lighter;
    font-size: 40px;
    margin-bottom: 15px;
    color: #fff;
    display: flex;
    justify-content: flex-start; /* Default to left-aligned */
}

/* About Us Content */
.about-content {
    flex-grow: 1;
    min-width: 300px;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    animation-name: fadeInUp;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}

.about-content h2 {
    font-size: 40px;
    margin-bottom: 15px;
}

.about-content p {
    font-size: 16px;
    margin-bottom: 15px;
    opacity: 0.9;
}

/* About Us Image */
.about-image {
    flex-grow: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition-property: transform, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

.about-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Call-to-Action Button */
.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, #ffffff, #ffffff);
    color: rgb(0, 0, 0);
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 24px;
    padding-right: 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    transition-property: transform, background;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

.cta-button:hover {
    background: linear-gradient(90deg, #ffffff, #ffffff);
    transform: translateY(-3px);
}



/* Mission Section */
.mission {
    padding-top: 120px;
    padding-bottom: 20px;
    padding-left: 20px; /* Default padding for mobile */
    padding-right: 20px;
    text-align: center; /* Default text alignment for mobile */
}


/* Title */
.mission h2 {
    font-size: 40px;
    margin-bottom: 15px;
    color: #fff;
    text-align: center; /* Default for mobile */
}

/* Description */
.mission p {
    font-size: 16px;
    margin-left: 10px;
    text-align: center; /* Default for mobile */
}

/* Desktop-specific styles */
@media (min-width: 1024px) {
    .mission {
        padding-left: 110px; /* Adjusted padding for desktop */
        padding-right: 80px; /* Ensures right spacing */
        text-align: center; /* Aligns the entire section to the right */
    }

    .mission h2{
        text-align: center; /* Aligns both title & description */
        margin-left: 0; /* Removes left margin */

    }


/* mobile styles */
    .mission p {
        text-align: left; /* Aligns both title & description */
        margin-left: 0; /* Removes left margin */
        width: 600px;
        color: #949494;
    }
}


@media (max-width: 768px) {
    .mission {
        padding-top: 80px;
        padding-left: 20px; /* Adjusted padding for desktop */
        padding-right: 80px; /* Ensures right spacing */
        text-align: center; /* Aligns the entire section to the right */
    }

    .mission h2{
        font-size: 32px;
        text-align: center; /* Aligns both title & description */
        margin-left: 0; /* Removes left margin */

    }

    .mission p {
        padding-top: -30px;
        text-align: left; /* Aligns both title & description */
        font-size: 11px;
        margin-left: 0; /* Removes left margin */
        width: 355.2px;
        color: #949494;
    }

}

/*freebie grid*/

/* === General Styles (Applies to Both) === */
body { 
    font-family: Arial, sans-serif; 
    text-align: center; 
    background-color: black; 
    color: white; 
    margin: 0; 
    padding: 0; 
}

.title {
    font-size: 36px;
    margin: 20px 0;
}

/* === Desktop-Only Styles === */
@media screen and (min-width: 1025px) {
    .desktop { display: block; }
    .mobile { display: none; }
}

/* === Mobile-Only Styles === */
@media screen and (max-width: 1024px) {
    .desktop { display: none; }
    .mobile { display: block; }

    /* Mobile-specific adjustments */
    body {
        background-color: #000000; /* Darker shade for mobile */
    }

    .title {
        font-size: 28px;
    }

    .tags {
        max-width: 100%;
        display: flex;
        flex-wrap: wrap; /* Allows tags to wrap */
        justify-content: center;
        gap: 5px;
        padding: 10px;
        position: relative;
    }

    .tags button {
        flex-shrink: 5;
        font-size: 10px; /* Make buttons smaller */
        padding: 8px 15px;
        border-radius: 3px;
        position: relative;
    }


    .grid {
        flex-direction: column;
        align-items: center;
    }
}

/* === Tags Style === */
.tags { 
    margin: 20px auto; 
    display: flex; 
    justify-content: center; 
    gap: 10px; 
}

.tags button { 
    background-color: #222; 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    font-size: 16px;
    cursor: pointer; 
    transition: 0.3s; 
    border-radius: 5px;
}

.tags button:hover { 
    background-color: white; 
    color: black; 
}

/* === Freebie Grid === */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Dynamic columns */
    gap: 20px;
    width: 90%; /* Uses 90% of available width */
    max-width: 1200px; /* Prevents excessive stretching */
    margin: auto; /* Centers the grid */
}


/* Freebie Items - No Fixed Width */
.freebie {
    width: 100%; /* Makes sure they don't overflow */
    max-width: 350px; /* Restricts max size */
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
}

.freebie:hover {
    background: #0e0e0e;
}

.freebie img { 
    width: 100%; 
    height: auto; 
    border-radius: 5px;
}

.freebie h3 {
    margin-top: 10px;
    font-size: 18px;
}

/* === Details Page === */
.details-container {
    display: none;
    max-width: 600px;
    margin: 40px auto;
    text-align: left;
    padding: 20px;
}

/* === Images === */
.details-container img {
    width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}

/* === Second Image Section === */
.extra-image-section {
    display: none;
}

.extra-image-section img {
    width: 100%;
    border-radius: 10px;
    margin-top: 10px;
}

/* === Description === */
.details-container p {
    font-size: 18px;
    line-height: 1.5;
    text-align: left;
    padding: 10px;
}

/* === Back Button === */
.back-btn {
    background: rgb(0, 0, 0);
    color: rgb(53, 53, 53);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.back-btn:hover {
    background: rgb(46, 46, 46);
    color: white;
}

/* === Download Button === */
.download-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 20px;
    font-size: 18px;
    background: #ffffff;
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
    margin-bottom: 50px;
}

.download-btn:hover {
    background: #969696;
}



/*social icon*/


.social-icons {
    display: flex;
    gap: -100px;
    justify-content: left;
    margin-top: -40px;
    padding-bottom: 50px;
}

.social-icons a img {
    transition: transform 0.3s, opacity 0.3s;
    filter: invert(1);
    border-radius: 0;
    width: 50%;
    gap: 0px;
}






/* === Tags Inside Details Page === */
.tags-container {
    margin-top: 20px;
    display: flex;
    justify-content: start;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: #000000;
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 14px;
}



.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.heart-icon {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: white;
    stroke-width: 2;
    transition: fill 0.3s, stroke 0.3s;
}

.liked .heart-icon {
    fill: red;
    stroke: red;
}

#similarFreebies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Ensures items are responsive */
    gap: 20px;
    justify-content: center;
}

/* Mobile-specific styles */
@media only screen and (max-width: 768px) {
    #similarFreebies {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }


}
