/* ===== PREMIUM ANIMATIONS & EFFECTS ===== */

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

/* Global transitions */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GALLERY HOVER EFFECTS ===== */

/* Gallery Item Hover - Lift & Glow */
.gallery-item,
.gallery-item-alt {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
}

.gallery-item:hover,
.gallery-item-alt:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 193, 7, 0.3) !important;
    z-index: 10;
}

/* Image zoom on hover */
.gallery-item img,
.gallery-item-alt img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.gallery-item:hover img,
.gallery-item-alt:hover img {
    transform: scale(1.15) rotate(2deg);
}

/* Overlay slide-in effect */
.gallery-overlay,
.gallery-overlay-alt {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.9), rgba(255, 152, 0, 0.9));
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(100%);
}

.gallery-item:hover .gallery-overlay,
.gallery-item-alt:hover .gallery-overlay-alt {
    opacity: 1;
    transform: translateY(0);
}

/* Overlay content animation */
.overlay-content {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.gallery-item:hover .overlay-content,
.gallery-item-alt:hover .overlay-content {
    transform: translateY(0);
    opacity: 1;
}

/* Icon pulse animation */
.overlay-content i {
    animation: iconPulse 1.5s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* ===== BUTTON ANIMATIONS ===== */

.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(-1px);
}

/* ===== CARD ANIMATIONS ===== */

.card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Service cards */
.service-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.2), transparent);
    transition: left 0.6s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 193, 7, 0.3);
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* ===== SKELETON LOADING ===== */
.skeleton {
    background-color: #e0e0e0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: -150px;
    height: 100%;
    width: 150px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -150px;
    }

    100% {
        left: 100%;
    }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.skeleton-img {
    width: 100%;
    height: 100%;
    background-color: #ccc;
}

/* ===== PARALLAX BACKGROUND ===== */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    will-change: transform;
}

/* ===== STAGGERED FADE IN ===== */
.stagger-fade-in>* {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

/* Create staggered delays for up to 20 items */
.stagger-fade-in>*:nth-child(1) {
    animation-delay: 0.1s;
}

.stagger-fade-in>*:nth-child(2) {
    animation-delay: 0.15s;
}

.stagger-fade-in>*:nth-child(3) {
    animation-delay: 0.2s;
}

.stagger-fade-in>*:nth-child(4) {
    animation-delay: 0.25s;
}

.stagger-fade-in>*:nth-child(5) {
    animation-delay: 0.3s;
}

.stagger-fade-in>*:nth-child(6) {
    animation-delay: 0.35s;
}

.stagger-fade-in>*:nth-child(7) {
    animation-delay: 0.4s;
}

.stagger-fade-in>*:nth-child(8) {
    animation-delay: 0.45s;
}

.stagger-fade-in>*:nth-child(9) {
    animation-delay: 0.5s;
}

.stagger-fade-in>*:nth-child(10) {
    animation-delay: 0.55s;
}

.stagger-fade-in>*:nth-child(11) {
    animation-delay: 0.6s;
}

.stagger-fade-in>*:nth-child(12) {
    animation-delay: 0.65s;
}

/* ===== HIGH-END VISUALS UPDATE ===== */

/* Glassmorphism Navbar */
.navbar.scrolled {
    background: rgba(33, 37, 41, 0.85) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glassmorphism Cards */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animated Gradient Text */
.gradient-text {
    background: linear-gradient(300deg, #ffc107, #ff9800, #ff5722, #ffc107);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientText 5s ease infinite;
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Background Blobs */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: blobFloat 10s infinite alternate;
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

/* Typing Effect Cursor */
.typing-cursor {
    display: inline-block;
    color: #ffc107;
    font-weight: bold;
    margin-left: 2px;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Premium Button Gradient */
.btn-premium {
    background: linear-gradient(45deg, #ffc107, #ffca2c);
    border: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ffca2c, #ffc107);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s;
}

.btn-premium:hover::after {
    opacity: 1;
}

/* ===== MOBILE OPTIMIZATIONS ===== */

@media (max-width: 768px) {

    .gallery-item:hover,
    .gallery-item-alt:hover {
        transform: none;
        /* Disable scale on mobile to prevent stuck hover states */
    }

    .card:hover {
        transform: none;
    }

    /* Touch Ripple Effect */
    .btn:active,
    .gallery-item:active,
    .card:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
}

/* Missing Keyframes */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CRITICAL: Text Reveal Animation */
@keyframes cinematicSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Gradient Text Animation */
@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Button Shimmer */
@keyframes buttonShimmer {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Float */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}