/* styles/projects.css */

.projects {
    width: 100%;
    max-width: 100%;
    padding: 40px 0;
    margin: 150px 0 0 0;
    background-color: #060c1a;
    position: relative;
    font-family: 'Manrope', sans-serif;
    overflow: hidden;
}

.projects__header {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    gap: 2rem;
}

@media (width <= 63.99875rem) {
    .projects__header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
}

.projects__title {
    flex-shrink: 0;
}

.projects__description {
    flex: 1;
    color: var(--color-text);
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    line-height: 1.6;
}

.projects__description p {
    margin: 0;
}

.projects__description p:first-child {
    margin-bottom: 0.5rem;
}

/* Slider Container */
.projects__slider {
    position: relative;
    width: 100%;
    height: 750px;
    overflow: hidden;
}

.projects__slider-container {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slides */
.projects__slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 60px clamp(20px, 5vw, 80px);
    overflow-y: auto;
}

.projects__slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.projects__slide-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projects__slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(6, 12, 26, 0.7) 0%,
        rgba(6, 12, 26, 0.85) 50%,
        rgba(6, 12, 26, 0.95) 100%
    );
}

.projects__slide-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    color: #ffffff;
}

.projects__slide-tag {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(90deg, #1461cc 0%, #04dbd6 100%);
    color: #060c1a;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.projects__slide-title {
    font-family: 'Gilroy', sans-serif;
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #ffffff;
}

.projects__slide-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 30px 0;
}

/* Stack Section */
.projects__slide-stack {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(6, 12, 26, 0.5);
    border: 1px solid rgba(88, 141, 214, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.projects__stack-title {
    font-family: 'Gilroy', sans-serif;
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    font-weight: 600;
    color: rgba(126, 226, 226, 0.9);
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.projects__slide-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.projects__tech-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(126, 226, 226, 0.4);
    border-radius: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

@media (any-hover: hover) {
    .projects__tech-tag:hover {
        background: rgba(4, 219, 214, 0.2);
        border-color: rgba(4, 219, 214, 0.7);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(4, 219, 214, 0.3);
    }
}

/* Project Link Button */
.projects__slide-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(90deg, #1461cc 0%, #04dbd6 100%);
    color: #060c1a;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(4, 219, 214, 0.4);
}

@media (any-hover: hover) {
    .projects__slide-link:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(4, 219, 214, 0.6);
        background: linear-gradient(90deg, #1770e6 0%, #05f5ef 100%);
    }
}

.projects__slide-link:active {
    transform: translateY(-1px);
}

/* Navigation Buttons */
.projects__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    padding: 20px 30px;
    border-radius: 16px;
    border: 2px solid rgba(126, 226, 226, 0.3);
    background: linear-gradient(135deg, rgba(20, 97, 204, 0.3) 0%, rgba(4, 219, 214, 0.2) 100%);
    backdrop-filter: blur(15px);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.projects__nav--prev {
    left: 30px;
    flex-direction: row;
}

.projects__nav--next {
    right: 30px;
    flex-direction: row-reverse;
}

.projects__nav-text {
    white-space: nowrap;
}

@media (any-hover: hover) {
    .projects__nav:hover {
        background: linear-gradient(135deg, rgba(20, 97, 204, 0.5) 0%, rgba(4, 219, 214, 0.4) 100%);
        border-color: rgba(4, 219, 214, 0.6);
        transform: translateY(-50%) scale(1.05);
        box-shadow: 0 12px 32px rgba(4, 219, 214, 0.4);
    }
}

.projects__nav:active {
    transform: translateY(-50%) scale(0.98);
}

/* Indicators */
.projects__indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.projects__indicator {
    width: 40px;
    height: 4px;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.projects__indicator--active {
    background: linear-gradient(90deg, #1461cc 0%, #04dbd6 100%);
    width: 60px;
}

@media (any-hover: hover) {
    .projects__indicator:hover {
        background: rgba(255, 255, 255, 0.5);
    }

    .projects__indicator--active:hover {
        background: linear-gradient(90deg, #1461cc 0%, #04dbd6 100%);
    }
}

/* Mobile Styles */
@media (max-width: 1024px) {
    .projects {
        margin-top: 100px;
    }

    .projects__slider {
        height: 700px;
    }

    .projects__slide {
        padding: 50px clamp(20px, 5vw, 80px);
    }

    .projects__slide-content {
        max-width: 700px;
    }

    .projects__nav {
        padding: 16px 24px;
        font-size: 14px;
        gap: 10px;
    }

    .projects__nav--prev {
        left: 20px;
    }

    .projects__nav--next {
        right: 20px;
    }

    .projects__slide-stack {
        padding: 16px;
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {
    .projects {
        margin-top: 80px;
        padding: 30px 0;
    }

    .projects__slider {
        height: 700px;
    }

    .projects__slide {
        padding: 40px 15px;
    }

    .projects__slide-title {
        margin-bottom: 15px;
    }

    .projects__slide-description {
        margin-bottom: 20px;
        font-size: clamp(0.9rem, 2vw, 1.1rem);
    }

    .projects__slide-stack {
        padding: 14px;
        margin-bottom: 20px;
    }

    .projects__stack-title {
        font-size: 0.875rem;
        margin-bottom: 12px;
    }

    .projects__slide-tech {
        gap: 8px;
    }

    .projects__tech-tag {
        padding: 6px 12px;
        font-size: 11px;
    }

    .projects__slide-link {
        padding: 12px 24px;
        font-size: 0.875rem;
        gap: 8px;
    }

    .projects__nav {
        padding: 12px 16px;
        font-size: 13px;
        gap: 8px;
    }

    .projects__nav-text {
        display: none;
    }

    .projects__nav svg {
        width: 24px;
        height: 24px;
    }

    .projects__nav--prev,
    .projects__nav--next {
        border-radius: 12px;
    }

    .projects__nav--prev {
        left: 15px;
    }

    .projects__nav--next {
        right: 15px;
    }

    .projects__indicator {
        width: 30px;
        height: 3px;
    }

    .projects__indicator--active {
        width: 45px;
    }
}

@media (max-width: 480px) {
    .projects__slider {
        height: 750px;
    }

    .projects__slide {
        padding: 30px 10px;
    }

    .projects__slide-tag {
        font-size: 12px;
        padding: 6px 16px;
    }

    .projects__slide-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .projects__slide-description {
        font-size: 0.875rem;
        margin-bottom: 16px;
    }

    .projects__slide-stack {
        padding: 12px;
        margin-bottom: 16px;
    }

    .projects__stack-title {
        font-size: 0.75rem;
    }

    .projects__tech-tag {
        padding: 5px 10px;
        font-size: 10px;
    }

    .projects__slide-link {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .projects__nav {
        padding: 10px 12px;
    }

    .projects__nav svg {
        width: 20px;
        height: 20px;
    }

    .projects__nav--prev {
        left: 10px;
    }

    .projects__nav--next {
        right: 10px;
    }

    .projects__indicators {
        bottom: 20px;
    }

    .projects__indicator {
        width: 25px;
    }

    .projects__indicator--active {
        width: 40px;
    }
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.projects__slide-content > * {
    animation: slideIn 0.6s ease-out;
}

.projects__slide-tag {
    animation-delay: 0.1s;
}

.projects__slide-title {
    animation-delay: 0.2s;
}

.projects__slide-description {
    animation-delay: 0.3s;
}

.projects__slide-stack {
    animation-delay: 0.4s;
}

.projects__slide-link {
    animation-delay: 0.5s;
}
