/* Custom Styles for Esther's Art Studio */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

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

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

/* Animation classes */
.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation link hover effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #F59E0B;
    transition: width 0.3s ease;
}

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

/* Gallery hover effect */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Form focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 2px rgba(201, 168, 108, 0.3);
}

/* Button hover animation */
button,
.btn {
    position: relative;
    overflow: hidden;
}

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

button:hover::before,
.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Section divider */
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #F59E0B, #FBBF24);
    margin: 0 auto;
}

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

.card:hover {
    transform: translateY(-5px);
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #D4C4B5 0%, #E8DDD4 100%);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FEF3C7;
}

::-webkit-scrollbar-thumb {
    background: #F59E0B;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D97706;
}

/* Selection color */
::selection {
    background: #FBBF24;
    color: #292524;
}

/* Instagram embed center fix */
.instagram-media {
    margin: 0 auto !important;
    min-width: 0 !important;
}

/* Instagram embed alignment for PC */
@media (min-width: 768px) {
    .instagram-wrapper {
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .instagram-media {
        max-width: 100% !important;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    .no-print {
        display: none;
    }
}
