:root {
    --primary-color: #163241;
    --secondary-color: linear-gradient(135deg, #d12e4c, #6D071A);
    --text-color: #163241;
    --white: #fff;
}

@font-face {
    font-family: twheader;
    src: url(/fonts/TeamWarrior-ProBook.woff2);
}

@font-face {
    font-family: twpara;
    src: url(/fonts/NotoSerif-Italic-VariableFont_wdth_wght.woff);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#factoryvideo{
    border-radius: 20px;
    box-shadow: black;
}

body {
    font-family: twpara;
    color: var(--text-color);
    background: url('images/background2.jpeg') no-repeat center center fixed;
    background-size: cover;
    line-height: 1.6;
    transition: transform 0.5s ease;
    overflow-x: hidden;
}

.overlay {
    background: rgba(255, 255, 255, 0.75); /* Light overlay to enhance text readability */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo Section */
.logo-section {
    background: linear-gradient(135deg, #FFFFFF, #FFEFD5);
    padding: 10px 0;
    text-align: center;
}

.logo-section .logo {
    height: 90px;
    border-radius: 17%;
}

/* Header Strip */
header {
    background: var(--secondary-color);
    padding: 15px 0;
}

header nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

header .nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    z-index: 1;
    margin-top: 8.3px;
}

header .nav-links li a {
    font-family: twheader;
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
    
}

header .nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--white);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

header .nav-links li a:hover::after {
    width: 100%;
}

header .nav-links li a.active {
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 2;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* Responsive Nav */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100px;
        right: -100%;
        flex-direction: column;
        background: var(--secondary-color);
        width: 100%;
        text-align: center;
        transition: right 0.3s ease;
        padding: 20px 0;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Slider Section */
.slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    /* Space for dots */
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    padding-top: 12px;
    width: 100%;
    height: auto;
    display: block;
}

.dots {
    text-align: center;
    margin-top: 10px;
    /* Space between slider and dots */
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.dot.active {
    opacity: 1;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #d12e4c, #6D071A);
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin: 10px;
    position: relative;
    padding-bottom: 20px;
}

.footer h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin: 5px 0;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 10px;
    opacity: 100%;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.social-icons img {
    width: 30px;
    height: 30px;
}

.copyright {
    text-align: center;
    padding: 10px;
    background-color: #6D071A;
    margin-top: 20px;
}

.footer-column:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    right: -10px;
    width: 2px;
    height: 100%;
    background-color: white;
}

.social-icons a {
    font-size: 24px;
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease-in-out;
}

.social-icons a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .headline-container {
        flex-direction: column;
        text-align: center;
    }

    .line {
        width: 50%;
    }

    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column {
        width: 100%;
        padding-bottom: 20px;
        border-bottom: 2px solid white;
    }

    .footer-column:not(:last-child)::after {
        display: none;
    }

    .social-icons {
        justify-content: center;
    }
}

.social-links a:hover {
    color: var(--primary-color);
}


.midbody {
    margin: 0;
    height: 20vh;
    /* Full height for centering */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--secondary-color);
    /* Optional: Light background */
}

.midsection.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    background: linear-gradient(135deg, #FFFFFF, #FFEFD5);
    ;
    /* Final state: fully visible and normal size */
}

