/* Custom Urban Styles */

:root {
    --brand-black: #000000;
    --brand-white: #FFFFFF;
    --brand-grey: #1A1A1A;
}

/* Grain Overlay Effect */
.grain-overlay {
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    mix-blend-mode: overlay;
    z-index: 100;
}

/* Custom Selection */
::selection {
    background: #FF5733;
    color: var(--brand-black);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--brand-black);
}

::-webkit-scrollbar-thumb {
    background: #FF5733;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #cccccc;
}

/* Typography Reveal Animation */
@keyframes reveal {
    from {
        transform: translateY(60px) skewY(2deg);
        opacity: 0;
    }

    to {
        transform: translateY(0) skewY(0deg);
        opacity: 1;
    }
}

.reveal-text {
    opacity: 0;
    animation: reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered Delay Utilities */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

/* Flicker Animation for Urban Texture */
@keyframes flicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        opacity: 1;
    }

    20%,
    24%,
    55% {
        opacity: 0.8;
    }
}

.animate-flicker {
    animation: flicker 4s infinite;
}

/* Float / Drift for Hero Background */
@keyframes drift {
    0% {
        transform: scale(1.05) translate(0, 0);
    }

    50% {
        transform: scale(1.1) translate(-10px, -10px);
    }

    100% {
        transform: scale(1.05) translate(0, 0);
    }
}

.animate-drift {
    animation: drift 20s ease-in-out infinite;
}

/* Interactive Card Tilt & skew logic */
.motion-card {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
    transform-style: preserve-3d;
}

.motion-card:hover {
    transform: scale(1.02) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.05);
}

.motion-card img {
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.motion-card:hover img {
    transform: scale(1.1) translateZ(20px);
}

/* Scroll Skew Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px) skewY(1deg);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0) skewY(0);
}

/* Parallax Target */
.parallax-bg {
    will-change: transform;
}

/* Event Card Hover Effect */
.group:hover .iconify {
    color: var(--brand-white);
    transform: scale(1.1) rotate(-5deg);
}

/* Custom Underline Animation */
.underline-animate {
    position: relative;
}

.underline-animate::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.4s ease;
}

/* Simple Slideshow Section */
.media-slideshow {
    padding: 8rem 0;
    background: #000;
    overflow: hidden;
}

.slideshow-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 600px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(70%);
}

.slide-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.slide-arrow {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FF5733;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.slide-arrow:hover {
    background: #FF5733;
    color: #000;
    transform: scale(1.1);
}

.slide-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #FF5733;
    transform: scale(1.5);
}

@media (max-width: 768px) {
    .slideshow-container {
        height: 400px;
        margin: 0 1rem;
    }

    .slide-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Form Focus State */
input:focus,
textarea:focus,
select:focus {
    border-color: #FF5733 !important;
    outline: none;
    box-shadow: 0 0 15px rgba(255, 87, 51, 0.2);
}

/* Raw Text Accent */
.raw-accent {
    color: #FF5733;
    filter: blur(2px);
    opacity: 0.05 !important;
}

/* ── BACK BUTTON + MOBILE POLISH ───────────────────── */
@media (max-width: 768px) {
    /* Nav: shrink padding so back button fits */
    nav > div { padding-left: 100px !important; }
    nav .font-heading { font-size: 1.4rem !important; }
    /* Hero headings */
    h1 { font-size: clamp(2.4rem, 13vw, 4rem) !important; line-height: 1 !important; }
    h2 { font-size: clamp(1.8rem, 10vw, 3rem) !important; }
    /* Slideshow */
    .slideshow-container { height: 280px !important; }
}