/* -----------------------------------------
   MODERN HOME REDESIGN (home-redesign.css)
----------------------------------------- */

/* HERO SLIDER SECTION */
.hero-slider-section {
    margin-top: -20px;
}
.modern-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    text-align: center;
    animation: fadeInUp 1s ease-out forwards;
}

/* HERO SECTION (Single fallback) */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../demos/One-dream-One-Passion.png') no-repeat center center/cover;
    color: #fff;
    margin-top: -20px; /* Offset to pull up under header if needed */
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out forwards;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: #fff !important;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    line-height: 1.5;
    opacity: 0.9;
    color: #fff !important;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #B54321;
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(181, 67, 33, 0.4);
}

.hero-btn:hover {
    background-color: #d1502a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(181, 67, 33, 0.6);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SERVICES GRID SECTION */
.services-grid-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* MODERN CARD STYLES */
.modern-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* bouncy hover */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 4px solid transparent;
}

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

.card-icon {
    width: 90px;
    height: 90px;
    background: #f4f6f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.modern-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-icon img {
    max-width: 50px;
    max-height: 50px;
}

.modern-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    transition: color 0.3s ease;
}

.modern-card p {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.modern-card .readmore {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: auto;
}

/* Specific Card Colors */
.ws-card { border-bottom-color: #3498db; }
.ws-card:hover h4 { color: #3498db; }
.ws-card .readmore { color: #3498db; }
.ws-card .card-icon { box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1); }

.da-card { border-bottom-color: #1abc9c; }
.da-card:hover h4 { color: #1abc9c; }
.da-card .readmore { color: #1abc9c; }
.da-card .card-icon { box-shadow: 0 0 0 4px rgba(26, 188, 156, 0.1); }

.md-card { border-bottom-color: #f1c40f; }
.md-card:hover h4 { color: #e6b800; }
.md-card .readmore { color: #e6b800; }
.md-card .card-icon { box-shadow: 0 0 0 4px rgba(241, 196, 15, 0.1); }

.ot-card { border-bottom-color: #e74c3c; }
.ot-card:hover h4 { color: #e74c3c; }
.ot-card .readmore { color: #e74c3c; }
.ot-card .card-icon { box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1); }

.modern-card .readmore:hover {
    color: #222;
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .services-grid-section {
        padding: 50px 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }
}
