:root {
    --primary: #11d493;
    --background-dark: rgb(16, 34, 25);
    --background-light: #f6f8f7;
    --accent-charcoal: #1a1c1b;
}

body {
    font-family: 'Manrope', sans-serif;
    color: #f8f9fa;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
    scroll-behavior: smooth;
    background-color: var(--background-dark);
    background-image: 
        linear-gradient(rgba(16, 34, 25, 0.85), rgba(16, 34, 25, 0.95)),
        url('../kuvat/taustat/metsaa.avif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.text-primary-custom { color: var(--primary) !important; }
.text-gradient-gold {
    background: linear-gradient(to right, #fffde7, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
    padding-right: 0.1em; /* Estää kursiivin ja liukuvärin reunan leikkautumisen */
    margin-right: -0.1em;
}

/* Kultainen kimmeltävä tunniste */
.badge-gold-shimmer {
    background: rgba(255, 215, 0, 0.08) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    position: relative;
    overflow: hidden;
    color: #ffd700 !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.badge-gold-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent
    );
    transform: rotate(30deg);
    animation: gold-shimmer 4s infinite linear;
}

@keyframes gold-shimmer {
    0% { left: -150%; }
    100% { left: 150%; }
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 1; 
        filter: brightness(1); 
    }
    50% { 
        opacity: 0.5; 
        filter: brightness(2); 
    }
}

.animate-twinkle {
    animation: twinkle 2.5s infinite ease-in-out; /* Muutettu pehmeäksi sykinnäksi välkkymisen poistamiseksi */
}

/* Sähköpostin suojaus-asettelu */
.email-secure {
    direction: rtl;
    unicode-bidi: bidi-override;
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    color: var(--primary) !important;
    transition: all 0.3s ease;
}

.email-secure:hover {
    filter: brightness(1.2);
    text-shadow: 0 0 8px rgba(17, 212, 147, 0.4);
}

.bg-primary-custom { background-color: var(--primary) !important; }
.bg-primary-custom.bg-opacity-10 { background-color: rgba(17, 212, 147, 0.15) !important; }
.bg-accent-custom { 
    background-color: rgba(11, 26, 14, 0.88) !important; 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.2)); 
}
.max-w-7xl { max-width: 80rem; margin-inline: auto; }
.max-w-sm { max-width: 24rem; }
.max-w-2xl { max-width: 42rem; }

/* Typography specifics */
.fw-black { font-weight: 900; }
.fw-extrabold, .fw-900 { font-weight: 800; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.style-lh-none { line-height: 1; }
.fs-7 { font-size: 0.875rem; }

/* Panels and utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.blur-lg {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}
.transition-colors { transition: color 0.3s ease, background-color 0.3s ease; }
.transition-all { transition: all 0.3s ease; }
.transition-transform { transition: transform 0.4s ease; }
.hover-border-primary:hover { border-color: rgba(17, 212, 147, 0.5) !important; }
.hover-text-primary:hover { color: var(--primary) !important; }
.hover-text-white:hover { color: white !important; }

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary);
    color: var(--background-dark);
    font-weight: 800;
    border-radius: 50rem;
    padding: 0.625rem 1.5rem;
    border: none;
    transition: all 0.3s ease;
}
.btn-primary-custom:hover, 
.btn-primary-custom:focus, 
.btn-primary-custom:active {
    background-color: #ffd700 !important;
    background-image: linear-gradient(135deg, #ffd700 0%, #ffae00 100%) !important;
    transform: translateY(-4px) scale(1.03) !important;
    color: #000000 !important;
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.5) !important;
    border: none !important;
    outline: none !important;
}
.shadow-lg-custom {
    box-shadow: 0 10px 15px -3px rgba(17, 212, 147, 0.2), 0 4px 6px -2px rgba(17, 212, 147, 0.1);
}
.btn-outline-light-custom {
    color: #fff;
    background: transparent;
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}
.btn-outline-light-custom:hover,
.btn-outline-light-custom:focus {
    background: linear-gradient(135deg, #ffd700 0%, #ffae00 100%) !important;
    color: #000000 !important;
    border-color: #ffd700 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4) !important;
    outline: none !important;
}
.hover-underline-custom:hover { text-decoration: underline !important; }

/* Navbar links */
.nav-link-custom {
    transition: color 0.3s;
}
.nav-link-custom:hover {
    color: var(--primary) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 85vh;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.hero-image-container::before {
    content: '';
    display: block;
}
.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 15%;
    transition: transform 1s ease;
}
.group-hover-scale:hover .hero-image {
    transform: scale(1.05);
}
.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 18, 14, 0.8), transparent);
    z-index: 1;
}
.style-text-shadow {
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.floating-glass-box {
    position: relative;
    width: 90%;
    max-width: 42rem;
    margin: 1.5rem auto 3rem auto;
    z-index: 30;
}

.butterfly {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    opacity: 0.6;
}
.svg-butterfly-1 { fill: var(--primary); width: 2rem; height: 2rem; top: 25%; left: 25%; }
.svg-butterfly-2 { fill: #fff; width: 1.5rem; height: 1.5rem; top: 66%; right: 25%; }

/* Borders for large screens in hero */
@media (min-width: 992px) {
    .floating-glass-box {
        position: absolute;
        top: 85%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }
    .border-start-lg { border-left: 1px solid rgba(255,255,255,0.1); }
    .py-6 { padding-top: 6rem; padding-bottom: 6rem; }
    .mt-6 { margin-top: 8rem; }
    .lg-mt-5 { margin-top: 2rem; }
}
@media (max-width: 991px) {
    .py-6 { padding-top: 4rem; padding-bottom: 4rem; }
    .mt-6 { margin-top: 5rem; }
    .hero-section { height: auto; min-height: 100vh; }
    .hero-image-container { min-height: 40vh; }
    .svg-butterfly-2 { right: 10%; }
}

/* Award Icons with Shine and Animations */
.award-icon-circle {
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 140, 0, 0.15));
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.2), inset 0 0 15px rgba(255, 215, 0, 0.1);
    overflow: hidden;
    animation: floatingGlow 3s ease-in-out infinite alternate;
}

