/* Custom styles and overrides */

.clip-diagonal {
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

html {
    scroll-behavior: smooth;
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(255, 250, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(114, 14, 30, 0.1);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Mobile menu animations */
#menu-btn.active #line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active #line2 {
    opacity: 0;
}

#menu-btn.active #line3 {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-5deg); }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4a0812;
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #ffe5ec 25%, #fff0f3 50%, #ffe5ec 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

img[src] {
    animation: none;
    background: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .clip-diagonal {
        clip-path: none;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
    
    .font-serif {
        font-size: 1.5rem !important;
    }
}
