/* Flash messages */
.flash-messages {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  transition: opacity .4s ease, transform .4s ease;
}
.flash-messages.hide {
  opacity: 0;
  transform: translateY(-10px);
}
.flash-message {
  min-width: 220px;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-family: 'TT Norms','Inter',sans-serif;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.flash-message.success { background: #16a34a; }
.flash-message.error { background: #dc2626; }
.flash-message.info { background: #2563eb; }
/* General Body Styles */
body {
    font-family: 'Times New Roman', Times, serif;
    background-color: #E5E1DC;
    line-height: 1.4em;
    scroll-padding-top: 100px;
    padding-top: 10px;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    height: 800px;
    overflow: hidden;
}

#background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 1;
}

.video-overlay h1 {
    font-size: 48px;
    margin: 0;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.1em;
}

.animated-text {
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About NJT Container */
.about-container {
    text-align: center;
    color: rgb(0, 0, 0);
    margin: 150px auto;
    max-width: 900px;
}

.title-paragraph {
    font-size: 38px;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.1em;
}

.small-paragraph {
    font-size: 16px;
    margin: 10px 0;
    text-transform: uppercase;
    font-family: 'Times New Roman', Times, serif;
    font-weight: lighter;
    letter-spacing: 0.02em;
    line-height: 1.1em;
}

.medium-paragraph {
    font-size: 20px; /* Corrected to px */
    margin: 20px 0;
    font-family: 'Times New Roman', Times, serif;
    font-weight: lighter;
    letter-spacing: 0.02em;
    line-height: 1.4em;
}

.ctas a {
    background: transparent;
    border: 1px solid #000;
    color: #000;
    display: inline-block;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.1em;
    overflow: hidden;
    padding: 20px 10px;
    font-size: 0.8em;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 1000ms;
}

.ctas a:hover {
    color: #fff;
}

.ctas a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    transition: transform 800ms;
    z-index: -1;
    transform: translateY(-100%);
}

.ctas a:hover::before {
    transform: translateY(0);
}

/* Nav Products Container */
.product-nav-container {
    position: relative;
    margin: 40px auto;
    max-width: 900px;
}

.overlay-image {
    width: 100%;
    height: auto;
}

.image-overlay {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
}

.overlay-title {
    color: #fafafa;
    font-size: 18px;
    margin: 10px 0;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.1em;
}

.overlay-text {
    font-size: 30px;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.1em;
}


.left-image {
    flex: 1;
    margin-right: 20px;
}

.left-img {
    width: 100%;
    height: auto;
}

.right-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.small-image {
    margin-top: 10px;
}

.small-img {
    width: 150px;
    height: auto;
}

/* Category Container */
.image-category-row {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.image-category-item {
    margin: 0 15px;
    text-align: center;
    position: relative;
    overflow: hidden;   
}

.image-category-item img {
    width: 450px;
    height: auto;
    border-radius: 10px;
    transition: transform 1s; 
}

.image-category-name {
    font-size: 16px;
    margin-top: 10px;
    font-family: 'Times New Roman', Times, serif;
}

/* .image-category-description {
    position: absolute; 
    top: 100%; 
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8); 
    padding: 10px;
    border-radius: 5px;
    transition: top 1s; 
    opacity: 0; 
    text-align: center;
    height: 80%;
} */

/* .image-category-item{
    margin-top: 50px;
} */

/* .image-category-item:hover img {
    transform: scale(1.05); 
}

.image-category-item:hover .image-category-description {
    top: 3%; 
    opacity: 1; 
} */

.image-category-item a {
    text-decoration: none;
    color: inherit;
}

.image-category-item a:hover {
    color: #333;
}


/* Mobile Styles */
@media (max-width: 480px) {

    .video-overlay h1 {
        font-size: 24px; 
    }

    .about-container {
        margin: 50px auto; /
    }

    .title-paragraph {
        font-size: 28px; 
    }

    .small-paragraph,
    .medium-paragraph {
        font-size: 14px; 
    }

    .ctas a {
        padding: 15px 5px; 
        font-size: 0.7em; 
    }


    .left-image {
        margin-right: 0; 
        margin-bottom: 20px; 
    }

    .image-category-row {
        flex-direction: column; 
    }

    .image-category-item img {
        width: 100%; 
        height: auto; 
    }
}

/* Tablet Styles */
@media (max-width: 1024px) {
    body {
        font-size: 1em; 
    }

    .video-overlay h1 {
        font-size: 36px; 
    }

    .about-container {
        margin: 100px auto; 
    }

    .title-paragraph {
        font-size: 32px; 
    }

    .small-paragraph,
    .medium-paragraph {
        font-size: 18px; 
    }

    .ctas a {
        padding: 18px 8px; 
        font-size: 0.85em; 
    }


    .image-category-row {
        flex-wrap: wrap; 
    }

    .image-category-item {
        margin: 10px; 
    }

    .image-category-item img {
        width: 220px; 
    }
}
