/* --- Global Styles --- */
:root {
    --primary: #2563eb; /* Bold Blue */
    --dark: #1e293b;
    --light: #f8fafc;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body { background-color: var(--light); line-height: 1.6; }

/* --- Navigation --- */
header {
    background: var(--dark);
    color: white;
    padding: 1rem 5%;
    position: sticky; top: 0; z-index: 1000;
}

nav {
    display: flex; justify-content: space-between; align-items: center;
}

.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary); }

.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 20px; }
.nav-links a { color: white; text-decoration: none; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }

/* --- Responsive Grid (Mobile First) --- */
.container { padding: 2rem 5%; }

.grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr; /* Mobile: 1 column */
}

/* Tablet: 2 columns */
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }

/* Desktop: 3-4 columns */
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* --- Product Cards --- */
.card {
    background: white; padding: 15px; border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); text-align: center;
}
.card img { max-width: 100%; border-radius: 5px; }
.btn {
    background: var(--primary); color: white; padding: 10px 20px;
    border: none; border-radius: 5px; cursor: pointer; margin-top: 10px;
}

/* --- Chatbot UI --- */
#chat-widget {
    position: fixed; bottom: 20px; right: 20px; z-index: 2000;
}
#chat-window {
    width: 300px; height: 400px; background: white; border: 1px solid #ddd;
    display: none; flex-direction: column; border-radius: 10px; overflow: hidden;
}
#chat-display { flex: 1; padding: 10px; overflow-y: auto; background: #eee; font-size: 0.9rem; }
#chat-input { padding: 10px; border: none; border-top: 1px solid #ddd; outline: none; }
#chat-toggle {
    background: var(--primary); color: white; border: none;
    padding: 15px; border-radius: 50%; cursor: pointer; float: right;
}


/* --- Hero Section Styles --- */
.hero {
    /* Replace the URL below with your actual image link */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('https://your-image-link.com/photo.jpg'); 
    
    background-size: cover;       /* Ensures image fills the area */
    background-position: center;  /* Centers the image */
    height: 60vh;                 /* Sets height to 60% of the screen */
    display: flex;
    align-items: center;          /* Centers content vertically */
    justify-content: center;      /* Centers content horizontally */
    text-align: center;
    color: white;
}

/* 1. This handles the Background Image and Section Size */
.hero {
    /* Use 'url' and forward slashes (/) for the path */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('image1.jpg'); 
    
    background-size: cover;       /* Makes image fill the whole screen */
    background-position: center;  /* Centers the image */
    height: 60vh;                 /* Sets the height */
    display: flex;
    align-items: center;          /* Centers text vertically */
    justify-content: center;      /* Centers text horizontally */
    text-align: center;
    color: white;                 /* Makes text white */
}

/* 2. This handles the Main Heading Text */
.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

/* 3. This handles the Paragraph Text */
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* 4. Responsive adjustment for Mobile */
@media (max-width: 768px) {
    .hero { height: 40vh; }
    .hero-content h1 { font-size: 2rem; }
}

/* --- Mission & Vision Styles --- */
.about-us {
    padding: 60px 5%;
    background-color: #ffffff;
    text-align: center;
}

.mission-vision-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap; /* This makes it responsive */
}

.info-card {
    background: #fdfdfd;
    padding: 40px;
    border-radius: 12px;
    flex: 1;
    min-width: 300px; /* Ensures they don't get too skinny */
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.info-card:hover {
    transform: translateY(-10px); /* Lifts up slightly when hovered */
}

.info-card h2 {
    color: #2563eb; /* Boldbuy Blue */
    margin: 15px 0;
    font-size: 1.8rem;
}

.info-card p {
    color: #555;
    line-height: 1.7;
}

.icon {
    font-size: 3rem;
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .info-card {
        padding: 25px;
    }
}

/* --- Product Page Styles --- */
.shop-header {
    text-align: center;
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    gap: 30px;
    /* Responsive: 4 columns desktop, 2 tablet, 1 mobile */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    position: relative;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    background: #f9f9f9;
}

.product-image img {
    width: 100%;
    display: block;
}

.tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #2563eb;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #1e293b;
}

.category {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.price {
    font-weight: bold;
    color: #2563eb;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.add-btn {
    width: 100%;
    padding: 10px;
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.add-btn:hover {
    background: #2563eb;
}


/* --- About Page Specific Styles --- */
.about-hero {
    background: #1e293b;
    color: white;
    padding: 80px 5%;
    text-align: center;
}

.about-story {
    max-width: 800px;
    margin: 60px auto;
    text-align: center;
}

.about-story h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2563eb;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    background: #2563eb;
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin: 40px 0;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
}

.team-section {
    margin-top: 80px;
    text-align: center;
}

.team-section h2 {
    margin-bottom: 40px;
}

/* Ensure Team Cards look like Founders */
.team-section .card img {
    border-radius: 50%; /* Makes founder photos circular */
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
    border: 3px solid #2563eb;
}

/* --- Contact Page Styles --- */
.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-wrapper {
    display: flex;
    gap: 50px;
    flex-wrap: wrap; /* Critical for responsiveness */
}

.contact-form {
    flex: 2;
    min-width: 300px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-info {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #1e293b;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #2563eb;
}

.info-box {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #2563eb;
}

.hidden { display: none; }

#form-status {
    margin-top: 20px;
    padding: 15px;
    background: #dcfce7;
    color: #166534;
    border-radius: 6px;
    text-align: center;
}



.product-image img {
    width: 100%;       /* Makes image width fit the card */
    height: 250px;     /* Sets a fixed height so all cards are even */
    object-fit: cover; /* Crops the image slightly so it doesn't look squashed */
    display: block;
}


/* This makes the Product images fill the card properly */
.product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* This prevents the image from looking stretched */
}

/* This makes the Founder images perfectly round */
.team-section .card img {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* This creates the circle shape */
    object-fit: cover;
}