/* ================================================
   LOISTE STUDIO - PREMIUM POLISH ENHANCEMENTS
   Based on original premium-polish.css styling
   ================================================ */

/* Refined HTML Font Sizing (Original Formula) */
html {
    font-size: 0.6944444444vw;
    /* Original: Dynamic vw-based scaling */
    overflow-x: hidden;
}

@media (max-width: 767px) {
    html {
        font-size: 2.5641025641vw;
        /* Original mobile calculation */
    }
}

/* Premium Reveal Animation System */
.reveal {
    opacity: 0 !important;
    transform: translateY(40px) !important;
    transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1),
        transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) !important;
}

.reveal.will-animate {
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
    will-change: auto;
}

/* Stagger Effects for Children */
.reveal.active>*:nth-child(1) {
    animation-delay: 0.1s;
}

.reveal.active>*:nth-child(2) {
    animation-delay: 0.2s;
}

.reveal.active>*:nth-child(3) {
    animation-delay: 0.3s;
}

.reveal.active>*:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInStagger {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cinematic Image Transforms */
.hero__section__img img,
.featured__project__image img,
.project-card img,
.card img,
.blog-card-image img {
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1),
        filter 0.8s ease !important;
}

.hero__section__img:hover img,
.featured__project__image:hover img,
.project-card:hover img,
.card:hover img,
.blog-card:hover img {
    transform: scale(1.05) !important;
    filter: brightness(1.05) !important;
}

/* Premium Noise Grain Overlay */
.luxury-noise {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 15000 !important;
    opacity: 0.04 !important;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E') !important;
}

/* Liquid Link Underlines */
.footer-nav a,
.footer-legal a,
.navigation__list__link {
    position: relative !important;
    overflow: visible !important;
}

.footer-nav a::after,
.footer-legal a::after,
.navigation__list__link::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    width: 0 !important;
    height: 1px !important;
    background: currentColor !important;
    transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1) !important;
    opacity: 0.6 !important;
}

.footer-nav a:hover::after,
.footer-legal a:hover::after,
.navigation__list__link:hover::after {
    width: 100% !important;
}

.navigation__wrapper {
    background-color: var(--white-beige) !important;
}

.navigation__list {
    gap: 2.5rem !important;
}



/* Cross icon polish */


@media (max-width: 767px) {
    .navigation__list__link {
        font-size: 3.2rem !important;
        line-height: 1.1 !important;
    }

    .navigation__list__link:hover {
        transform: translateX(1rem) !important;
    }
}

/* Ambient Floating Animation */
@keyframes ambientFloat {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-10px);
    }
}

.hero-stats .stat-item,
.visual-badge,
.tech-badge {
    animation: ambientFloat 4s infinite alternate ease-in-out !important;
}

/* Premium Hero Typography Polish */
.home__hero__section h1,
.hero-section h1 {
    line-height: 1.15 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    font-weight: 300 !important;
}

.home__hero__section h1 em,
.hero-section h1 em {
    font-style: italic !important;
    letter-spacing: 0.04em !important;
    display: inline-block !important;
    text-transform: none !important;
}

@media (max-width: 767px) {

    .home__hero__section h1,
    .hero-section h1 {
        line-height: 1.25 !important;
        letter-spacing: 0.01em !important;
    }
}

/* Cards Premium Enhancement */
.card,
.blog-card,
.project-card {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.card:hover,
.blog-card:hover,
.project-card:hover {
    transform: translateY(-10px) scale(1.01) !important;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15) !important;
}

/* Button Enhancement */
.premium-button {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.premium-button::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.1) !important;
    transform: translate(-50%, -50%) !important;
    transition: width 0.6s ease, height 0.6s ease !important;
}

.premium-button:hover::before {
    width: 300px !important;
    height: 300px !important;
}

.premium-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background: transparent !important;
    z-index: 20000 !important;
    pointer-events: none !important;
}

.scroll-progress-bar {
    height: 100% !important;
    background: var(--color-bronze) !important;
    width: 0%;
    box-shadow: 0 0 10px rgba(193, 182, 164, 0.4) !important;
    transition: width 0.1s ease !important;
}

/* Refined Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07) !important;
}

/* Typography Enhancements from Original */
.small__title {
    letter-spacing: 0.2rem !important;
}

h1,
h2,
h3 {
    font-kerning: none;
}

/* Active Nav State */
.navigation__list__link.active {
    color: var(--neutral-dark) !important;
    opacity: 1 !important;
}

/* Ensure smooth scrolling */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

/* Global Standard for CTA Email */
.cta__mail {
    font-family: var(--font-heading) !important;
    font-size: clamp(1.8rem, 5vw, 6rem) !important;
    display: inline-block;
    margin-top: 2rem;
    color: var(--color-charcoal);
    text-decoration: none;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    vertical-align: top;
}

/* Fix for potential 1px gap at top on Safari */
.transition-overlay {
    top: -1px !important;
    height: calc(100% + 2px) !important;
}

/* Standardized CTA Section Padding */
.cta,
.cta-section {
    padding: 12rem 0 !important;
    text-align: center;
    background-color: var(--white-beige);
}

.cta__mail:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
    transform: scaleX(0);
    transform-origin: right center;
}

.cta__mail:hover:after {
    transform: scaleX(1);
    transform-origin: left center;
}

/* Premium Footer Enhancement */
.premium-footer {
    background-color: var(--color-charcoal) !important;
}

.footer-logo {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.footer-logo:hover {
    transform: scale(1.05) !important;
    filter: brightness(1.2) !important;
}

/* Response for Email on Small Mobile */
@media (max-width: 480px) {
    .cta__mail {
        font-size: 1.8rem !important;
    }
}