/* General Styles */
:root {
    --primary-background-color: #0f1c2d; /* Dark Navy Blue from banner */
    --secondary-background-color: #1a2a3a; /* Slightly lighter dark blue for contrast */
    --accent-color: #4dd0e1; /* Light Cyan/Blue from banner */
    --accent-color-hover: #37b7c8; /* Slightly darker cyan for hover */
    --text-color-light: #ffffff; /* White text for dark backgrounds */
    --text-color-dark: #333333; /* Dark text for light backgrounds (not used much, but good to have) */
    --border-color: #2b3e50; /* Border color that fits the dark theme */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color-light);
    background: var(--primary-background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color-hover);
}

h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-color-light);
}

p {
    margin-bottom: 1rem;
    font-weight: 300;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padded {
    padding: 4rem 2rem;
}

.section-dark {
    background-color: var(--secondary-background-color);
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-color-light);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-weight: 600;
}

.btn:hover {
    background: var(--accent-color-hover);
}

/* Header & Navigation */
header {
    background: var(--secondary-background-color);
    color: var(--text-color-light);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav .logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-color-light);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-color-light);
    font-weight: 600;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem; /* Adjusted padding to be more general */
    /* background: url('../banner/te.png') no-repeat center center/cover; Removed as image is in HTML */
    /* color: var(--text-color-light); Removed as text is no longer directly in hero */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.hero-content {
    flex: 1;
    min-width: 300px;
    margin-right: 2rem;
    text-align: left;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color-light);
}

.hero-banner-image {
    width: 100%;
    /* Ensure the banner takes full width of its container */
    overflow: hidden;
    /* Hide any overflow if image aspect ratio doesn't perfectly match */
}

.hero-banner-image img {
    width: 100%;
    height: auto;
    display: block;
    /* Remove extra space below image */
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-item {
    background: var(--secondary-background-color); /* Slightly different background for product items */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Make it a flex container */
    flex-direction: column; /* Stack children vertically */
    justify-content: space-between; /* Distribute space to push button to bottom */
    height: 100%; /* Ensure it takes full height available in grid cell */
    min-height: 400px; /* Ensure a consistent minimum height for all cards */
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); /* Slightly less intense shadow */
}

.product-item img {
    max-width: 100%;
    height: 200px; /* Fixed height for product images */
    object-fit: cover;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.product-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.product-item p {
    font-size: 0.9rem;
    color: var(--text-color-light);
    padding: 0 1rem;
}

/* Call to Action Section */
.cta-section {
    text-align: center;
    background: var(--secondary-background-color);
    border-top: 1px solid var(--border-color);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-color-light);
}

/* Footer */
footer {
    background: var(--primary-background-color);
    color: var(--text-color-light);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }

    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0.5rem 1rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-right: 0;
        margin-bottom: 3rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}