.award-icon-circle::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg) translateX(-100%);
    animation: shineSweep 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.award-icon-circle i {
    font-size: 2rem;
    background: linear-gradient(135deg, #fffde7 0%, #ffd700 50%, #ff8c00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.7));
    z-index: 2;
    position: relative;
}

@keyframes floatingGlow {
    0% { transform: translateY(0); box-shadow: 0 0 15px rgba(255, 215, 0, 0.1), inset 0 0 10px rgba(255, 215, 0, 0.05); }
    100% { transform: translateY(-8px); box-shadow: 0 0 35px rgba(255, 215, 0, 0.5), inset 0 0 20px rgba(255, 215, 0, 0.3); border-color: rgba(255, 215, 0, 0.8); }
}

@keyframes shineSweep {
    0% { transform: rotate(30deg) translateX(-100%); }
    15% { transform: rotate(30deg) translateX(100%); }
    100% { transform: rotate(30deg) translateX(100%); }
}

.trait-avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4), 0 5px 15px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.card:hover .trait-avatar-circle {
    transform: scale(1.1) rotate(3deg);
    border-color: #fff2cd;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.7), 0 8px 20px rgba(0,0,0,0.6);
}

/* Feature Cards */
.card { background-color: transparent; }
.card:hover .award-icon-circle { animation-duration: 1.5s; background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 140, 0, 0.3)); }

/* Gallery */
.gallery-img-container {
    position: relative;
    margin: 20px auto;
    overflow: hidden; /* Prevents scaled photo from bleeding */
    /* Stability settings */
    isolation: isolate;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0) perspective(1000px); 
    transform-style: preserve-3d;
    cursor: pointer;
    
    /* Default aspect ratio is square if no other class is provided */
    aspect-ratio: 1/1; 
    
    /* Outer Frame - Photorealistic Antique Gold */
    border: 16px solid transparent; 
    border-image: url('../kuvat/taustat/gold_texture500.avif') 100 stretch; 
    
    /* Gallery Drop Shadow */
    box-shadow: 15px 25px 45px rgba(0, 0, 0, 0.95);
    transition: transform 0.6s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.6s cubic-bezier(0.2, 0, 0, 1);
    
    background-color: #1a1a1a;
}

/* Aspect Ratio Utilities */
.aspect-landscape { aspect-ratio: 1.42 / 1; }
.aspect-portrait { aspect-ratio: 0.7 / 1; }
.aspect-square { aspect-ratio: 1 / 1; }

/* Responsivisuus gallerialle */
@media (max-width: 767px) {
    .gallery-img-container {
        margin: 10px auto 25px !important;
        border-width: 12px !important;
        box-shadow: 10px 15px 30px rgba(0, 0, 0, 0.85) !important;
    }
}

/* Inner shadow casting directly from the gold frame onto the picture */
.gallery-img-container::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    box-shadow: inset 0 0 15px 5px rgba(0,0,0,0.85); /* Pehmennetty varjo kehyksestä */
}

.gallery-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    
    /* Hardware acceleration for child zoom */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    
    transition: transform 0.8s cubic-bezier(0.2, 0, 0, 1);
    z-index: 1; 
}

.gallery-img-container:hover {
    transform: translateY(-8px) scale(1.02) translateZ(0);
    box-shadow: 20px 35px 65px 15px rgba(0, 0, 0, 0.98); 
}

.gallery-img-container:hover .gallery-img {
    transform: scale(1.12) translateZ(0); 
}
.bg-cover { background-size: cover; }
.bg-center { background-position: center; }
.cursor-pointer { cursor: pointer; }

/* Social Icons */
.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    transition: color 0.3s ease;
}
.social-icon:hover { color: var(--primary) !important; }

/* Utility border transitions */
.hover-border-opacity-100:hover { border-bottom-color: var(--primary) !important; }

/* Animations */
.animate-on-scroll, .animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.1, 0, 0.1, 1), transform 0.8s cubic-bezier(0.1, 0, 0.1, 1);
}
.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }

/* Keyframes for loading */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
    animation: fadeUp 0.8s cubic-bezier(0.1, 0, 0.1, 1) forwards;
}

