/**
 * home.css - Home page specific styles
 * 
 * Styles specific to the home/index page including:
 * - Hero section with background image
 * - About preview section
 * - Services preview cards
 * - CEO message section
 * 
 * @author First Imperial Consulting & Technologies Solutions Ltd
 */

/* ============================================
   HERO SECTION - Main landing area
   ============================================ */
.hero {
    background: linear-gradient(rgba(10, 26, 58, 0.85), rgba(10, 26, 58, 0.85)), 
                url('../images/hero.svg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: var(--accent-gold);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    margin: 10px;
}

/* About Preview */
.about-preview {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-preview {
    margin-bottom: 25px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image-preview img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image-preview:hover img {
    transform: scale(1.05);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: #f5f7fa;
    border-radius: 8px;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    background: white;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.stat-item p {
    color: #666;
    font-weight: 500;
}

/* Services Preview */
.services-preview {
    background: #f5f7fa;
}

.services-featured-image {
    max-width: 800px;
    margin: 0 auto 50px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.services-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.services-featured-image:hover img {
    transform: scale(1.03);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 1.8rem;
}

.service-card h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: #666;
    line-height: 1.7;
}

/* CEO Message */
.ceo-message {
    background: white;
}

.message-box {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: white;
    padding: 60px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.message-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--accent-gold);
}

.message-header h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.message-header p {
    opacity: 0.8;
    font-style: italic;
}

.message-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.message-content .btn-outline {
    color: white;
    border-color: white;
}

.message-content .btn-outline:hover {
    background: white;
    color: var(--primary-dark);
}

/* ============================================
   RESPONSIVE DESIGN - Mobile Optimization
   ============================================ */

/* Tablet View (max-width: 992px) */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-preview {
        margin-bottom: 30px;
    }
    
    .services-featured-image {
        margin-bottom: 40px;
    }
    
    .message-box {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px;
    }
}

/* Mobile View (max-width: 768px) */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .hero .btn {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 10px auto;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-item {
        padding: 25px 15px;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .about-image-preview {
        margin-bottom: 25px;
    }
    
    .services-featured-image {
        margin-bottom: 30px;
    }
}

/* Small Mobile View (max-width: 576px) */
@media (max-width: 576px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        padding: 0 15px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .about-content {
        gap: 30px;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-item {
        padding: 20px 15px;
    }
    
    .stat-item h3 {
        font-size: 1.8rem;
    }
    
    .message-box {
        padding: 25px 15px;
        gap: 20px;
        grid-template-columns: 1fr;
    }
    
    .message-header {
        text-align: center;
    }
    
    .message-header h3 {
        font-size: 1.5rem;
    }
    
    .message-content {
        text-align: center;
    }
    
    .message-content p {
        font-size: 1rem;
    }
    
    .services-featured-image {
        margin-bottom: 25px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 30px;
    }
}
