/* Local CSS - Additional styles and enhancements */
/* This file contains additional styles that load after the critical CSS */

/* Enhanced animations and micro-interactions */

/* Logo hover effects */
.cs-logo:hover .neon span {
    animation-duration: 1s;
}

.cs-logo:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Button enhancements */
.cs-button-solid {
    position: relative;
    overflow: hidden;
}

.cs-button-solid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cs-button-solid:hover::before {
    width: 300px;
    height: 300px;
}

/* Service cards enhanced hover effects */
.cs-item {
    position: relative;
    overflow: hidden;
}

.cs-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 105, 180, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.cs-item:hover::before {
    animation: shimmer 0.5s ease-in-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

/* Enhanced cherry blossom effects */
.blossoms1 {
    animation: drift 20s infinite linear;
}

.blossoms2 {
    animation: drift 25s infinite linear reverse;
}

.blossoms3 {
    animation: drift 30s infinite linear;
}

@keyframes drift {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(20px) translateY(-10px);
    }
    50% {
        transform: translateX(-10px) translateY(20px);
    }
    75% {
        transform: translateX(15px) translateY(15px);
    }
}

/* Enhanced heart animations */
.heart {
    transition: all 0.3s ease;
}

.heart:hover {
    transform: scale(1.2) rotate(45deg);
    background: var(--primaryDark);
}

/* Navigation dropdown enhancements */
.cs-dropdown .cs-drop-icon {
    transition: transform 0.3s ease;
}

.cs-dropdown:hover .cs-drop-icon {
    transform: rotate(180deg);
}

/* Mobile menu animations */
@media (max-width: 768px) {
    .cs-ul-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: linear-gradient(135deg, #FFF5F7 0%, #FFC0CB 100%);
        box-shadow: -5px 0 20px rgba(255, 105, 180, 0.3);
        transition: right 0.3s ease;
        z-index: 9999;
        padding: 80px 30px 30px;
        overflow-y: auto;
    }

    .cs-ul-wrapper.active {
        right: 0;
    }

    .cs-ul {
        flex-direction: column;
        gap: 15px;
    }

    .cs-drop-ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255, 255, 255, 0.5);
        margin-top: 10px;
        padding: 10px;
        border-radius: 8px;
    }

    .cs-toggle.active .cs-line1 {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .cs-toggle.active .cs-line2 {
        opacity: 0;
    }

    .cs-toggle.active .cs-line3 {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Dark mode mobile menu */
@media (max-width: 768px) {
    body.dark-mode .cs-ul-wrapper {
        background: linear-gradient(135deg, #2a2a2a 0%, #4a4a4a 100%);
    }

    body.dark-mode .cs-drop-ul {
        background: rgba(42, 42, 42, 0.8);
    }
}

/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 10001;
    transition: width 0.1s ease;
}

/* Footer enhancements */
.cs-footer-swoosh {
    animation: wave 10s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Enhanced image lazy loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Focus styles for better accessibility */
.cs-button-solid:focus,
.cs-li-link:focus,
.cs-drop-link:focus,
.cs-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip link enhancement */
.skip:focus {
    outline: none;
    box-shadow: 0 0 0 4px var(--primary);
}

/* Enhanced typography */
p {
    text-align: justify;
    text-justify: inter-word;
}

/* Content sections spacing */
section {
    position: relative;
    overflow: hidden;
}

/* Parallax effect for cherry blossoms */
@media (min-width: 1024px) {
    .blossoms1 {
        transform: translateZ(0);
        will-change: transform;
    }
    
    .blossoms2 {
        transform: translateZ(-1px) scale(1.1);
        will-change: transform;
    }
    
    .blossoms3 {
        transform: translateZ(-2px) scale(1.2);
        will-change: transform;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--secondary);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced service icons */
.cs-icon-wrapper {
    position: relative;
    overflow: hidden;
}

.cs-icon-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.cs-item:hover .cs-icon-wrapper::before {
    animation: iconShimmer 0.6s ease-in-out;
}

@keyframes iconShimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

/* Notification toast styles */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 10002;
}

.toast.show {
    transform: translateX(0);
}

/* Print styles */
@media print {
    #cs-navigation,
    .cs-button-solid,
    .blossoms,
    .cs-wave,
    .cs-footer-swoosh {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .cs-item {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* Performance optimizations */
.cs-item,
.cs-picture img,
.blossoms {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cs-item::before,
    .cs-icon-wrapper::before,
    .cs-button-solid::before,
    .blossoms,
    .heart,
    .neon span,
    .cs-footer-swoosh {
        animation: none !important;
        transition: none !important;
    }
    
    .cs-item:hover {
        transform: none !important;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .cs-logo img,
    .cs-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .cs-item:hover {
        transform: none;
    }
    
    .cs-button-solid:hover {
        transform: none;
    }
    
    .cs-dropdown:hover .cs-drop-ul {
        display: none;
    }
    
    .cs-dropdown:focus-within .cs-drop-ul {
        display: block;
    }
}

/* Enhanced form styles (for future contact form) */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input, textarea, select {
    padding: 12px 16px;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    background: var(--headerColor);
    color: var(--bodyTextColor);
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
}

input::placeholder, textarea::placeholder {
    color: var(--secondary);
    opacity: 0.7;
}

/* Error and success states */
.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.success {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
}

.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
}

.success-message {
    color: #28a745;
    font-size: 0.9rem;
    margin-top: 5px;
}
