/* Tropic Case Study Specific Styles */

/* Case Study Hero Section */
.case-study-hero {
    position: relative;
    height: 80vh;
    min-height: 80vh;
    padding: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #19365f 0%, #142a4a 50%, #fbc213 100%);
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.case-study-hero .container {
    max-width: none;
    padding: 0;
    width: 100%;
}

.case-study-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #19365f 0%, #142a4a 50%, #fbc213 100%);
    width: 100%;
    height: 100%;
    height: 80vh;
    min-height: 80vh;
}

.case-study-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.case-study-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.case-study-hero-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.case-study-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: clamp(0.4rem, 2vw, 0.5rem) clamp(1rem, 4vw, 1.5rem);
    border-radius: 25px;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.case-study-hero-title {
    font-size: clamp(4rem, 8vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.case-study-hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Content Section */
.content-section {
    padding: 6rem 0;
    background: #ffffff;
    color: #2c3e50;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.left-side {
    padding-right: 2rem;
}

.services-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.services-list {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
}

.right-side {
    padding-left: 2rem;
}

.project-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.project-description {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.8;
    margin: 0 0 1.5rem 0;
}

/* Main Product Section */
.main-product-section {
    padding: 6rem 0;
    background: #f8f9fa;
}

.product-image-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.product-image-container:hover .product-image {
    transform: scale(1.02);
}

/* Services Showcase Section */
.services-showcase-section {
    padding: 6rem 0;
    background: #ffffff;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: #2c3e50;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #ff8c00, #ffa500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.3);
}

.service-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.service-item p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Results Section */
.results-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #ff8c00, #ffa500);
    color: #ffffff;
}

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

.results-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.results-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.results-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
}

.highlight-item i {
    font-size: 1.5rem;
    color: #ffffff;
    flex-shrink: 0;
}

.highlight-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: #000000;
    color: #ffffff;
}

.cta-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: #b6bbbf;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: #fbc213;
}

.btn-outline:hover {
    background: #fbc213;
    color: #2c3e50;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.cta-logo {
    text-align: center;
}

