/* ============================================================
   PORTAFOLIO DUAL – Custom Styles
   ============================================================ */

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

/* ---- Selection color ---- */
::selection {
    background-color: rgba(255, 45, 85, 0.3);
    color: white;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ---- Flash messages auto-dismiss ---- */
.flash-msg {
    animation: slideLeft 0.4s ease-out, fadeOut 0.5s ease-in 3.5s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* ---- Landing split hover expansion ---- */
#side-musicos,
#side-arquitectos {
    transition: flex 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Card image hover scroll effect ---- */
.group:hover img {
    object-position: bottom;
}

/* ---- Neon glow button ---- */
.btn-neon {
    position: relative;
    overflow: hidden;
}
.btn-neon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 45, 85, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn-neon:hover::before {
    width: 300%;
    height: 300%;
}

/* ---- Modal backdrop ---- */
#demo-modal {
    transition: opacity 0.3s ease;
}
#demo-modal.active {
    display: flex !important;
}

/* ---- Device button active state ---- */
.device-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* ---- Iframe container device sizes ---- */
#modal-wrapper {
    transition: max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
#iframe-container {
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Page load animations ---- */
@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    0% {
        opacity: 0;
        transform: translateX(40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* ---- Intersection observer reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Select dropdown dark theme ---- */
select option {
    background: #18181b;
    color: white;
}

/* ---- Premium card shimmer ---- */
.shimmer {
    position: relative;
    overflow: hidden;
}
.shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 100%
    );
    transform: rotate(30deg);
    animation: shimmerMove 3s ease-in-out infinite;
}

@keyframes shimmerMove {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

/* ---- Responsive adjustments ---- */
@media (max-width: 768px) {
    #landing {
        min-height: 100vh;
    }
    #landing > a {
        min-height: 50vh;
    }
}

/* ---- Print styles ---- */
@media print {
    nav, footer, #demo-modal, .flash-msg {
        display: none !important;
    }
}
