* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
    color: #222;
    overflow-x: hidden;
}

header {
    background: linear-gradient(to right, #1b263b, #415a77, #778da9);
    color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: fadeInSlide 1s ease-out;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin: 0 20px;
    animation: bounceIn 1s ease-out forwards;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    60% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s, transform 0.3s;
}

nav ul li a:hover {
    color: #ff6f61;
    transform: scale(1.1);
    text-shadow: 0 0 10px #ff6f61, 0 0 20px #ff6f61, 0 0 30px #ff6f61;
}

.language-switch button {
    margin: 0 5px;
    padding: 8px 16px;
    background-color: #283c63;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 20px;
    transition: background-color 0.6s, transform 0.4s;
}

.language-switch button:hover {
    background-color: #ff6f61;
    transform: scale(1.2);
    box-shadow: 0 0 15px #ff6f61;
}

main {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-out;
}

.hero {
    background-image: url('images/background01.png');
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
    border-radius: 15px;
    color: #fff;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    animation: zoomIn 1s ease-out;
    transform: scale(1.05);
    transition: transform 0.5s;
}

.hero:hover {
    transform: scale(1.1);
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero h2 {
    position: relative;
    z-index: 2;
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: textGlow 2s infinite alternate-reverse;
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 10px #fff, 0 0 20px #ff6f61, 0 0 30px #ff6f61, 0 0 40px #ff6f61;
    }
    to {
        text-shadow: 0 0 20px #fff, 0 0 30px #ff6f61, 0 0 40px #ff6f61, 0 0 50px #ff6f61;
    }
}

.hero p {
    position: relative;
    z-index: 2;
    font-size: 1.5em;
    animation: fadeInText 1.5s ease-out;
    color: #dde1e7;
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    margin-bottom: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
    animation: riseUp 1s ease-out forwards;
    transform: translateY(20px);
}

@keyframes riseUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

footer {
    text-align: center;
    padding: 20px;
    background: #203A43;
    color: #fff;
    position: relative;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

footer a {
    color: #ff6f61;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #ff9e80;
}

/* Upcoming Products styling */
.upcoming-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

.upcoming-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s;
}

.upcoming-item:hover {
    transform: scale(1.05);
}

.upcoming-item img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
}

.upcoming-item ul {
    list-style: none;
    padding: 30px;
    text-align: left;
}

.upcoming-item li:first-child {
    font-weight: bold;
    text-align: center;
}

.product-item {
    background: #f7f8fa;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: staggerFadeIn 1.5s ease-out forwards;
}

@keyframes staggerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-item img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.product-item img:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

form {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

form label {
    margin-bottom: 5px;
    font-weight: bold;
}

form input, form textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

form input:focus, form textarea:focus {
    border-color: #ff6f61;
    box-shadow: 0 0 5px rgba(255, 111, 97, 0.5);
}

form button {
    padding: 10px 20px;
    background-color: #ff6f61;
    border: none;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

form button:hover {
    background-color: #ff9e80;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 158, 128, 0.3);
}

/* Additional animations */

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design */

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
        margin-top: 20px;
    }

    nav ul li {
        margin: 10px 0;
        animation: none; /* To prevent animation stacking on small devices */
    }

    .hero h2 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .product-item {
        margin-bottom: 20px;
    }

    form {
        padding: 15px;
    }
}
