/* ==================== GLOBAL STYLES ==================== */
:root {
    --background-color: #111827;
    --surface-color: #1F2937;
    --primary-color: #38BDF8;
    --text-color: #E5E7EB;
    --text-muted-color: #9CA3AF;

    --font-family-base: 'Inter', sans-serif;
    --font-family-heading: 'Space Grotesk', sans-serif;

    --header-height: 4.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

a:hover {
    color: var(--text-color);
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

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

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

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

.header__nav {
    display: none; /* Mobile first: hide on small screens */
}

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

.header__nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    color: var(--text-muted-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.header__nav-link:hover {
    color: var(--text-color);
    background-color: var(--surface-color);
}

.header__nav-link--button {
    background-color: var(--primary-color);
    color: var(--background-color);
}

.header__nav-link--button:hover {
    background-color: var(--text-color);
    color: var(--background-color);
}

.header__nav-link i {
    font-size: 1.1rem;
}

.header__menu-toggle {
    display: block; /* Show on mobile */
    font-size: 1.5rem;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--surface-color);
    padding-top: 4rem;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
}

.footer__container {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(1, 1fr);
}

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

.footer__tagline {
    color: var(--text-muted-color);
    font-size: 0.9rem;
}

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

.footer__list li {
    margin-bottom: 0.5rem;
}

.footer__link {
    color: var(--text-muted-color);
}

.footer__link:hover {
    color: var(--primary-color);
}

.footer__list--contacts li {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    color: var(--text-muted-color);
}

.footer__list--contacts i {
    color: var(--primary-color);
    margin-top: 4px;
}

.footer__bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid var(--background-color);
}

.footer__bottom p {
    font-size: 0.9rem;
    color: var(--text-muted-color);
}


/* ==================== RESPONSIVENESS ==================== */

/* For medium devices and up (tablets) */
@media (min-width: 768px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }

    .header__menu-toggle {
        display: none;
    }

    .header__nav {
        display: block;
    }
    
    .header__nav-link span {
        display: inline;
    }

    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For large devices and up (desktops) */
@media (min-width: 1024px) {
    .footer__container {
        grid-template-columns: 2fr 1fr 1fr 2fr;
    }
}

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

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

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

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

.hero__title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

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

.hero__cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: var(--background-color);
    font-family: var(--font-family-heading);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.2);
}

.hero__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.3);
    color: #000;
}

/* Responsive adjustments for Hero section */
@media (min-width: 768px) {
    .hero__title {
        font-size: 4rem;
    }

    .hero__description {
        font-size: 1.25rem;
    }
}

/* ==================== GENERIC SECTION STYLES ==================== */
.section {
    padding: 6rem 0;
}

.section__header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted-color);
    line-height: 1.7;
}


/* ==================== LIFESTYLE SECTION ==================== */
.lifestyle__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.lifestyle__card {
    background-color: var(--surface-color);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    
    /* Styles for reveal animation */
    opacity: 0;
    transform: translateY(30px);
}

.lifestyle__card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delay */
.lifestyle__card:nth-child(1) { transition-delay: 0s, 0s, 0s, 200ms; }
.lifestyle__card:nth-child(2) { transition-delay: 0s, 0s, 0s, 400ms; }
.lifestyle__card:nth-child(3) { transition-delay: 0s, 0s, 0s, 600ms; }

.lifestyle__card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.2);
}

.lifestyle__card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.lifestyle__card-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.lifestyle__card-description {
    color: var(--text-muted-color);
    font-size: 1rem;
    line-height: 1.6;
}


/* Responsive adjustments for Lifestyle section */
@media (min-width: 768px) {
    .lifestyle__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 8rem 0;
    }
    .section__title {
        font-size: 3rem;
    }
}

/* ==================== CREATIVITY SECTION ==================== */
.section--creativity {
    background-color: var(--surface-color);
    overflow: hidden;
}

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

.creativity__prompt {
    margin-top: 2rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary-color);
}

.creativity__prompt blockquote {
    font-style: italic;
    color: var(--text-muted-color);
    font-size: 1.1rem;
}

.creativity__prompt p {
    color: var(--text-color);
    font-family: var(--font-family-heading);
    margin-bottom: 0.5rem;
}

.creativity__interactive-area {
    min-height: 400px;
}

.image-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    user-select: none;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

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

.image-slider__after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-slider__before {
    background-color: var(--background-color);
    z-index: 2;
    width: 50%; /* Default position */
    resize: horizontal;
    overflow: hidden;
}

.image-slider__prompt-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted-color);
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    text-align: center;
    padding: 1rem;
}

