/* General Styles */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    padding: 0; 
    background-color: #f4f4f4; 
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #fff;
    color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links, .nav-icons {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px; 
    flex: 1; 
}

.nav-links.left {
    justify-content: flex-start;
}

.nav-icons.right {
    justify-content: flex-end;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    flex: 0; 
    color: #023859; 
}    

.nav-links a, .nav-icons a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover, .nav-icons i:hover {
    color: #26658C;
}

#cart-count {
    background: #023859;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
    margin-left: -10px;
    vertical-align: top;
}

/* Media Query for Phone*/
@media (max-width: 850px) {
    .navbar {
        flex-direction: column; 
        gap: 15px;
    }
    
    .nav-links, .nav-icons {
        justify-content: center;
        font-size: 0.9rem;
    }
}

.hero {
    /* Background Image Styling */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assest/Images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Height and Alignment */
    height: 80vh; /* Adjust height as needed */
    display: flex;
    align-items: center; /* Vertically centers content */
    justify-content: flex-start; /* Pushes content to the LEFT */
    padding: 0 10%; /* Adds space from the left edge */
    color: white;
}

.hero-content {
    max-width: 500px; /* Prevents text from spreading too wide */
    text-align: left; /* Ensures text is left-aligned */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.shop-now {
    padding: 12px 25px;
    background-color: #023859;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.shop-now:hover {
    background-color: #26658C;
}

/* Responsive adjustment */
@media (max-width: 600px) {
    .hero {
        justify-content: center; /* Center content on mobile for better UX */
        text-align: center;
        padding: 0 20px;
    }
    .hero-content {
        text-align: center;
    }
}

/* Products Layout */
.products-container {
    display: grid;
    gap: 20px;
    padding: 20px;
    /* Default for Laptops: 4 columns */
    grid-template-columns: repeat(4, 1fr); 
}

.product-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* --- Media Queries for Responsiveness --- */

/* Tablet View (max-width: 992px) */
@media (max-width: 992px) {
    .products-container {
        /* Switch to 2 columns */
        grid-template-columns: repeat(2, 1fr); 
    }
}

/* Mobile View (max-width: 600px) */
@media (max-width: 600px) {
    .navbar { 
        flex-direction: column; 
        text-align: center; 
    }
    
    .nav-links { 
        padding: 0; 
        margin-top: 10px; 
    }
    
    .products-container {
        /* Switch to 1 column */
        grid-template-columns: 1fr; 
    }
}

/* Footer Styles */
.footer {
    background-color: #023859;
    color: white;
    padding: 40px 0 20px 0;
    margin-top: 50px; /* Space from the products */
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap; /* Allows sections to wrap on smaller screens */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section h3 {
    border-bottom: 2px solid #A7EBF2;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
}

.footer-section a:hover {
    color: #A7EBF2;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #A7EBF2;
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Update Mobile Query (600px) to handle footer */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-section h3 {
        display: inline-block;
    }
}