/* --- SLIDER CINEMATIQUE ET KEN BURNS EFFECT --- */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: 92vh;
    min-height: 600px;
    overflow: hidden;
    background-color: var(--color-dark);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.15);
    transition: transform 7s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.hero-slide.active .hero-slide-image {
    transform: scale(1);
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(11, 25, 44, 0.4) 0%, rgba(11, 25, 44, 0.85) 100%);
    z-index: 2;
}

.hero-slide-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: #ffffff;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-slide-content h2 {
    font-size: 58px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.15;
    margin-bottom: 24px;
    text-shadow: 0 4px 15px rgba(11, 25, 44, 0.5);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.3, 1, 0.3, 1) 0.4s, transform 1s cubic-bezier(0.3, 1, 0.3, 1) 0.4s;
}

.hero-slide-content p {
    font-size: 21px;
    font-weight: 400;
    color: #f1f5f9;
    margin-bottom: 40px;
    max-width: 720px;
    text-shadow: 0 2px 10px rgba(11, 25, 44, 0.4);
    line-height: 1.7;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.3, 1, 0.3, 1) 0.6s, transform 1s cubic-bezier(0.3, 1, 0.3, 1) 0.6s;
}

.hero-slide-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.3, 1, 0.3, 1) 0.8s, transform 1s cubic-bezier(0.3, 1, 0.3, 1) 0.8s;
}

.hero-slide.active h2,
.hero-slide.active p,
.hero-slide.active .hero-slide-buttons {
    opacity: 1;
    transform: translateY(0);
}

/* Arrows with glassmorphism */
.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
    z-index: 10;
}

.hero-slider-nav:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 25px rgba(30, 95, 148, 0.5);
}

.hero-slider-prev { left: 40px; }
.hero-slider-next { right: 40px; }

/* Dots styling */
.hero-slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    z-index: 10;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition-medium);
}

.hero-slider-dot.active {
    background-color: var(--color-accent);
    transform: scale(1.5);
    box-shadow: 0 0 10px var(--color-accent);
}

@media (max-width: 768px) {
    .hero-slide-content h2 { font-size: 36px; }
    .hero-slide-content p { font-size: 17px; }
    .hero-slide-buttons { flex-direction: column; width: 100%; gap: 12px; }
    .hero-slider-nav { display: none; }
}


/* --- THE BEFORE-AFTER SLIDER (PULSING INTERACTIVE BAR) --- */
.before-after-container {
    width: 100%;
    max-width: 960px;
    margin: 50px auto;
    position: relative;
    height: 540px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    user-select: none;
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.ba-before { z-index: 1; }
.ba-after { z-index: 2; width: 50%; }

.ba-label {
    position: absolute;
    bottom: 30px;
    padding: 8px 18px;
    background: rgba(11, 25, 44, 0.85);
    color: #ffffff;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    z-index: 5;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.ba-label-before { left: 30px; }
.ba-label-after { right: 30px; }

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 6px;
    background-color: var(--color-accent);
    cursor: ew-resize;
    z-index: 10;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(245, 166, 35, 0.8);
}

.ba-handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: var(--color-accent);
    border: 4px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark);
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(11, 25, 44, 0.4);
    transition: background-color 0.2s, transform 0.2s;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(245, 166, 35, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); }
}

.ba-handle:hover .ba-handle-button {
    background-color: #ffffff;
    transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 768px) {
    .before-after-container { height: 380px; }
}


/* --- ULTRA-PREMIUM CARDS (SERVICES, WHY, SECTORS) --- */
.premium-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
    position: relative;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(30, 95, 148, 0.2);
}

.premium-card-img {
    height: 230px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.premium-card-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(11, 25, 44, 0.5));
}

.premium-card-body {
    padding: 35px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.premium-card-icon-container {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    background-color: rgba(30, 95, 148, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 25px;
    transition: var(--transition-fast);
}

.premium-card:hover .premium-card-icon-container {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: scale(1.1);
}

.premium-card-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.premium-card-desc {
    color: var(--color-text-light);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 24px;
}


/* --- TESTIMONIALS (GLASSMORPHIC SLATE CARD) --- */
.testimonials-slider-container {
    max-width: 860px;
    margin: 50px auto 0;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 20px;
}

.testimonials-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 50px;
    text-align: center;
}

.testimonial-quote-icon {
    font-size: 50px;
    color: rgba(30, 95, 148, 0.15);
    line-height: 1;
    margin-bottom: 10px;
}

.testimonial-quote {
    font-size: 20px;
    font-style: italic;
    color: var(--color-secondary);
    line-height: 1.8;
    margin-bottom: 35px;
    font-weight: 500;
}

.testimonial-rating {
    color: var(--color-accent);
    font-size: 22px;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.testimonial-author-name {
    font-weight: 800;
    color: var(--color-dark);
    font-size: 18px;
    margin-bottom: 4px;
}

.testimonial-author-company {
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}


/* --- PORTFOLIO FILTERABLE GRID AND TRANSITIONS --- */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 12px 28px;
    background-color: var(--color-light);
    color: var(--color-text-light);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-medium);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 10px 20px -5px rgba(30, 95, 148, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition-medium);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(30, 95, 148, 0.2);
}

.portfolio-item-image {
    height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.portfolio-item-content {
    padding: 30px;
}

.portfolio-item-cat {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.portfolio-item-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.portfolio-item-meta {
    font-size: 13px;
    color: var(--color-text-light);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    margin-top: 20px;
    font-weight: 600;
}
