/* Realisations Page Specific Styles */

/* Enhanced scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Realisations Hero Section */
.realisations-hero {
    position: relative;
    min-height: 95vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 90px;
    scroll-snap-align: start;
}

.realisations-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.realisations-hero-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.9) contrast(1.1);
}

.realisations-hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 20, 0.55);
    z-index: 1;
}

.realisations-hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(44, 24, 16, 0.5) 0%,
        rgba(15, 15, 20, 0.4) 25%,
        rgba(26, 26, 30, 0.3) 50%,
        rgba(74, 50, 35, 0.2) 75%,
        rgba(15, 15, 20, 0.6) 100%
    );
    z-index: 2;
}

.realisations-hero-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    align-items: center;
    min-height: 65vh;
    z-index: 3;
}

.realisations-hero-content {
    max-width: 720px;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 12px 24px;
    border: 1px solid var(--accent-gold);
    margin-bottom: 32px;
    transition: var(--transition-medium);
    background: rgba(201, 169, 97, 0.1);
    backdrop-filter: blur(10px);
}

.hero-badge:hover {
    background: var(--accent-gold);
    color: var(--neutral-white);
}

.realisations-hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    font-weight: 600;
    color: var(--neutral-white);
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.realisations-hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 48px;
    letter-spacing: 0.3px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-style: italic;
}

.realisations-hero-tagline {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 48px;
}

