/**
 * Custom CSS for Tharu Photography Theme
 */

/* Custom color variables */
:root {
    --primary: #49F5B8;
    --secondary: #E8BA48;
    --accent1: #48C8E8;
    --accent2: #E89548;
    --dark1: #5F8993;
    --dark2: #556962;
}

/* Typography enhancements */
body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    color: #a19999;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* Header logo/title link styles */
.custom-logo-link {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.custom-logo-link:hover {
    opacity: 0.9;
}

.site-title {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title:hover {
    color: var(--highlight);
}

/* If you want to animate the logo on hover */
.custom-logo {
    transition: transform 0.3s ease;
}

.custom-logo-link:hover .custom-logo {
    transform: scale(1.05);
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(45deg, var(--primary), var(--accent1));
    -webkit-background-clip: text;
    background-clip: text;
    color: #514f4f;
}

/* Custom glow effect */
.glow {
    box-shadow: 0 0 15px rgba(73, 245, 184, 0.3);
    transition: box-shadow 0.3s ease;
}

.glow:hover {
    box-shadow: 0 0 20px rgba(73, 245, 184, 0.5);
}

/* Tilt animation for portfolio items */
.tilt-item {
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.tilt-item:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Floating animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

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

/* Pulse animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(73, 245, 184, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(73, 245, 184, 0); }
    100% { box-shadow: 0 0 0 0 rgba(73, 245, 184, 0); }
}

/* Custom cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary);
    position: fixed;
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, width 0.3s ease, height 0.3s ease;
}

.cursor-hover {
    width: 40px;
    height: 40px;
    background-color: var(--accent1);
}

/* Particle overlay */
.particle-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
}

/* Image hover effects */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

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

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Parallax effect */
.parallax {
    transition: transform 0.3s ease-out;
}

/* Custom loading animation */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--primary);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Text reveal animation */
.reveal-text {
    position: relative;
    overflow: hidden;
}

.reveal-text::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent1));
    animation: revealText 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes revealText {
    0% {
        left: 0;
    }
    100% {
        left: 100%;
    }
}

/* Button effects */
.btn-effect {
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
}

.btn-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn-effect:hover::before {
    transform: translateX(0);
}

/* Image gallery effects */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Album grid layout */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    grid-gap: 15px;
}

.album-grid .tall {
    grid-row: span 2;
}

.album-grid .wide {
    grid-column: span 2;
}

/* Custom form styling */
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(73, 245, 184, 0.3);
    border-color: var(--primary);
}

.form-label {
    font-weight: 500;
    color: var(--dark1);
}

/* Service card enhancements */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--primary);
}

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

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Testimonial card styling */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: """;
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 60px;
    color: rgba(73, 245, 184, 0.2);
    font-family: serif;
    line-height: 1;
}

/* Portfolio hover effects */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(85, 105, 98, 0.9) 0%, rgba(85, 105, 98, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-title {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transition-delay: 0s;
}

.portfolio-category {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transition-delay: 0.1s;
}

.portfolio-item:hover .portfolio-title,
.portfolio-item:hover .portfolio-category {
    transform: translateY(0);
    opacity: 1;
}

/* Custom styling for WordPress elements */
.wp-block-image img {
    border-radius: 8px;
}

.wp-block-quote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    font-style: italic;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-style: italic;
    color: var(--dark1);
}

/* Navigation menu animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating {
        animation: none;
    }
    
    .tilt-item {
        transform: none;
    }
    
    .tilt-item:hover {
        transform: none;
    }
}

/* Accessibility improvements */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 15px;
    z-index: 1000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Tailwind animated background styles */
.animated-bg {
    overflow: hidden;
}

.blob {
    mix-blend-mode: screen;
    transition: all 0.3s ease;
}

/* Scroll animation classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.scroll-animate.fade-in {
    transform: translateY(0);
}

.scroll-animate.slide-left {
    transform: translateX(30px);
}

.scroll-animate.slide-right {
    transform: translateX(-30px);
}

.scroll-animate.zoom-in {
    transform: scale(0.9);
}

.scroll-animate.delay-100 {
    transition-delay: 0.1s;
}

.scroll-animate.delay-200 {
    transition-delay: 0.2s;
}

.scroll-animate.delay-300 {
    transition-delay: 0.3s;
}

.scroll-animate.delay-400 {
    transition-delay: 0.4s;
}

.scroll-animate.delay-500 {
    transition-delay: 0.5s;
}

/* Scroll animation base styles */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Animation variations */
.scroll-animate.fade-in {
    transform: translateY(0); /* Just fades in with no movement */
}

.scroll-animate.slide-up {
    transform: translateY(50px); /* Slides up from below */
}

.scroll-animate.slide-down {
    transform: translateY(-50px); /* Slides down from above */
}

.scroll-animate.slide-left {
    transform: translateX(50px); /* Slides in from right */
}

.scroll-animate.slide-right {
    transform: translateX(-50px); /* Slides in from left */
}

.scroll-animate.zoom-in {
    transform: scale(0.9); /* Zooms in */
}

.scroll-animate.zoom-out {
    transform: scale(1.1); /* Zooms out */
}

/* Animation delays */
.scroll-animate.delay-100 {
    transition-delay: 0.1s;
}

.scroll-animate.delay-200 {
    transition-delay: 0.2s;
}

.scroll-animate.delay-300 {
    transition-delay: 0.3s;
}

.scroll-animate.delay-400 {
    transition-delay: 0.4s;
}

.scroll-animate.delay-500 {
    transition-delay: 0.5s;
}

/* Animation durations */
.scroll-animate.duration-fast {
    transition-duration: 0.5s;
}

.scroll-animate.duration-slow {
    transition-duration: 1.2s;
}