.project-slider-container {
    background-color: #f8f9fa;
    padding: 80px 20px;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Slider Effects Support */
.project-slider {
    position: relative;
    margin: 0 60px;
    overflow: hidden;
}

/* Fade Effect */
.project-slider .swiper-slide {
    transition: opacity 0.3s ease;
}

/* Cube Effect */
.project-slider.swiper-cube {
    overflow: visible;
}

.project-slider.swiper-cube .swiper-slide {
    pointer-events: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.project-slider.swiper-cube .swiper-slide-active,
.project-slider.swiper-cube .swiper-slide-next,
.project-slider.swiper-cube .swiper-slide-prev {
    pointer-events: auto;
}

/* Coverflow Effect */
.project-slider.swiper-coverflow {
    overflow: visible;
}

.project-slider.swiper-coverflow .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    height: 300px;
}

/* Cards Effect */
.project-slider.swiper-cards {
    overflow: visible;
}

.project-slider.swiper-cards .swiper-slide {
    border-radius: 20px;
    overflow: hidden;
}

/* Flip Effect */
.project-slider.swiper-flip {
    overflow: visible;
}

.project-slider.swiper-flip .swiper-slide {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Creative Effect */
.project-slider.swiper-creative {
    overflow: visible;
}

.project-slider.swiper-creative .swiper-slide {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Effect-specific adjustments for project cards */
.swiper-cube .project-card,
.swiper-flip .project-card,
.swiper-cards .project-card {
    height: 100%;
    overflow: hidden;
}

/* Ensure proper 3D perspective for 3D effects */
.swiper-cube,
.swiper-flip,
.swiper-coverflow,
.swiper-cards,
.swiper-creative {
    -webkit-perspective: 1200px;
    perspective: 1200px;
}

/* Loading state for effects */
.project-slider:not(.swiper-initialized) .swiper-slide:not(:first-child) {
    display: none;
}

.swiper-slide {
    height: auto;
}

.project-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    min-height: 500px;
}

.project-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px 0 0 20px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    line-height: 1.3;
}

.project-description {
    font-size: 1rem;
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 30px;
}

.technologies-used {
    margin-bottom: 30px;
}

.technologies-used h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #7f8c8d;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: #3498db;
    color: #ffffff;
    transform: translateY(-2px);
}

.project-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.demo-btn {
    background: #2c3e50;
    color: #ffffff;
}

.demo-btn:hover {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.code-btn {
    background: transparent;
    color: #2c3e50;
    border: 2px solid #2c3e50;
}

.code-btn:hover {
    background: #2c3e50;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.2);
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: #2c3e50;
    background: #ffffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: 600;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #2c3e50;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.2);
}

/* Navigation Outside Position (Default) */
.nav-outside .swiper-button-prev {
    left: 10px;
}

.nav-outside .swiper-button-next {
    right: 10px;
}

/* Navigation Inside Position */
.nav-inside .swiper-button-prev {
    left: 20px;
}

.nav-inside .swiper-button-next {
    right: 20px;
}

/* Swiper Pagination */
.swiper-pagination {
    text-align: center;
    z-index: 10;
}

/* Pagination Outside Position (Default) */
.pagination-outside {
    padding-bottom: 60px; /* Add space for outside pagination */
}

.pagination-outside .swiper-pagination {
    position: absolute;
    bottom: 10px; /* Changed from -50px to 10px */
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

/* Pagination Inside Position */
.pagination-inside .swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #bdc3c7;
    opacity: 1;
    margin: 0 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.swiper-pagination-bullet-active {
    background: #2c3e50;
    transform: scale(1.2);
}

.swiper-pagination-bullet:hover {
    background: #2c3e50;
    transform: scale(1.1);
}

/* Slide Counter */
.slide-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(44, 62, 80, 0.9);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 10;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .project-slider {
        margin: 0 40px;
    }
    
    .project-slide-content {
        gap: 30px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .project-card {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .project-slider-container {
        padding: 60px 15px;
    }
    
    .project-slider {
        margin: 0 20px;
    }
    
    .pagination-outside {
        padding-bottom: 50px; /* Reduced padding for mobile */
    }
    
    .project-slide-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .project-image {
        border-radius: 20px 20px 0 0;
        min-height: 250px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .project-content {
        padding: 30px;
    }
    
    .project-title {
        font-size: 1.5rem;
    }
    
    .project-buttons {
        justify-content: flex-start;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

@media (max-width: 480px) {
    .project-slider-container {
        padding: 40px 10px;
    }
    
    .project-slider {
        margin: 0 10px;
    }
    
    .pagination-outside {
        padding-bottom: 40px; /* Further reduced for small screens */
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .project-content {
        padding: 25px;
    }
    
    .project-title {
        font-size: 1.25rem;
    }
    
    .project-description {
        font-size: 0.875rem;
    }
    
    .project-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .tech-tag {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    .project-image {
        min-height: 200px;
    }
}

/* Loading Animation */
.project-slider-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ecf0f1;
    border-top: 4px solid #2c3e50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
.project-btn:focus,
.swiper-button-next:focus,
.swiper-button-prev:focus,
.swiper-pagination-bullet:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .project-slider-container {
        background-color: #1a202c;
    }
    
    .section-title {
        color: #f7fafc;
    }
    
    .section-subtitle {
        color: #a0aec0;
    }
    
    .project-card {
        background: #2d3748;
        border: 1px solid #4a5568;
    }
    
    .project-title {
        color: #f7fafc;
    }
    
    .project-description {
        color: #cbd5e0;
    }
    
    .tech-tag {
        background: #4a5568;
        color: #e2e8f0;
    }
    
    .code-btn {
        color: #e2e8f0;
        border-color: #e2e8f0;
    }
    
    .code-btn:hover {
        background: #e2e8f0;
        color: #2d3748;
    }
}

/* Print Styles */
@media print {
    .project-slider-container {
        background: white !important;
    }
    
    .swiper-button-next,
    .swiper-button-prev,
    .swiper-pagination {
        display: none !important;
    }
    
    .project-slide-content {
        page-break-inside: avoid;
        margin-bottom: 30px;
    }
}