.brand-highlight {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.tagline-text {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-style: italic;
    letter-spacing: 0.3px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.realisations-hero-stats {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 48px 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    box-shadow: var(--shadow-large);
    border: 1px solid rgba(42, 42, 42, 0.05);
    backdrop-filter: blur(10px);
}

/* Mobile-friendly hero responsive design */
@media (max-width: 1024px) {
    .realisations-hero {
        margin-top: 80px;
        min-height: 90vh;
    }
    
    .realisations-hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        min-height: 60vh;
        padding: 40px 0;
    }
    
    .realisations-hero-stats {
        padding: 40px 32px;
        gap: 28px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .realisations-hero-title {
        font-size: clamp(2.8rem, 8vw, 4.5rem);
        line-height: 1;
        margin-bottom: 24px;
    }
    
    .realisations-hero-subtitle {
        font-size: 20px;
        margin-bottom: 36px;
    }
    
    .brand-highlight {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .tagline-text {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .realisations-hero {
        margin-top: 70px;
        min-height: 85vh;
        padding: 0;
    }
    
    .realisations-hero-container {
        gap: 40px;
        min-height: 50vh;
        padding: 20px 0;
        text-align: center;
    }
    
    .realisations-hero-content {
        max-width: 100%;
        order: 1;
    }
    
    .realisations-hero-stats {
        order: 2;
        padding: 32px 24px;
        gap: 24px;
        max-width: 100%;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 12px;
        margin: 0 20px;
    }
    
    .hero-badge {
        font-size: 10px;
        letter-spacing: 2px;
        padding: 10px 20px;
        margin-bottom: 24px;
        display: inline-block;
    }
    
    .realisations-hero-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
        line-height: 1.1;
        margin-bottom: 20px;
        letter-spacing: -0.01em;
    }
    
    .realisations-hero-subtitle {
        font-size: 18px;
        margin-bottom: 32px;
        line-height: 1.5;
        padding: 0 10px;
    }
    
    .realisations-hero-tagline {
        padding-top: 24px;
        margin-bottom: 32px;
        border-top: 1px solid rgba(255, 255, 255, 0.25);
    }
    
    .brand-highlight {
        font-size: 1.4rem;
        margin-bottom: 10px;
        display: block;
    }
    
    .tagline-text {
        font-size: 14px;
        line-height: 1.6;
        padding: 0 10px;
    }
    
    /* Mobile stats styling */
    .stat-item {
        text-align: center;
        padding: 16px 12px;
    }
    
    .stat-number {
        font-size: 2.2rem;
        font-weight: 700;
        color: var(--accent-gold);
        display: block;
        line-height: 1;
        margin-bottom: 8px;
    }
    
    .stat-label {
        font-size: 13px;
        color: var(--neutral-medium-gray);
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 1px;
        line-height: 1.3;
    }
    
    .stat-divider {
        height: 1px;
        background: rgba(42, 42, 42, 0.1);
        margin: 0;
        width: 100%;
    }
    
    /* Mobile scroll indicator */
    .scroll-indicator {
        bottom: 30px;
        transform: translateX(-50%) scale(0.9);
    }
    
    .scroll-text {
        font-size: 10px;
        letter-spacing: 1.5px;
    }
    
    .scroll-line {
        height: 30px;
    }
    
    .scroll-indicator:hover .scroll-line {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .realisations-hero {
        margin-top: 60px;
        min-height: 80vh;
    }
    
    .realisations-hero-container {
        gap: 30px;
        padding: 15px 0;
    }
    
    .realisations-hero-content {
        padding: 0 10px;
    }
    
    .realisations-hero-stats {
        padding: 24px 16px;
        gap: 20px;
        margin: 0 10px;
        border-radius: 8px;
    }
    
    .hero-badge {
        font-size: 9px;
        letter-spacing: 1.5px;
        padding: 8px 16px;
        margin-bottom: 20px;
    }
    
    .realisations-hero-title {
        font-size: clamp(1.8rem, 12vw, 2.8rem);
        margin-bottom: 16px;
        padding: 0 5px;
    }
    
    .realisations-hero-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
        padding: 0 5px;
    }
    
    .realisations-hero-tagline {
        padding-top: 20px;
        margin-bottom: 24px;
    }
    
    .brand-highlight {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .tagline-text {
        font-size: 13px;
        line-height: 1.5;
    }
    
    /* Extra small mobile stats */
    .stat-item {
        padding: 12px 8px;
    }
    
    .stat-number {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }
    
    .stat-label {
        font-size: 11px;
        letter-spacing: 0.8px;
    }
    
    /* Hide scroll indicator on very small screens */
    .scroll-indicator {
        display: none;
    }
}

/* Portrait orientation optimizations */
@media (max-width: 768px) and (orientation: portrait) {
    .realisations-hero {
        min-height: 90vh;
    }
    
    .realisations-hero-container {
        min-height: 55vh;
        justify-content: center;
    }
    
    .realisations-hero-stats {
        max-width: 90%;
    }
}

/* Landscape orientation for small devices */
@media (max-width: 768px) and (orientation: landscape) {
    .realisations-hero {
        min-height: 100vh;
        margin-top: 60px;
    }
    
    .realisations-hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: center;
        min-height: 70vh;
    }
    
    .realisations-hero-content {
        order: 1;
        text-align: left;
    }
    
    .realisations-hero-stats {
        order: 2;
        max-width: 300px;
        margin: 0;
    }
    
    .realisations-hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
        text-align: left;
    }
    
    .realisations-hero-subtitle {
        font-size: 16px;
        text-align: left;
    }
    
    .realisations-hero-tagline {
        text-align: left;
    }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    .hero-badge:hover {
        background: var(--accent-gold);
        color: var(--neutral-white);
        transform: scale(1.02);
    }
    
    /* Better touch targets for mobile */
    .scroll-indicator {
        padding: 10px;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(201, 169, 97, 0.2);
    }
    
    /* Improve text readability on mobile */
    .realisations-hero-title,
    .realisations-hero-subtitle,
    .brand-highlight,
    .tagline-text {
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    }
    
    /* Enhanced mobile overlays */
    .realisations-hero-image-overlay {
        background: rgba(15, 15, 20, 0.65);
    }
    
    .realisations-hero-gradient-overlay {
        background: linear-gradient(
            135deg,
            rgba(44, 24, 16, 0.6) 0%,
            rgba(15, 15, 20, 0.5) 25%,
            rgba(26, 26, 30, 0.4) 50%,
            rgba(74, 50, 35, 0.3) 75%,
            rgba(15, 15, 20, 0.7) 100%
        );
    }
}

/* Projects Showcase Section */
.projets-showcase {
    padding: 160px 0;
    background: var(--neutral-white);
    scroll-snap-align: start;
}

.projets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

/* Placeholder for projects */
.projet-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 120px 40px;
    background: var(--neutral-light);
    border-radius: 8px;
    border: 2px dashed rgba(201, 169, 97, 0.3);
}

.placeholder-content {
    max-width: 500px;
    margin: 0 auto;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 32px;
    opacity: 0.7;
}

.placeholder-content h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--neutral-black);
    margin-bottom: 24px;
    line-height: 1.3;
}

