/**
 * Home page specific styles
 */

/* Hero section */
#home {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background-size: cover;
    background-position: center;
    min-height: 450px;
    margin-top: -2rem;
    margin-bottom: 3rem;
    overflow: hidden;
}

#home .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 30%;
    z-index: 0;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

#home .hero-content {
    position: relative;
    z-index: 2;
    max-width: 48rem;
    margin: 0 auto;
    padding: 8rem 1rem 6rem;
    text-align: center;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#home h2 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#home p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.03em;
}

/* Scroll indicator animation */
.scroll-indicator {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 3rem;
    left: 0;
    right: 0;
}

.scroll-arrow {
    color: white;
    opacity: 0.8;
    animation: bounce 2s infinite;
    cursor: pointer;
    width: 36px;
    height: 36px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* About section */
#about {
    padding: 4rem 1rem;
    max-width: 64rem;
    margin: 0 auto;
}

#about h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#about p {
    color: #4b5563;
    line-height: 1.7;
}

/* Blog preview section */
#blog {
    background-color: #f8fafc;
    padding: 4rem 0;
}

#blog .container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}

#blog h3 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}

.blog-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-card-meta {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.blog-card-excerpt {
    color: #4b5563;
    margin: 1rem 0;
}

.blog-card-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.blog-card-link:hover {
    text-decoration: underline;
}

.view-all {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Button styles */
.btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.015em;
    border-radius: 0.375rem;
    background-color: #0f172a;
    color: white;
    transition: all 0.3s ease;
}

.btn-lg:hover {
    background-color: #1e293b;
}

/* Fallback background for hero */
#home.no-image .hero-bg {
    background-image: linear-gradient(to right, #1e293b, #334155);
}