/* ===============================================
   PROJECT DETAIL PAGE - REVOLUTIONARY 3D DESIGN
   =============================================== */

/* Enhanced Project Detail Page Styling */
.main {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    overflow: hidden;
}

/* 3D Background Pattern */
.main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(76, 175, 80, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(76, 175, 80, 0.03) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Enhanced Container */
.container.main {
    position: relative;
    z-index: 1;
    padding: 4rem 15px;
}

/* Revolutionary Project Title Section */
.container.main h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    
    /* 3D Text Effect */
    background: linear-gradient(135deg, #2c3e50 0%, #4CAF50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Text Shadow for Depth */
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: -2px;
    line-height: 1.1;
    
    /* 3D Transform */
    transform: translateZ(20px);
    transition: all 0.3s ease;
}

.container.main h1 span {
    display: block;
    color: #4CAF50;
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 0.5rem;
    
    /* Subtle animation */
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(76, 175, 80, 0.5);
    }
}

/* Enhanced Description */
.container.main p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #6c757d;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-weight: 400;
    
    /* Subtle 3D effect */
    transform: translateZ(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Modern HR Styling */
.abouthr {
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    border: none;
    border-radius: 2px;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
    
    /* 3D Transform */
    transform: translateZ(15px);
}

/* Shine effect for HR */
.abouthr::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: hrShine 2s ease-in-out infinite;
}

@keyframes hrShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===============================================
   ENHANCED SLIDESHOW SECTION
   =============================================== */