/* --- Ambient Background Glow Animation --- */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    -webkit-filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
    contain: layout paint; /* Optimoidaan renderöinti eristämällä elementti muusta sivusta */
    animation: floatOrb 30s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-1 {
    width: 45vw;
    height: 45vw;
    background: var(--primary); /* Minty green matching brand */
    top: -10%;
    left: -15%;
}


@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(5%, 10%) scale(1.1);
        opacity: 0.25;
    }
    100% {
        transform: translate(-5%, -5%) scale(0.9);
    }
}

/* Custom Styles from Hani.html */
.hover-scale-img:hover {
    transform: scale(1.05);
}
@keyframes shimmerText {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes pulseLine {
    0%, 100% { width: 40px; opacity: 0.5; filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.4)); }
    50% { width: 120px; opacity: 1; filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.9)); }
}
.gold-shimmer-title {
    font-size: 1.15rem;
    letter-spacing: 0.2em;
    background: linear-gradient(90deg, #d4af37 0%, #fff2cd 25%, #d4af37 50%, #fff2cd 75%, #d4af37 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    animation: shimmerText 5s linear infinite;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.gold-animated-line {
    height: 1px;
    background: linear-gradient(90deg, #d4af37, transparent);
    animation: pulseLine 4s ease-in-out infinite;
}

/* Rosette Animations */
.rosette-spin-slow { transform-origin: 50px 50px; animation: rosette-spin 20s linear infinite; }
.rosette-spin-reverse { transform-origin: 50px 50px; animation: rosette-spin-reverse 15s linear infinite; }
.rosette-ribbon-wave { transform-origin: 50px 50px; animation: ribbon-wave 4s ease-in-out infinite; }
.rosette-pulse { transform-origin: 50px 50px; animation: rosette-pulse 3s infinite alternate; }
.rosette-svg { overflow: visible; filter: url(#rosette-shadow); transition: transform 0.4s ease; }

/* Hover efekti jokaiseen ruusukkeeseen */
.card:hover .rosette-svg { transform: scale(1.15) rotate(5deg); }
.card:hover .rosette-ribbon-wave { animation: ribbon-wave 0.5s ease-in-out infinite; }
.card:hover .rosette-spin-slow { animation: rosette-spin 3s linear infinite; }
.card:hover .rosette-spin-reverse { animation: rosette-spin-reverse 2s linear infinite; }
.card:hover .rosette-pulse { animation: rosette-pulse 0.5s infinite alternate; }

@keyframes rosette-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes rosette-spin-reverse { 0% { transform: rotate(0deg); } 100% { transform: rotate(-360deg); } }
@keyframes ribbon-wave { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes rosette-pulse { 0% { transform: scale(1); filter: brightness(1); } 100% { transform: scale(1.1); filter: brightness(1.2) drop-shadow(0 0 10px rgba(255,255,255,0.4)); } }

/* Kimalainen Animations */
@keyframes fly-erratic {
    0% { transform: translate(0, 0); }
    20% { transform: translate(20px, -15px); }
    40% { transform: translate(-15px, 20px); }
    60% { transform: translate(25px, 10px); }
    80% { transform: translate(-10px, -25px); }
    100% { transform: translate(0, 0); }
}
.fly-fly-1 { animation: fly-erratic 3s infinite ease-in-out; }
.fly-fly-2 { animation: fly-erratic 2.5s infinite ease-in-out 0.5s; }
.fly-fly-3 { animation: fly-erratic 4s infinite ease-in-out 1s; }
.fly-fly-4 { animation: fly-erratic 3.5s infinite ease-in-out 1.5s; }

@keyframes wings-sync {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.2); }
}
@keyframes wings-sync-alt {
    0%, 100% { transform: scaleY(0.2); }
    50% { transform: scaleY(1); }
}

@keyframes buzz-wings {
    0% { transform: scaleY(1) skewX(0deg); }
    100% { transform: scaleY(0.3) skewX(10deg); }
}

@keyframes kimalainen-1-lentorata {
    0%   { left: -10%; top: 80px; transform: scaleX(1) rotate(10deg); }
    15%  { left: 20%; top: 40px; transform: scaleX(1) rotate(20deg); }
    22%  { left: 22%; top: 85px; transform: scaleX(1) rotate(5deg); }
    30%  { left: 22%; top: 85px; transform: scaleX(1) rotate(5deg); }
    45%  { left: 45%; top: 30px; transform: scaleX(1) rotate(45deg); }
    55%  { left: 55%; top: 80px; transform: scaleX(1) rotate(-10deg); }
    62%  { left: 55%; top: 80px; transform: scaleX(1) rotate(-10deg); }
    80%  { left: 85%; top: 40px; transform: scaleX(1) rotate(25deg); }
    90%  { left: 110%; top: 70px; transform: scaleX(1) rotate(15deg); }
    100% { left: 150%; top: 80px; transform: scaleX(1) rotate(10deg); }
}

@keyframes kimalainen-2-lentorata {
    0%   { left: 110%; top: 60px; transform: scaleX(-1) rotate(-15deg); }
    20%  { left: 80%; top: 30px; transform: scaleX(-1) rotate(-30deg); }
    30%  { left: 65%; top: 90px; transform: scaleX(-1) rotate(-10deg); }
    38%  { left: 65%; top: 90px; transform: scaleX(-1) rotate(-10deg); }
    50%  { left: 40%; top: 40px; transform: scaleX(-1) rotate(-40deg); }
    65%  { left: 8%; top: 90px; transform: scaleX(-1) rotate(-5deg); }
    72%  { left: 8%; top: 90px; transform: scaleX(-1) rotate(-5deg); }
    85%  { left: -15%; top: 40px; transform: scaleX(-1) rotate(-25deg); }
    100% { left: -50%; top: 60px; transform: scaleX(-1) rotate(-15deg); }
}
.kimalainen-wrapper-1 {
    position: absolute;
    width: 40px; height: 40px;
    margin-left: -20px; margin-top: -20px;
    animation: kimalainen-1-lentorata 20s ease-in-out infinite;
    z-index: 10;
}
.kimalainen-wrapper-2 {
    position: absolute;
    width: 40px; height: 40px;
    margin-left: -20px; margin-top: -20px;
    animation: kimalainen-2-lentorata 25s ease-in-out infinite 4s backwards;
    z-index: 10;
}

/* Perhonen Animations from index.html */
@keyframes flap-wings {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0.15); }
}
@keyframes perhonen-1-lentorata {
    0%   { left: -5%; top: 80px; transform: rotate(20deg); }
    15%  { left: 15%; top: 30px; transform: rotate(40deg); }
    22%  { left: 22%; top: 85px; transform: rotate(5deg); }   /* Kukassa 22% */
    28%  { left: 22%; top: 85px; transform: rotate(5deg); }
    40%  { left: 32%; top: 20px; transform: rotate(60deg); }
    48%  { left: 40%; top: 105px; transform: rotate(-5deg); } /* Kukassa 40% */
    55%  { left: 40%; top: 105px; transform: rotate(-5deg); }
    70%  { left: 60%; top: 30px; transform: rotate(30deg); }
    80%  { left: 75%; top: 95px; transform: rotate(10deg); }  /* Kukassa 75% */
    85%  { left: 75%; top: 95px; transform: rotate(10deg); }
    95%  { left: 90%; top: 50px; transform: rotate(45deg); }
    100% { left: 110%; top: 10px; transform: rotate(20deg); }
}
@keyframes perhonen-2-lentorata {
    0%   { left: 110%; top: 50px; transform: rotate(-20deg) scale(0.7); }
    15%  { left: 85%; top: 20px; transform: rotate(-50deg) scale(0.7); }
    25%  { left: 65%; top: 90px; transform: rotate(-10deg) scale(0.7); } /* Kukassa 65% */
    35%  { left: 65%; top: 90px; transform: rotate(-10deg) scale(0.7); }
    50%  { left: 45%; top: 30px; transform: rotate(-40deg) scale(0.7); }
    60%  { left: 32%; top: 110px; transform: rotate(5deg) scale(0.7); }  /* Kukassa 32% */
    70%  { left: 32%; top: 110px; transform: rotate(5deg) scale(0.7); }
    85%  { left: 15%; top: 40px; transform: rotate(-30deg) scale(0.7); }
    92%  { left: 8%; top: 90px; transform: rotate(-5deg) scale(0.7); }   /* Kukassa 8% */
    97%  { left: 8%; top: 90px; transform: rotate(-5deg) scale(0.7); }
    100% { left: -10%; top: 20px; transform: rotate(-40deg) scale(0.7); }
}
@keyframes perhonen-3-lentorata {
    0%   { left: -10%; top: 120px; transform: rotate(15deg) scale(0.9); }
    25%  { left: 30%; top: 40px; transform: rotate(10deg) scale(0.95); }
    50%  { left: 60%; top: 100px; transform: rotate(-15deg) scale(0.9); }
    75%  { left: 85%; top: 30px; transform: rotate(20deg) scale(0.95); }
    100% { left: 110%; top: 70px; transform: rotate(30deg) scale(0.9); }
}
@keyframes perhonen-4-lentorata {
    0%   { left: 110%; top: 100px; transform: rotate(-20deg) scale(0.8); }
    30%  { left: 70%; top: 20px; transform: rotate(-40deg) scale(0.85); }
    60%  { left: 20%; top: 110px; transform: rotate(-10deg) scale(0.8); }
    100% { left: -15%; top: 40px; transform: rotate(-30deg) scale(0.85); }
}

@keyframes perhonen-5-lentorata {
    0%   { left: -10%; top: 50px; transform: rotate(10deg) scale(0.75); }
    20%  { left: 15%; top: 110px; transform: rotate(5deg) scale(0.75); }  /* Kukissa 15% */
    30%  { left: 15%; top: 110px; transform: rotate(5deg) scale(0.75); }
    50%  { left: 50%; top: 30px; transform: rotate(40deg) scale(0.8); }
    70%  { left: 85%; top: 100px; transform: rotate(-5deg) scale(0.75); } /* Kukissa 85% */
    80%  { left: 85%; top: 100px; transform: rotate(-5deg) scale(0.75); }
    100% { left: 115%; top: 60px; transform: rotate(20deg) scale(0.75); }
}

@keyframes perhonen-6-lentorata {
    0%   { left: 110%; top: 30px; transform: rotate(-30deg) scale(0.85); }
    25%  { left: 75%; top: 115px; transform: rotate(0deg) scale(0.85); }  /* Kukissa 75% */
    35%  { left: 75%; top: 115px; transform: rotate(0deg) scale(0.85); }
    60%  { left: 40%; top: 20px; transform: rotate(-60deg) scale(0.9); }
    85%  { left: 10%; top: 105px; transform: rotate(10deg) scale(0.85); } /* Kukissa 10% */
    92%  { left: 10%; top: 105px; transform: rotate(10deg) scale(0.85); }
    100% { left: -20%; top: 80px; transform: rotate(-20deg) scale(0.85); }
}

.perhonen-wrapper-1 {
    position: absolute;
    width: 46px; height: 46px;
    margin-left: -23px; margin-top: -23px; /* KeskittÃ¤Ã¤ elementin pisteeseen */
    animation: perhonen-1-lentorata 25s ease-in-out infinite;
    z-index: 10;
}
.perhonen-wrapper-2 {
    position: absolute;
    width: 46px; height: 46px;
    margin-left: -23px; margin-top: -23px;
    animation: perhonen-2-lentorata 22s ease-in-out infinite 2s backwards;
    z-index: 10;
}
.perhonen-wrapper-3 {
    position: absolute;
    width: 60px; height: 60px;
    margin-left: -30px; margin-top: -30px;
    animation: perhonen-3-lentorata 25s ease-in-out infinite 4s backwards;
    z-index: 10;
}
.perhonen-wrapper-4 {
    position: absolute;
    width: 54px; height: 54px;
    margin-left: -27px; margin-top: -27px;
    animation: perhonen-4-lentorata 30s ease-in-out infinite 8s backwards;
    z-index: 10;
}
.perhonen-siivet {
    transform-origin: 0px 0px;
    animation: flap-wings 0.3s infinite alternate ease-in-out;
}

/* Sudenkorento (News) */
@keyframes wings-flap {
    0% { transform: scaleY(1); opacity: 0.8; }
    100% { transform: scaleY(0.1); opacity: 0.4; }
}
@keyframes drone-sway {
    0% { transform: rotate(-5deg) translateY(0); }
    50% { transform: rotate(5deg) translateY(-5px); }
    100% { transform: rotate(-5deg) translateY(0); }
}

/* Sudenkorennon osien animaatiot */
#sudenkorento-native {
    animation: drone-sway 3s infinite ease-in-out;
    transform-origin: center;
}

