/* ==================== GOOGLE FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Manrope:wght@600;700&display=swap');

/* ==================== CSS VARIABLES ==================== */
:root {
    --header-height: 5rem;

    /* Colors */
    --clr-bg: #111317;
    --clr-text: #F5F5F7;
    --clr-accent: #00E599;
    --clr-secondary: #3A3D46;
    --clr-white: #FFFFFF;

    /* Fonts */
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Manrope', sans-serif;

    --fs-base: 16px;
    --fs-md: 1rem; /* 16px */
    --fs-sm: 0.875rem; /* 14px */
    --fs-lg: 1.125rem; /* 18px */

    /* Other */
    --transition-fast: 0.2s ease-in-out;
    --border-radius: 8px;
}

/* ==================== BASE STYLES & RESET ==================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--clr-white);
}

/* ==================== REUSABLE CLASSES ==================== */
.container {
    max-width: 1200px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

@media screen and (min-width: 1230px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(17, 19, 23, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--clr-secondary);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.header__logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-lg);
    color: var(--clr-white);
    transition: color var(--transition-fast);
}

.header__logo:hover {
    color: var(--clr-accent);
}

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

.header__nav-link {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--clr-text);
    position: relative;
    transition: color var(--transition-fast);
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--clr-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.header__nav-link:hover {
    color: var(--clr-white);
}

.header__nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header__burger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--clr-white);
    cursor: pointer;
}

/* Mobile Nav Styles - to be implemented with JS */
@media screen and (max-width: 992px) {
    .header__nav {
        display: none; /* Will be toggled */
    }
    .header__burger-btn {
        display: block;
    }
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--clr-secondary);
}

.footer__container {
    display: grid;
    gap: 3rem;
}

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

