/* Home page specific styles */

/* Hero section styling */
.hero-section {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    position: relative; /* Needed for overlay positioning */
    overflow: hidden; /* Ensures overlay doesn't spill */
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-section p {
    font-size: 1.3rem;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .apod-info {
    background-color: rgba(0, 0, 0, 0.7); /* Slightly darker for info box */
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 3rem;
}

.hero-section .apod-info h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.hero-section .apod-info p {
    font-size: 1rem;
    line-height: 1.5;
    color: #ccc;
}

/* Feature cards */
.feature-card {
    background-color: #1a1a2e; /* Dark background for cards */
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.feature-card h3 i {
    color: #5A1A75; /* Bright purple accent for icons */
    margin-right: 0.5rem;
}

.feature-card p {
    color: #cccccc; /* Lighter gray text for paragraphs */
    margin-bottom: 1.5rem;
}

.feature-card .btn {
    margin-top: auto;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature-card .btn-primary {
    background-color: #5A1A75; /* Bright purple button */
    border-color: #5A1A75;
}

.feature-card .btn-primary:hover {
    background-color: #4A1560; /* Darker purple on hover */
    border-color: #4A1560;
}

/* Gallery section */
.gallery-section {
    padding: 1rem 0;
}

.gallery-section .thumbnail {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-section .thumbnail:hover {
    transform: scale(1.02);
}

.gallery-section img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Observation section */
.observation-section {
    background-color: #1a1a2e; /* Dark background for section */
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.observation-section h2 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.observation-section h2 i {
    color: #00EE77; /* Bright green accent for icons */
    margin-right: 0.5rem;
}

.observation-section .btn-outline-light {
    color: #fff;
    border-color: #fff;
    transition: all 0.3s ease;
}

.observation-section .btn-outline-light:hover {
    background-color: #00EE77;
    border-color: #00EE77;
    color: #1a1a2e;
}

/* Contribute section */
.contribute-section {
    background-color: #1a1a2e; /* Dark background for section */
    color: white;
    padding: 3rem 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contribute-section h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.contribute-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.contribute-section .btn {
    background-color: #007447; /* Vibrant green button */
    border-color: #007447;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contribute-section .btn:hover {
    background-color: #005A35; /* Darker green on hover */
    border-color: #005A35;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    h2.display-4 {
        font-size: 2rem; /* Smaller font size for display-4 on mobile */
    }

    .feature-card h3 {
        font-size: 1.5rem; /* Smaller font size for feature card titles on mobile */
    }

    .feature-card {
        margin-bottom: 1.5rem;
    }

    .gallery-section .thumbnail {
        margin-bottom: 1rem;
    }
}