.wings-front, .wings-back {
    animation: wings-flap 0.08s infinite alternate ease-in-out;
    transform-origin: 0px 0px;
}

.wings-back {
    animation-delay: 0.04s;
}
@keyframes sudenkorento-1-lentorata {
    0%   { left: -10%; top: 40px; transform: scaleX(1); }
    25%  { left: 30%; top: 20px; }
    35%  { left: 35%; top: 90px; } /* Käväisy kukilla */
    50%  { left: 60%; top: 60px; }
    75%  { left: 90%; top: 30px; }
    100% { left: 120%; top: 50px; transform: scaleX(1); }
}
.sudenkorento-wrapper-1 {
    position: absolute;
    width: 60px; height: 60px;
    margin-left: -30px; margin-top: -30px;
    animation: sudenkorento-1-lentorata 12s linear infinite;
    z-index: 12;
}

/* Lisää perhos-wrappereita kutosperhoselle asti */
.perhonen-wrapper-5 {
    position: absolute;
    width: 50px; height: 50px;
    margin-left: -25px; margin-top: -25px;
    animation: perhonen-5-lentorata 27s ease-in-out infinite 3s backwards;
    z-index: 10;
}
.perhonen-wrapper-6 {
    position: absolute;
    width: 48px; height: 48px;
    margin-left: -24px; margin-top: -24px;
    animation: perhonen-6-lentorata 31s ease-in-out infinite 7s backwards;
    z-index: 10;
}