/* Revolutionary Slideshow Container */
.slideshow-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto 4rem;
    border-radius: 24px;
    overflow: hidden;
    
    /* Advanced 3D Transform */
    transform: translateZ(30px) perspective(1000px);
    transform-style: preserve-3d;
    
    /* Enhanced Shadow System */
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.15),
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(76, 175, 80, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    
    /* Glassmorphism */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slideshow-container:hover {
    transform: translateZ(40px) perspective(1000px) rotateX(2deg) rotateY(2deg) scale(1.02);
    
    /* Enhanced hover shadow */
    box-shadow: 
        0 60px 120px rgba(0, 0, 0, 0.2),
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 15px 30px rgba(76, 175, 80, 0.2),
        0 0 0 1px rgba(76, 175, 80, 0.3),
        0 0 60px rgba(76, 175, 80, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

/* Enhanced Slideshow */
.slideshow {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 24px;
}

/* Slideshow Images */
.slideshow__image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1.1);
    filter: contrast(1.1) saturate(1.1);
}

.slideshow__item.active .slideshow__image {
    transform: scale(1);
}

/* Enhanced Navigation Arrows */
.slideshow__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    
    /* Modern Button Styling */
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Glassmorphism */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    
    /* 3D Shadow */
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.slideshow__nav--prev {
    left: 2rem;
}

.slideshow__nav--next {
    right: 2rem;
}

.slideshow__nav:hover {
    background: rgba(76, 175, 80, 0.9);
    color: white;
    transform: translateY(-50%) scale(1.1);
    
    /* Enhanced hover shadow */
    box-shadow: 
        0 12px 24px rgba(76, 175, 80, 0.3),
        0 6px 12px rgba(76, 175, 80, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.slideshow__nav svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.slideshow__nav:hover svg {
    transform: scale(1.2);
}

/* ===============================================
   FIXED CONTROL BUTTONS
   =============================================== */

/* Enhanced Control Buttons */
.button-control-right {
    position: fixed;
    right: 50px;
    bottom: 50px;
    z-index: 1000;
    
    /* Modern Button Design */
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    
    /* Button Content */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    
    /* 3D Transform */
    transform: translateZ(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Enhanced Shadow */
    box-shadow: 
        0 8px 16px rgba(76, 175, 80, 0.3),
        0 4px 8px rgba(76, 175, 80, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    
    /* Border */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.button-control-right:hover {
    transform: translateZ(30px) scale(1.1);
    color: white;
    text-decoration: none;
    
    /* Enhanced hover shadow */
    box-shadow: 
        0 16px 32px rgba(76, 175, 80, 0.4),
        0 8px 16px rgba(76, 175, 80, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

/* Stack multiple control buttons */
.button-control-right:nth-child(2) {
    bottom: 130px;
    background: linear-gradient(135deg, #FF0000 0%, #FF4444 100%);
    box-shadow: 
        0 8px 16px rgba(255, 0, 0, 0.3),
        0 4px 8px rgba(255, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.button-control-right:nth-child(2):hover {
    box-shadow: 
        0 16px 32px rgba(255, 0, 0, 0.4),
        0 8px 16px rgba(255, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.button-control-right:nth-child(3) {
    bottom: 210px;
    background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
    box-shadow: 
        0 8px 16px rgba(255, 152, 0, 0.3),
        0 4px 8px rgba(255, 152, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.button-control-right:nth-child(3):hover {
    box-shadow: 
        0 16px 32px rgba(255, 152, 0, 0.4),
        0 8px 16px rgba(255, 152, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

/* ===============================================
   ENHANCED SECTIONS
   =============================================== */

/* Section Styling */
#about, #blog, #team {
    position: relative;
    padding: 6rem 0;
    background: transparent;
}

/* Section Titles */
.section-tlte h4 {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    
    /* 3D Text Effect */
    background: linear-gradient(135deg, #2c3e50 0%, #4CAF50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    letter-spacing: -1px;
    transform: translateZ(15px);
}

.section-tlte p {
    font-size: 1.2rem;
    color: #6c757d;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* ===============================================
   TEAM SECTION ENHANCEMENTS
   =============================================== */

/* Enhanced Team Cards */
.team-member-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    /* 3D Transform */
    transform: translateZ(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Enhanced Shadow */
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.team-member-card:hover {
    transform: translateZ(20px) translateY(-10px) scale(1.02);
    
    /* Enhanced hover shadow */
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 15px 30px rgba(76, 175, 80, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

/* ===============================================
   BLOG SECTION ENHANCEMENTS
   =============================================== */

/* Enhanced Blog Cards */
.post-slide {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    /* 3D Transform */
    transform: translateZ(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Enhanced Shadow */
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.post-slide:hover {
    transform: translateZ(20px) translateY(-10px) scale(1.02);
    
    /* Enhanced hover shadow */
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 15px 30px rgba(76, 175, 80, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

/* ===============================================
   MODERN 3D BLOG CAROUSEL
   =============================================== */

.modern-blog-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f2f5 100%);
    position: relative;
    overflow: hidden;
}

.modern-blog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(76, 175, 80, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(46, 125, 50, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.section-title-blog {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-title-blog h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #2d2d2d;
    background: linear-gradient(135deg, #2c3e50 0%, #4CAF50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.title-underline-blog {
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    margin: 0 auto 20px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.title-underline-blog::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Carousel Container */
.blog-carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 10px 20px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateZ(0);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.blog-carousel-container:hover {
    transform: translateZ(10px) scale(1.01);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.12),
        0 15px 30px rgba(76, 175, 80, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.blog-carousel-wrapper {
    padding: 40px 20px;
    overflow: hidden;
}

/* Carousel Track */
.blog-carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 30px;
    will-change: transform;
    
    /* Add infinite scroll animation by default */
    animation: infiniteScroll 30s linear infinite;
}

/* Pause animation on hover */
.blog-carousel-track:hover {
    animation-play-state: paused;
}

/* Pause animation when user interacts */
.blog-carousel-container:hover .blog-carousel-track {
    animation-play-state: paused;
}

/* Enhanced Blog Card Styling */
.blog-carousel-track .post-slide {
    flex: 0 0 350px;
    height: 420px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    position: relative;
    cursor: pointer;
    
    /* 3D Transform */
    transform: translateZ(0) perspective(1000px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Enhanced Shadow System */
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.08),
        0 8px 15px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.blog-carousel-track .post-slide:hover {
    transform: translateZ(20px) translateY(-10px) rotateX(5deg) scale(1.03);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 12px 25px rgba(76, 175, 80, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

/* Blog Image Styling */
.blog-carousel-track .post-img {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(46, 125, 50, 0.1));
}

.blog-carousel-track .post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: contrast(1.1) saturate(1.1);
}

.blog-carousel-track .post-slide:hover .post-img img {
    transform: scale(1.08);
}

.blog-carousel-track .post-img .over-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.8), rgba(46, 125, 50, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.5rem;
    backdrop-filter: blur(5px);
}

.blog-carousel-track .post-slide:hover .post-img .over-layer {
    opacity: 1;
}

/* Blog Content Styling */
.blog-carousel-track .post-content {
    padding: 25px;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-carousel-track .post-title {
    margin-bottom: 15px;
}

.blog-carousel-track .post-title a {
    color: #2d2d2d;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.blog-carousel-track .post-title a:hover {
    color: #4CAF50;
}

.blog-carousel-track .post-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.blog-carousel-track .post-date {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-carousel-track .read-more {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-carousel-track .read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
    text-decoration: none;
    color: white;
}

/* Navigation Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 -10px;
    pointer-events: none;
    z-index: 10;
}

.carousel-nav {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #4CAF50;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.05);
    pointer-events: all;
    transform: translateZ(20px);
}

.carousel-nav:hover {
    background: #4CAF50;
    color: white;
    transform: translateZ(30px) scale(1.1);
    box-shadow: 
        0 12px 24px rgba(76, 175, 80, 0.3),
        0 6px 12px rgba(76, 175, 80, 0.2);
}

.carousel-nav.prev {
    left: -30px;
}

.carousel-nav.next {
    right: -30px;
}

.carousel-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Progress Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 0;
    margin-top: 20px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-indicator.active {
    background: #4CAF50;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

.carousel-indicator:hover {
    background: rgba(76, 175, 80, 0.6);
    transform: scale(1.1);
}

/* Auto-scroll Animation */
.carousel-track-auto {
    animation: infiniteScroll 20s linear infinite;
}

@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-380px * var(--blog-cards, 3)));
    }
}

/* Dynamic CSS variable for number of cards */
.blog-carousel-track {
    --blog-cards: 3; /* Default fallback */
}

/* Override animation when user controls are active */
.blog-carousel-track.user-controlled {
    animation: none;
}

.blog-carousel-track:hover {
    animation-play-state: paused;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

@media (max-width: 768px) {
    /* Blog Carousel Mobile Responsive */
    .modern-blog-section {
        padding: 60px 0;
    }
    
    .section-title-blog h2 {
        font-size: 2.5rem;
    }
    
    .blog-carousel-container {
        margin: 0 10px;
        border-radius: 16px;
    }
    
    .blog-carousel-wrapper {
        padding: 20px 10px;
    }
    
    .blog-carousel-track {
        gap: 20px;
    }
    
    .blog-carousel-track .post-slide {
        flex: 0 0 280px;
        height: 380px;
    }
    
    .blog-carousel-track .post-img {
        height: 160px;
    }
    
    .blog-carousel-track .post-content {
        padding: 20px;
        height: 220px;
    }
    
    .blog-carousel-track .post-title a {
        font-size: 1.1rem;
    }
    
    .carousel-nav {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .carousel-nav.prev {
        left: -25px;
    }
    
    .carousel-nav.next {
        right: -25px;
    }
    
    .container.main h1 {
        font-size: 2.5rem;
    }
    
    .container.main h1 span {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .slideshow-container {
        margin: 0 1rem 3rem;
    }
    
    .slideshow {
        height: 300px;
    }
    
    .slideshow__nav {
        width: 50px;
        height: 50px;
    }
    
    .slideshow__nav--prev {
        left: 1rem;
    }
    
    .slideshow__nav--next {
        right: 1rem;
    }
    
    .button-control-right {
        width: 50px;
        height: 50px;
        right: 20px;
        bottom: 20px;
        font-size: 1.25rem;
    }
    
    .button-control-right:nth-child(2) {
        bottom: 80px;
    }
    
    .button-control-right:nth-child(3) {
        bottom: 140px;
    }
}

@media (max-width: 480px) {
    /* Extra Small Mobile Blog Carousel */
    .section-title-blog h2 {
        font-size: 2rem;
    }
    
    .blog-carousel-track .post-slide {
        flex: 0 0 250px;
        height: 350px;
    }
    
    .blog-carousel-track .post-img {
        height: 140px;
    }
    
    .blog-carousel-track .post-content {
        padding: 15px;
        height: 210px;
    }
    
    .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .carousel-nav.prev {
        left: -22px;
    }
    
    .carousel-nav.next {
        right: -22px;
    }
    
    .container.main {
        padding: 2rem 15px;
    }
    
    .container.main h1 {
        font-size: 2rem;
    }
    
    .container.main h1 span {
        font-size: 1.25rem;
    }
    
    .slideshow {
        height: 250px;
    }
}

/* ===============================================
   CONTENT CARDS - IMPROVED DESIGN
   =============================================== */

.content-card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 50px 35px;
    position: relative;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.96) 0%, 
        rgba(248, 254, 252, 0.93) 15%, 
        rgba(240, 250, 248, 0.90) 35%, 
        rgba(232, 245, 242, 0.88) 50%, 
        rgba(240, 250, 248, 0.90) 65%, 
        rgba(248, 254, 252, 0.93) 85%, 
        rgba(255, 255, 255, 0.96) 100%);
    border-radius: 32px;
    backdrop-filter: blur(25px) saturate(1.1);
    border: 2px solid rgba(76, 175, 80, 0.2);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.1),
        0 12px 25px rgba(76, 175, 80, 0.15),
        0 6px 15px rgba(76, 175, 80, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(76, 175, 80, 0.08);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    perspective: 1000px;
    overflow: visible;
    opacity: 0;
    transform: translateX(-120px) scale(0.95);
    animation: slideInFromSide 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-play-state: paused;
}

.content-card-row.animate {
    animation-play-state: running;
}

/* Alternating layout */
.content-card-row:nth-child(even) {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.content-card-row:nth-child(even) > * {
    direction: ltr;
}

.content-card-row:nth-child(2) {
    transform: translateX(150px) scale(0.9);
    animation-name: slideInFromSideRight;
}

/* Direction-aware hover handled by JavaScript */

/* ===============================================
   PERFORMANCE OPTIMIZATIONS
   =============================================== */

/* Force hardware acceleration */
.slideshow-container,
.slideshow__image,
.button-control-right,
.team-member-card,
.post-slide {
    will-change: transform, box-shadow;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .slideshow-container:hover,
    .button-control-right:hover,
    .team-member-card:hover,
    .post-slide:hover {
        transform: none;
    }
    
    .titleGlow,
    .hrShine {
        animation: none;
    }
}
