/* ================================================
   SMART HOME PAGE - HERO SECTION
   ================================================ */

#smart-hero {
    height: calc(100vh - var(--header-height));
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    overflow: hidden;
}
#smart-hero .hero-image-background {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; 
}
#smart-hero .hero-image-background img {
    width: 100%; height: 100%; object-fit: cover;
}
#smart-hero .hero-image-background::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4);
}
#smart-hero .container {
    position: relative; z-index: 2;
}
#smart-hero .hero-content {
    text-align: left;
}
#smart-hero .hero-content h1 {
    font-family: 'Cormorant', serif; font-size: clamp(3.5rem, 8vw, 8rem); font-weight: 400; color: var(--cream-color); line-height: 1.2; text-transform: uppercase; margin-bottom: 2.5rem;
}
#smart-hero .contact-button {
    background-color: transparent; border: 2px solid var(--cream-color); color: var(--cream-color); padding: 1rem 2.5rem; font-weight: 600; text-decoration: none; display: inline-block; transition: all 0.3s ease;
}
#smart-hero .contact-button:hover {
    background-color: var(--cream-color); color: var(--primary-color);
}

/* ================================================
   SMART HOME PAGE - INFO SECTION 
   ================================================ */

.info-section {
    padding: 0; /* Remove padding for the edge-to-edge design */
    background-color: var(--gold-color);
    color: var(--cream-color);
}

.info-split-container {
    display: flex;
    width: 100%;
    /* This is the key: it allows the columns to stretch to the same height. */
    /* We are removing align-items: center; */
    align-items: stretch; 
}

.info-text-column {
    width: 50%;
    padding: 5rem 6%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* This still centers your text block vertically */
}

.info-text-column .section-top-line {
    border: none;
    height: 1px;
    background-color: rgba(255, 250, 235, 0.7);
    width: 100%;
    max-width: 350px;
    margin: 0 0 3rem 0;
}

.info-text-column h2 {
    font-family: 'Cormorant', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 2.5rem;
}

.info-text-column ul {
    list-style: none;
    padding-left: 0;
}

.info-text-column li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 2em;
    position: relative;
}

.info-text-column li::before {
    content: '•';
    color: var(--cream-color);
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1.5em;
    position: absolute;
}

.info-image-column {
    width: 50%;
    
    overflow: hidden; /* This is important for the hover effect */
}

.info-image-column img {
    width: 100%;
    height: 100%; /* Make the image fill its parent container */
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease; /* Smooth transition for the hover */
}

/* This adds the zoom effect on hover */
.info-image-column:hover img {
    transform: scale(1.05);
}


/* Responsive adjustments */
@media (max-width: 900px) {
    .info-split-container {
        flex-direction: column; 
    }

    .info-text-column,
    .info-image-column {
        width: 100%;
    }

    .info-image-column {
        height: 400px; /* Give it a fixed height on mobile for better layout */
    }
}

/* ================================================
   SMART HOME PAGE - FEATURES SECTION
   ================================================ */

.features-section {
    padding: 6rem 0; background-color: var(--dark-brown); color: var(--cream-color);
}
.features-section .section-top-line {
    border: none; height: 1px; background-color: rgba(255, 250, 235, 0.4); width: 100%; margin: 0 auto 3rem auto;
}
.features-section h2 {
    font-family: 'Cormorant', serif; font-size: clamp(2.5rem, 5vw, 4rem); text-transform: uppercase; text-align: center; margin-bottom: 4rem; color: var(--cream-color);
}
.features-box {
    border: 1px solid rgba(255, 250, 235, 0.5);
    padding: 3rem 4rem;
    max-width: 1100px;
    margin: 0 auto;
    transition: background-color 0.3s, transform 0.3s;
}
.features-box:hover {
background-color: rgba(255, 255, 255, 0.05); /* Same subtle background */
transform: translateY(-5px); 
}
.features-box ul {
    list-style: none; padding-left: 0;
}
.features-box li {
    margin-bottom: 2rem; padding-left: 2em; position: relative;
}
.features-box li:last-child {
    margin-bottom: 0;
}
.features-box li::before {
    content: '•'; color: var(--cream-color); font-size: 1.5em; position: absolute; left: 0; top: -0.1em;
}
.features-box h3 {
    font-family: 'Poppins', sans-serif; font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem;
}
.features-box p {
    font-size: 1.1rem; line-height: 1.7; color: rgba(255, 250, 235, 0.9);
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .info-split-container {
        flex-direction: column;
    }
    .info-text-column, .info-image-column {
        width: 100%;
    }
    .info-image-column {
        height: 400px;
    }
}

/* ================================================
   ELEMENT ANIMATION STYLES
   ================================================ */

.animate-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-item:nth-child(1) { transition-delay: 0.1s; }
.animate-item:nth-child(2) { transition-delay: 0.2s; }
.animate-item:nth-child(3) { transition-delay: 0.3s; }
.animate-item:nth-child(4) { transition-delay: 0.4s; }
.animate-item:nth-child(5) { transition-delay: 0.5s; }

.animate-item.visible {
    opacity: 1;
    transform: translateY(0);
}