/* * 1. HOME-SPECIFIC LAYOUT & UTILITIES
 */
.section-padding {
    /* UPDATED: Reduced from 100px to 50px to close the gap between sections */
    padding: 50px 5vw;
}

.container-fullwidth {
    width: 100%;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.section-heading-uppercase {
    font-family: var(--font-heading); /* UPDATED: Cinzel Font */
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.section-subheading-stylized {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-soft);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* * 2. SECTION 1: LANDING (Minimalist White Canvas)
 */
.landing-section {
    position: relative;
    height: 100vh; /* Full viewport height */
    width: 100%;
    background-color: #ffffff; /* White Canvas */
    display: flex;
    /* FIX 1: Align to center so image is vertically centered */
    align-items: center; 
    justify-content: center;
    overflow: hidden; /* Fix horizontal scroll */
    padding-top: 0; 
}

/* --- Center Visual --- */
.landing-visual-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    /* FIX 1: Align image to center */
    align-items: center; 
    justify-content: center;
    /* Removed top padding, kept side/bottom padding */
    padding: 0 2rem 2rem 2rem; 
}

.landing-hero-image {
    /* Desktop: Fixed at center, maintain aspect ratio */
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 85vh; 
    object-fit: contain; 
    margin-top: 0; 
}

/* * 3. SECTION 2: ABOUT PREVIEW
 */
.about-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-preview-image {
    width: 100%;
    max-width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    
    /* UPDATED: Added border globally (Applies to Desktop & Mobile) */
    border: 1px solid var(--color-border);
}

.about-text-content p {
    max-width: 500px;
    margin-bottom: 2rem;
    /* UPDATED: Justified Text alignment */
    text-align: justify;
    hyphens: auto;
}

/* * 4. SECTION 3: SERVICES (Static Blocks)
 */
.services-section {
    background-color: #f9f9f9;
}

/* .services-grid uses .grid-2-col from global/top */

.service-static-card {
    background-color: var(--color-bg);
    padding: 3rem 2rem;
    border-radius: var(--radius-cards);
    border: 1px solid var(--color-border);
    text-align: center;
    transition: var(--transition-speed);
}

.service-static-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-text); /* Changed from accent */
}

/* UPDATED: Black Headings per request */
.service-static-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--color-text); 
}

.service-static-card p {
    margin-bottom: 2rem;
    color: var(--color-text-soft);
}

.service-btn-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* * 5. SECTION 4: FEATURED PROJECTS (Slider)
 */
.featured-projects-section {
    /* Background distinction */
    background-color: #ffffff;
    /* Reduced bottom padding to close gap with Footer */
    padding-bottom: 2rem; 
}

.featured-slider-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
}

.featured-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 5vw 2rem 5vw; /* Padding for shadow clipping */
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.featured-slider::-webkit-scrollbar {
    display: none;
}

.featured-slide {
    flex: 0 0 600px; /* Desktop width */
    max-width: 85vw;
    aspect-ratio: 16 / 9;
    position: relative;
    border-radius: var(--radius-cards);
    overflow: hidden;
    scroll-snap-align: center;
    box-shadow: var(--shadow-cards);
    transition: var(--transition-speed);
}

.featured-slide:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.featured-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    /* Ensure link covers the slide for clickability */
    position: relative; 
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-slide:hover .featured-image {
    transform: scale(1.05);
}

/* UPDATED: Clean Slider UI (Hidden by default) */
.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    
    /* Default: Hidden */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* UPDATED: Show on Hover */
.featured-slide:hover .featured-overlay {
    opacity: 1;
}

.featured-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0; /* Removed margin since btn is gone */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* * 6. HOME-SPECIFIC VIEW STATE
 */
body.view-detail #landing-section,
body.view-detail #about-preview-section,
body.view-detail #services-section,
body.view-detail #featured-projects-section,
body.view-detail footer#contact-section {
    display: none;
}

body.view-detail #project-detail {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
    padding: 60px 5vw; /* Updated to tighter spacing */
}


/* * 7. HOME-SPECIFIC RESPONSIVENESS
 */
@media (max-width: 900px) {
    /* Tablet & Mobile */
    
    /* 1. Tighter Layout for About Section */
    #about-preview-section .grid-2-col {
        gap: 0.5rem; /* Drastically reduced gap (from 2.5rem) to pull text closer */
    }

    .about-preview-image {
        /* Smaller circle for mobile */
        max-width: 200px;
        height: 200px;
        /* Removed bottom margin (was 1rem) to pull text closer */
        margin: 0 auto; 
    }
    
    .about-text-content {
        text-align: center;
    }
    .about-text-content p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    /* Mobile / Small Tablet */
    .grid-2-col {
        grid-template-columns: 1fr; /* Stack services */
    }
    
    .service-static-card {
        padding: 2rem 1.5rem;
    }

    /* Slider Mobile */
    .featured-slide {
        flex: 0 0 85vw; /* Full width cards */
    }
}

@media (max-width: 600px) {
    /* Mobile Small */
    
    /* FIX 2: Reset Landing height to auto to remove big gap */
    .landing-section {
        height: auto; 
        min-height: auto;
        padding: 4rem 0; /* Add padding to compensate for lost height */
    }

    /* Adjust padding for wrapper on mobile */
    .landing-visual-wrapper {
        padding: 0 1rem;
    }

    .section-padding {
        /* UPDATED: Reduced from 60px to 30px */
        padding: 30px 5vw; 
    }
    
    /* Tighter connection for mobile footer */
    .featured-projects-section {
        padding-bottom: 1rem;
    }

    /* Landing Logic Mobile */
    .landing-hero-image {
        width: 100%;
        max-width: 100%;
        /* Ensure it doesn't get squashed */
        height: auto; 
        object-fit: contain;
    }
}