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

/* CSS Variables */
:root {
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --color-background: #F8F7F4;
    --color-text: #2D3748;
    --color-primary: #4A90E2;
    --color-footer-bg: #2D3748;
    --color-footer-text: #E2E8F0;
    --color-border: #CBD5E0;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #357ABD;
}

ul {
    list-style: none;
}

/* Header */
.header {
    background-color: var(--color-background);
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(248, 247, 244, 0.8);
}

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

.header__logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
}
.header__logo:hover {
    color: var(--color-text);
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header__nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: 5px 0;
}

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

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

.header__nav-link--button {
    background-color: var(--color-primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.header__nav-link--button:hover {
    background-color: #357ABD;
    color: #fff;
}
.header__nav-link--button::after {
    display: none;
}

/* Footer */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding-top: 60px;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    display: inline-block;
}
.footer__logo:hover {
    color: #fff;
}


.footer__tagline {
    font-size: 14px;
    opacity: 0.7;
    max-width: 250px;
}

.footer__title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.footer__list li {
    margin-bottom: 10px;
}

.footer__link {
    color: var(--color-footer-text);
    font-size: 15px;
    opacity: 0.8;
}

.footer__link:hover {
    color: #fff;
    opacity: 1;
}

.footer__list--contacts li {
    display: flex;
    align-items: flex-start;
}

.footer__address {
    color: var(--color-footer-text);
    opacity: 0.8;
    font-size: 15px;
}

.footer__icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.footer__bottom-container {
    text-align: center;
    font-size: 14px;
    opacity: 0.6;
}

/* Mobile-first: Tablet and Desktop styles */
@media (max-width: 767px) {
    .header__nav {
        display: none; /* Mobile menu will be implemented later if needed */
    }
}

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

@media (min-width: 1024px) {
    .footer__container {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 50px;
    }
}

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

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

.hero__content {
    text-align: center;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__description {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero__cta {
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.hero__cta:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(74, 144, 226, 0.4);
}

.hero__visual {
    position: relative;
    min-height: 300px;
    width: 100%;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Tablet and Desktop styles for Hero */
@media (min-width: 768px) {
    .hero__title {
        font-size: 48px;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 100px 0;
    }
    .hero__container {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
    .hero__content {
        text-align: left;
    }
    .hero__title,
    .hero__description {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Section General Styles */
.section {
    padding: 80px 0;
}

.section--bg {
    background-color: #fff; /* A slightly different background for variety */
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section__title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section__subtitle {
    font-size: 18px;
    opacity: 0.8;
    line-height: 1.7;
}

/* Automation Section */
.automation {
    background-color: #FFFFFF;
}

.automation__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.automation-card {
    background-color: var(--color-background);
    padding: 30px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.automation-card__icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #EBF8FF; /* Light blue background for icon */
    border-radius: 50%;
    margin-bottom: 20px;
}

.automation-card__icon i {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.automation-card__title {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 10px;
}

.automation-card__description {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.8;
}

/* Responsive Grid for Automation Section */
@media (min-width: 576px) {
    .automation__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .automation__grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .section {
        padding: 100px 0;
    }
    .section__title {
        font-size: 38px;
    }
}

/* Creativity Section */
.creativity {
    background-color: var(--color-background);
}

.creativity__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.creativity__list {
    list-style: none;
    padding: 0;
}

.creativity__list-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
}

.creativity__list-icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    margin-right: 15px;
    flex-shrink: 0;
}

/* Comparison Slider */
.creativity__visual {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.comparison-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid var(--color-border);
    box-shadow: 0 5px 25px rgba(45, 55, 72, 0.08);
    cursor: col-resize;
}

.comparison-slider__before,
.comparison-slider__after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.comparison-slider__after {
    width: 50%; /* Initial position */
    overflow: hidden;
}

.comparison-slider__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* This makes the image fill the container, respecting aspect ratio */
    position: absolute; 
    top: 0;
    left: 0;
}

.comparison-slider__after .comparison-slider__image {
    width: 100vw; /* This is a trick to make sure the image inside is always full width */
    max-width: 600px; /* Should match the visual container max-width */
}


.comparison-slider__label {
    position: absolute;
    top: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    user-select: none;
}

.comparison-slider__before .comparison-slider__label {
    left: 10px;
}

.comparison-slider__after .comparison-slider__label {
    right: 10px;
}

.comparison-slider__handle {
    position: absolute;
    top: 0;
    left: 50%; /* Initial position */
    width: 4px;
    height: 100%;
    background-color: #fff;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.comparison-slider__handle::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 50%;
    background-color: var(--color-primary);
    transform: translateX(-18px); /* Centers the circle on the line */
}

.comparison-slider__arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 8px 6px 8px;
    top: 50%;
    transform: translateY(-50%);
}

.comparison-slider__arrow--left {
    border-color: transparent #fff transparent transparent;
    left: -18px;
}

.comparison-slider__arrow--right {
    border-color: transparent transparent transparent #fff;
    right: -18px;
}


/* Responsive styles for Creativity Section */
@media (min-width: 992px) {
    .creativity__container {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

/* Learning Section */
.learning {
    background-color: #FFFFFF;
}

.learning__tabs {
    max-width: 900px;
    margin: 0 auto;
}

.learning__tabs-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-radius: 8px;
    background-color: var(--color-background);
    padding: 5px;
    border: 1px solid var(--color-border);
    flex-wrap: wrap; /* Allows tabs to wrap on smaller screens */
}

.learning__tab-button {
    flex: 1;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.learning__tab-button:hover {
    background-color: #EBF8FF;
}

.learning__tab-button.is-active {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
}

.learning__tab-panel {
    display: none;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
    padding: 20px;
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    animation: fadeIn 0.5s ease;
}

.learning__tab-panel.is-active {
    display: grid;
}

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

.learning__panel-title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 15px;
}

.learning__panel-visual {
    border-radius: 8px;
    overflow: hidden;
}

.learning__panel-visual img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive styles for Learning Section */
@media (min-width: 768px) {
    .learning__tab-button {
        font-size: 16px;
    }
    .learning__tab-panel {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        padding: 40px;
    }
    .learning__panel-content {
        order: 1; /* Default order */
    }
    .learning__tab-panel:nth-child(even) .learning__panel-content {
        order: 2; /* Alternate layout for visual interest */
    }
}

/* Lifestyle Section */
.lifestyle {
    background-color: var(--color-background);
}

.lifestyle__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 50px;
}

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

.lifestyle-item__icon {
    margin: 0 auto 20px;
}

.lifestyle-item__icon i {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
}

.lifestyle-item__title {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 10px;
}

.lifestyle-item__description {
    font-size: 15px;
    opacity: 0.8;
    max-width: 300px;
    margin: 0 auto;
}

/* Responsive styles for Lifestyle Section */
@media (min-width: 576px) {
    .lifestyle__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
}

@media (min-width: 992px) {
    .lifestyle__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Contact Section */
.contact {
    background-color: #FFFFFF;
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-family: var(--font-body);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-background);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.form-input.is-invalid {
    border-color: #E53E3E; /* Red for error */
}

.form-group--captcha {
    align-items: flex-start;
}

#captcha-label {
    font-weight: 700;
}

.form-group--checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}
.form-group--checkbox input {
    margin-top: 5px;
    flex-shrink: 0;
}
.form-group--checkbox label {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.8;
}

.form-button {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background-color: var(--color-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}
.form-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(74, 144, 226, 0.4);
}
.form-button:disabled {
    background-color: #A0AEC0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form Messages */
.form-message {
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    font-size: 15px;
}
.form-message.is-hidden {
    display: none;
}
.form-message--success {
    background-color: #C6F6D5; /* Green */
    color: #22543D;
    border: 1px solid #9AE6B4;
}
.form-message--error {
    background-color: #FED7D7; /* Red */
    color: #822727;
    border: 1px solid #FEB2B2;
}

/* Responsive for Contact Section */
@media (min-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

/* Cookie Pop-up */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Initially hidden */
    left: 0;
    width: 100%;
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 20px;
    z-index: 200;
    transition: bottom 0.5s ease-in-out;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.cookie-popup.is-visible {
    bottom: 0;
}

.cookie-popup__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-popup__text {
    font-size: 14px;
    opacity: 0.9;
    text-align: center;
}

.cookie-popup__text a {
    color: #fff;
    text-decoration: underline;
}
.cookie-popup__text a:hover {
    text-decoration: none;
}

.cookie-popup__button {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.cookie-popup__button:hover {
    background-color: #357ABD;
}

@media (min-width: 768px) {
    .cookie-popup__content {
        flex-direction: row;
    }
    .cookie-popup__text {
       text-align: left;
    }
}


/* Styles for Policy Pages (privacy.html, terms.html, etc.) */
.pages {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.pages h1 {
    font-family: var(--font-heading);
    font-size: 36px;
    margin-bottom: 30px;
}

.pages h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.pages p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.pages li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.pages a {
    text-decoration: underline;
}

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

.pages strong {
    font-weight: 600;
}