/* ============================================
   CIMENTCO — Theme CSS (Extended Styles)
   Complementary styles for Tailwind classes
   ============================================ */

/* === Smooth Cursor === */
* {
    cursor: none;
}

@media (max-width: 1023px), (hover: none) {
    * {
        cursor: auto;
    }
    #custom-cursor {
        display: none !important;
    }
}

/* === Hero section polish === */
#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--c-charcoal));
    z-index: 1;
    pointer-events: none;
}

/* === Service card glow on hover === */
#services .group:hover {
    box-shadow: 0 0 60px rgba(201, 169, 110, 0.05);
}

/* === Portfolio image overlay shimmer === */
#portfolio .group::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 40%,
        rgba(201, 169, 110, 0.05) 50%,
        transparent 60%
    );
    z-index: 5;
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

#portfolio .group:hover::after {
    transform: translateX(100%);
}

/* === Form input focus ring === */
#contact-form input:focus,
#contact-form textarea:focus,
#contact-form select:focus {
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

/* === Process step connector animation === */
#process .group:hover .absolute.-inset-2 {
    animation: pulse-border 2s ease infinite;
}

@keyframes pulse-border {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.5;
    }
}

/* === Header transition polish === */
.site-header {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.5s ease;
}

/* === Loading animation for page === */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
    z-index: 9999;
    animation: pageLoad 1.5s ease-out forwards;
}

@keyframes pageLoad {
    0% {
        transform: scaleX(0);
        transform-origin: left;
    }
    50% {
        transform: scaleX(1);
        transform-origin: left;
    }
    100% {
        transform: scaleX(0);
        transform-origin: right;
        opacity: 0;
    }
}

/* === Scroll reveal polished transitions === */
.animate-on-scroll {
    will-change: transform, opacity;
}

.animate-on-scroll.animated {
    will-change: auto;
}

/* === Mobile menu backdrop === */
#mobile-menu {
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === Gold selection for dark sections === */
#services ::selection,
#hero ::selection,
.bg-charcoal ::selection {
    background-color: var(--c-gold);
    color: var(--c-charcoal);
}

/* === Responsive adjustments === */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #portfolio .grid {
        gap: 1rem;
    }
}

/* === Print styles === */
@media print {
    .site-header,
    #scroll-top,
    #custom-cursor,
    #mobile-menu {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
