/* Base Styles */
:root {
    --primary-color: #009be9;
    --secondary-color: #0077b3;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --text-color: #495057;
    --white: #ffffff;
    --gray: #6c757d;
    --light-gray: #e9ecef;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    overflow-x: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
}

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

.nav ul li {
    margin-right: 30px;
}

.nav ul li a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    margin-top: 90px;
    padding: 0 !important;
}

.hero-slider {
    height: auto;
}

.hero-slide {
    height: 80vh;
    background-color: #ebf9ff;
}

.hero-slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    height: 100%;
    padding: 0 5rem;
}

.hero-slide .container {
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-slide .hero-image {
    height: 100%;
    position: relative !important;
}

.hero-slide .hero-image img {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    display: block;
}

.hero-slide h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.hero-slide p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
}

/* Features Section */
.features {
    background: var(--light-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 1.8rem;
}

.feature-item h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Products Section */
.products {
    background: var(--white);
}

.product-slider {
    margin: 0 -15px;
}

.product-item {
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    padding: 30px 20px;
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);
}

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-item h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-item p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* Gallery Section */
.gallery {
    background: var(--light-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 1rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* About Section */
.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
    position: relative;
}

.image-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.about-image {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.about-image .about-image-slider {
    overflow: hidden;
}

.about-image .about-image-item {
    width: 100%;
    height: 100%;
    border-radius: 0.7rem;
    overflow: hidden;
}

.about-image-slider .about-image-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-features ul {
    list-style: none;
    margin-top: 20px;
}

.about-features ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.about-features ul li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Upcoming products */
.upcoming-products-content {
    padding: 0 0.5rem;
    width: 100%;
}

.upcoming-products-slider {
    margin: 30px 0;
}

.upcoming-product-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    margin: 20px 10px;
}

.upcoming-product-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 10px;
}

.upcoming-product-item h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.upcoming-product-item p {
    color: var(--gray);
}

/* Contact Section */
.contact {
    background: var(--light-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3,
.contact-form h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.info-item {
    display: flex;
    margin-bottom: 20px;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 5px;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232, 62, 140, 0.2);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--light-gray);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-links h3,
.footer-products h3,
.footer-contact h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul,
.footer-products ul {
    list-style: none;
}

.footer-links ul li,
.footer-products ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-products ul li a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover,
.footer-products ul li a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 1050px) {
    .hero-slide {
        position: relative;
        /* Add this to contain the absolutely positioned image */
        overflow: hidden;
        /* Prevent the image from overflowing */
    }

    .hero-slide .hero-image {
        position: relative;
        /* Add this */
        height: 100%;
        /* Ensure the container takes full height */
    }

    .hero-slide .hero-image img {
        height: 80%;
    }
}

@media (max-width: 992px) {
    .hero-slide-content {
        padding: 0 2rem;
    }

    .about .container,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.5s ease;
    }

    .nav.active {
        left: 0;
    }

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

    .nav ul li {
        margin: 15px 0;
    }

    .mobile-menu {
        display: block;
        margin-right: 1.6rem;
    }

    .hero-slide-content {
        grid-template-columns: 1fr;
        grid-auto-rows: 1fr 1fr;
        padding: 0 1rem;
    }

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

    .hero-slide-content .hero-image {
        height: 100%;
    }

    .hero-slide-content .hero-image img {
        position: absolute;
        height: 100%;
        left: 50%;
        transform: translateX(-50%);
    }

    section {
        padding: 60px 0;
    }

    .contact-info h3 {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-slide-content {
        padding: 0 1rem;
    }

    .hero-slide h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-content p {
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .footer-links ul,
    .footer-products ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

    .info-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .social-links {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}