/* Case Studies Page - Premium Design */

/* Hero Section */
.case-hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: white;
}

.hero-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    padding-top: 120px;
}

.case-hero h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto 40px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1.5s ease;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.hero-scroll span {
    margin-bottom: 10px;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.hero-scroll i {
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Testimonial Navigation */
.testimonial-nav {
    position: sticky;
    top: 80px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    z-index: 90;
    padding: 15px 0;
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.nav-tab {
    padding: 15px 25px;
    border: none;
    background-color: transparent;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.nav-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-tab.active, .nav-tab:hover {
    color: var(--primary-color);
}

.nav-tab.active::before {
    transform: scaleX(1);
}

.nav-tab i {
    font-size: 1.1rem;
}

/* Transformation Stories */
.transformation-stories {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.story-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    margin-bottom: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.story-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.05);
}

.story-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.story-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.story-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.client-rating {
    color: #FFD700;
}

.story-date {
    font-size: 0.9rem;
    color: var(--light-text);
}

.story-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.story-excerpt {
    margin-bottom: 25px;
    flex-grow: 1;
    position: relative;
    padding-left: 20px;
}

.story-excerpt::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: serif;
    line-height: 1;
}

.btn-read-story {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    align-self: flex-start;
}

.btn-read-story:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 104, 56, 0.2);
}

/* Story Modal */
.story-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.story-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.story-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 40px;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

/* Video Testimonials */
.video-testimonials {
    padding: 100px 0;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.video-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-10px);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-caption {
    padding: 20px;
    text-align: center;
}

.video-caption h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.video-caption p {
    color: var(--light-text);
}

/* Results CTA */
.results-cta {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.results-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/cta-pattern.png') repeat;
    opacity: 0.1;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.cta-text h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: white;
}

.cta-text p {
    font-size: 1.3rem;
    margin-bottom: 50px;
    opacity: 0.9;
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
    font-family: 'Cormorant Garamond', serif;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 18px 35px;
    font-size: 1.1rem;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Share Your Story */
.share-story {
    padding: 100px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.share-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.share-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--light-text);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .case-hero h1 {
        font-size: 4rem;
    }
}

@media (max-width: 992px) {
    .case-hero h1 {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .nav-tabs {
        flex-wrap: wrap;
    }
    
    .story-image {
        height: 250px;
    }
    
    .cta-text h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .case-hero {
        min-height: 700px;
    }
    
    .case-hero h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .nav-tab {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .cta-text h2 {
        font-size: 2.2rem;
    }
    
    .cta-text p {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
}

@media (max-width: 576px) {
    .case-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-scroll {
        bottom: 20px;
    }
    
    .nav-tab {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .nav-tab i {
        display: none;
    }
    
    .story-card h3 {
        font-size: 1.3rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    .share-content h2 {
        font-size: 2rem;
    }
}
.testimonial-nav {
    position: sticky;
    top: 0px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    z-index: 90;
    padding: 15px 0;
}
.story-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.story-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}
.share-story {
    padding: 100px 0;
 background: linear-gradient(rgb(8 108 62 / 40%), hsl(11deg 86.43% 83.76% / 50%)), url(../images/transformation.jpg) no-repeat center center / cover !important;
    text-align: center;
}
.share-content.aos-init.aos-animate {
    background: white;
    padding: 40px;
    border-radius: 32px;
}
.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
    font-family: montserrate;
}
.results-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2a9d8f;
    /* background: url(../images/cta-pattern.png) repeat; */
    opacity: 1;
    z-index: 1;
}

.experience-badge {
    display: none !important;
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 20px;
    border-radius: 15px;
    width: 140px;
    height: 140px;
    display: flex
;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 30px rgba(255, 154, 118, 0.3);
    z-index: 2;
}
.btn-read-story:hover {
    background-color: var(--primary-dark) !important;
    color: #1f845a !important
    ;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 104, 56, 0.2);
}