/* Rose Vine & Bumblebee Animations (About Section) */
@keyframes draw-vine {
    from { stroke-dashoffset: 300; }
    to { stroke-dashoffset: 0; }
}
@keyframes pop-leaf {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
@keyframes bloom-rose {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes rose-breathe {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.65) rotate(10deg); opacity: 0.85; }
    100% { transform: scale(1.05) rotate(-5deg); opacity: 1; }
}
.vine-grow {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: draw-vine 3s ease-out forwards 0.5s;
}
.vine-grow-2 {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: draw-vine 3s ease-out forwards 1.2s;
}
.vine-leaf {
    transform-origin: center;
    transform-box: fill-box;
    animation: pop-leaf 0.5s ease-out forwards;
    transform: scale(0);
}
.rose-bloom {
    transform-origin: center;
    transform-box: fill-box;
    animation: bloom-rose 1.5s ease-out forwards, rose-breathe 8s ease-in-out 1.5s infinite alternate;
    transform: scale(0);
}
.vine-leaf:nth-of-type(odd) { animation-delay: 1.5s; }
.vine-leaf:nth-of-type(even) { animation-delay: 2s; }
.rose-bloom { animation-delay: 2.5s; }
.bloom-delay-1 { animation-delay: 3s; }
.bloom-delay-2 { animation-delay: 3.5s; }