@media screen and (min-width: 992px) {
    .footer__container {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.footer__logo {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--clr-white);
    margin-bottom: 1rem;
}

.footer__copyright {
    font-size: var(--fs-sm);
    color: var(--clr-text);
    opacity: 0.7;
}

.footer__title {
    font-size: var(--fs-md);
    margin-bottom: 1.25rem;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__link {
    font-size: var(--fs-sm);
    color: var(--clr-text);
    opacity: 0.8;
    transition: all var(--transition-fast);
}

.footer__link:hover {
    opacity: 1;
    color: var(--clr-accent);
    padding-left: 5px;
}

.footer__address {
    font-size: var(--fs-sm);
    font-style: normal;
    color: var(--clr-text);
    opacity: 0.8;
}


/* ==================== REUSABLE CLASSES (add button) ==================== */
.button {
    display: inline-block;
    background-color: var(--clr-accent);
    color: var(--clr-bg);
    padding: 0.9rem 2.2rem;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-md);
    border: 2px solid var(--clr-accent);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.button:hover {
    background-color: transparent;
    color: var(--clr-accent);
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    text-align: center;
    overflow: hidden;
}

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

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__content {
    max-width: 750px;
    margin: 0 auto;
}

.hero__title,
.hero__subtitle,
.hero__cta {
    /* Animation start state */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Animation end state */
.hero__title.is-visible,
.hero__subtitle.is-visible,
.hero__cta.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Responsive font size */
    line-height: 1.2;
    margin-bottom: 1.5rem;
    transition-delay: 0.1s;
}

.hero__subtitle {
    font-size: var(--fs-lg);
    color: var(--clr-text);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    transition-delay: 0.2s;
}

.hero__cta {
    transition-delay: 0.3s;
}

/* ==================== REUSABLE SECTION STYLES ==================== */
.section {
    padding: 6rem 0 2rem;
    overflow: hidden; /* For AOS animations */
}

.section__title,
.section__subtitle {
    text-align: center;
}

.section__title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.section__subtitle {
    max-width: 600px;
    margin: 0 auto 4rem;
    color: var(--clr-text);
    opacity: 0.8;
}


/* ==================== HOUSEHOLD SECTION ==================== */
.household__grid {
    display: grid;
    gap: 1.5rem;
}

@media screen and (min-width: 768px) {
    .household__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.household__card {
    background-color: rgba(58, 61, 70, 0.2);
    border: 1px solid var(--clr-secondary);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.household__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.household__card-icon {
    display: inline-flex;
    padding: 0.75rem;
    border-radius: 50%;
    background-color: rgba(0, 229, 153, 0.1);
    color: var(--clr-accent);
    margin-bottom: 1.5rem;
}

.household__card-icon i {
    width: 28px;
    height: 28px;
}

.household__card-title {
    font-size: var(--fs-lg);
    margin-bottom: 0.75rem;
}

.household__card-description {
    font-size: var(--fs-sm);
    line-height: 1.7;
    color: var(--clr-text);
    opacity: 0.8;
}
/* ==================== CREATIVITY SECTION ==================== */
.creativity__layout {
    display: grid;
    gap: 3rem;
    margin-top: 4rem;
}

@media screen and (min-width: 992px) {
    .creativity__layout {
        grid-template-columns: 1fr 2fr;
        gap: 4rem;
    }
}

.creativity__tabs-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.creativity__tab-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background-color: transparent;
    border: 1px solid var(--clr-secondary);
    border-radius: var(--border-radius);
    color: var(--clr-text);
    font-family: var(--font-body);
    font-size: var(--fs-md);
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.creativity__tab-button:hover {
    background-color: var(--clr-secondary);
    color: var(--clr-white);
}

.creativity__tab-button.is-active {
    background-color: var(--clr-accent);
    border-color: var(--clr-accent);
    color: var(--clr-bg);
}

.creativity__tab-icon {
    width: 22px;
    height: 22px;
}

.creativity__content-item {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.creativity__content-item.is-active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.creativity__content-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border: 1px solid var(--clr-secondary);
}

.creativity__content-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.creativity__content-description {
    font-size: var(--fs-md);
    line-height: 1.7;
    opacity: 0.8;
    max-width: 600px;
}

/* ==================== LEARNING SECTION ==================== */
.learning__accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.learning__accordion-item {
    background-color: transparent;
    border: 1px solid var(--clr-secondary);
    border-radius: var(--border-radius);
    transition: background-color var(--transition-fast);
}

.learning__accordion-item.is-active {
    background-color: rgba(58, 61, 70, 0.2);
}

.learning__accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--clr-white);
    cursor: pointer;
    text-align: left;
}

.learning__accordion-title {
    font-size: var(--fs-lg);
    font-weight: 600;
    padding-right: 1rem;
}

.learning__accordion-icon {
    width: 24px;
    height: 24px;
    color: var(--clr-accent);
    transition: transform 0.3s ease-in-out;
    flex-shrink: 0;
}

.learning__accordion-item.is-active .learning__accordion-icon {
    transform: rotate(180deg);
}

.learning__accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.learning__accordion-description {
    padding: 0 1.5rem;
    padding-bottom: 0;
    font-size: var(--fs-sm);
    line-height: 1.7;
    opacity: 0.8;
}

.learning__accordion-item.is-active .learning__accordion-content {
    /* JS will set the max-height */
    padding-bottom: 1.5rem; /* Only apply padding when open */
}
/* ==================== TOOLS SECTION ==================== */
.tools__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

@media screen and (min-width: 768px) {
    .tools__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tools__item {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border: 1px solid var(--clr-secondary);
    border-radius: var(--border-radius);
    padding: 2rem;
    aspect-ratio: 16 / 9;
    transition: all var(--transition-fast);
}

.tools__item:hover {
    border-color: var(--clr-accent);
    background-color: rgba(0, 229, 153, 0.1);
    transform: scale(1.05);
}

.tools__item span {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--clr-text);
}

/* ==================== CONTACT SECTION ==================== */
.contact__layout {
    display: grid;
    gap: 3rem;
    max-width: 1000px;
    margin: 4rem auto 0;
}

@media screen and (min-width: 992px) {
    .contact__layout {
        grid-template-columns: 1fr 1.2fr;
        gap: 5rem;
    }
}

.contact__info-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.contact__info-description {
    opacity: 0.8;
    margin-bottom: 2rem;
}

.contact__info-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact__info-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.8;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.contact__info-link:hover {
    opacity: 1;
    color: var(--clr-accent);
}

/* --- Form Styles --- */
.contact__form-wrapper {
    background-color: rgba(58, 61, 70, 0.2);
    padding: 2.5rem;
    border: 1px solid var(--clr-secondary);
    border-radius: var(--border-radius);
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.form__input {
    width: 100%;
    padding: 0.9rem 1rem;
    background-color: var(--clr-bg);
    border: 1px solid var(--clr-secondary);
    border-radius: var(--border-radius);
    color: var(--clr-text);
    font-size: var(--fs-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form__input::placeholder {
    color: var(--clr-text);
    opacity: 0.4;
}

.form__input:focus {
    outline: none;
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px rgba(0, 229, 153, 0.2);
}

.form__input.is-invalid {
    border-color: #E53E3E;
}

/* Checkbox */
.form__group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 2rem;
}

.form__checkbox-input {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25em;
    height: 1.25em;
    border: 2px solid var(--clr-secondary);
    border-radius: 4px;
    background-color: var(--clr-bg);
    cursor: pointer;
    position: relative;
    top: 0.15em;
    flex-shrink: 0;
}

.form__checkbox-input:checked {
    background-color: var(--clr-accent);
    border-color: var(--clr-accent);
}

.form__checkbox-input:checked::before {
    content: '✔';
    font-size: 0.9em;
    color: var(--clr-bg);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.form__checkbox-label {
    font-size: var(--fs-sm);
    opacity: 0.8;
}

.form__checkbox-label a {
    color: var(--clr-accent);
    text-decoration: underline;
    opacity: 1;
}

.form__error-message {
    color: #E53E3E;
    font-size: var(--fs-sm);
    margin-bottom: 1.5rem;
}

.contact__form-button {
    width: 100%;
}

.form__success-message {
    text-align: center;
    padding: 2rem;
}

.form__success-message i {
    width: 48px;
    height: 48px;
    color: var(--clr-accent);
    margin-bottom: 1rem;
}

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 110;
    background-color: var(--clr-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    margin: 0 auto;
    
    transform: translateY(200%);
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.cookie-popup:not(.is-hidden) {
    transform: translateY(0);
    opacity: 1;
}

.cookie-popup.is-hidden {
    /* To prevent interaction when hidden */
    pointer-events: none; 
}


@media screen and (min-width: 576px) {
    .cookie-popup {
        left: auto; /* Position relative to the right edge */
    }
    .cookie-popup__container {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }
}

.cookie-popup__text {
    font-size: var(--fs-sm);
    opacity: 0.9;
    margin-bottom: 1rem;
}

@media screen and (min-width: 576px) {
    .cookie-popup__text {
        margin-bottom: 0;
    }
}

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

.cookie-popup__button {
    width: 100%;
    padding: 0.7rem 1.5rem;
}

@media screen and (min-width: 576px) {
    .cookie-popup__button {
        width: auto;
        flex-shrink: 0;
    }
}

/* ==================== STYLES FOR POLICY PAGES ==================== */
.pages {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    max-width: 800px;
}

.pages h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.pages h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.pages p {
    font-size: var(--fs-md);
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.pages ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.pages a {
    color: var(--clr-accent);
    text-decoration: underline;
    font-weight: 500;
}

.pages strong {
    color: var(--clr-white);
    font-weight: 600;
}