.placeholder-content p {
    font-size: 16px;
    color: var(--neutral-medium-gray);
    line-height: 1.7;
    margin-bottom: 40px;
    letter-spacing: 0.3px;
}

/* Project Card Styles (for future use) */
.projet-card {
    position: relative;
    background: var(--neutral-white);
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition-luxury);
    cursor: pointer;
    border: 1px solid rgba(42, 42, 42, 0.06);
    box-shadow: var(--shadow-subtle);
    opacity: 0;
    transform: translateY(20px);
}

.projet-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15), 0 16px 32px rgba(0, 0, 0, 0.1);
    border-color: rgba(201, 169, 97, 0.3);
}

.projet-image-container {
    position: relative;
    height: 0;
    padding-bottom: 60%;
    overflow: hidden;
}

.projet-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.projet-card:hover .projet-image {
    transform: scale(1.08);
    filter: brightness(1) contrast(1.1);
}

.projet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.7) 100%
    );
    opacity: 0;
    transition: var(--transition-luxury);
    display: flex;
    align-items: flex-end;
    padding: 32px;
}

.projet-card:hover .projet-overlay {
    opacity: 1;
}

.projet-overlay-content {
    color: var(--neutral-white);
    transform: translateY(20px);
    transition: var(--transition-medium);
}

.projet-card:hover .projet-overlay-content {
    transform: translateY(0);
}

.projet-category {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 6px 12px;
    background: rgba(201, 169, 97, 0.2);
    border: 1px solid var(--accent-gold);
    display: inline-block;
    backdrop-filter: blur(10px);
}

.projet-overlay h4 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.projet-overlay p {
    font-size: 14px;
    opacity: 0.95;
    line-height: 1.6;
    margin-bottom: 16px;
    font-weight: 300;
}

.projet-details {
    font-size: 12px;
    color: var(--accent-gold);
    letter-spacing: 1px;
    font-weight: 500;
    text-transform: uppercase;
}

.projet-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.projet-content h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--neutral-black);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.projet-content p {
    font-size: 15px;
    color: var(--neutral-medium-gray);
    line-height: 1.7;
    margin-bottom: 32px;
    letter-spacing: 0.3px;
    font-weight: 300;
}

.projet-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(42, 42, 42, 0.08);
}

.projet-date {
    font-size: 13px;
    color: var(--neutral-medium-gray);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.projet-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition-fast);
    padding: 8px 16px;
    border: 1px solid var(--accent-gold);
    background: transparent;
}

.projet-link:hover {
    background: var(--accent-gold);
    color: var(--neutral-white);
    transform: translateX(4px);
}

.projet-link svg {
    transition: var(--transition-fast);
}

.projet-link:hover svg {
    transform: translateX(2px);
}

/* Enhanced Filter Navigation */
.projets-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 100px;
    padding: 60px 0;
    position: relative;
    flex-wrap: wrap;
    background: linear-gradient(
        135deg,
        rgba(245, 245, 243, 0.8) 0%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(245, 245, 243, 0.8) 100%
    );
    border-radius: 60px;
    border: 1px solid rgba(201, 169, 97, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    animation: filterSlideUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes filterSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-btn {
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--neutral-medium-gray);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 16px 28px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    white-space: nowrap;
    min-width: fit-content;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        var(--accent-gold) 0%,
        var(--accent-gold-light) 100%
    );
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 30px;
    z-index: -1;
}

.filter-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.filter-btn:hover::before {
    opacity: 0.1;
    transform: scale(1);
}

.filter-btn:hover::after {
    width: 120%;
    height: 120%;
}

.filter-btn:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(201, 169, 97, 0.15),
        0 3px 10px rgba(201, 169, 97, 0.1);
}

.filter-btn.active {
    color: var(--neutral-white);
    background: linear-gradient(
        135deg,
        var(--accent-gold) 0%,
        var(--accent-gold-light) 100%
    );
    box-shadow: 
        0 12px 40px rgba(201, 169, 97, 0.3),
        0 4px 12px rgba(201, 169, 97, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.05);
    font-weight: 600;
}

.filter-btn.active::before {
    opacity: 0;
}