@keyframes bumblebee-cards-fly {
    0%   { left: -10%; top: 50%; transform: rotate(15deg); }
    10%  { left: 5%; top: 5%; transform: rotate(10deg); }    /* Card 1 TL */
    14%  { left: 5%; top: 5%; transform: rotate(10deg); }    /* Pause */
    22%  { left: 28%; top: 85%; transform: rotate(120deg); } /* Card 1 BR */
    26%  { left: 28%; top: 85%; transform: rotate(120deg); } /* Pause */
    36%  { left: 38%; top: 5%; transform: rotate(-30deg); }  /* Card 2 TL */
    40%  { left: 38%; top: 5%; transform: rotate(-30deg); }  /* Pause */
    48%  { left: 62%; top: 85%; transform: rotate(120deg); } /* Card 2 BR */
    52%  { left: 62%; top: 85%; transform: rotate(120deg); } /* Pause */
    62%  { left: 71%; top: 5%; transform: rotate(-30deg); }  /* Card 3 TL */
    66%  { left: 71%; top: 5%; transform: rotate(-30deg); }  /* Pause */
    74%  { left: 95%; top: 85%; transform: rotate(120deg); } /* Card 3 BR */
    78%  { left: 95%; top: 85%; transform: rotate(120deg); } /* Pause */
    90%  { left: 110%; top: 50%; transform: rotate(-20deg); } /* Exit right */
    100% { left: 150%; top: 50%; transform: rotate(-20deg); } /* Offscreen return pad */
}
.kimalainen-wrapper-cards {
    position: absolute;
    width: 60px; height: 60px;
    margin-left: -30px; margin-top: -30px;
    animation: bumblebee-cards-fly 35s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
}

/* Masonry Gallery Grid */
.masonry-container {
    column-count: 3;
    column-gap: 1.5rem;
}
.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}
@media (max-width: 991px) {
    .masonry-container { column-count: 2; }
}
@media (max-width: 575px) {
    .masonry-container { column-count: 1; }
}
.gallery-img-container.masonry-img {
    aspect-ratio: auto !important;
}
.gallery-img-container.masonry-img img {
    height: auto !important;
}

@media (min-width: 992px) {
    footer .row > * {
        margin-top: 0 !important; /* Removes Bootstrap g-5 vertical margin to align column tops precisely */
    }
}

/* Footer Real Cat Avatars */
.footer-cat-container {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}
.footer-cat-item {
    position: relative;
    text-align: center;
}
.footer-cat-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.footer-cat-item:hover .footer-cat-img {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 8px 25px rgba(17, 212, 147, 0.4);
}
.footer-cat-name {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    margin-top: 0.5rem;
    letter-spacing: 0.1em;
}

/* Lammikon kukka -integraatio */
.kukka-pond, .lumme-kukka-animated {
    animation: kukka-float 5s ease-in-out infinite alternate;
}

@keyframes kukka-float {
    0% { transform: rotate(-2deg) translateY(0); }
    100% { transform: rotate(2deg) translateY(-5px); }
}





.wings-front, .wings-back {
    transform-origin: center;
    transform-box: fill-box;
    animation: wings-sync 0.05s infinite alternate ease-in-out;
}

/* Oletuksena vastatahti (leijumista varten) */
.wings-back {
    animation-name: wings-sync-alt;
}

.kukka-pond {
    animation: kukka-float 5s ease-in-out infinite alternate;
    pointer-events: none;
}

/* --- News Page Specific Styles --- */

.page-news {
    background-color: var(--background-dark);
}

.page-news .news-hero-section {
    background-color: var(--background-dark);
}

.page-news {
    background-color: var(--background-dark);
    background-image:
        linear-gradient(rgba(16, 34, 25, 0.85), rgba(16, 34, 25, 0.95)),
        url('../kuvat/taustat/lampi.avif');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.page-news .ambient-glow {
    position: fixed;
    width: 60vmax;
    height: 60vmax;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(17, 212, 147, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

.page-news .glow-1 {
    top: -20%;
    left: -10%;
}

.page-news .glow-2 {
    bottom: -10%;
    right: -10%;
    animation: glow-move 20s infinite alternate;
}

@keyframes glow-move {
    from { transform: translate(0, 0); }
    to { transform: translate(-10%, -10%); }
}

.news-hero-section {
    background-color: var(--background-dark);
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .news-hero-section {
        padding: 40px 0;
    }
}

.hero-cat-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    transition: transform 0.8s cubic-bezier(0.2, 0, 0, 1);
}

.avatar-shine-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    overflow: hidden; /* For zoom effect */
    z-index: 1;
    isolation: isolate; 
    transform-style: preserve-3d;
    
    /* Hardware acceleration */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0) perspective(1000px);
    
    /* Frame Style from elsewhere on the site */
    border: 12px solid transparent;
    border-image: url('../kuvat/taustat/gold_texture.avif') 100 stretch; 
    
    /* Glow/Hohde */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.2);
    transition: transform 0.6s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.6s cubic-bezier(0.2, 0, 0, 1);
}

.avatar-shine-wrapper:hover {
    transform: translateY(-5px) scale(1.02) translateZ(0);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(212, 175, 55, 0.6); 
}

