/* ===== SECTION RÉALISATIONS - DESIGN PREMIUM ===== */

.realisations-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    overflow: hidden;
}

/* Decorative Shapes */
.portfolio-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.portfolio-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
}

.portfolio-shapes .shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--tech-gradient-3), var(--primary-color));
    top: -100px;
    left: -100px;
    animation: float 20s ease-in-out infinite;
}

.portfolio-shapes .shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    bottom: -50px;
    right: -50px;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, 30px) rotate(180deg); }
}

.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 180, 219, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 180, 219, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Title Decoration */
.realisations-section .section-title {
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.realisations-section .highlight-word {
    color: var(--tech-gradient-3);
    position: relative;
}

.realisations-section .highlight-word::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--tech-gradient-3), transparent);
    animation: pulse-line 2s ease-in-out infinite;
}

@keyframes pulse-line {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.deco-line {
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, transparent, var(--tech-gradient-3));
    position: relative;
}

.deco-line.right {
    background: linear-gradient(90deg, var(--tech-gradient-3), transparent);
}

.deco-dot {
    width: 12px;
    height: 12px;
    background: var(--tech-gradient-3);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 180, 219, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 180, 219, 0.6); }
    50% { transform: scale(1.3); box-shadow: 0 0 30px rgba(0, 180, 219, 0.9); }
}

/* Portfolio Grid */
.realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

/* Realisation Card */
.realisation-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-inner {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.realisation-card:hover .card-inner {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

/* Image Container */
.realisation-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.realisation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.realisation-card:hover .realisation-image img {
    transform: scale(1.1);
    filter: brightness(0.9);
}

/* Image Overlay - Gradient */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0.7) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.realisation-card:hover .image-overlay {
    opacity: 1;
}

/* Hover Overlay */
.realisation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 180, 219, 0.95) 0%,
        rgba(47, 85, 212, 0.95) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.realisation-card:hover .realisation-overlay {
    opacity: 1;
    transform: scale(1);
}

.overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.realisation-card:hover .overlay-content {
    transform: translateY(0);
}

/* Project Badge */
.project-badge {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: rotate-badge 10s linear infinite;
}

@keyframes rotate-badge {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.project-badge i {
    font-size: 36px;
    color: #ffffff;
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* View Button */
.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: #ffffff;
    color: var(--tech-gradient-3);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-view:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.btn-view i {
    transition: transform 0.3s ease;
}

.btn-view:hover i {
    transform: translateX(5px);
}

/* Content Area */
.realisation-content {
    padding: 30px;
    background: #ffffff;
    position: relative;
}

.realisation-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--tech-gradient-3) 0%, 
        var(--primary-color) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.realisation-card:hover .realisation-content::before {
    transform: scaleX(1);
}

/* Category Badge */
.category-badge {
    margin-bottom: 15px;
}

.realisation-category {
    display: inline-block;
    padding: 6px 18px;
    background: linear-gradient(135deg, 
        rgba(0, 180, 219, 0.1), 
        rgba(47, 85, 212, 0.1));
    color: var(--tech-gradient-3);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    border: 1px solid rgba(0, 180, 219, 0.3);
    transition: all 0.3s ease;
}

.realisation-card:hover .realisation-category {
    background: linear-gradient(135deg, var(--tech-gradient-3), var(--primary-color));
    color: #ffffff;
    border-color: var(--tech-gradient-3);
    box-shadow: 0 5px 15px rgba(0, 180, 219, 0.3);
}

/* Title */
.realisation-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.realisation-card:hover .realisation-title {
    color: var(--tech-gradient-3);
}

/* Description */
.realisation-description {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Learn More Link */
.realisation-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tech-gradient-3);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.realisation-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--tech-gradient-3);
    transition: width 0.3s ease;
}

.realisation-link:hover::after {
    width: calc(100% - 30px);
}

.realisation-link i {
    transition: transform 0.3s ease;
}

.realisation-link:hover {
    color: var(--primary-color);
    gap: 12px;
}

.realisation-link:hover i {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 1200px) {
    .realisations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .realisations-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .realisation-image {
        height: 240px;
    }
    
    .portfolio-shapes .shape-1,
    .portfolio-shapes .shape-2 {
        display: none;
    }
}

/* Hover Effects - Additional */
.realisation-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Corner Accent */
.card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent 50%, rgba(0, 180, 219, 0.1) 50%);
    border-radius: 0 20px 0 100%;
    z-index: 1;
    transition: all 0.4s ease;
}

.realisation-card:hover .card-inner::before {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, transparent 50%, rgba(0, 180, 219, 0.2) 50%);
}

/* Number Badge on Cards */
.realisation-card::after {
    content: attr(data-number);
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--tech-gradient-3), var(--primary-color));
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 5px 20px rgba(0, 180, 219, 0.4);
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.realisation-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Loading State Skeleton */
.realisation-card.loading {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: shimmer-loading 1.5s infinite;
}

@keyframes shimmer-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