.cta-logo img {
    max-width: 200px;
    height: auto;
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .case-study-hero-title {
        font-size: clamp(2.5rem, 8vw, 2.5rem);
    }
    
    .case-study-hero-subtitle {
        font-size: 1.3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .case-study-hero {
        height: 80vh;
        min-height: 80vh;
        padding: 0;
    }
    
    .case-study-hero-background {
        height: 80vh;
        min-height: 80vh;
    }
    
    .case-study-hero-title {
        font-size: clamp(2rem, 8vw, 2rem);
    }
    
    .case-study-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .case-study-category {
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
        padding: clamp(0.4rem, 2vw, 0.5rem) clamp(1rem, 4vw, 1.5rem);
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .left-side,
    .right-side {
        padding: 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-item {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .results-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .highlight-item {
        padding: 1rem;
    }
    
    .cta-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .case-study-hero {
        height: 80vh;
        min-height: 80vh;
        padding: 0;
    }
    
    .case-study-hero-background {
        height: 80vh;
        min-height: 80vh;
    }
    
    .case-study-hero-title {
        font-size: clamp(2rem, 8vw, 2rem);
    }
    
    .case-study-hero-subtitle {
        font-size: 1rem;
    }
    
    .content-section {
        padding: 4rem 0;
    }
    
    .project-title {
        font-size: 1.8rem;
    }
    
    .services-title {
        font-size: 1.2rem;
    }
    
    .main-product-section,
    .services-showcase-section,
    .results-section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
    
    .service-item {
        padding: 1rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .results-title {
        font-size: 2rem;
    }
    
    .results-description {
        font-size: 1rem;
    }
    
    .highlight-item {
        padding: 0.8rem;
    }
    
    .highlight-item i {
        font-size: 1.2rem;
    }
    
    .highlight-item span {
        font-size: 0.9rem;
    }

    .slider-slide {
        width: 100%;
        min-width: 100%;
        flex-shrink: 0;
    }
}

@media (max-width: 1536px) {
    .case-study-hero {
        height: 80vh;
        min-height: 80vh;
    }
    
    .case-study-hero-background {
        height: 80vh;
        min-height: 80vh;
    }

    .case-study-hero-title {
        font-size: clamp(3.5rem, 8vw, 3.5rem);
    }
}

@media (max-width: 1280px) {
    .case-study-hero {
        height: 80vh;
        min-height: 80vh;
    }
    
    .case-study-hero-background {
        height: 80vh;
        min-height: 80vh;
    }

    .case-study-hero-title {
        font-size: clamp(3rem, 8vw, 3rem);
    }
}

@media (max-width: 640px) {
    .case-study-hero {
        height: 80vh;
        min-height: 80vh;
    
    .case-study-hero-title {
        font-size: clamp(1.8rem, 8vw, 1.8rem);
    }
}
    
    .case-study-hero-background {
        height: 80vh;
        min-height: 80vh;
    }
}

@media (max-width: 360px) {
    .case-study-hero {
        height: 80vh;
        min-height: 80vh;
    
    .case-study-hero-title {
        font-size: clamp(1.2rem, 8vw, 1.2rem);
    }
}
    
    .case-study-hero-background {
        height: 80vh;
        min-height: 80vh;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .case-study-hero {
        height: 80vh;
        min-height: 100vh;
    }
    
    .case-study-hero-background {
        height: 100vh;
        min-height: 100vh;
    }
}


/* ========================================
   FOOTER SIZE REDUCTION
   ======================================== */

/* Footer Logo Size Reduction */
.footer-brand .logo {
    height: 100px !important;
    width: 140px !important;
}

/* Footer Paragraph Spacing Reduction */
.footer-brand p {
    margin-bottom: 1rem !important;
}

/* ========================================
   CASE STUDY CONTENT SECTION - UNIVERSAL
   ======================================== */

/* Content Section */
.case-study-content-section {
    padding: 6rem 0;
    background: #19365f;
    color: #ffffff;
    position: relative;
    z-index: 1;
    min-height: 400px;
    overflow: visible;
}

.case-study-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.case-study-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

/* Left Side - Services */
.case-study-services-side {
    text-align: left;
}

.case-study-services-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
    font-family: var(--font-bold);
}

.case-study-services-list {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* Right Side - Project Description */
.case-study-project-side {
    text-align: left;
}

.case-study-project-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2rem 0;
    line-height: 1.3;
    font-family: var(--font-bold);
}

.case-study-project-description {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.8;
    margin: 0;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .case-study-content-section {
        padding: 4rem 0;
    }
    
    .case-study-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .case-study-project-title {
        font-size: 1.8rem;
    }
    
    .case-study-services-title {
        font-size: 1.3rem;
    }
    
    .case-study-services-list,
    .case-study-project-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .case-study-content-section {
        padding: 3rem 0;
    }
    
    .case-study-content-grid {
        gap: 2rem;
    }
    
    .case-study-project-title {
        font-size: 1.5rem;
    }
    
    .case-study-services-title {
        font-size: 1.2rem;
    }
    
    .case-study-services-list,
    .case-study-project-description {
        font-size: 0.95rem;
    }
}

/* ========================================
   IMAGE SLIDER SECTION
   ======================================== */

.tropic-image-slider {
    padding: 80px 0;
    background: var(--light-gray);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.tropic-image-slider .slider-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 0 2rem;
}

.tropic-image-slider .slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 1.5rem;
    width: 100%;
    /* Allow natural scrolling behavior */
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
}

.tropic-image-slider .slider-slide {
    min-width: calc(33.333% - 1rem);
    flex: 0 0 calc(33.333% - 1rem);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tropic-image-slider .slider-slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
    display: block;
}

.tropic-image-slider .slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 15;
    padding: 0 1rem;
}

.tropic-image-slider .slider-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    pointer-events: auto;
    position: relative;
}

.tropic-image-slider .slider-btn.prev {
    margin-right: auto;
}

.tropic-image-slider .slider-btn.next {
    margin-left: auto;
}

.tropic-image-slider .slider-btn:hover {
    transform: scale(1.1);
}

.tropic-image-slider .slider-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Responsive Slider */
@media (max-width: 768px) {
    .tropic-image-slider {
        padding: 60px 0;
    }
    .tropic-image-slider .slider-slide {
        min-width: calc(50% - 0.75rem);
        flex: 0 0 calc(50% - 0.75rem);
    }
    .tropic-image-slider .slider-slide img {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .tropic-image-slider {
        padding: 40px 0;
    }
    .tropic-image-slider .slider-container {
        padding: 0 1rem;
    }
    .tropic-image-slider .slider-wrapper {
        gap: 0;
    }
    .tropic-image-slider .slider-slide {
        width: 100%;
        min-width: 100%;
        flex: 0 0 100%;
    }
    .tropic-image-slider .slider-slide img {
        height: 350px;
    }
    .tropic-image-slider .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}