/* ======= CASE STUDY PAGE STYLES ======= */

:root {
    --cs-primary: #1F3A93;
    --cs-secondary: #17A398;
    --cs-bg-dark: #0a0a0f;
    --cs-bg-light: #ffffff;
    --cs-text-light: #ffffff;
    --cs-text-dark: #1a1a1a;
    --cs-gradient: linear-gradient(135deg, var(--cs-primary), var(--cs-secondary));
}

.casestudy-page {
    background: var(--cs-bg-dark);
    color: var(--cs-text-light);
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* ======= NAVIGATION ======= */
.casestudy-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    height: 80px;
    box-sizing: border-box;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--cs-gradient);
    width: 0%;
    transition: width 0.3s ease;
}

/* ======= FRAMES CONTAINER ======= */
.frames-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(100px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    overflow: hidden;
}

.frame.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    z-index: 10;
    overflow: hidden;
}

.frame.prev {
    opacity: 0;
    transform: translateY(-100px);
    z-index: 5;
}

.frame.next {
    opacity: 0;
    transform: translateY(100px);
    z-index: 5;
}

.frame-content {
    max-width: 1400px;
    width: 100%;
    padding: 9rem 4rem 2rem;
    position: relative;
    height: calc(100vh - 9rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.frame-number {
    position: absolute;
    top: 1rem;
    left: 4rem;
    font-size: 6rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
    z-index: 0;
    pointer-events: none;
}

.frame-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    background: var(--cs-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

/* ======= HERO FRAME ======= */
.frame-hero {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.client-logo {
    margin-bottom: 1rem;
    opacity: 0;
    transform: scale(0.8);
    animation: fadeInScale 1s ease 0.3s forwards;
}

.client-logo img {
    max-width: 180px;
    height: auto;
    filter: brightness(1.1);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.6rem;
    font-family: 'Montserrat', sans-serif;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.5s;
}

.title-line:nth-child(2) {
    animation-delay: 0.7s;
}

.title-line .highlight {
    background: var(--cs-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.4rem;
    opacity: 0;
    animation: fadeInUp 1s ease 1.1s forwards, bounce 2s ease infinite 2s;
}

.scroll-indicator i {
    font-size: 2rem;
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

/* ======= CHALLENGE FRAME ======= */
.frame-challenge {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.challenge-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.challenge-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.challenge-icon {
    width: 40px;
    height: 40px;
    background: var(--cs-gradient);
    border-radius: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
    font-size: 1.6rem;
    color: white;
}

.challenge-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    color: var(--cs-text-light);
}

.challenge-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0;
}

/* ======= SOLUTION FRAME ======= */
.frame-solution {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
}

.frame-solution .frame-content {
    padding-top: 6rem;
    padding-bottom: 0.5rem;
    justify-content: flex-start;
    height: calc(100vh - 6rem);
}

.solution-stack {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.solution-item {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 0.8rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.7rem;
    padding: 0.7rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.solution-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
}

.solution-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.solution-icon {
    width: 45px;
    height: 45px;
    background: var(--cs-gradient);
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    box-shadow: 0 10px 40px rgba(31, 58, 147, 0.3);
}

.solution-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    color: var(--cs-text-light);
}

.solution-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.15;
    margin-bottom: 0;
}

/* ======= TECHNICAL FRAME ======= */
.frame-technical {
    background: linear-gradient(135deg, #0f3460 0%, #0a2647 100%);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
}

.tech-category {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem;
}

.tech-category h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--cs-text-light);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-tag {
    background: var(--cs-gradient);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.dashboard-features {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.2rem;
    margin-top: 0.8rem;
}

.dashboard-features h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--cs-text-light);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.feature-item i {
    color: var(--cs-secondary);
    font-size: 1.2rem;
}

/* ======= RESULTS FRAME ======= */
.frame-results {
    background: linear-gradient(135deg, #0a2647 0%, #144272 100%);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.result-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
    perspective: 1000px;
}

.result-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px) rotateY(5deg);
}

.result-icon {
    width: 55px;
    height: 55px;
    background: var(--cs-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 40px rgba(31, 58, 147, 0.3);
}

.result-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    color: var(--cs-text-light);
}

.result-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0;
}

/* ======= TESTIMONIAL FRAME ======= */
.frame-testimonial {
    background: linear-gradient(135deg, #144272 0%, #1e5490 100%);
}

.testimonial-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.quote-icon {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 1.2rem;
}

.testimonial-quote {
    font-size: 1.6rem;
    line-height: 1.4;
    color: var(--cs-text-light);
    font-style: italic;
    margin-bottom: 1.2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.author-info h4 {
    font-size: 1.6rem;
    color: var(--cs-text-light);
    margin-bottom: 0.2rem;
}

.author-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    margin-bottom: 0;
}

/* ======= CTA FRAME ======= */
.frame-cta {
    background: linear-gradient(135deg, #1e5490 0%, #2a6bb5 100%);
}

.cta-title {
    font-size: 2.6rem;
    text-align: center;
    margin-bottom: 0.6rem;
    color: var(--cs-text-light);
}

.cta-subtitle {
    font-size: 1.3rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.cta-button {
    padding: 0.9rem 2rem;
    border-radius: 0.7rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: var(--cs-gradient);
    color: white;
    box-shadow: 0 10px 40px rgba(31, 58, 147, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(31, 58, 147, 0.4);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ======= FRAME INDICATORS ======= */
.frame-indicators {
    position: fixed;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.frame-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.frame-indicator.active {
    background: white;
    transform: scale(1.3);
}

.frame-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.frame-indicator.active::after {
    opacity: 1;
}

/* ======= ANIMATIONS ======= */
[data-animate] {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].animate {
    opacity: 1;
}

[data-animate="fade-up"] {
    transform: translateY(50px);
}

[data-animate="fade-up"].animate {
    transform: translateY(0);
}

[data-animate="fade-in"] {
    opacity: 0;
}

[data-animate="fade-in"].animate {
    opacity: 1;
}

[data-animate="slide-left"] {
    transform: translateX(-100px);
}

[data-animate="slide-left"].animate {
    transform: translateX(0);
}

[data-animate="slide-right"] {
    transform: translateX(100px);
}

[data-animate="slide-right"].animate {
    transform: translateX(0);
}

[data-animate="zoom-in"] {
    transform: scale(0.8);
}

[data-animate="zoom-in"].animate {
    transform: scale(1);
}

[data-animate="flip"] {
    transform: rotateY(90deg);
}

[data-animate="flip"].animate {
    transform: rotateY(0);
}

/* ======= RESPONSIVE ======= */
@media (max-width: 1024px) {
    .frame-content {
        padding: 10rem 3rem 4rem;
    }
    
    .frame-number {
        top: 1rem;
        left: 3rem;
        font-size: 6rem;
    }
    
    .challenge-grid,
    .tech-grid,
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .solution-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .frame-title {
        font-size: 3.5rem;
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 2rem;
    }
    
    .frame-content {
        padding: 8rem 2rem 3rem;
    }
    
    .frame-number {
        font-size: 5rem;
        left: 2rem;
        top: 1rem;
    }
    
    .frame-title {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .challenge-item,
    .solution-item,
    .tech-category,
    .result-card {
        padding: 1.5rem;
    }
    
    .challenge-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .solution-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }
    
    .result-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }
    
    .testimonial-quote {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 3rem;
    }
    
    .cta-subtitle {
        font-size: 1.6rem;
    }
    
    .frame-indicators {
        right: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

