/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@600;700&display=swap');

/* --- CSS Variables --- */
:root {
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Lato', sans-serif;

    --color-bg: #F5F7FA;
    --color-text: #2D3748;
    --color-accent: #4FD1C5;
    --color-muted: #A0AEC0;
    --color-white: #FFFFFF;
    --color-border: #E2E8F0;
}

/* --- Global Styles & Resets --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 700;
}

/* --- Header --- */
.header {
    background-color: var(--color-white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header__nav-link {
    font-weight: 600;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.header__nav-link:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.header__nav-link--cta {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    border-bottom: none;
}

.header__nav-link--cta:hover {
    color: var(--color-white);
    background-color: #3db8ad; /* Slightly darker accent */
}


/* --- Footer --- */
.footer {
    background-color: #2D3748; /* Dark background for footer */
    color: var(--color-bg);
    padding: 4rem 0 2rem;
    margin-top: 5rem; /* To be adjusted later */
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer__logo {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer__tagline {
    color: var(--color-muted);
    max-width: 250px;
}

.footer__heading {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.footer__nav-list li,
.footer__legal-list li {
    margin-bottom: 0.5rem;
}

.footer__nav-link,
.footer__legal-link {
    color: var(--color-muted);
}

.footer__nav-link:hover,
.footer__legal-link:hover {
    color: var(--color-accent);
}

.footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--color-muted);
}

.footer__contact-item i {
    flex-shrink: 0;
    margin-top: 3px;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4A5568; /* Slightly lighter border */
    font-size: 0.9rem;
    color: var(--color-muted);
}

/* --- Responsive (Mobile-First) --- */
@media (max-width: 992px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header__nav {
        display: none; /* For now, we hide it. Will be replaced by a burger menu later */
    }
}

@media (max-width: 576px) {
    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__tagline {
        margin: 0 auto 1rem;
    }
    .footer__contact-item {
        justify-content: center;
    }
}

/* --- Reusable Components --- */
.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-white);
    background-color: var(--color-accent);
    padding: 0.8rem 1.75rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: #38b2ac; /* Darker accent */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 209, 197, 0.4);
}


/* --- Hero Section --- */
.hero {
    padding: 6rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    min-height: 135px; /* Reserve space to prevent layout shift */
}

/* Blinking cursor for typewriter effect */
.hero__title::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--color-accent);
    font-weight: 400;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--color-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

/* --- Responsive for Hero Section --- */
@media (max-width: 992px) {
    .hero__title {
        font-size: 2.8rem;
        min-height: 100px;
    }
    .hero {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__content {
        order: 2; /* Text appears below image on mobile */
    }
    .hero__visual {
        order: 1;
        margin-bottom: 2rem;
    }
    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- Reusable Section Header --- */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem;
}

.section-header__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header__subtitle {
    font-size: 1.1rem;
    color: var(--color-muted);
}

/* --- Features Section --- */
.features {
    padding: 6rem 0;
    background-color: var(--color-white);
}

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

.features__card {
    background-color: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all 0.3s ease;
}

.features__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(45, 55, 72, 0.08);
}

.features__card-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    background-color: #e6fffa; /* Light accent background */
    color: var(--color-accent);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.features__card-icon i svg {
    width: 32px;
    height: 32px;
}

.features__card-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.features__card-description {
    color: var(--color-muted);
    line-height: 1.7;
}

/* --- Responsive for Features Section --- */
@media (max-width: 992px) {
    .features__grid {
        grid-template-columns: 1fr;
    }
    .features__card {
        max-width: 450px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .section-header__title {
        font-size: 2rem;
    }
    .features {
        padding: 4rem 0;
    }
}

/* --- Showcase Section --- */
.showcase {
    padding: 6rem 0;
    overflow-x: hidden; /* Prevent horizontal scroll on small screens due to AOS animations */
}

.showcase__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.showcase__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.showcase__description {
    font-size: 1.1rem;
    color: var(--color-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.showcase__list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.showcase__list-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.showcase__list-item i {
    flex-shrink: 0;
    color: var(--color-accent);
    margin-top: 4px;
}

.showcase__image-wrapper {
    position: relative;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(45, 55, 72, 0.1);
}

.showcase__image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    animation: generate-image 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s 1 forwards;
    opacity: 0; /* Start with image invisible */
}

/* Animation for image generation effect */
@keyframes generate-image {
    0% {
        opacity: 0.2;
        filter: blur(15px) saturate(0.5);
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        filter: blur(0) saturate(1);
        transform: scale(1);
    }
}

/* --- Responsive for Showcase Section --- */
@media (max-width: 992px) {
    .showcase__container {
        gap: 2rem;
    }
    .showcase__title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .showcase__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .showcase__list-item {
        text-align: left;
    }
}

/* --- Smart Home Section --- */
.smart-home {
    padding: 6rem 0;
    background-color: var(--color-white);
}

.smart-home__infographic {
    position: relative;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    margin: 4rem auto 0;
}

.smart-home__hub,
.smart-home__device {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    width: 120px;
}

.smart-home__hub {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.smart-home__hub-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
}

.smart-home__hub-icon i svg {
    width: 50px;
    height: 50px;
}
.smart-home__hub span {
    font-weight: 600;
}

.smart-home__device-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(45, 55, 72, 0.05);
}

.smart-home__device-icon i svg {
    width: 32px;
    height: 32px;
    color: var(--color-accent);
}

.smart-home__device span {
    font-size: 0.9rem;
    color: var(--color-muted);
}

/* --- Positioning of devices --- */
.smart-home__device--1 { top: 0%; left: 50%; transform: translate(-50%, -50%); }
.smart-home__device--2 { top: 35%; left: 98%; transform: translate(-50%, -50%); }
.smart-home__device--3 { top: 85%; left: 85%; transform: translate(-50%, -50%); }
.smart-home__device--4 { top: 85%; left: 15%; transform: translate(-50%, -50%); }
.smart-home__device--5 { top: 35%; left: 2%; transform: translate(-50%, -50%); }

/* --- Connecting Lines (using pseudo-elements) --- */
.smart-home__device::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    background: #c7d2fe; /* Muted line color */
    z-index: -1;
    animation: pulse-line 2s infinite ease-in-out;
}

/* Line lengths and rotations */
.smart-home__device--1::before { height: 110px; transform: translate(-50%, -100%) rotate(0deg); animation-delay: 0s; }
.smart-home__device--2::before { height: 115px; transform: translate(-50%, -50%) rotate(75deg) translateY(-58px); animation-delay: 0.4s; }
.smart-home__device--3::before { height: 135px; transform: translate(-50%, 0) rotate(135deg) translateY(-68px); animation-delay: 0.8s; }
.smart-home__device--4::before { height: 135px; transform: translate(-50%, 0) rotate(-135deg) translateY(-68px); animation-delay: 1.2s; }
.smart-home__device--5::before { height: 115px; transform: translate(-50%, -50%) rotate(-75deg) translateY(-58px); animation-delay: 1.6s; }

@keyframes pulse-line {
    0%, 100% { box-shadow: 0 0 5px 2px #e6fffa; }
    50% { box-shadow: 0 0 15px 5px #4fd1c5; }
}

/* --- Responsive for Smart Home Section --- */
@media (max-width: 768px) {
    .smart-home__infographic {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        height: auto;
        max-width: 100%;
    }
    .smart-home__hub, .smart-home__device {
        position: static;
        transform: none;
        width: 100%;
        max-width: 250px;
    }
    .smart-home__hub { order: -1; } /* Hub on top */
    .smart-home__device::before {
        display: none; /* Hide lines on mobile */
    }
}

/* --- New Button Style: Outline --- */
.button--outline {
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    box-shadow: none;
}

.button--outline:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 209, 197, 0.2);
}

/* --- Tools Section --- */
.tools {
    padding: 6rem 0;
}

.tools__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 850px;
    margin: 0 auto;
}