.avatar-shine-wrapper:hover .hero-cat-avatar {
    transform: scale(1.15) translateZ(0); 
}

@keyframes sun-aurora {
    0% { box-shadow: 0 0 30px rgba(212, 175, 55, 0.4), 0 0 10px rgba(212,175,55,0.2); }
    50% { box-shadow: 0 0 60px rgba(255, 215, 0, 0.7), 0 0 25px rgba(255, 140, 0, 0.3); }
    100% { box-shadow: 0 0 35px rgba(212, 175, 55, 0.4), 0 0 12px rgba(212,175,55,0.2); }
}

.hero-cat-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.6);
}

.hero-text-container {
    max-width: 500px;
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    opacity: 0.3;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--primary);
    border: 4px solid var(--background-dark);
    top: 40px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--primary);
}

.timeline-item.left {
    left: 0;
    text-align: left;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.right::after {
    left: -8px;
}

.timeline-content {
    padding: 20px 30px;
    background: rgba(26, 28, 27, 0.6);
    backdrop-filter: blur(10px);
    position: relative;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px);
}

.timeline-content.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-content:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary);
    background: rgba(26, 28, 27, 0.8);
    box-shadow: 0 10px 30px rgba(17, 212, 147, 0.2);
}

@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left;
    }

    .timeline-item::after {
        left: 23px;
    }

    .timeline-item.right {
        left: 0%;
    }
}

.news-date {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    display: block;
}

.news-image-container {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-image {
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}

.timeline-content:hover .news-image {
    transform: scale(1.1);
}

.cat-intro-badge {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

/* --- Artistic Contact Page Styles --- */

/* --- Kultainen Pisara (Golden Droplet) Profile Art --- */
.water-droplet-wrapper {
    position: relative;
    width: 450px;
    height: 450px;
    max-width: 100%;
    max-height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
}

/* Pää-vesipisara (Kultainen) - Kirkas keskiö, metallinen hohde */
.liquid-droplet {
    position: relative;
    width: 335px;
    height: 335px;
    max-width: 90%;
    max-height: 335px;
    background: transparent;
    backdrop-filter: saturate(1.6);
    border: 2px solid rgba(255, 215, 0, 0.6); /* Kullanvärinen reunaviiva */
    box-shadow: 
        inset 0 0 60px rgba(255, 215, 0, 0.3),
        0 40px 80px rgba(0, 0, 0, 0.6);
    animation: water-morph 18s ease-in-out infinite; /* Hieman nopeampi elävyys */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Kultainen massa kuvan takana */
.liquid-droplet::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.25) 0%, rgba(184, 134, 11, 0.45) 100%);
    z-index: -1;
}

.water-image-layer {
    width: 95%;
    height: 95%;
    border-radius: inherit;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 215, 0, 0.25);
}

.water-image-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05) brightness(1.1) saturate(1.1);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Kuvanvaihto-logiikka */
.base-image {
    position: relative;
    z-index: 1;
}

.hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 2;
}

.liquid-droplet:hover .hover-image {
    opacity: 1;
    transform: scale(1.1);
}

.liquid-droplet:hover .base-image {
    opacity: 0;
    transform: scale(1.05);
}

/* Kullan kimmellys (Golden Caustics) - Kuvan takana */
.water-caustics {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.4) 0%, transparent 60%),
                radial-gradient(circle at 80% 80%, rgba(255, 191, 0, 0.25) 0%, transparent 50%);
    mix-blend-mode: color-dodge;
    pointer-events: none;
    animation: water-shimmer 15s ease-in-out infinite alternate;
    z-index: -1;
    opacity: 0.9;
}

/* Kultainen pintahohde (Liquid gold sheen) */
.water-surface-sheen {
    position: absolute;
    inset: 0;
    z-index: 13;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 40%, rgba(255,215,0,0.1) 100%);
    pointer-events: none;
    opacity: 0.5;
}

/* Kultahiput (Gold Flakes) - Nyt putoavat alas (tippuvat) */
.bubble {
    position: absolute;
    background: linear-gradient(135deg, #FFD700, #B8860B, #FFF700);
    /* Rosoisempi hipun muoto, ei enää pyöreä */
    clip-path: polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%);
    border-radius: 0 !important; /* TÄRKEÄ: Poistetaan pyöreyden rippeet */
    pointer-events: none;
    animation: flake-fall linear infinite, gold-glimmer 2.5s ease-in-out infinite alternate;
    z-index: 15;
    box-shadow: none; /* Shadow ei toimi hyvin clip-pathin kanssa, käytetään drop-shadowta */
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.9));
}

/* Kultainen hohde (Golden Pulse) hiiren alla - Ei enää pyöreä rengas */
.water-ripple-ring {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
    pointer-events: none;
    z-index: 5;
    transform: scale(0);
    opacity: 0;
    width: 100%;
    height: 100%;
}

.water-droplet-wrapper:hover .water-ripple-ring {
    animation: gold-pulse 1.5s ease-out infinite;
}

@keyframes gold-pulse {
    0% { transform: scale(0.5); opacity: 0.8; filter: blur(5px); }
    100% { transform: scale(1.5); opacity: 0; filter: blur(20px); }
}

