/* Cyaxios CyGuy Carousel Styles */

/* Carousel Wrapper */
.carousel-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 60px;
}

/* Carousel Container */
.carousel-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 2rem 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(44, 62, 80, 0.3) transparent;
}

.carousel-container::-webkit-scrollbar {
    height: 8px;
}

.carousel-container::-webkit-scrollbar-track {
    background: transparent;
    margin: 0 60px;
}

.carousel-container::-webkit-scrollbar-thumb {
    background: rgba(44, 62, 80, 0.3);
    border-radius: 4px;
}

.carousel-container::-webkit-scrollbar-thumb:hover {
    background: rgba(44, 62, 80, 0.5);
}

/* CyGuy Card */
.cyguy-card {
    flex: 0 0 450px;
    max-width: 450px;
    min-width: 450px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    scroll-snap-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid transparent;
    position: relative;
}

.cyguy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c3e50 0%, #3498db 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cyguy-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(52, 152, 219, 0.3);
}

.cyguy-card:hover::before {
    opacity: 1;
}

/* Color-specific hover effects */
.cyguy-card[data-color="navy"]:hover::before {
    background: linear-gradient(90deg, #1a2332 0%, #3d5a80 100%);
}

.cyguy-card[data-color="beige"]:hover::before {
    background: linear-gradient(90deg, #d4c5b9 0%, #7ba7bc 100%);
}

.cyguy-card[data-color="sage"]:hover::before {
    background: linear-gradient(90deg, #8ba888 0%, #5a7d5a 100%);
}

.cyguy-card[data-color="purple"]:hover::before {
    background: linear-gradient(90deg, #9b7fb5 0%, #6a4c93 100%);
}

.cyguy-card[data-color="steel"]:hover::before {
    background: linear-gradient(90deg, #6c8299 0%, #4a5f7f 100%);
}

.cyguy-card[data-color="charcoal"]:hover::before {
    background: linear-gradient(90deg, #3a3a3a 0%, #d4af37 100%);
}

.cyguy-card[data-color="pink"]:hover::before {
    background: linear-gradient(90deg, #e8b4c8 0%, #9e9e9e 100%);
}

/* Avatar Section */
.cyguy-avatar {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.cyguy-card:hover .avatar-placeholder {
    transform: scale(1.1) rotate(5deg);
}

/* Header Section */
.cyguy-header {
    padding: 1.5rem 2rem 1rem;
    text-align: center;
}

.cyguy-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.cyguy-tagline {
    font-size: 0.95rem;
    color: #7f8c8d;
    font-weight: 500;
    margin: 0;
    font-style: italic;
}

/* Description Section */
.cyguy-description {
    padding: 0 2rem 1.5rem;
    flex-grow: 1;
}

.cyguy-description p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Screenshot Section */
.cyguy-screenshot {
    padding: 0 2rem 1.5rem;
}

/* New responsive screenshot box with 16:9 ratio and graceful fallback */
.screenshot-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background: #f8fafc;
    border: 2px dashed #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.screenshot-box img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

/* Hide the image and show fallback if the source fails */
.screenshot-box.image-missing img {
    display: none;
}

.screenshot-fallback {
    text-align: center;
    padding: 1rem;
}

.screenshot-fallback i {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 0.3rem;
    opacity: 0.7;
}

/* Legacy placeholder (kept for backward compatibility) */
.screenshot-placeholder {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.cyguy-card:hover .screenshot-placeholder,
.cyguy-card:hover .screenshot-box {
    border-color: #3498db;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
}

/* Footer Section */
.cyguy-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #27ae60;
    font-weight: 600;
}

.demo-badge i {
    font-size: 1rem;
}

.cyguy-cta {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cyguy-cta:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.cyguy-cta:active {
    transform: translateY(0);
}

/* Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background: #2c3e50;
    border-color: #2c3e50;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav-prev {
    left: 0;
}

.carousel-nav-next {
    right: 0;
}

.carousel-nav i {
    font-size: 1.2rem;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.carousel-nav:hover i {
    color: white;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicator:hover {
    background: #a0a0a0;
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: #2c3e50;
    width: 30px;
    border-radius: 5px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0 40px;
    }

    .cyguy-card {
        flex: 0 0 320px;
        max-width: 320px;
        min-width: 320px;
    }

    .cyguy-avatar {
        height: 140px;
    }

    .avatar-placeholder {
        width: 80px;
        height: 80px;
    }

    .avatar-placeholder i {
        font-size: 2.5rem !important;
    }

    .cyguy-name {
        font-size: 1.3rem;
    }

    .cyguy-tagline {
        font-size: 0.85rem;
    }

    .cyguy-description {
        padding: 0 1.5rem 1rem;
    }

    .cyguy-description p {
        font-size: 0.9rem;
    }

    .screenshot-placeholder {
        height: 160px;
    }

    .cyguy-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .cyguy-cta {
        width: 100%;
        text-align: center;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .carousel-nav i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        padding: 0 30px;
    }

    .cyguy-card {
        flex: 0 0 280px;
        max-width: 280px;
        min-width: 280px;
    }

    .cyguy-header,
    .cyguy-description,
    .cyguy-screenshot,
    .cyguy-footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

