/* Case Study Hero */
.case-study-hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    min-height: 95vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 6rem 0;
    overflow: hidden;
    text-align: center;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.95));
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    color: #fff;
}

.breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.breadcrumbs span {
    margin: 0 0.5rem;
}

.case-study-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.case-study-meta {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.case-study-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.case-study-meta i {
    margin-right: 0.5rem;
}

.hero-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
    text-align: center;
}

/* Hero Wipe Animation */
.case-study-hero .transition-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: right;
    animation: wipeIn 1s ease-in-out forwards;
}

.case-study-hero .blue-layer {
    background-color: #0066cc;
    z-index: 2;
}

.case-study-hero .green-layer {
    background-color: #00cc66;
    z-index: 1;
    animation-delay: 0.2s;
}

@keyframes wipeIn {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Regular Section Animations */
section:not(.case-study-hero) .transition-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: right;
    pointer-events: none;
}

/* Animation Layers */
.logo-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
}

.logo-layer img {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    height: 400px;
    width: auto;
}

.edge-logo-container {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    overflow: hidden;
    z-index: 10;
}

.edge-logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    height: 89%;
    width: auto;
}

/* Animated Sections */
[data-anim] {
    position: relative;
    overflow: hidden;
}

.section-content {
    position: relative;
    z-index: 4;
}

/* Parallax Background */
.parallax-bg {
    position: absolute;
    top: -30%;
    left: 0;
    width: 100%;
    height: 160%;
    background-position: center;
    background-size: cover;
    will-change: transform;
}

/* Animation Base Classes */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
}

/* Helper Classes */
.anim-delay-1 {
    animation-delay: 0.2s;
}

.anim-delay-2 {
    animation-delay: 0.4s;
}

.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }
.anim-delay-5 { animation-delay: 0.5s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    position: relative;
    z-index: 1;
    background: var(--bg-dark, #111);
}

.solutions-scroll {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 0 3rem;
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.solutions-track {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.solution-card {
    width: 300px;
    height: 300px;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #333;
    background: #222;
    color: white;
    opacity: 0;
    visibility: hidden;
    display: none;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.solution-card.active {
    opacity: 1;
    visibility: visible;
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.solution-card * {
    opacity: inherit;
}

.solution-card[style*="display: none"] {
    display: none !important;
}

.solution-card[style*="display: flex"] {
    display: flex !important;
}

.solution-card:hover {
    transform: translateY(-5px);
}

.slider-nav-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: auto;
}

.slider-nav {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 100;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background: #444;
    transform: scale(1.1);
}

@keyframes floatIcon {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(5px, 5px);
    }
    50% {
        transform: translate(0, 10px);
    }
    75% {
        transform: translate(-5px, 5px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes rotateBg {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .solutions-scroll {
        height: 400px;
    }

    .solutions-track {
        height: 300px;
    }

    .solution-card {
        width: 250px;
        height: 250px;
        padding: 1.5rem;
    }
}

/* Floating Brand Styles */
.floating-brand {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.floating-brand.visible {
    opacity: 1;
    transform: translateY(0);
}

.brand-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.brand-logo {
    width: 40px;
    height: 40px;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.brand-text {
    display: flex;
    flex-direction: column;
    color: #fff;
}

.brand-text span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-link {
    color: #4CA706;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #3478BD;
}

@media (max-width: 768px) {
    .floating-brand {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem;
    }
    
    .brand-logo {
        width: 32px;
        height: 32px;
    }
    
    .brand-text span {
        font-size: 0.8rem;
    }
    
    .contact-link {
        font-size: 1rem;
    }
}

/* Brand Mask Animation */
.brand-mask-section {
    position: relative;
    overflow: hidden;
}

.brand-mask-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.brand-mask-reveal {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    transform: translateX(0);
    background: linear-gradient(
        90deg,
        rgba(52, 120, 189, 0.98) 0%,
        rgba(76, 167, 6, 0.98) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-mask-logo {
    position: relative;
    height: auto;
    width: 50%;
    max-height: 80%;
    object-fit: contain;
    opacity: 0.2;
    filter: brightness(2) contrast(0.8);
    mix-blend-mode: soft-light;
}

.section-content {
    position: relative;
    z-index: 1;
    visibility: hidden;
}

/* Animation states */
.brand-mask-section.in-view .section-content {
    visibility: visible;
}

@media (max-width: 768px) {
    .solutions-scroll {
        height: 400px;
    }

    .solutions-track {
        height: 300px;
    }

    .solution-card {
        width: 250px;
        height: 250px;
        padding: 1.5rem;
    }
} 