/**
 * Custom CSS for Mother's Care
 * Modern design with bento layout
 */

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.bento-item {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(65, 84, 241, 0.15);
}

.bento-item.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item .content {
    padding: 1.5rem;
}

.bento-item .image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.bento-item.featured .image {
    height: 300px;
}

.bento-item .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bento-item:hover .image img {
    transform: scale(1.05);
}

.bento-item .title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #012970;
    margin: 1rem 0 0.5rem;
}

.bento-item.featured .title {
    font-size: 1.75rem;
}

.bento-item .description {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
}

.bento-item .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Modern Hero Section */
.hero-modern {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(246, 249, 255, 0.9) 100%);
    overflow: hidden;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/hero-pattern.svg');
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}

.hero-modern .container {
    position: relative;
    z-index: 1;
}

.hero-modern h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #012970;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-modern h2 {
    font-size: 1.5rem;
    color: #444;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-modern .btn-primary {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background: #4154f1;
    border: none;
    box-shadow: 0 5px 30px rgba(65, 84, 241, 0.4);
    transition: all 0.3s ease;
}

.hero-modern .btn-primary:hover {
    background: #2a3bf5;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(65, 84, 241, 0.6);
}

.hero-modern .hero-img {
    position: relative;
}

.hero-modern .hero-img img {
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Stats Cards */
.stats-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(65, 84, 241, 0.15);
}

.stats-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(65, 84, 241, 0.1);
    color: #4154f1;
    font-size: 2rem;
}

.stats-card.primary .icon {
    background: rgba(65, 84, 241, 0.1);
    color: #4154f1;
}

.stats-card.success .icon {
    background: rgba(21, 190, 86, 0.1);
    color: #15be56;
}

.stats-card.danger .icon {
    background: rgba(187, 8, 82, 0.1);
    color: #bb0852;
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #012970;
    margin-bottom: 0.5rem;
}

.stats-card p {
    font-size: 1.1rem;
    color: #6c757d;
}

/* Services Section */
.services-modern .service-box {
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background: #fff;
    transition: all 0.3s ease;
    height: 100%;
}

.services-modern .service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(65, 84, 241, 0.15);
}

.services-modern .service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(65, 84, 241, 0.1);
    color: #4154f1;
    font-size: 2.5rem;
}

.services-modern .service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #012970;
    margin-bottom: 1rem;
}

.services-modern .service-description {
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    margin-top: 3rem;
}

.testimonial-card .testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}

.testimonial-card .testimonial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card .testimonial-content {
    margin-top: 2.5rem;
    text-align: center;
}

.testimonial-card .testimonial-text {
    font-style: italic;
    color: #444;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.testimonial-card .testimonial-name {
    font-weight: 700;
    color: #012970;
    margin-bottom: 0.25rem;
}

.testimonial-card .testimonial-position {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Contact Form */
.contact-form-modern {
    background: #fff;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form-modern .form-control {
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    border: 1px solid #e0e0e0;
    margin-bottom: 1.5rem;
}

.contact-form-modern .form-control:focus {
    box-shadow: 0 0 0 3px rgba(65, 84, 241, 0.15);
    border-color: #4154f1;
}

.contact-form-modern textarea.form-control {
    min-height: 150px;
}

.contact-form-modern .btn-submit {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    background: #4154f1;
    border: none;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-form-modern .btn-submit:hover {
    background: #2a3bf5;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(65, 84, 241, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-modern h1 {
        font-size: 2.5rem;
    }
    
    .hero-modern h2 {
        font-size: 1.25rem;
    }
    
    .bento-item.featured {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .bento-item.featured .image {
        height: 200px;
    }
    
    .bento-item.featured .title {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-modern {
        text-align: center;
    }
    
    .hero-modern .hero-img {
        margin-top: 3rem;
    }
    
    .stats-card {
        margin-bottom: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.slide-up {
    animation: slideUp 0.8s ease-in-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-in-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}