/* Page-specific styles for index.html */

main {
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Hero section and content panel styles */
.hero {
    position: fixed;
    top: 0;
    left: 0;
    height: 95vh;
    width: 100%;
    
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* MODIFIED: Aligns the content block to the left */
    justify-content: center;
    overflow: hidden;
    z-index: 0;
    transition: background-color 0.3s ease, height 0.3s ease;
}

/* MODIFIED: Styles for the decorative background SVGs */
.hero-bg-svg {
    position: absolute;
    z-index: 1; /* Below content (2) and overlay (3) */
    width: 480px; /* CHANGED: Removed clamp() for a fixed size */
    pointer-events: none; /* Make them non-interactive */
    transition: opacity 0.3s ease, right 0.3s ease, display 0.3s ease; /* Added transitions for smoothness */
}

.bg-svg-left {
    bottom: -2%;
}

.bg-svg-right {
    bottom: -5%;
    right: -5%;
    width: 600px; /* MODIFIED: Increased the width to make it bigger */
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0;
    will-change: opacity;
    z-index: 3;
    pointer-events: none;
}

.hero-content {
    will-change: opacity;
    position: relative;
    z-index: 2;
    text-align: left; /* MODIFIED: Aligns the text inside the block to the left */
    margin-left: 10%; /* MODIFIED: Adds a margin from the left edge */
    max-width: 600px; /* MODIFIED: Constrains width for better readability on wide screens */
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.hero-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
}

.see-features-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.see-features-link:hover {
    text-decoration: underline;
}

.button-group {
    display: flex;
    gap: 1rem;
}

.github-button, .github-button img {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    height: 3rem;
}

.content-panel {
    margin-top: 95vh;
    position: relative;
    z-index: 10;
    
    background-color: var(--surface-color);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -10px 40px var(--shadow-color);
    padding-top: 1px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    will-change: max-width, border-radius;
}

/* General section styles */
.features, .how-it-works, .testimonials, .cta {
    padding: 4rem 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

#features, .how-it-works, .testimonials, .cta, footer {
    background: transparent;
}

.features h2, .how-it-works h2, .testimonials h2, .cta h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
}

/* Features section */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item img {
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* How It Works section */
.steps {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
}

.step-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Testimonials section */
.testimonials .testimonial {
    background: var(--surface-secondary-color);
    padding: 2rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

.testimonials blockquote {
    font-style: italic;
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

.testimonials cite {
    font-weight: bold;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

/* Call to Action (CTA) section */
.cta {
    background-color: var(--primary-color);
    color: #fff;
    padding: 4rem 20px;
}

.cta h2 {
    color: #fff;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta .button {
    background-color: #fff;
    color: var(--primary-color);
}

.cta .button:hover {
    background-color: #eee;
}

/* Footer styles */
footer {
    background: var(--footer-bg-color);
    color: var(--footer-text-color);
    text-align: center;
    padding: 2rem 0;
    position: relative;
    z-index: 10;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Responsive styles for index.html content */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    /* ADDED: Hide left SVG and reposition right one on smaller screens */
    .bg-svg-left {
        display: none;
    }
    .bg-svg-right {
        right: -25%; /* Pull it further off-screen to look better on mobile */
    }
}