﻿/* Hero Section Style */
.hero-section {
    position: relative;
    height: 100vh; /* hela skärmens höjd */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    overflow: hidden;
}

    /* Pseudo-element för desktop-skärmar */
    .hero-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url('../Images/heroImage.png'); /* Desktop-bilden */
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        z-index: -1;
    }

/* När skärmen är mindre än 768px (mobilskärm) */
@media (max-width: 768px) {
    .hero-section::before {
        background-image: url('../Images/MobileHero.jpg'); /* Mobil-bilden */
        filter: blur(1px); /* Eventuellt mindre blur på mobilen */
    }

    .hero-section h1 {
        font-size: 3rem;
        margin-bottom: 2rem;
        color: white;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    }


    .hero-section p {
        font-size: 1.5rem;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
        font-weight: bold;
        color: white;
    }
}


.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
}


.hero-section p {
    font-size: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
    font-weight: bold;
    color: white;
}

/* Button Styling */
.btn-primary {
    background-color: #007bff;
    color: white;
    border-radius: 3em;
    padding: 10px 20px;
    font-size: 1.1rem;
    text-align: center;
    text-decoration: none;
}

    .btn-primary:hover {
        background-color: #0056b3;
    }

/* Contact Section */
#contact {
    background-color: #ffffff;
    padding: 50px 0;
    text-align: center;
}

.social-icon {
    font-size: 1.5rem; /* Smaller icon size */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto;
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

    .social-icon:hover {
        background-color: #e9ecef;
    }

/* Product Section */
#products {
    padding: 2em 0;
}

.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 18em; /* Set maximum width for cards */
    height: 95%;
    /*max-height: 18em;*/ /* Set maximum height for cards to keep them square */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 1em auto; /* Center the cards */
    background-color: #fff;
    border-radius: 1em;
    box-shadow: 0 4px 1em rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 1rem;
    color: #6c757d;
}

.card-body {
    padding: 1.2rem;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    height: 12rem; /* Set fixed height for the image */
    object-fit: cover; /* Ensure the image covers the area without distortion */
    border-radius: 10px;
    
}

/* Scroll to Top Button Style */
.scroll-to-top {
    position: fixed;
    bottom: 2em;
    right: 2em;
    background-color: #007bff;
    color: white;
    font-size: 2rem;
    border-radius: 50%;
    padding-left: 0.4em;
    padding-right: 0.4em;
    padding-bottom: 0.1em;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    cursor: pointer;
    z-index: 1000;
}

    .scroll-to-top:hover {
        background-color: #0056b3;
    }

    .scroll-to-top:active {
        background-color: #004085;
    }
