/* Import Google Fonts - Vihana Aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

/* Color Variables */
:root {
    --primary: #1a2d7d;
    /* Navy Blue */
    --secondary: #2196f3;
    /* Vivid Blue */
    --accent: #f26522;
    /* Orange */
    --dark: #121c4a;
    /* Darker Navy for footers/text */
    --light: #e1f1ff;
    /* Light blue background */
    --gray-bg: #f8f9fa;
    /* Off white */
    --gradient-primary: linear-gradient(135deg, #1a2d7d 0%, #15225c 100%);
    --gradient-secondary: linear-gradient(135deg, #2196f3 0%, #64b5f6 100%);
}

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: #4a4a4a;
    overflow-x: hidden;
    background-color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.btn,
.nav-link,
.card-title {
    font-family: 'Montserrat', sans-serif;
}

/* Custom Navbar */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.8rem;
    color: var(--primary) !important;
}

.navbar-nav .nav-link {
    color: var(--primary) !important;
    font-weight: 600;
    margin: 0 10px;
    position: relative;
    padding: 5px 0;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}

.navbar .btn-primary:hover {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* Base Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--secondary);
    transition: all 0.4s ease;
    z-index: -1;
    border-radius: inherit;
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

/* Hero Slider */
.hero-slider {
    height: 600px;
    overflow: hidden;
}

.carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 45, 125, 0.0) 0%, rgba(33, 150, 243, 0.0) 100%);
}

.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    text-align: left;
    left: 10%;
    right: 10%;
}

.carousel-caption h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    color: white;
}

.carousel-caption p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
    color: #f8f9fa;
}

.carousel-caption .btn {
    animation: fadeInUp 1s ease 0.4s both;
    background-color: var(--accent);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 50px;
}

.carousel-caption .btn:hover {
    background-color: #d15119;
    box-shadow: 0 5px 15px rgba(242, 101, 34, 0.4);
}

/* Wavy Sections */
.wavy-bg {
    background-color: var(--light);
    position: relative;
}

.wavy-top::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%23ffffff" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,144C1248,128,1344,96,1392,80L1440,64L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>') no-repeat top center / cover;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: white;
    height: 100%;
    position: relative;
    top: 0;
}

.product-card:hover {
    top: -15px;
    box-shadow: 0 25px 50px rgba(26, 45, 125, 0.15);
}

.product-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 20px 20px 0 0;
}

.product-card:hover .card-img-top {
    transform: scale(1.12) rotate(-1deg);
}

.product-card .card-body {
    padding: 1.8rem;
    text-align: center;
}

.product-card .card-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.product-card .badge {
    background: var(--light);
    color: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Why Choose Us Section */
.why-choose-us {
    background-color: var(--light);
    position: relative;
    padding: 5rem 0;
}

.feature-box {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    border-bottom: 5px solid transparent;
    position: relative;
    top: 0;
}

.feature-box:hover {
    top: -12px;
    border-bottom-color: var(--secondary);
    box-shadow: 0 25px 50px rgba(33, 150, 243, 0.15);
}

.feature-box i {
    font-size: 3.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
    display: inline-block;
}

.feature-box:hover i {
    transform: scale(1.2) translateY(-5px);
}

.feature-box h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.2rem;
}

/* Statistics Section */
.statistics {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Testimonials */
.testimonials {
    background-color: #ffffff !important;
    position: relative;
}

.testimonial-card {
    background: #f8f9fa;
    /* Light gray to offset white background */
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    margin: 1rem;
    text-align: center;
    border-top: 5px solid var(--secondary);
    /* Modern border */
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(33, 150, 243, 0.1);
}

/* Add quotes icon */
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 6rem;
    color: var(--secondary);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.testimonial-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.testimonial-card:hover img {
    transform: rotate(10deg) scale(1.1);
}

.testimonial-card h5 {
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--primary);
    font-size: 1.4rem;
}

.testimonial-card .position {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1rem;
}

.testimonial-card .rating {
    color: #ffc107;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    line-height: 1.8;
}

/* Carousel Controls specific for Testimonial */
.testimonials .carousel-control-prev-icon,
.testimonials .carousel-control-next-icon {
    background-color: var(--primary);
    border-radius: 50%;
    padding: 1.5rem;
    background-size: 1.5rem;
    transition: all 0.3s ease;
}

.testimonials .carousel-control-prev:hover .carousel-control-prev-icon,
.testimonials .carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--secondary);
    transform: scale(1.1);
}

/* Contact Page */
.contact-info-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    top: 0;
}

.contact-info-card:hover {
    top: -10px;
    box-shadow: 0 20px 40px rgba(33, 150, 243, 0.15);
}

.contact-info-card i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

.contact-info-card:hover i {
    transform: scale(1.2) rotate(10deg);
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.contact-form .form-control {
    border: 1px solid #e1e5eb;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background-color: #f9fafb;
}

.contact-form .form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
    background-color: white;
}

/* Internal Page Headers */
.page-header {
    background: var(--gradient-primary);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.page-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 100" xmlns="http://www.w3.org/2000/svg"><path fill="%23ffffff" d="M0,50L1440,0L1440,100L0,100Z"></path></svg>') no-repeat bottom center;
    background-size: cover;
}


/* Footer Custom Primary Background */
.footer-custom {
    background-color: var(--primary);
}

.footer-custom h5 {
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.footer-custom a.text-white-50:hover {
    color: var(--secondary) !important;
    text-decoration: none;
    transform: translateX(5px);
    display: inline-block;
}

.footer-custom .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    transition: all 0.3s ease;
}

.footer-custom .social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-custom hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 1s ease;
}

/* Filter Buttons (Products Page) */
.filter-btn {
    background: white;
    border: 1px solid #ddd;
    color: var(--primary);
    padding: 0.6rem 1.5rem;
    margin: 0.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.filter-btn .badge {
    background-color: var(--light) !important;
    color: var(--primary) !important;
}

.filter-btn.active .badge {
    background-color: white !important;
    color: var(--secondary) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2.2rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}