.tools__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.tools__item:hover {
    border-color: var(--color-accent);
    transform: scale(1.02);
}

.tools__item-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
}

.tools__item-content {
    flex-grow: 1;
}

.tools__item-title {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.tools__item-description {
    font-size: 0.95rem;
    color: var(--color-muted);
}

.tools__item-button {
    margin-left: auto;
    flex-shrink: 0;
}

/* --- Responsive for Tools Section --- */
@media (max-width: 600px) {
    .tools__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .tools__item-button {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}
/* --- Contact Section --- */
.contact {
    padding: 6rem 0;
}

.contact__form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(45, 55, 72, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group__label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group__input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-family: var(--font-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-group__input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(79, 209, 197, 0.3);
}

.form-group--checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.form-group--checkbox input[type="checkbox"] {
    width: 1.25em;
    height: 1.25em;
    accent-color: var(--color-accent);
}

.form-group--checkbox label {
    margin-bottom: 0;
    font-weight: 400;
}

.form-group--checkbox a {
    color: var(--color-accent);
    text-decoration: underline;
}

.contact__submit-button {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Form Messages */
#form-messages {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    display: none; /* Hidden by default */
}

#form-messages.success {
    background-color: #e6fffa;
    color: #23766f;
    display: block;
}

#form-messages.error {
    background-color: #fed7d7;
    color: #c53030;
    display: block;
}
/* --- Cookie Pop-up --- */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-text);
    color: var(--color-white);
    padding: 1.5rem 2rem;
    z-index: 1001;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;

    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.cookie-popup--show {
    transform: translateY(0);
}

.cookie-popup__text {
    font-size: 0.95rem;
}

.cookie-popup__text a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-popup__button {
    flex-shrink: 0; /* Prevent button from shrinking */
    background-color: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: 0.6rem 1.5rem;
}

.cookie-popup__button:hover {
    background-color: #38b2ac;
    box-shadow: none;
    transform: none;
}

/* --- Responsive for Cookie Pop-up --- */
@media (max-width: 768px) {
    .cookie-popup {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
}
/* --- Static Page Styles (privacy.html, etc.) --- */
.pages {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.pages .container {
    max-width: 800px; /* Limit line length for readability */
}

.pages h1 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.pages h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.pages p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--color-text);
}

.pages ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.pages li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.pages a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

.pages a:hover {
    text-decoration: underline;
}

.pages strong {
    font-weight: 700;
}