@import "./theme.css";

/* --- Careers Section --- */ 
.case-studies-hero {  
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Align items to the top for better spacing */
    gap: 40px;
    flex-wrap: wrap;
}
.case-studies-hero .hero-images{
    display: none;
}
.case-studies-hero .container { 
    width: 100%; 
    max-width: var(--max-container);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 120px 0px 50px 0px;
    background-image: url("../img/case-studies.png");
    background-repeat: no-repeat;
    background-size: 50%;
    background-position: right;
}

.case-studies-hero .careers-content {
    flex: 2;
    min-width: 300px; 
    /* Ensure content doesn't shrink too much */
}
.case-studies-hero .hero h1.brand-style-1  {
    font-size: 65px;
    font-weight: 300;
    color: var(--dark-blue);
    margin-bottom: 20px;
    line-height: 76px;
}

.case-studies-hero h1.brand-style-1  {
    font-size: 55px;
    font-weight: 300;
    color: var(--dark-blue);
    margin-bottom: 20px;
    line-height: 76px;
}

.case-studies-hero h1.brand-style-1 span {
    color: var(--primary-color);
}

.case-studies-hero p {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 40px;
    max-width: 600px;
}

.case-studies-hero .hero-actions {
    display: flex;
    gap: 20px;
}


/* --- Slider Container & Wrapper --- */
.case-studies{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0 120px 0;
    overflow: hidden;
}
.case-studies .slider-container { 
    max-width: var(--max-container);
    position: relative; 
    perspective: 1500px; /* Enable 3D space for rotation */
}

.case-studies .slider-wrapper {
    position: relative;
    top: 50%;
    left: 0; /* JS will calculate the correct horizontal position */
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: grab;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.case-studies .slider-wrapper.grabbing {
    cursor: grabbing;
}

/* --- 3. Individual Slide Styling --- */
.case-studies .slide {
    flex-shrink: 0;
    max-width: var(--max-container);
    width: 90vw;
    background-color: var(--white);
    border-radius: 40px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    user-select: none;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.6s ease;
}

/* Styles for active vs inactive slides */
.case-studies .slide {
    transform: scale(0.85);
    opacity: 0.6;
    box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
}
.case-studies .slide.active {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.1);
}
.case-studies .slide.prev {
    transform: rotateY(20deg) scale(1);
}
.case-studies .slide.next {
    transform: rotateY(-20deg) scale(1);
}

.case-studies .case-study-content {
    display: flex;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.case-studies .column { flex: 1; }

/* --- 4. Content & Typography --- */
.case-studies .slide h1 {
    font-size: 55px;
    color: var(--dark-blue);
    font-weight: 300;
    margin-bottom: 30px;
    max-width: 70%;
    line-height: 60px;
}

.case-studies .column h2 {
    font-size: 28px;
    color: var(--dark-blue);
    font-weight: 300;
    margin-bottom: 0px;
}

.case-studies .column ul { list-style: none; padding: 0; margin: 0; margin-bottom: 20px; }
.case-studies .column li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 0px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-color);
}
.case-studies .column li::before {
    content: '•';
    color: var(--text-color);
    font-weight: bold;
    position: absolute;
    font-size: 30px;
    line-height: 30px;
    opacity: 0.7;
    left: 0;
    top: 0;
}
.case-studies .column li strong { color: var(--primary-color); font-weight: 600; }

.case-studies .challenge-approach{
    flex-basis: 20%;
    border-right: 1px solid #ccc;
    padding-right: 40px;
}
.case-studies .results{
    padding-right: 40px;
}
.case-studies .background-circle {
    position: absolute;
    width: 100%;
    max-width: var(--max-container);
    flex: auto;
    max-height: 640px;
    left: 0px;
    top: 0px; 
    display: contents;
} 

.case-studies .pink-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: absolute;
    top: -70px;
    right: -100px;
    background: #F4D8F2; 
}

.case-studies .blue-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    position: absolute;
    bottom: -180px;
    right: 30px;
    background: transparent;
}

.case-studies .blue-circle .front-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    position: absolute;
    top: -30px;
    left: 30px;
    background: #ACDEF7;
    background: linear-gradient(130deg, rgba(172, 222, 247, 1) 0%, rgba(9, 168, 252, 1) 100%);
}

.case-studies .blue-circle .back-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    position: absolute;
    top: -40px;
    left: 60px;
    opacity: 0.5;
    background: #ACDEF7;
    background: linear-gradient(130deg, rgba(172, 222, 247, 1) 0%, rgba(9, 168, 252, 1) 100%);
}

/* --- 6. Slider Navigation Dots --- */
.case-studies .slider-navigation {
    text-align: center;
    position: absolute;
    bottom: -50px;
    width: 100%;
}

.case-studies .nav-dot {
    display: inline-block;
    width: 12px; height: 12px;
    border-radius: 50%;
    background-color: var(--text-light);
    border: none;
    margin: 0 5px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
}
.case-studies .nav-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
    opacity: 1;
}