/* Index Page Styles */

/* Fullscreen Hero Section */
.homepage-hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 9999;
    transition: opacity 0.1s ease-out, transform 0.1s ease-out, visibility 0.3s ease;
    background-color: #f4f4f4; /* Fallback background */
}

.homepage-hero.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    max-width: none;
    max-height: none;
}

/* Ensure navbar stays above hero */
.navbar {
    z-index: 10000 !important;
}

/* Content section below hero */
.content-section {
    background: var(--background-color);
    min-height: 100vh;
    padding-top: 3rem;
    position: relative;
    z-index: 5000;
    margin-top: 100vh; /* Push content below fullscreen hero */
}

/* Hide main content and footer when hero is active */
body.homepage .content-section,
body.homepage .contact-footer {
    visibility: hidden;
    transition: visibility 0.3s ease;
}

body.homepage.scrolled .content-section,
body.homepage.scrolled .contact-footer {
    visibility: visible;
}

/* Parent container grid layout */
.parent {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr;
    grid-column-gap: 2rem;
    grid-row-gap: 0px;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    align-items: start;
}

.div1 {
    grid-area: 1 / 1 / 2 / 2;
}

.div2 {
    grid-area: 1 / 2 / 2 / 3;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 2rem;
}

/* Welcome text styling */
#welcome-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: left;
}

#home-text {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    margin-top: 10px;
    line-height: 1.6;
    color: var(--text-color);
}

/* Responsive design */
@media (max-width: 768px) {
    .homepage-hero {
        height: 80vh;
        margin-top: -100px;
    }
    
    .parent {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        text-align: center;
    }
    
    .div1 {
        grid-area: 1 / 1 / 2 / 2;
    }
    
    .div2 {
        grid-area: 2 / 1 / 3 / 2;
        padding-top: 1rem;
    }
    
    #welcome-text {
        text-align: center;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .homepage-hero {
        height: 70vh;
    }
    
    .content-section {
        padding-top: 2rem;
    }
}

/* Legacy styles preserved for compatibility */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: -2rem;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.features-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.6;
} 