.midsection {
    width: 90%;
    /* Responsive width */
    max-width: 800px;
    /* Constrain the maximum size */
    background: white;
    padding: 20px;
    /* Reduced padding for better responsiveness */
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    border-radius: 10px;
    /* Slight rounding */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.midsection.visible {
    opacity: 1;
    transform: scale(1);
}

.highlight {
    display: inline-block;
    padding: 5px 15px;
    background: var(--secondary-color);
    color: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .midsection {
        font-size: 1.5rem;
        /* Smaller font for smaller screens */
        padding: 15px;
        /* Reduced padding */
    }

    .midbody {
        height: 10vh;
    }

    .highlight {
        font-size: 1rem;
        /* Adjust highlight size */
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .midsection {
        font-size: 1rem;
        /* Further adjust font size for very small screens */
        padding: 10px;
        /* Minimized padding */
    }

    .highlight {
        font-size: 0.76rem;
        /* Smaller highlight size */
        padding: 4px 8px;
    }

    .rounded-label {
        font-size: 10px;
    }
}

.Section {
    align-items: center;
}

body {
    margin: 0;
    font-family: twpara;
    background-color: #f5f5f5;
}

.products {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0;
}

.product-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    /* Allow wrapping for responsive design */
}

.product-item {
    width: 48%;
    /* 2 images per row with some gap */
    margin-bottom: 20px;
    /* Add spacing between rows */
    overflow: hidden;
    /* Ensures images and shadows don't overflow */
    opacity: 0;
    /* Initially hidden */
    transform: translateX(0);
    /* Initial state */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    position: relative;
    /* For placing shadow */
}

.product-item img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

/* Add realistic shadow at the bottom */
.product-item::after {
    content: '';
    position: absolute;
    bottom: -10px;
    /* Slightly below the image */
    left: 5%;
    width: 90%;
    /* Slightly narrower than the image */
    height: 15px;
    /* Height of the shadow */
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
    z-index: -1;
    /* Place it behind the image */
    border-radius: 50%;
}

/* Animation classes */
.product-item.visible {
    opacity: 1;
    /* Visible after animation */
}

.product-item.slide-left {
    transform: translateX(-100px);
    /* Slide in from left */
}

.product-item.slide-right {
    transform: translateX(100px);
    /* Slide in from right */
}

.product-item.visible.slide-left {
    transform: translateX(0);
    /* Reset to original position */
}

.product-item.visible.slide-right {
    transform: translateX(0);
    /* Reset to original position */
}

.layout-gradient-color{
    background: linear-gradient(135deg, #FFFFFF, #e0ccab);

}

/* Responsive Styles */
@media (max-width: 768px) {
    .product-item {
        width: 48%;
        /* Keep 2 images per row on smaller screens */
    }

    .product-row {
        justify-content: space-between;
    }

    .product-item img {
        width: 100%;
        max-width: 100%;
        /* Ensure image doesn't overflow its container */
    }

    /* Button responsiveness */
    .center-button {
        padding: 12px 25px;
        /* Smaller padding for smaller screens */
        font-size: 14px;
        /* Adjust font size for smaller screens */
    }
}

/* Center button styling */
.center-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.center-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 25px;
    /* Slight border radius */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s ease-in-out;
}

.center-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.center-button:active {
    transform: translateY(2px);
}

/* Full-width image styling */
.full-width-image-container {
    width: 100%;
    /* Ensure it spans full width */
    overflow: hidden;
    /* Prevent overflow if the image is too big */
}

.full-width-image {
    width: 100%;
    /* Make the image full width */
    height: auto;
    /* Maintain aspect ratio */
    display: block;
    /* Remove space below the image */
}

.headline-container {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.line {
    flex: 1;
    height: 2px;
    background-color: black;
    width: 0;
    transition: width 1s ease-out;
}

.headline {
    color: black;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .headline {
        font-size: 6vw;
    }

    header nav {
        justify-content: right;
    }
}

.custom-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 30px 5px;
    position: relative;
}
.text-box-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.circle-dot {
    width: 10px;
    height: 10px;
    background-color: #d12e4c;
    border-radius: 50%;
}
.circle-dot.large {
    width: 20px;
    height: 20px;
}
.rounded-label {
    background-color: #6D071A;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.image-container {
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.section-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (min-width: 768px) {
    .custom-section {
        flex-direction: row;
        justify-content: space-around;
    }
    .text-box-container {
        margin-bottom: 0;
    }

}

@media (max-width: 480px) {

    .rounded-label {
        font-size: 10px;
    }

    .product-repair{
        height: 20vh;
    }
}

/* Product info container */
.product-info {
    background-color: #fff; /* Light background */
    border-radius: 20%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    height: 50%;
    max-width: 350px; /* Max width for responsiveness */
    text-align: center;
    box-sizing: border-box;
}

.product-repair{
    /* background-color: #fff; */
    border-radius: 20%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* height: 20vh; */
    padding: 20px;
}

/* Product name styling */
.product-name {
    font-size: 1.8em;
    font-weight: 600; /* Increased weight for prominence */
    color: var(--primary-color);
    margin-bottom: 10px; /* Reduced margin */
}

/* Product description styling */
.product-description {
    font-size: 1em;
    color: #666;
    margin-bottom: 15px; /* Reduced margin */
}

/* Key Features list styling */
.key-features ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 15px; /* Reduced margin */
}

.key-features li {
    font-size: 1em;
    color: #333;
    margin-bottom: 8px; /* Reduced margin */
}

.key-features li strong {
    color: #007BFF; /* Highlight feature names */
}

/* Price styling */
.price {
    font-size: 1.5em;
    font-weight: 600;
    color: #FF5722; /* Highlight price in a contrasting color */
    margin-bottom: 10px; /* Reduced margin */
}

/* Responsive styles */
@media (max-width: 600px) {
    .product-info {
        width: 100%; /* Make product info section more flexible on smaller screens */
        padding: 10px;
    }

    .product-name {
        font-size: 0.6em; /* Adjust font size for small screens */
    }

    .product-description {
        font-size: 0.65em; /* Adjust font size for better readability */
    }

    .key-features li {
        font-size: 0.9em; /* Slightly smaller text for key features */
    }

    .price {
        font-size: 1.3em; /* Adjust font size for price */
    }
}

.flour-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background-color: whitesmoke rgba(0, 0, 0, 0.5);
    text-shadow: var(--text-color);
}
.flour-content {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    max-width: 80%;
    display: inline-block;
    position: relative;
    word-wrap: break-word;
}

.flour-hidden {
    visibility: hidden;
}
@media (max-width: 768px) {
    .flour-content {
        font-size: 15px;
    }
}
