/* ============================================
   ONLIFE.BG STOREFRONT
   Aesthetic: "Botanical Serenity"
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Official Brand Colors (from logo) */
    --color-green: #8bcd51;
    --color-green-dark: #6fb03a;
    --color-green-light: #a8dc7a;
    --color-purple: #9f5dd5;
    --color-purple-dark: #8344b8;
    --color-purple-light: #b87fe3;

    /* Neutrals */
    --color-cream: #FDFBF8;
    --color-cream-dark: #F5F2ED;
    --color-white: #ffffff;
    --color-text: #2d2d2d;
    --color-text-muted: #666666;

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Layout */
    --container-max: 1200px;
    --container-padding: 1.5rem;

    /* Effects */
    --shadow-soft: 0 4px 20px rgba(73, 65, 109, 0.08);
    --shadow-medium: 0 8px 40px rgba(73, 65, 109, 0.12);
    --shadow-card: 0 20px 60px rgba(73, 65, 109, 0.15);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 48px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 200ms;
    --duration-medium: 400ms;
    --duration-slow: 800ms;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-cream);
    overflow-x: hidden;
    min-height: 100vh;
}

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

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

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================================
   BACKGROUND DECORATIONS
   ============================================ */
.bg-decoration {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--color-purple-light), var(--color-green-light));
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--color-green-light), var(--color-purple-light));
    bottom: 20%;
    left: -150px;
    animation-delay: -7s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--color-green-light), var(--color-purple));
    bottom: -100px;
    right: 10%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* Floating Leaves */
.floating-leaf {
    position: absolute;
    color: var(--color-green);
    opacity: 0.15;
    animation: leafFloat 25s ease-in-out infinite;
}

.floating-leaf svg {
    width: 100%;
    height: 100%;
}

.leaf-1 {
    width: 60px;
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.leaf-2 {
    width: 45px;
    top: 60%;
    right: 8%;
    animation-delay: -8s;
    transform: rotate(45deg);
}

.leaf-3 {
    width: 50px;
    bottom: 20%;
    left: 15%;
    animation-delay: -16s;
    transform: rotate(-30deg);
}

@keyframes leafFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(10px) rotate(-3deg); }
    75% { transform: translateY(-15px) rotate(2deg); }
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: relative;
    z-index: 100;
    padding: var(--space-lg) 0;
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: opacity var(--duration-fast) var(--ease-out);
}

.logo:hover {
    opacity: 0.85;
}

.logo-img {
    height: 48px;
    width: auto;
}

.logo-img--small {
    height: 36px;
}

.header-nav {
    display: flex;
    gap: var(--space-xl);
}

.header-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--duration-fast) var(--ease-out);
}

.header-nav a:hover {
    color: var(--color-purple);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    z-index: 1;
    padding: var(--space-3xl) 0 var(--space-4xl);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 700px;
    animation: fadeInUp var(--duration-slow) var(--ease-out);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(73, 65, 109, 0.08);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-purple);
    margin-bottom: var(--space-xl);
    animation: fadeInUp var(--duration-slow) var(--ease-out);
    animation-delay: 100ms;
    animation-fill-mode: both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--color-purple-dark);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
    animation: fadeInUp var(--duration-slow) var(--ease-out);
    animation-delay: 200ms;
    animation-fill-mode: both;
}

.title-accent {
    display: block;
    background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 500px;
    margin-bottom: var(--space-2xl);
    animation: fadeInUp var(--duration-slow) var(--ease-out);
    animation-delay: 300ms;
    animation-fill-mode: both;
}

.hero-scroll-hint {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-purple);
    font-size: 0.875rem;
    animation: fadeInUp var(--duration-slow) var(--ease-out), bounce 2s ease-in-out infinite;
    animation-delay: 500ms, 1500ms;
    animation-fill-mode: both, none;
}

.hero-scroll-hint svg {
    width: 24px;
    height: 24px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ============================================
   HERO PHOTO ACCENT
   ============================================ */
.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xl);
}

.hero-photo-accent {
    position: relative;
    flex-shrink: 0;
    animation: fadeInUp var(--duration-slow) var(--ease-out);
    animation-delay: 400ms;
    animation-fill-mode: both;
}

/* Photo Frame with Organic Shape */
.photo-frame {
    position: relative;
    width: 320px;
    height: 380px;
    transform: rotate(3deg);
    transition: transform var(--duration-medium) var(--ease-out);
}

