/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Apply a smooth scroll behavior to HTML */
html {
    scroll-behavior: smooth;
}

/* Global styles */
body {
    background: #080808;
    color: white;
    background-image: url('./assets/Influenza.jpg');
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 18px; /* Increase text size */
}

/* Navigation Bar styles */
.navbar {
    background: white;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 1s ease-in; /* Fade in animation */
}

/* Container styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo styles */
.logo {
    font-size: 2rem;
    text-decoration: none;
    color: palevioletred;
    font-weight: bold;
    float: left;
}

/* Navigation list styles */
.nav-links {
    margin-inline: 4rem;
    list-style: none;
    display: flex;
    float: right;
}

.nav-links li {
    margin-left: 5rem;
}

.nav-links a {
    text-decoration: none;
    color: #080808;
    font-weight: bold;
    position: relative;
    transition: color 0.3s ease; /* Color transition */
}

/* Navigation list item styles */
.nav-links a::after {
    content: '';
    width: 0;
    height: 1px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: width 0.5s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: teal;
}

/* Header Section styles */
#header {
    width: 100%;
    height: 100vh;
    background: url('./assets/back.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    animation: fadeIn 1s ease-in; /* Fade in animation */
    
    
    
}

.header-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.header-text {
    text-align: center;
    max-width: 50%;
    padding: 20px;
    animation: fadeInRight 1s ease-in; /* Slide in from right animation */
}

.header-text h1 {
    font-size: 80px;
    margin-top: 20px;
    text-align: center;
    padding-right: 2 rem;
}

.header-text span {
    font-size: 6.3rem;
    color: black;
}

.intro-text {
    font-size: 40px;
    margin-top: 20px;
    line-height: 30px;
    float: right;
    color: black;
    text-align: center;
    text-align: center;
    opacity: 0; /* Initially hidden */
    animation: fadeInUp 1s ease-in 0.5s forwards; /* Fade in from bottom after a delay */
}

.quote {
    margin-top: 5rem;
    font-size: 20px;
    line-height: 30px;
    float: left;
    text-align: center;
    color: teal;
    opacity: 0; /* Initially hidden */
    animation: fadeInLeft 1s ease-in 0.5s forwards; /* Fade in from left after a delay */
}

/* About Section styles */
#about {
    padding: 80px 0;
    color: #ababab;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease-in 0.5s forwards;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 40px;
}

.about-col-1 {
    flex-basis: 35%;
    opacity: 0;
    animation: slideInLeft 1s ease-in 0.5s forwards;
}

/* Updated styles for the image with slide-in transition */
.about-col-1 img {
    width: 100%;
    border-radius: 30px;
    opacity: 0;
    animation: slideInUp 1s ease-in 0.5s forwards;
}

.about-col-2 {
    flex-basis: 60%;
    color: bisque;
}

.sub-title {
    font-size: 50px;
    font-weight: 600;
    color: black;
    margin-bottom: 20px;
}

/* Define slide-in animations */
@keyframes slideInLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Products Section styles */
#products {
    padding: 80px 0;
    color: #ababab;
    text-align: center;
    opacity: 0; /* Initially hidden */
    animation: fadeIn 1s ease-in 0.5s forwards; /* Fade in after a delay */
}

.product-col {
    flex-basis: calc(33.33% - 20px);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    text-align: center;
}

.product-col img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.product-rate {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
}

/* Hover effect */
.product-col:hover {
    transform: scale(1.05);
}

.product-col:hover img {
    transform: scale(1.1);
}

/* Review Section styles */
#review {
    padding: 80px 0;
    color: #ababab;
    text-align: center;
    opacity: 0; /* Initially hidden */
    animation: fadeIn 1s ease-in 0.5s forwards; /* Fade in after a delay */
}

.review {
    margin: 40px 0;
}

.review img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
    opacity: 0; /* Initially hidden */
    animation: fadeInUp 1s ease-in 0.5s forwards; /* Fade in from bottom after a delay */
}

.review-text {
    font-size: 20px;
    line-height: 30px;
    color: #ababab;
    margin-bottom: 20px;
    opacity: 0; /* Initially hidden */
    animation: fadeInUp 1s ease-in 0.5s forwards; /* Fade in from bottom after a delay */
}

.rating {
    font-size: 24px;
    color: yellow;
    opacity: 0; /* Initially hidden */
    animation: fadeInUp 1s ease-in 0.5s forwards; /* Fade in from bottom after a delay */
}

#review-form {
    margin-top: 20px;
    opacity: 0; /* Initially hidden */
    animation: fadeIn 1s ease-in 0.5s forwards; /* Fade in after a delay */
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
select,
textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    opacity: 0; /* Initially hidden */
    animation: fadeInUp 1s ease-in 0.5s forwards; /* Fade in from bottom after a delay */
}

textarea {
    resize: vertical;
}

button {
    background-color: teal;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0; /* Initially hidden */
    animation: fadeInUp 1s ease-in 0.5s forwards; /* Fade in from bottom after a delay */
}

button:hover {
    background-color: #008080;
}

/* Contact Us Section styles */
#contact {
    padding: 80px 0;
    color: #ababab;
    text-align: center;
    opacity: 0; /* Initially hidden */
    animation: fadeIn 1s ease-in 0.5s forwards; /* Fade in after a delay */
}

/* Contact Us Form styles */
#contact-form {
    margin-top: 20px;
    opacity: 0; /* Initially hidden */
    animation: fadeIn 1s ease-in 0.5s forwards; /* Fade in after a delay */
}

#contact-form .form-group {
    margin-bottom: 20px;
}

#contact-form label {
    display: block;
    margin-bottom: 5px;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#contact-form textarea {
    resize: vertical;
}

#contact-form button {
    background-color: teal;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 6rem;
}

#contact-form button:hover {
    background-color: #008080;
}

/* Confirmation Message styles */
#confirmation-message {
    margin-top: 20px;
    display: none;
    background-color: #008000;
    color: white;
    padding: 10px;
    border-radius: 5px;
    opacity: 0; /* Initially hidden */
    animation: fadeIn 1s ease-in 0.5s forwards; /* Fade in after a delay */
}

/* Footer styles */
.footer {
    background: #000; /* Black background color */
    color: white;
    padding: 40px 0;
    opacity: 0; /* Initially hidden */
    animation: fadeIn 1s ease-in 0.5s forwards; /* Fade in after a delay */
    float: inline-end;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-details {
    flex-basis: 70%;
}

.contact-details h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-details p {
    font-size: 18px;
    margin-bottom: 10px;
}

.copyright {
    flex-basis: 25%;
    text-align: right;
}

.copyright p {
    font-size: 14px;
}

/* Keyframes for animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

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

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* CSS code to control the animations and transitions */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.animated {
    opacity: 1;
    transform: translateY(0);
}
