:root {
    --primary-blue: #1a6fc9;
    --secondary-blue: #0d4e8a;
    --light-blue: #e6f2ff;
    --dark-blue: #0a3d62;
    --accent-blue: #48cae4;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    overflow-x: hidden;
}

.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-blue) !important;
    font-size: 1.8rem;
}

.nav-link {
    color: var(--dark-blue) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 111, 201, 0.3);
}

/* Hero Carousel Styles */
/* Adjust hero section padding */
.hero-section {
    padding-bottom: 30px; /* Add space at bottom */
    position: relative;
    overflow: hidden;
}


.carousel-item {
    height: 100vh;
    min-height: 600px;
    background: no-repeat center center;
    background-size: cover;
}

.carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 111, 201, 0.85) 0%, rgba(13, 78, 138, 0.85) 100%);
    z-index: 1;
}

.carousel-caption {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding-bottom: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: left;
}

.carousel-indicators {
    z-index: 3;
    margin-bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-indicators button.active {
    background-color: white;
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 3;
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 20px;
    transition: all 0.3s;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Hero content */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white;
}

/* Water animation */
@keyframes waterWave {
    0% { transform: translateX(0) translateZ(0) scaleY(1) }
    50% { transform: translateX(-25%) translateZ(0) scaleY(0.85) }
    100% { transform: translateX(-50%) translateZ(0) scaleY(1) }
}

/* Water wave adjustments */
.water-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 80px; /* Reduced from 100px */
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23ffffff"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23ffffff"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23ffffff"/></svg>');
    background-size: 50% 80px;
    animation: waterWave 10s linear infinite;
    opacity: 0.7; /* Reduced from 0.8 */
    z-index: 1; /* Ensure it stays below content */
}

/* Features Section */
.feature-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-card .icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--dark-blue);
    font-weight: 700;
}

/* Benefits Section */
.benefits-section {
    background-color: var(--light-blue);
    padding: 100px 0;
}

.section-title {
    color: var(--dark-blue);
    font-weight: 800;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-blue);
}

.benefit-item {
    margin-bottom: 30px;
}

.benefit-icon {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-right: 15px;
}

/* Research Section */
.research-section {
    padding: 100px 0;
    background-color: white;
}

.research-card {
    background-color: var(--light-blue);
    border-radius: 15px;
    padding: 30px;
    height: 100%;
}

/* Products Section */
.product-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    margin-bottom: 30px;
    border: none;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 25px;
}

.product-card .price {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 100px 0;
}

.contact-form {
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-form .form-control {
    height: 50px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.contact-form textarea.form-control {
    height: auto;
}

.contact-info {
    margin-top: 50px;
}

.contact-info-item {
    margin-bottom: 20px;
}

.contact-info-icon {
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-right: 15px;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    padding: 12px 25px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: white;
    padding: 50px 0 20px;
}

.footer-links h5 {
    color: var(--accent-blue);
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: all 0.3s;
}

.social-icons a:hover {
    color: var(--accent-blue);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .carousel-item {
        min-height: 500px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .carousel-caption {
        text-align: center;
    }
    
    .carousel-caption .row > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .benefit-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .carousel-item {
        min-height: 450px;
    }
    
    .btn-primary, .whatsapp-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .product-card .card-body {
        padding: 15px;
    }
}

/* Animation for elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Loading animation */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-blue);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form validation styles */
.is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: -15px;
    margin-bottom: 15px;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top:hover {
    background-color: var(--secondary-blue);
    color: white;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* Additional utility classes */
.text-accent {
    color: var(--accent-blue);
}

.bg-primary-blue {
    background-color: var(--primary-blue);
}

.bg-secondary-blue {
    background-color: var(--secondary-blue);
}

.bg-light-blue {
    background-color: var(--light-blue);
}

.bg-dark-blue {
    background-color: var(--dark-blue);
}

/* Water drop animation for special effects */
.water-drop {
    position: relative;
}

.water-drop::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%2348cae4" d="M50 0c-13.3 0-25 10-25 25 0 25 25 75 25 75s25-50 25-75c0-15-11.7-25-25-25z"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.7;
    animation: dropFall 2s infinite ease-in;
}

@keyframes dropFall {
    0% {
        transform: translateX(-50%) translateY(0) scale(0.8);
        opacity: 0;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        transform: translateX(-50%) translateY(30px) scale(0.5);
        opacity: 0;
    }
}

/* ======================
   Hero Section Adjustments
   ====================== */
.carousel-item {
    height: 70vh; /* Reduced from 100vh */
    min-height: 500px; /* Reduced from 600px */
}

/* ======================
   Floating Action Buttons
   ====================== */
.floating-buttons {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.back-to-top {
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    transform: translateY(20px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-3px) !important;
}

.whatsapp-float {
    width: 50px;
    height: 50px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
}

/* ======================
   Mobile Menu Auto-Close
   ====================== */
@media (max-width: 992px) {
    .navbar-collapse {
        max-height: 70vh;
        overflow-y: auto;
        transition: all 0.3s;
    }
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .water-wave {
        height: 60px; /* Smaller wave on mobile */
        background-size: 50% 60px;
        opacity: 0.6; /* More transparent */
    }
    
    .hero-section {
        padding-bottom: 40px; /* More space for buttons */
    }
    
    .carousel-caption {
        padding-bottom: 20px; /* Push content up */
    }
}

@media (max-width: 576px) {
    .water-wave {
        height: 50px;
        background-size: 50% 50px;
    }
    
    .hero-section {
        padding-bottom: 50px; /* Even more space for mobile */
    }
    
    /* Adjust button positioning */
    .hero-section .btn {
        position: relative;
        z-index: 2; /* Ensure buttons stay above wave */
        margin-bottom: 10px; /* Space between buttons */
    }
}
/* Enhanced Image Styling */
.carousel-item img {
    object-position: center 30%; /* Better composition for water images */
}

.product-card .card-img-top {
    object-position: center;
    transition: transform 0.5s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Water reflection effect */
.img-water-reflect {
    position: relative;
    overflow: hidden;
}

.img-water-reflect::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.8) 100%);
}

/* Add this class to important images */
.water-featured-img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(26, 111, 201, 0.2);
    border: 3px solid rgba(255,255,255,0.2);
}

/* Protective spacer */
.wave-spacer {
    height: 30px; /* Creates safe space */
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, 
        rgba(26, 111, 201, 0.1) 0%,
        rgba(26, 111, 201, 0) 100%);
}

@media (max-width: 768px) {
    .wave-spacer {
        height: 40px;
    }
}

@media (max-width: 576px) {
    .wave-spacer {
        height: 50px;
    }
}