@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body, html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: url("Images/about-1.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: -1;
    min-height: 100vh;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white; /* Or any background color you prefer */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Ensure it’s above all other content */
}

#loading-screen img {
    width: 300px; /* Adjust size as needed */
    height: auto;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 8%;
    margin-bottom: 10%;
    padding: 20px 100px;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(0, 0, 0, 0.9);
}

.logo img {
    width: 75px;
    height: auto;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05); /* Slight zoom on hover */
}

.navbar a {
    position: relative;
    font-size: 18px;
    color: white;
    font-weight: 500;
    text-decoration: none;
    margin-left: 40px;
}

.navbar a::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: .3s;
}

.navbar a:hover::before {
    width: 100%;
}

.navbar a.selected::before {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('images/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    padding: 10px 25px;
    background: #273829;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: #246414;
}

/* Featured Products */
.featured-products {
    padding: 60px 40px;
    text-align: center;
}

.featured-products h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.products {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.product-card {
    position: relative; /* Ensures child elements are positioned relative to the card */
    width: 250px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    text-align: center;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-card .caption {
    position: absolute;
    bottom: 10px; /* Positions caption at the bottom of the image */
    left: 50%; /* Centers the caption horizontally */
    transform: translateX(-50%);
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.7); /* Dark background */
    color: #fff; /* Light text color */
    font-size: 14px;
    border-radius: 5px;
    transition: opacity 0.3s ease;
    opacity: 0; /* Hidden by default */
}

.product-card:hover .caption {
    opacity: 1; /* Show the title on hover */
}



/* Contact Section */
.contact {
    padding: 40px;
    background: #000000;
    text-align: center;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #273829;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

.contact-btn:hover {
    background: #246414;
}