.image-slider__prompt-text i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.image-slider__handle {
    position: absolute;
    top: 0;
    left: 50%; /* Default position */
    transform: translateX(-50%);
    height: 100%;
    width: 4px;
    background-color: var(--primary-color);
    z-index: 3;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.image-slider__handle-arrow {
    background-color: var(--primary-color);
    color: var(--background-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
}
.image-slider__handle-arrow.left { transform: translateX(-13px); }
.image-slider__handle-arrow.right { transform: translateX(13px); }

.image-slider__input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 4;
    cursor: ew-resize;
}

/* Responsive adjustments for Creativity section */
@media (min-width: 992px) {
    .creativity__container {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

/* ==================== WORK SECTION (TIMELINE) ==================== */
.work-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* The vertical line */
.work-timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--surface-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    z-index: 1;
}

.timeline-item {
    padding: 1rem 2.5rem;
    position: relative;
    width: 50%;
    
    /* Animation preparation */
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.timeline-item.is-visible {
    opacity: 1;
}

/* Items on the left */
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    transform: translateX(-30px);
}
.timeline-item:nth-child(odd).is-visible {
    transform: translateX(0);
}

/* Items on the right */
.timeline-item:nth-child(even) {
    left: 50%;
    transform: translateX(30px);
}
.timeline-item:nth-child(even).is-visible {
    transform: translateX(0);
}

.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: var(--background-color);
    border-radius: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    border: 3px solid var(--background-color);
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -25px;
}
.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}

.timeline-content {
    padding: 1.5rem;
    background-color: var(--surface-color);
    border-radius: 8px;
    position: relative;
}

.timeline-title {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.timeline-description {
    font-size: 0.95rem;
    color: var(--text-muted-color);
    line-height: 1.6;
}

/* Responsive adjustments for mobile */
@media screen and (max-width: 768px) {
    .work-timeline::after {
        left: 30px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 15px;
        text-align: left;
    }
    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: left;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-icon {
        left: 5px;
    }
    .timeline-item:nth-child(odd) .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: 5px; /* Aligns all icons to the left */
    }
}

/* ==================== LEARNING SECTION (ACCORDION) ==================== */
.section--learning {
    background-color: var(--background-color);
}

.learning-accordion {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--surface-color);
}
.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    background-color: var(--surface-color);
    border: none;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-family-heading);
    font-size: 1.2rem;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #2a374a; /* Slightly lighter surface */
}

.accordion-icon {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    color: var(--primary-color);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), padding 0.4s ease;
    background-color: var(--background-color);
}

.accordion-content p {
    padding: 0 1.5rem;
    color: var(--text-muted-color);
    line-height: 1.7;
    font-size: 1rem;
}

/* Active state */
.accordion-item.is-open .accordion-header {
    background-color: var(--background-color);
}

.accordion-item.is-open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-item.is-open .accordion-content {
    /* max-height will be set by JS */
    padding: 1.5rem;
}

/* ==================== CONTACT SECTION ==================== */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 12px;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted-color);
    font-weight: 500;
}

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

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

.form-group--checkbox {
    display: flex;
    align-items: start;
    gap: 0.75rem;
}
.form-group--checkbox input {
    margin-top: 5px;
    width: auto;
}
.form-group--checkbox label {
    color: var(--text-muted-color);
    font-size: 0.9rem;
    font-weight: 400;
}
.form-group--checkbox a {
    text-decoration: underline;
}

.contact-form__button {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    border-radius: 8px;
    font-family: var(--font-family-heading);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form__button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.2);
}
.contact-form__button:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Error and Success states */
.form-error-message {
    display: block;
    color: #f87171; /* A light red for errors */
    font-size: 0.85rem;
    margin-top: 0.25rem;
    height: 1em; /* Reserve space to prevent layout shifts */
}
.form-group.has-error .form-input {
    border-color: #f87171;
}

.form-success-message {
    text-align: center;
    padding: 2rem;
}
.form-success-message__icon {
    font-size: 4rem;
    color: #34d399; /* A nice green for success */
    margin-bottom: 1rem;
}
.form-success-message__title {
    font-size: 2rem;
    color: var(--text-color);
}
.form-success-message p {
    color: var(--text-muted-color);
}

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--surface-color);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    z-index: 200;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.cookie-popup.is-hidden {
    transform: translateY(150%);
}

.cookie-popup__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.cookie-popup__content p {
    color: var(--text-muted-color);
    font-size: 0.9rem;
}

.cookie-popup__content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-popup__button {
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.cookie-popup__button:hover {
    background-color: var(--text-color);
}

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

/* ==================== GENERIC CONTENT PAGES (PRIVACY, TERMS, ETC.) ==================== */
.pages {
    padding: var(--header-height) 0 5rem 0; /* Add padding to account for fixed header */
}

.pages .container {
    max-width: 800px; /* Narrower container for better readability */
}

.pages h1,
.pages h2 {
    font-family: var(--font-family-heading);
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.pages h1 {
    font-size: 3rem;
    padding-top: 3rem;
    border-bottom: 1px solid var(--surface-color);
    padding-bottom: 1.5rem;
}

.pages h2 {
    font-size: 2rem;
    margin-top: 3rem;
}

.pages p {
    font-family: var(--font-family-base);
    color: var(--text-muted-color);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.pages a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed var(--primary-color);
    transition: all 0.3s ease;
}

.pages a:hover {
    color: var(--text-color);
    border-bottom-color: var(--text-color);
}

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

.pages ul li {
    color: var(--text-muted-color);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.pages strong {
    color: var(--text-color);
    font-weight: 500;
}