/*
Theme Name: CraftsYed Paper Theme
Theme URI: https://craftsyed.com
Author: CraftsYed Dev
Description: Tema de Papercraft con diseño de papel doblado, tipografía Archivo Black y efectos de cinta.
Version: 2.0
*/

/* --- CORE STYLES --- */
body {
    background: #f8fafc;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Mesh Gradient Background */
.bg-gradient-mesh {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    z-index: -1;
    background: radial-gradient(at 0% 0%, hsla(13,100%,96%,1) 0, transparent 50%), 
                radial-gradient(at 50% 0%, hsla(210,100%,96%,1) 0, transparent 50%), 
                radial-gradient(at 100% 0%, hsla(13,100%,96%,1) 0, transparent 50%);
}

/* --- TAPE REVEAL ANIMATION (Efecto Cinta) --- */
.tape-reveal {
    transform-origin: left center;
    animation: tapeSlide 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    transform: scaleX(0);
}

.tape-reveal-delay {
    animation-delay: 0.2s;
}

@keyframes tapeSlide {
    0% { transform: scaleX(0); opacity: 0; }
    100% { transform: scaleX(1); opacity: 1; }
}

/* --- HEADER ANIMATION (FOLD EFFECT) --- */
#main-header {
    transform-origin: top center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-transparent {
    background: rgba(255, 255, 255, 0.0);
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.header-folded {
    background: #ffffff;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 98% 100%, 0 100%); 
    animation: foldDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.header-folded::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0; width: 20px; height: 20px;
    background: linear-gradient(135deg, transparent 50%, #e2e8f0 50%);
    box-shadow: -2px -2px 5px rgba(0,0,0,0.05);
    pointer-events: none;
}

@keyframes foldDown {
    0% { transform: rotateX(-90deg) translateY(-50px); opacity: 0; }
    100% { transform: rotateX(0deg) translateY(0); opacity: 1; }
}

/* --- HERO TEXT UNFOLD --- */
.unfold-text {
    opacity: 0;
    transform-origin: top center;
    animation: unfoldIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    perspective: 1000px;
}

@keyframes unfoldIn {
    0% { transform: rotateX(-90deg) translateY(-20px); opacity: 0; }
    100% { transform: rotateX(0deg) translateY(0); opacity: 1; }
}

/* --- SCROLL REVEAL --- */
.reveal-up {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.active { opacity: 1; transform: translateY(0) scale(1); }
.delay-100 { transition-delay: 100ms; animation-delay: 100ms; }
.delay-200 { transition-delay: 200ms; animation-delay: 200ms; }
.delay-300 { transition-delay: 300ms; animation-delay: 300ms; }
.delay-500 { transition-delay: 500ms; animation-delay: 500ms; }

/* --- PAPER FOLD CARD --- */
.paper-fold {
    position: relative;
    background: white;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.paper-fold:hover { transform: translateY(-8px) rotate(1deg); z-index: 10; }
.paper-fold::before {
    content: "";
    position: absolute;
    top: 0; right: 0;
    border-width: 0 40px 40px 0;
    border-style: solid;
    border-color: #ff3c02 #f1f5f9; 
    box-shadow: -4px 4px 8px rgba(0,0,0,0.15);
    transition: border-color 0.3s ease;
}
.paper-fold:hover::before { border-color: #00264a #e2e8f0; }

/* --- TORN PAPER DIVIDER --- */
.torn-paper-top {
    position: absolute;
    top: -45px; left: 0; width: 100%; height: 50px;
    background-color: #282828; 
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0v100h1000V0c-40,0-40,30-80,30c-40,0-40-30-80-30c-40,0-40,30-80,30c-40,0-40,30-80,30c-40,0-40,30-80,30c-40,0-40,30-80,30c-40,0-40-30-80-30c-40,0-40,30-80,30c-40,0-40-30-80-30c-40,0-40-30-80-30c-40,0-40,30-80,30c-40,0-40,30-80,30c-40,0-40-30-80-30c-40,0-40,30-80-30C0,0,0,0,0,0z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0v100h1000V0c-40,0-40,30-80,30c-40,0-40-30-80-30c-40,0-40,30-80,30c-40,0-40,30-80,30c-40,0-40,30-80,30c-40,0-40,30-80,30c-40,0-40,30-80,30c-40,0-40,30-80,30c-40,0-40-30-80-30c-40,0-40,30-80,30c-40,0-40-30-80-30c-40,0-40,30-80,30c-40,0-40,30-80,30c-40,0-40,30-80,30c-40,0-40-30-80-30C0,0,0,0,0,0z'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
    transform: rotate(180deg);
}

/* --- UTILS --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.6; animation: float 10s ease-in-out infinite; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.nav-icon { transition: transform 0.3s; }
.nav-item.active .nav-icon { color: #ff3c02; transform: translateY(-5px); }