/* Animaatiot */
@keyframes water-morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    33% { border-radius: 45% 55% 50% 50% / 50% 55% 45% 50%; }
    66% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

@keyframes water-shimmer {
    0% { transform: rotate(0deg) scale(1.1); opacity: 0.4; }
    100% { transform: rotate(20deg) scale(1.3); opacity: 0.8; }
}

@keyframes flake-fall {
    0% { transform: translateY(-150px) translateX(0) rotate(0deg) scale(0.3); opacity: 0; }
    15% { opacity: 1; }
    50% { transform: translateY(100px) translateX(15px) rotate(180deg) scale(0.6); }
    100% { transform: translateY(450px) translateX(-15px) rotate(360deg) scale(0.4); opacity: 0; }
}

@keyframes gold-glimmer {
    0% { filter: brightness(1) drop-shadow(0 0 5px gold); }
    100% { filter: brightness(1.8) drop-shadow(0 0 20px gold); }
}

@keyframes ripple-out {
    0% { transform: scale(0); opacity: 0.9; }
    100% { transform: scale(3.5); opacity: 0; }
}

/* Syvyysvaikutelma */
.water-droplet-wrapper:hover .liquid-droplet {
    transform: scale(1.06) translateY(-15px);
    box-shadow: 0 45px 90px rgba(212, 175, 55, 0.45);
}

/* Golden Glare highlight */
.specular-glare {
    position: absolute;
    inset: 0;
    z-index: 14;
    background: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.6) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0.7;
}



/* Valkoiset kukat koristeina */
.decorated-flower {
    position: absolute;
    pointer-events: none;
    z-index: 5;
    opacity: 0.95;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.flower-lg { width: 80px; height: 80px; }
.flower-md { width: 60px; height: 60px; }
.flower-sm { width: 45px; height: 45px; }

/* Sijoittelut kelloasennon mukaan laatikon/profiilin ympärille */
.pos-tr { top: -10px; right: -10px; }
.pos-tl { top: -15px; left: -15px; }
.pos-br { bottom: -10px; right: -10px; }
.pos-bl { bottom: -15px; left: -15px; }
.pos-r { top: 50%; right: -25px; transform: translateY(-50%); }

/* Kukkien 4D-Aura ja loisto */
.flower-aura-4d {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(17, 212, 147, 0.4) 0%, rgba(212, 175, 55, 0.2) 50%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
    animation: flower-aura-pulse 6s ease-in-out infinite;
    pointer-events: none;
}

.artistic-profile-wrapper .decorated-flower, .masterpiece-wrapper .decorated-flower {
    animation: flower-sway 10s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.4));
}

/* Laatikoiden taiteelliset reunat ja kukat */
.card-artistic {
    position: relative;
    border: none !important;
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(12px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: visible !important; /* Kukat saavat tulla yli */
}

/* Magic Border efekti */
.card-artistic::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2.5px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent, rgba(17, 212, 147, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: all 0.6s ease;
}

.card-artistic:hover::before {
    background: linear-gradient(135deg, var(--primary) 0%, #fff 50%, var(--primary) 100%);
    background-size: 200% 200%;
    animation: border-flow 3s linear infinite;
}

.card-artistic:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.card-artistic .decorated-flower {
    animation: flower-breathe 5s ease-in-out infinite alternate;
}

.card-artistic:hover .decorated-flower {
    transform: scale(1.35) rotate(25deg);
    filter: brightness(1.15) drop-shadow(0 0 20px rgba(255,255,255,0.4));
    opacity: 1;
}

/* Avautuva valoefekti kukan takana */
.flower-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(17, 212, 147, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.card-artistic:hover .flower-glow {
    opacity: 1;
}

@keyframes flower-sway {
    0% { transform: rotate(-8deg) translate(0, 0); }
    100% { transform: rotate(12deg) translate(10px, -10px); }
}

@keyframes flower-breathe {
    0% { transform: scale(0.92) rotate(-5deg); opacity: 0.8; }
    100% { transform: scale(1.08) rotate(5deg); opacity: 1; }
}

@keyframes border-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}


/* Mobiilin optimointi ja ylivuodon hallinta */
@media (max-width: 575px) {
    .water-droplet-wrapper {
        width: 300px !important;
        height: 300px !important;
        margin: 1rem auto !important;
    }
    .liquid-droplet {
        width: 240px !important;
        height: 240px !important;
    }
    .gold-shimmer-title {
        font-size: 1rem !important;
        letter-spacing: 0.1em !important;
    }
    .email-secure {
        font-size: 0.9rem !important;
    }
    .pos-tr { top: 2px !important; right: 2px !important; }
    .pos-tl { top: 2px !important; left: 2px !important; }
    .pos-br { bottom: 2px !important; right: 2px !important; }
    .pos-bl { bottom: 2px !important; left: 2px !important; }
    .pos-r { right: 2px !important; }
    .flower-lg { width: 50px !important; height: 50px !important; }
    .flower-md { width: 40px !important; height: 40px !important; }
    .flower-sm { width: 30px !important; height: 30px !important; }
    .card-artistic { overflow: hidden !important; }
    .tracking-widest { letter-spacing: 0.1em !important; }
    h1.display-2 {
        font-size: calc(1.5rem + 3.3vw) !important;
    }
}