.photo-frame:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Blob Background */
.photo-blob {
    position: absolute;
    inset: -15px;
    background: linear-gradient(
        135deg,
        rgba(159, 93, 213, 0.25) 0%,
        rgba(139, 205, 81, 0.2) 50%,
        rgba(184, 127, 227, 0.15) 100%
    );
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    filter: blur(20px);
    z-index: -1;
    animation: blobMorph 15s ease-in-out infinite;
}

@keyframes blobMorph {
    0%, 100% {
        border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
        transform: rotate(0deg);
    }
    25% {
        border-radius: 50% 60% 40% 50% / 40% 50% 60% 50%;
    }
    50% {
        border-radius: 40% 50% 60% 40% / 60% 40% 50% 50%;
        transform: rotate(5deg);
    }
    75% {
        border-radius: 50% 40% 50% 60% / 50% 60% 40% 40%;
    }
}

/* The Photo */
.founder-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 40% 60% 50% 50% / 50% 50% 50% 50%;
    box-shadow:
        0 20px 60px rgba(73, 65, 109, 0.2),
        0 8px 20px rgba(73, 65, 109, 0.1),
        inset 0 0 0 4px rgba(255, 255, 255, 0.5);
    border: 4px solid rgba(255, 255, 255, 0.8);
    transition: border-radius var(--duration-medium) var(--ease-out),
                box-shadow var(--duration-medium) var(--ease-out);
}

.photo-frame:hover .founder-photo {
    border-radius: 50% 50% 45% 55% / 55% 45% 50% 50%;
    box-shadow:
        0 25px 70px rgba(73, 65, 109, 0.25),
        0 10px 25px rgba(73, 65, 109, 0.15),
        inset 0 0 0 4px rgba(255, 255, 255, 0.6);
}

/* Floating Decorations */
.photo-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}

.deco-heart {
    position: absolute;
    color: var(--color-purple-light);
    font-size: 1.25rem;
    animation: floatHeart 4s ease-in-out infinite;
    opacity: 0.7;
}

.deco-heart-1 {
    top: -5px;
    right: 20px;
    animation-delay: 0s;
}

.deco-heart-2 {
    bottom: 60px;
    left: -10px;
    font-size: 1rem;
    animation-delay: -2s;
    color: var(--color-green);
    opacity: 0.6;
}

@keyframes floatHeart {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-8px) scale(1.1);
        opacity: 1;
    }
}

.deco-sparkle {
    position: absolute;
    color: var(--color-green);
    font-size: 0.875rem;
    animation: twinkle 2s ease-in-out infinite;
}

.deco-sparkle-1 {
    top: 30px;
    left: -15px;
    animation-delay: 0s;
}

.deco-sparkle-2 {
    top: 50%;
    right: -20px;
    font-size: 1rem;
    color: var(--color-purple);
    animation-delay: -0.7s;
}

.deco-sparkle-3 {
    bottom: 40px;
    right: 10px;
    animation-delay: -1.4s;
}

@keyframes twinkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.3) rotate(20deg);
        opacity: 1;
    }
}

/* Photo Caption */
.photo-caption {
    text-align: center;
    margin-top: var(--space-lg);
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-style: italic;
    color: var(--color-text-muted);
    transform: rotate(3deg);
    transition: transform var(--duration-medium) var(--ease-out);
}

.photo-frame:hover + .photo-caption {
    transform: rotate(0deg);
}

/* Responsive - Tablet */
@media (max-width: 960px) {
    .hero-layout {
        gap: var(--space-xl);
    }

    .photo-frame {
        width: 260px;
        height: 310px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .hero-layout {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-photo-accent {
        order: 2;
        margin-top: var(--space-xl);
    }

    .photo-frame {
        width: 240px;
        height: 290px;
        transform: rotate(2deg);
    }

    .hero-badge {
        justify-content: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-scroll-hint {
        justify-content: center;
    }

    .deco-heart-1 {
        right: 10px;
    }

    .deco-heart-2 {
        left: 0;
    }

    .deco-sparkle-1 {
        left: -5px;
    }

    .deco-sparkle-2 {
        right: -10px;
    }
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products {
    position: relative;
    z-index: 1;
    padding: var(--space-3xl) 0 var(--space-4xl);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-green);
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    color: var(--color-purple-dark);
    letter-spacing: -0.02em;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

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

@media (min-width: 960px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-2xl);
    }
}

/* Product Card */
.product-card {
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
    transition-delay: calc(var(--card-index, 1) * 100ms);
}

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

.card-blob {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: linear-gradient(135deg,
        rgba(139, 168, 136, 0.2) 0%,
        rgba(155, 139, 184, 0.15) 50%,
        rgba(212, 168, 83, 0.1) 100%
    );
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    filter: blur(30px);
    z-index: -1;
    transition: transform var(--duration-slow) var(--ease-out);
}

.product-card:hover .card-blob {
    transform: scale(1.1) rotate(5deg);
}

.card-link {
    display: block;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform var(--duration-medium) var(--ease-out),
                box-shadow var(--duration-medium) var(--ease-out);
}

.card-link:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
}

.card-link--disabled {
    cursor: default;
}

.card-link--disabled:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
}

