/* Styles specific to the Home page */

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;

    background-image: url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?q=80&w=1596&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- About Us Section (Home) --- */
.about-section-home {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image-col img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-content-col .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-content-col p {
    margin-bottom: 2rem;
    color: #555;
    line-height: 1.8;
}

/* --- Chairman Section --- */
.chairman-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.chairman-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Give more space to text */
    gap: 4rem;
    align-items: center;
}

.chairman-image-col img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.chairman-content-col .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.chairman-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: #444;
    line-height: 1.8;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-blue);
    padding-left: 1.5rem;
}

.chairman-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 0.25rem;
}

.chairman-title {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
}


/* --- Features Section --- */
.features-section {
    padding: 80px 0;
    background-color: var(--white); /* Changed to white for alternating color */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-image 0.3s ease;
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
    border-image: linear-gradient(to right, var(--vibrant-pink), var(--vibrant-orange)) 1;
}

.feature-icon img {
    height: 64px;
    width: 64px;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-navy);
}

/* --- Projects Section --- */
.projects-section {
    padding: 80px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 400px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    color: var(--white);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.45s ease, opacity 0.45s ease;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.project-card:hover .project-info {
    transform: translateY(0);
    opacity: 1;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    margin-top: auto; 
}

.project-info p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--dark-navy);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Responsive Styles for Home Page Sections --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.1rem; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-content-col .section-title {
        text-align: center;
    }

    .chairman-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
        text-align: center;
    }

    .chairman-image-col {
        order: -1; /* Move image to the top on mobile */
        margin-bottom: 2rem;
    }

    .chairman-content-col .section-title {
        text-align: center;
    }

    .chairman-quote {
        border-left: none;
        padding-left: 0;
    }

    .features-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
}