/* Living With Colour - Custom Animations and Styles */

/* Animated Arrow Button */
.learn-more-button {
    position: relative;
    display: inline-block;
    cursor: pointer;
    outline: none;
    border: 0;
    vertical-align: middle;
    text-decoration: none;
    background: transparent;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    font-weight: 700;
    text-transform: uppercase;
    color: #282936;
}

.learn-more-button .circle {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: relative;
    display: block;
    margin: 0;
    width: 3rem;
    height: 3rem;
    background: #282936;
    border-radius: 1.625rem;
}

.learn-more-button .circle .icon {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    background: #fff;
    transform: translateX(0.625rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.learn-more-button .circle .icon::before {
    content: '';
    position: absolute;
    top: -0.25rem;
    right: 0.0625rem;
    width: 0.625rem;
    height: 0.625rem;
    border-top: 0.125rem solid #fff;
    border-right: 0.125rem solid #fff;
    transform: rotate(45deg);
}

.learn-more-button .button-text {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 0;
    margin: 0 0 0 1.85rem;
    color: #282936;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
}

.learn-more-button:hover .circle {
    width: 100%;
}

.learn-more-button:hover .circle .icon {
    background: #fff;
    transform: translateX(1.5rem);
}

.learn-more-button:hover .button-text {
    color: #fff;
}

/* Email Button */
.email-button-container {
    margin-top: 2rem;
}

.email-button {
    display: inline-block;
    text-decoration: none;
    padding: 0 2rem;
    background: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
    color: white;
    border: none;
    border-radius: 1.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.3);
}

.email-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 162, 97, 0.4);
}

/* Keyframe Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(244, 162, 97, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(244, 162, 97, 0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(244, 162, 97, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(244, 162, 97, 0.6);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Card Animations */
.service-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card.featured:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(244, 162, 97, 0.3);
}

/* Layer Items Animation */
.layer-item {
    transition: transform 0.4s ease, background 0.3s ease;
}

.layer-item:hover {
    transform: translateX(10px);
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
}

/* Process Steps */
.process-step {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
}

/* Testimonial Cards */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Navigation */
.nav-links a {
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-links a:hover::before {
    transform: translateX(0);
}

/* Buttons */
.booking-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.booking-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.booking-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Gradient Backgrounds */
.hero {
    background: linear-gradient(135deg,
        rgba(244, 162, 97, 0.05) 0%,
        rgba(232, 180, 184, 0.03) 50%,
        rgba(212, 165, 116, 0.05) 100%);
}

/* Service Cards Gradients */
.service-card {
    background: linear-gradient(135deg, #f8f6f4 0%, #e8d8d6 100%);
}

/* Section Gradients */
.about {
    background: linear-gradient(135deg,
        #f8f6f4 0%,
        #e8d8d6 50%,
        #f0e6e4 100%);
}

.testimonials {
    background: linear-gradient(135deg,
        #f8f6f4 0%,
        #e8d8d6 50%,
        #fce4ec 100%);
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Floating Animation for Images */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Pulse Animation for Live Elements */
.pulse-animation {
    animation: pulse 2s infinite;
}

/* Shimmer Effect for Premium Services */
.shimmer-effect {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

/* Modal Animations */
.modal {
    animation: scaleIn 0.4s ease;
}

.modal-content {
    animation: slideInRight 0.4s ease;
}

/* Preloader */
.preloader-circle {
    animation: spin 1s linear infinite;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Success Message */
.success-message {
    animation: fadeInUp 0.5s ease;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 999;
}

.scroll-progress-bar {
    height: 3px;
    background: var(--accent-gradient);
    width: 0%;
    transition: width 0.1s ease;
}

/* Floating Particles */
.particle {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    animation: floatParticle 15s infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

/* Staggered Animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Focus States */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Smooth Transitions for All Elements */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.2s;
}

/* Disable transition for animations */
[data-aos] {
    transition-property: transform, opacity;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Selection Color */
::selection {
    background: var(--accent-color);
    color: white;
}

/* Backdrop Filter Enhancement */
.supports-backdrop-filter * {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Responsive Animations */
@media (max-width: 768px) {
    .hero {
        padding-top: 120px;
    }

    .service-card {
        transition: transform 0.3s ease;
    }

    .testimonial-card {
        transition: transform 0.3s ease;
    }

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

/* Print Styles */
@media print {
    .energyCanvas,
    .particles-container,
    nav,
    .modal {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

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

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-dark: #1a1a1a;
        --bg-light: #f8f6f4;
        --text-dark: #2d2d2d;
        --text-light: #ffffff;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --bg-dark: #000000;
        --bg-light: #ffffff;
        --text-dark: #ffffff;
        --text-light: #000000;
    }

    .service-card {
        border: 2px solid #000;
    }

    .service-card.featured {
        border: 3px solid #000;
    }
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Fade In Animation Class */
.fade-in {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

/* Stagger Animation for Grid Items */
.grid-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Progress Ring Animation */
.progress-ring__circle {
    transition: stroke-dashoffset 0.35s;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* Button Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    background-color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Typing Animation */
.typing {
    border-right: 2px solid var(--accent-color);
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--accent-color);
    }
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.marquee {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

/* Scale Animation on Hover */
.scale-on-hover {
    transition: transform 0.3s ease;
}

.scale-on-hover:hover {
    transform: scale(1.05);
}

/* Rotate Animation */
.rotate-on-hover {
    transition: transform 0.3s ease;
}

.rotate-on-hover:hover {
    transform: rotate(360deg);
}

/* Translate Animation */
.translate-on-hover {
    transition: transform 0.3s ease;
}

.translate-on-hover:hover {
    transform: translateX(10px);
}

/* Glow Effect on Hover */
.glow-on-hover {
    transition: box-shadow 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow: 0 0 20px var(--accent-color);
}

/* Gradient Border Animation */
.gradient-border {
    position: relative;
    background: var(--bg-light);
    z-index: 1;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 300% 300%;
    z-index: -1;
    border-radius: inherit;
    animation: gradientBorder 3s ease infinite;
}

@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter {
    animation: countUp 1s ease forwards;
}

/* Staggered Fade In */
.staggered-fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.staggered-fade-in:nth-child(1) { animation-delay: 0.1s; }
.staggered-fade-in:nth-child(2) { animation-delay: 0.2s; }
.staggered-fade-in:nth-child(3) { animation-delay: 0.3s; }
.staggered-fade-in:nth-child(4) { animation-delay: 0.4s; }
.staggered-fade-in:nth-child(5) { animation-delay: 0.5s; }
.staggered-fade-in:nth-child(6) { animation-delay: 0.6s; }
.staggered-fade-in:nth-child(7) { animation-delay: 0.7s; }
.staggered-fade-in:nth-child(8) { animation-delay: 0.8s; }

/* Modern Email Button - Large Orange */
.email-button-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #ff9f43 0%, #ff6b6b 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.email-button-modern:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ff8c3b 0%, #ff5a5a 100%);
}

.email-button-modern:active {
    transform: translateY(-2px) scale(1.01);
}

/* Button shimmer effect */
.email-button-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent);
    transition: left 0.5s ease;
}

.email-button-modern:hover::before {
    left: 100%;
}

/* Button icon */
.email-button-modern i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.email-button-modern:hover i {
    transform: scale(1.2) rotate(-10deg);
}