/* Custom CSS for Valeria Ocaña's Website */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Floating shapes animation */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(244, 194, 194, 0.3), rgba(184, 230, 209, 0.3));
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #F4C2C2;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #F8E8E8;
}

/* Button hover effects */
.btn-hover {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-hover::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;
}

.btn-hover:hover::before {
    left: 100%;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(45deg, #F4C2C2, #B8E6D1, #B8D4F0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(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);
    }
}

.animate-slide-up {
    animation: slideInUp 0.8s ease forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease forwards;
}

/* Typography enhancements */
.font-serif {
    letter-spacing: -0.02em;
}

/* Custom spacing */
.section-padding {
    padding: 5rem 0;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .floating-shape {
        display: none;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Interactive elements */
.interactive {
    cursor: pointer;
    transition: all 0.3s ease;
}

.interactive:hover {
    transform: scale(1.05);
}

/* Custom focus states */
a:focus,
button:focus {
    outline: 2px solid #F4C2C2;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .floating-shape,
    .btn-hover::before {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .floating-shape {
        opacity: 0.1;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .floating-shape,
    .fade-in,
    .btn-hover,
    .card-hover {
        animation: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}