.filter-btn.active::after {
    width: 0;
    height: 0;
}

/* Add filter count badges */
.filter-btn[data-count]::after {
    content: attr(data-count);
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-gold);
    color: var(--neutral-white);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.4);
    transition: all 0.3s ease;
    z-index: 1;
}

.filter-btn:hover[data-count]::after {
    transform: scale(1.1);
}

/* Enhanced filter transition effects */
.projets-filter-transition {
    position: relative;
    overflow: hidden;
}

.projets-filter-transition::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(201, 169, 97, 0.1) 50%,
        transparent 100%
    );
    animation: filterSweep 1.5s ease-in-out;
}

@keyframes filterSweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Enhanced Project Cards Filter Animation */
.projet-card {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
}

.projet-card.filtering-out {
    opacity: 0;
    transform: translateY(30px) scale(0.95) rotateX(10deg);
    pointer-events: none;
}

.projet-card.filtering-in {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    pointer-events: auto;
}

/* Filter Results Counter */
.filter-results {
    text-align: center;
    margin-bottom: 40px;
    font-size: 14px;
    color: var(--neutral-medium-gray);
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.filter-results.visible {
    opacity: 1;
    transform: translateY(0);
}

.filter-results-count {
    color: var(--accent-gold);
    font-weight: 600;
    font-family: var(--font-display);
    font-size: 16px;
}

/* Categories Overview Section */
.categories-overview {
    padding: 160px 0;
    background: linear-gradient(
        135deg,
        var(--neutral-white) 0%,
        rgba(245, 245, 243, 0.5) 50%,
        var(--neutral-white) 100%
    );
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

.categories-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(201, 169, 97, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(201, 169, 97, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 48px;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
    justify-content: center;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced Category Card Styles */
.category-card {
    position: relative;
    background: var(--neutral-white);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(42, 42, 42, 0.04);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    background-clip: padding-box;
    max-width: 450px;
    width: 100%;
    justify-self: center;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(201, 169, 97, 0.1) 0%,
        transparent 30%,
        transparent 70%,
        rgba(201, 169, 97, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
    z-index: -1;
}

.category-card.fade-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.category-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(201, 169, 97, 0.2);
    border-color: rgba(201, 169, 97, 0.3);
}

.category-card:hover::before {
    opacity: 1;
}

/* Enhanced Category Image Container */
.category-image-container {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.category-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1.1) rotate(1deg);
    filter: brightness(0.95) contrast(1.05) saturate(1.1);
}

.category-image.active {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.category-image.entering {
    opacity: 0;
    transform: scale(1.2) rotate(-1deg);
    filter: brightness(1.1) contrast(1.15) saturate(1.2);
}

.category-image.exiting {
    opacity: 0;
    transform: scale(0.9) rotate(1deg);
    filter: brightness(0.8) contrast(0.9) saturate(0.9);
}

.category-card:hover .category-image.active {
    transform: scale(1.08) rotate(-0.5deg);
    filter: brightness(1.05) contrast(1.15) saturate(1.2);
}

/* Enhanced Carousel Navigation */
.carousel-navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 25px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.category-card:hover .carousel-navigation {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.carousel-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(42, 42, 42, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.carousel-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: rgba(201, 169, 97, 0.4);
    transform: scale(1.3);
    border-color: rgba(201, 169, 97, 0.3);
}

.carousel-dot.active {
    background: var(--accent-gold);
    transform: scale(1.4);
    box-shadow: 
        0 0 20px rgba(201, 169, 97, 0.6),
        0 0 40px rgba(201, 169, 97, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.carousel-dot.active::before {
    width: 100%;
    height: 100%;
}

/* Enhanced Category Badge */
.category-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: linear-gradient(
        135deg,
        var(--accent-gold) 0%,
        #d4af37 50%,
        var(--accent-gold) 100%
    );
    color: var(--neutral-white);
    font-size: 12px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 
        0 4px 20px rgba(201, 169, 97, 0.4),
        0 2px 8px rgba(201, 169, 97, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: var(--font-body);
}

.category-card:hover .category-badge {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 8px 30px rgba(201, 169, 97, 0.6),
        0 4px 15px rgba(201, 169, 97, 0.3);
    background: linear-gradient(
        135deg,
        #f4d03f 0%,
        var(--accent-gold) 50%,
        #d4af37 100%
    );
}

/* Enhanced Category Overlay */
.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.02) 0%,
        rgba(0, 0, 0, 0.15) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    opacity: 0.7;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 3;
}

.category-card:hover .category-overlay {
    opacity: 0.3;
    background: linear-gradient(
        135deg,
        rgba(201, 169, 97, 0.1) 0%,
        rgba(0, 0, 0, 0.05) 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
}

/* Enhanced Category Content */
.category-content {
    padding: 36px 32px 32px;
    position: relative;
    background: linear-gradient(
        180deg,
        var(--neutral-white) 0%,
        rgba(250, 250, 250, 0.98) 100%
    );
    border-top: 1px solid rgba(201, 169, 97, 0.1);
}

.category-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 32px;
    right: 32px;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--accent-gold) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card:hover .category-content::before {
    opacity: 1;
}

.category-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--neutral-black);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    transition: all 0.3s ease;
    position: relative;
}

.category-card:hover .category-title {
    color: var(--accent-gold);
    transform: translateX(8px);
}

.category-description {
    font-size: 15px;
    color: var(--neutral-medium-gray);
    line-height: 1.7;
    margin-bottom: 28px;
    font-weight: 400;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
}

.category-card:hover .category-description {
    color: var(--neutral-dark-gray);
}

/* Enhanced Category Meta */
.category-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(42, 42, 42, 0.06);
    position: relative;
}

.category-meta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card:hover .category-meta::before {
    width: 100%;
}

.category-count {
    font-size: 14px;
    color: var(--neutral-medium-gray);
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.category-card:hover .category-count {
    color: var(--neutral-dark-gray);
    transform: translateY(-2px);
}

.category-count-number {
    color: var(--accent-gold);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-right: 4px;
    transition: all 0.3s ease;
}

.category-card:hover .category-count-number {
    color: #d4af37;
    transform: scale(1.1);
}

/* Enhanced Category Arrow */
.category-arrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--accent-gold);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 12px 20px;
    background: rgba(201, 169, 97, 0.05);
    border-radius: 25px;
    border: 1px solid rgba(201, 169, 97, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.category-arrow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
}

.category-card:hover .category-arrow {
    color: var(--neutral-white);
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateX(8px) scale(1.05);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.4);
}

.category-card:hover .category-arrow::before {
    left: 100%;
}

.category-arrow svg {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.category-card:hover .category-arrow svg {
    transform: translateX(4px) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 40px;
        max-width: 1200px;
    }
    
    .category-image-container {
        height: 280px;
    }
    
    .category-content {
        padding: 32px 28px;
    }
}

@media (max-width: 768px) {
    .categories-overview {
        padding: 120px 0;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 32px;
        max-width: 100%;
    }
    
    .category-image-container {
        height: 240px;
    }
    
    .category-content {
        padding: 28px 24px;
    }
    
    .category-title {
        font-size: 1.6rem;
    }
    
    .carousel-navigation {
        opacity: 1; /* Always visible on mobile */
        bottom: 16px;
    }
    
    .category-badge {
        top: 20px;
        right: 20px;
        font-size: 11px;
        padding: 8px 14px;
    }
    
    .category-arrow {
        padding: 10px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .category-image-container {
        height: 200px;
    }
    
    .category-content {
        padding: 24px 20px;
    }
    
    .category-title {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .category-description {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .carousel-dots {
        gap: 8px;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
    }
    
    .category-badge {
        top: 16px;
        right: 16px;
        font-size: 10px;
        padding: 6px 12px;
    }
    
    .category-meta {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .category-arrow {
        align-self: stretch;
        justify-content: center;
        padding: 12px 20px;
    }
}

/* Stagger animation for category cards */
.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }
.category-card:nth-child(7) { animation-delay: 0.7s; }
.category-card:nth-child(8) { animation-delay: 0.8s; }

/* Responsive Design */
@media (max-width: 768px) {
    .categories-overview {
        padding: 100px 0;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .category-image-container {
        height: 200px;
    }
    
    .category-content {
        padding: 24px 20px;
    }
    
    .projects-catalog {
        padding: 80px 0;
    }
    
    .catalog-title {
        font-size: 2.2rem;
    }
    
    .projects-catalog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .projets-filter {
        flex-wrap: wrap;
        gap: 12px;
        padding: 20px 16px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .projet-image-container {
        height: 220px;
    }
    
    .projet-content {
        padding: 24px 20px;
    }
    
    .projet-content h3 {
        font-size: 1.4rem;
        margin-bottom: 16px;
    }
    
    .projet-meta {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .projet-link {
        align-self: stretch;
        justify-content: center;
    }
}

/* Fix visibility issues for projects container */
#projets-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    width: 100%;
    opacity: 1;
    visibility: visible;
    min-height: 200px;
}

/* Ensure project cards are visible */
.projet-card {
    background: var(--neutral-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: block;
    opacity: 1;
    visibility: visible;
    height: 100%;
    z-index: 1;
}

.projet-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

/* Ensure filter controls are visible */
.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
    opacity: 1;
}

/* Fix loading spinner visibility */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    width: 100%;
    opacity: 1;
    visibility: visible;
}

/* Animation fix - ensure visibility at end of animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
}

/* Add default visibility to any animated elements */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
    visibility: visible;
    opacity: 1;
}

/* Projects Catalog Styles */
.projects-catalog {
    padding: 120px 0;
    background: var(--neutral-white);
    min-height: 100vh;
}

.catalog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 80px;
    gap: 40px;
    flex-wrap: wrap;
}

.back-to-categories {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 1px solid rgba(42, 42, 42, 0.2);
    color: var(--neutral-dark-gray);
    font-size: 14px;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.back-to-categories:hover {
    background: var(--neutral-black);
    color: var(--neutral-white);
    border-color: var(--neutral-black);
    transform: translateX(-4px);
}

.catalog-title-section {
    flex: 1;
    max-width: 600px;
}

.catalog-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--neutral-black);
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.catalog-subtitle {
    font-size: 18px;
    color: var(--neutral-medium-gray);
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 0;
}

.catalog-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.projects-count {
    font-size: 14px;
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    background: rgba(201, 169, 97, 0.1);
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 20px;
}

/* Projects Catalog Grid */
.projects-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

/* Catalog Project Card Styles */
.catalog-project-card {
    background: var(--neutral-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 1px solid rgba(42, 42, 42, 0.04);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.catalog-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(201, 169, 97, 0.05) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.catalog-project-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.catalog-project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(201, 169, 97, 0.2);
}

.catalog-project-card:hover::before {
    opacity: 1;
}

/* Catalog Project Image */
.catalog-project-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #f8f9fa;
}

.catalog-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.95) contrast(1.05);
}

.catalog-project-card:hover .catalog-project-image img {
    transform: scale(1.1);
    filter: brightness(1.05) contrast(1.1);
}

/* Catalog Project Content */
.catalog-project-content {
    padding: 32px 28px 28px;
    position: relative;
    z-index: 2;
    background: var(--neutral-white);
}

.catalog-project-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--neutral-black);
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.catalog-project-card:hover .catalog-project-title {
    color: var(--accent-gold);
}

