/* ============================================
   CACHANILLAS 4T - CUSTOM STYLES
   ============================================ */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    scroll-behavior: smooth;
}

/* Typography */
.font-display {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

.font-body {
    font-family: 'Space Grotesk', sans-serif;
}

/* Card 3D Effect */
.card-3d {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    box-shadow: 
        0 10px 30px -5px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

.card-3d:hover {
    transform: perspective(1000px) rotateX(-2deg) rotateY(2deg) translateY(-8px);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(144, 7, 49, 0.1),
        0 10px 20px -5px rgba(144, 7, 49, 0.2);
}

/* Logo Glow Effect */
.logo-glow {
    filter: drop-shadow(0 4px 6px rgba(144, 7, 49, 0.3));
    transition: filter 0.3s ease;
}

.logo-glow:hover {
    filter: drop-shadow(0 6px 12px rgba(144, 7, 49, 0.5));
}

/* Navigation Links */
.nav-link {
    position: relative;
    padding-bottom: 4px;
}

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

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

/* Facebook and Email Buttons */
.btn-facebook,
.btn-email {
    position: relative;
    overflow: hidden;
}

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

.btn-facebook:hover::before,
.btn-email:hover::before {
    width: 300px;
    height: 300px;
}

/* Image Modern Styles */
.image-modern {
    filter: brightness(0.95) contrast(1.05);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
}

.image-modern:hover {
    filter: brightness(1.05) contrast(1.1) saturate(1.1);
    transform: scale(1.05);
}

/* Gradient Overlay for Images */
.masonry-item article {
    position: relative;
}

.masonry-item .relative.overflow-hidden::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.masonry-item .relative.overflow-hidden:hover::after {
    opacity: 1;
}

/* Section Tags Animation */
.masonry-item .absolute.top-4.left-4,
.masonry-item .absolute.bottom-4.left-4 {
    backdrop-filter: blur(10px);
    background: rgba(144, 7, 49, 0.9) !important;
    transition: all 0.3s ease;
    z-index: 10;
}

.masonry-item:hover .absolute.top-4.left-4,
.masonry-item:hover .absolute.bottom-4.left-4 {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(144, 7, 49, 0.4);
}

/* Masonry Grid Customization */
.masonry-grid {
    margin: 0 auto;
}

.masonry-item {
    padding: 0 12px;
    margin-bottom: 24px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #900731;
    border-radius: 5px;
}

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

/* Text Selection */
::selection {
    background-color: #900731;
    color: #ffffff;
}

::-moz-selection {
    background-color: #900731;
    color: #ffffff;
}

/* Blockquote Styling */
blockquote {
    position: relative;
}

blockquote::before {
    content: '\201C';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 60px;
    color: #900731;
    opacity: 0.3;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

/* List Icon Animation */
ul li i.fa-check-circle,
ul li i.fas.fa-check-circle {
    transition: transform 0.3s ease;
}

li:hover i.fa-check-circle,
li:hover i.fas.fa-check-circle {
    transform: scale(1.2) rotate(5deg);
}

/* Pulse Animation for CTA Elements */
@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(144, 7, 49, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(144, 7, 49, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(144, 7, 49, 0);
    }
}

.bg-gradient-to-r.from-brand.to-red-800 {
    animation: pulse-border 2s infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .masonry-item {
        width: 100% !important;
        padding: 0 8px;
    }
    
    .card-3d:hover {
        transform: perspective(1000px) rotateX(-1deg) rotateY(1deg) translateY(-4px);
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
}

/* Glass Morphism for Special Cards */
.bg-white\/10.backdrop-blur-sm {
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient Text Effect */
.text-accent {
    background: linear-gradient(135deg, #e8a838, #f0c75e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stagger Animation for List Items */
.masonry-item ul li {
    transition: all 0.3s ease;
}

.masonry-item ul li:hover {
    transform: translateX(5px);
    background-color: rgba(144, 7, 49, 0.05);
    border-radius: 8px;
    padding-left: 8px;
}

/* Footer Link Hover Effect */
footer a:hover {
    transform: translateX(5px);
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Smooth Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.masonry-item {
    animation: fadeInUp 0.6s ease forwards;
}

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