/* Basic styles and fonts */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: white;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

.raleway {
    font-family: 'Raleway', sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

.neulis {
    font-family: 'nelis-neue', sans-serif;
    font-weight: 900;
    font-style: normal;
}

.glass {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2),
    inset 0 4px 20px rgba(255, 255, 255, 0.3);
}

.glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    backdrop-filter: blur(1px);
    box-shadow: inset -10px -8px 0px -11px rgba(255, 255, 255, 1),
    inset 0px -9px 0px -8px rgba(255, 255, 255, 1);
    opacity: 0.6;
    z-index: -1;
    filter: blur(1px) drop-shadow(10px 4px 6px black) brightness(115%);
}

body {
    padding-top: 40px;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Header styles and navbar */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #CA5D20;
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    color: white;
    font-size: 24px;
}

/* Desktop nav */

.desktop-nav {
    display: flex;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
}

.desktop-nav li {
    margin-left: 30px;
}

.desktop-nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: #BAB1A9;
}

/* Mobile nav */

.mobile-toggle {
    color: white;
    display: none;
    cursor: pointer;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.mobile-toggle.active {
    transform: rotate(90deg);
}

.mobile-nav {
    display: fixed;
    top: 88px;
    left: 0;
    width: 100%;
    background-color: #CA5D20;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 1000;
}

.mobile-nav.active {
    max-height: 500px;
    opacity: 1;
}

.mobile-nav ul {
    list-style: none;
    padding: 15px 0;
}

.mobile-nav li {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease
}

.mobile-nav.active li {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav.active li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active li:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav.active li:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav.active li:nth-child(4) { transition-delay: 0.3s; }

.mobile-nav a {
    color: white;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.mobile-nav a:hover {
    color: #BAB1A9;
}

/* Main content styles */

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    transition: opacity 0.3s ease;
}

body.menu-open .content {
    opacity: 0.5;
}

/* Carousel styles */

.carousel-container {
    position: relative;
    width: 100vw;
    height: 60vh;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    margin-top: 0;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
}

.carousel-item {
    min-width: 100vw;
    position: relative;
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 10%;
    color: white;
    padding: 20px;
    max-width: 40%;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transition: all 0.3s ease;
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* About-Us block */

.about-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.aboutUs {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
    padding-right: 20px;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image {
    max-width: 100%;
    height: auto;
}

.about-image img {
    width: auto;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.1);
    border-radius: 28px;
}

/* About us carousel */

.text-carousel {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

.text-carousel-selector {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.carousel-btn {
    padding: 15px 15px;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    transform: scale(1.05);
}

.sel-btn-act {
    background-color: #CA5D20;
    color: white;
}

.text-block {
    display: none;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    animation: fadeIn 0.5s ease;
}

.text-block.txt-act {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Products section */

.product-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: #CA5D20;
    display: grid;
    place-items: center;
}
.products {
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    color: white;
}

.product-img {
    max-width: 100%;
    height: auto;
}

.product-img img {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.1);
    border-radius: 28px;
}

.product-text button {
    margin-top: 20px;
    padding: 15px 15px;
    transition: all 0.3s ease;
    color: white;
}

.product-text button:hover {
    transform: scale(1.05);
}

.product-text p {
    margin-top: 20px;
}

/* News section */

.news-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.news {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.news-text h1,p {
    margin-bottom: 20px;
}

.news-buttons {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.news-buttons button {
    margin-top: 20px;
    padding: 15px 15px;
    transition: all 0.3s ease;
}

.news-buttons button:hover {
    transform: scale(1.05);
}

/* Partners  */

.partners-container {
    width: 100vw;
    background: #CA5D20;
    margin-left: calc(-50vw + 50%);
    display: grid;
    place-items: center;
}

.partners {
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partners h1 {
    color: white;
    padding: 40px;
}

.partners-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 20px;
}

.partners-row a {
    height: 200px;
    width: 600px;
    background: white;
    padding: 10px;
    transition: all 0.3s ease;
    border-radius: 30px;
}

.partners-row a:hover {
    transform: scale(1.05);
}

.partners-row img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

/* Contact-us */

.contact-us-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contact-me h1 {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 30px;
}

.contact-fbox {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.contact-data {
    flex: 1;
    padding: 25px;
    background-color: #CA5D20;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-data p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: white;
}

.contact-data p:last-child {
    margin-bottom: 0;
}

.contact-form {
    flex: 1;
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

button[type="submit"] {
    padding: 15px 15px;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    transform: scale(1.05);
}

/* Footer styles */

footer {
    width: 100vw;
    background-color: #5C5C5C;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* adaptive styles  */

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .carousel-container {
        height: 40vh;
    }

    .carousel-caption {
        max-width: 80%;
        bottom: 10%;
        left: 5%;
        padding: 10px;
    }

    .aboutUs {
        flex-direction: column;
        gap: 20px;
    }

    .about-text {
        padding-right: 0;
        order: 1;
    }

    .about-image {
        order: 2;
    }

    .products {
        max-width: 70vw;
    }

    .product-img {
        display: none;
    }

    .news {
        flex-direction: column;
    }

    .partners-row {
        flex-direction: column;
    }

    .contact-fbox {
        flex-direction: column;
        gap: 20px;
    }

    .footer {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}