.catalog-project-description {
    font-size: 15px;
    color: var(--neutral-medium-gray);
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* Catalog Project Meta */
.catalog-project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(42, 42, 42, 0.08);
    position: relative;
}

.catalog-project-meta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.catalog-project-card:hover .catalog-project-meta::before {
    width: 100%;
}

.catalog-project-year {
    font-size: 13px;
    color: var(--neutral-medium-gray);
    font-weight: 500;
    letter-spacing: 0.5px;
    background: rgba(42, 42, 42, 0.04);
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.catalog-project-card:hover .catalog-project-year {
    background: rgba(201, 169, 97, 0.1);
    color: var(--accent-gold);
}

.catalog-project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 8px 16px;
    border: 1px solid var(--accent-gold);
    border-radius: 20px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.catalog-project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gold);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.catalog-project-link:hover {
    color: var(--neutral-white);
    transform: translateX(4px);
}

.catalog-project-link:hover::before {
    left: 0;
}

.catalog-project-link svg {
    transition: transform 0.3s ease;
}

.catalog-project-link:hover svg {
    transform: translateX(2px);
}

/* Empty Categories State Styles */
.empty-categories-state {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 80px 40px;
    text-align: center;
}

.empty-state-content {
    max-width: 500px;
    padding: 60px 40px;
    background: linear-gradient(
        135deg,
        rgba(245, 245, 243, 0.8) 0%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(245, 245, 243, 0.8) 100%
    );
    border-radius: 20px;
    border: 2px dashed rgba(201, 169, 97, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.empty-state-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(201, 169, 97, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(201, 169, 97, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 32px;
    opacity: 0.7;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.empty-state-content h3 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--neutral-black);
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.empty-state-content p {
    font-size: 16px;
    color: var(--neutral-medium-gray);
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.empty-state-actions {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(201, 169, 97, 0.2);
}

.admin-notice {
    font-size: 14px;
    color: var(--neutral-medium-gray);
    margin-bottom: 20px;
    font-style: italic;
    font-weight: 500;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(
        135deg,
        var(--accent-gold) 0%,
        #d4af37 100%
    );
    color: var(--neutral-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 28px;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 8px 25px rgba(201, 169, 97, 0.4),
        0 3px 10px rgba(201, 169, 97, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    font-family: var(--font-body);
}

.admin-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
}

.admin-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 12px 35px rgba(201, 169, 97, 0.5),
        0 5px 15px rgba(201, 169, 97, 0.3);
    background: linear-gradient(
        135deg,
        #f4d03f 0%,
        var(--accent-gold) 100%
    );
}

.admin-link:hover::before {
    left: 100%;
}

.admin-link svg {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.admin-link:hover svg {
    transform: translateX(2px) rotate(5deg);
}

/* Responsive Design for Empty State */
@media (max-width: 768px) {
    .empty-categories-state {
        min-height: 50vh;
        padding: 60px 20px;
    }
    
    .empty-state-content {
        padding: 40px 24px;
        max-width: 90%;
    }
    
    .empty-state-content h3 {
        font-size: 1.8rem;
        margin-bottom: 16px;
    }
    
    .empty-state-content p {
        font-size: 15px;
        margin-bottom: 32px;
    }
    
    .admin-link {
        padding: 14px 24px;
        font-size: 13px;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .empty-state-content {
        padding: 32px 20px;
        border-radius: 16px;
    }
    
    .empty-state-icon {
        font-size: 3rem;
        margin-bottom: 24px;
    }
    
    .empty-state-content h3 {
        font-size: 1.5rem;
    }
    
    .empty-state-content p {
        font-size: 14px;
    }
    
    .admin-link {
        padding: 12px 20px;
        font-size: 12px;
        letter-spacing: 0.8px;
    }
    
    .empty-state-actions {
        margin-top: 32px;
        padding-top: 24px;
    }
    
    .admin-notice {
        font-size: 13px;
        margin-bottom: 16px;
    }
}

/* Animation for empty state appearance */
.empty-categories-state {
    opacity: 0;
    animation: emptyStateSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes emptyStateSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Construction-themed Loading Animation for Categories */
.categories-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(
        135deg,
        rgba(245, 245, 243, 0.8) 0%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(245, 245, 243, 0.8) 100%
    );
    border-radius: 20px;
    margin: 40px 0;
}

.construction-loader {
    position: relative;
    width: 120px;
    height: 80px;
    margin-bottom: 40px;
}

.crane-arm {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 2px;
    height: 60px;
    background: var(--accent-gold);
    transform-origin: bottom center;
    animation: craneRotate 3s ease-in-out infinite;
}

.crane-arm::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 40px;
    height: 2px;
    background: var(--accent-gold);
    transform-origin: left center;
}

.crane-arm::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -6px;
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: hookBounce 2s ease-in-out infinite;
}

.building-blocks {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
    align-items: flex-end;
}

.building-block {
    width: 12px;
    background: var(--accent-gold);
    opacity: 0;
    animation: blockRise 3s ease-in-out infinite;
    border-radius: 1px 1px 0 0;
}

.building-block:nth-child(1) {
    height: 20px;
    animation-delay: 0.2s;
}

.building-block:nth-child(2) {
    height: 30px;
    animation-delay: 0.4s;
}

.building-block:nth-child(3) {
    height: 25px;
    animation-delay: 0.6s;
}

.building-block:nth-child(4) {
    height: 35px;
    animation-delay: 0.8s;
}

.building-block:nth-child(5) {
    height: 28px;
    animation-delay: 1s;
}

@keyframes craneRotate {
    0%, 100% { 
        transform: rotate(-15deg);
    }
    50% { 
        transform: rotate(15deg);
    }
}

@keyframes hookBounce {
    0%, 100% { 
        transform: translateY(0);
    }
    50% { 
        transform: translateY(8px);
    }
}

@keyframes blockRise {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    30% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    70% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0.7;
        transform: translateY(0) scale(1);
    }
}

.loading-text {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--neutral-black);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.loading-subtitle {
    font-size: 16px;
    color: var(--neutral-medium-gray);
    line-height: 1.6;
    margin-bottom: 32px;
    font-weight: 400;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(201, 169, 97, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--accent-gold) 0%,
        #f4d03f 50%,
        var(--accent-gold) 100%
    );
    width: 0%;
    animation: progressFill 3s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes progressFill {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Enhanced Auto-Switching Carousel Animations */
.category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1.15) rotate(2deg);
    filter: brightness(0.95) contrast(1.05) saturate(1.1);
}

.category-image.active {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.category-image.entering {
    opacity: 0;
    transform: scale(1.2) rotate(-1deg);
    filter: brightness(1.1) contrast(1.15) saturate(1.2);
}

.category-image.exiting {
    opacity: 0;
    transform: scale(0.9) rotate(1deg);
    filter: brightness(0.8) contrast(0.9) saturate(0.9);
}

.category-card:hover .category-image.active {
    transform: scale(1.08) rotate(-0.5deg);
    filter: brightness(1.05) contrast(1.15) saturate(1.2);
}

/* Enhanced Carousel Dots with Auto-Switch Indicators */
.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(42, 42, 42, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}



.carousel-dot.active {
    background: var(--accent-gold);
    transform: scale(1.4);
    box-shadow: 
        0 0 20px rgba(201, 169, 97, 0.6),
        0 0 40px rgba(201, 169, 97, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.carousel-dot.auto-progress {
    background: var(--accent-gold);
    position: relative;
    overflow: visible;
}

.carousel-dot.auto-progress::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    border-top-color: transparent;
    animation: autoSwitchProgress 4s linear infinite;
}

@keyframes autoSwitchProgress {
    0% {
        transform: rotate(0deg);
        border-top-color: transparent;
    }
    25% {
        border-right-color: transparent;
    }
    50% {
        border-bottom-color: transparent;
    }
    75% {
        border-left-color: transparent;
    }
    100% {
        transform: rotate(360deg);
        border-top-color: transparent;
    }
}

/* Auto-Switch Pause Indicator */
.carousel-pause-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.category-card:hover .carousel-pause-indicator {
    opacity: 1;
    transform: translateY(-2px);
}

.carousel-pause-indicator.paused {
    background: rgba(239, 68, 68, 0.8);
}

.carousel-pause-indicator.playing {
    background: rgba(34, 197, 94, 0.8);
}

/* Enhanced Loading States for Individual Category Cards */
.category-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.category-card.loading .category-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.8) 50%,
        transparent 100%
    );
    animation: shimmer 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Enhanced Responsive Design for Loading States */
@media (max-width: 768px) {
    .construction-loader {
        width: 100px;
        height: 60px;
    }
    
    .building-block {
        width: 10px;
    }
    
    .loading-text {
        font-size: 1.5rem;
    }
    
    .loading-progress {
        width: 160px;
    }
    
    .carousel-pause-indicator {
        top: 16px;
        left: 16px;
        padding: 4px 8px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .categories-loading {
        min-height: 50vh;
        padding: 60px 20px;
    }
    
    .construction-loader {
        width: 80px;
        height: 50px;
        margin-bottom: 32px;
    }
    
    .building-block {
        width: 8px;
    }
    
    .building-block:nth-child(1) { height: 15px; }
    .building-block:nth-child(2) { height: 22px; }
    .building-block:nth-child(3) { height: 18px; }
    .building-block:nth-child(4) { height: 25px; }
    .building-block:nth-child(5) { height: 20px; }
    
    .loading-text {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .loading-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .loading-progress {
        width: 140px;
        height: 3px;
    }
}