/* Card Image */
.card-image-wrapper {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--color-cream-dark);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.card-link:hover .card-image {
    transform: scale(1.05);
}

.card-link--disabled:hover .card-image {
    transform: none;
}

.card-image-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 40%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.8s var(--ease-out);
}

.card-link:hover .card-image-shine {
    transform: translateX(100%);
}

/* Placeholder Image for Coming Soon */
.card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-cream-dark) 0%, var(--color-cream) 100%);
}

.placeholder-content {
    text-align: center;
    color: var(--color-purple-light);
}

.placeholder-content svg {
    width: 80px;
    height: 80px;
    opacity: 0.6;
}

/* Card Content */
.card-content {
    padding: var(--space-xl);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-purple-dark);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.01em;
}

.card-tagline {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-green);
    margin-bottom: var(--space-sm);
}

.card-description {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.card-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-purple-dark);
    transition: gap var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
}

.card-cta svg {
    width: 20px;
    height: 20px;
    transition: transform var(--duration-fast) var(--ease-out);
}

.card-link:hover .card-cta {
    gap: var(--space-md);
    color: var(--color-green);
}

.card-link:hover .card-cta svg {
    transform: translateX(4px);
}

.card-cta--disabled {
    color: var(--color-text-muted);
    opacity: 0.6;
}

/* Coming Soon Badge */
.coming-soon-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: linear-gradient(135deg, var(--color-purple), var(--color-green));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    margin-bottom: var(--space-md);
}

/* Coming Soon Card Styling */
.product-card--coming-soon .card-blob {
    background: linear-gradient(135deg,
        rgba(155, 139, 184, 0.15) 0%,
        rgba(139, 168, 136, 0.1) 100%
    );
}

.product-card--coming-soon .card-title,
.product-card--coming-soon .card-tagline,
.product-card--coming-soon .card-description {
    opacity: 0.7;
}

/* ============================================
   VALUES SECTION
   ============================================ */
.values {
    position: relative;
    z-index: 1;
    padding: var(--space-4xl) 0;
    background: linear-gradient(180deg, transparent 0%, var(--color-cream-dark) 100%);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 640px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-2xl);
    }
}

.value-item {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-medium) var(--ease-out),
                transform var(--duration-medium) var(--ease-out);
}

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

.value-item:nth-child(2) {
    transition-delay: 100ms;
}

.value-item:nth-child(3) {
    transition-delay: 200ms;
}

.value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    color: var(--color-purple);
}

.value-icon svg {
    width: 100%;
    height: 100%;
}

.value-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-purple-dark);
    margin-bottom: var(--space-sm);
}

.value-text {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    z-index: 1;
    padding: var(--space-3xl) 0 var(--space-xl);
    background: var(--color-cream-dark);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: var(--space-xl);
}

@media (min-width: 640px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.footer-logo {
    display: inline-block;
    margin-bottom: var(--space-sm);
    transition: opacity var(--duration-fast) var(--ease-out);
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-tagline {
    font-family: var(--font-display);
    font-size: 1rem;
    font-style: italic;
    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-lg);
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    transition: color var(--duration-fast) var(--ease-out);
}

.footer-links a:hover {
    color: var(--color-purple);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.footer-contact a {
    color: var(--color-text-muted);
    transition: color var(--duration-fast) var(--ease-out);
}

.footer-contact a:hover {
    color: var(--color-purple);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 639px) {
    :root {
        --container-padding: 1.25rem;
    }

    .hero {
        padding: var(--space-xl) 0 var(--space-2xl);
        min-height: auto;
    }

    .hero-badge {
        font-size: 0.8125rem;
        padding: var(--space-xs) var(--space-md);
    }

    .hero-subtitle {
        font-size: 1.0625rem;
    }

    .card-content {
        padding: var(--space-lg);
    }

    .blob-1 {
        width: 300px;
        height: 300px;
    }

    .blob-2 {
        width: 250px;
        height: 250px;
    }

    .blob-3 {
        width: 200px;
        height: 200px;
    }

    .floating-leaf {
        opacity: 0.1;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
