/* ===== PROJECT LINKS ===== */
.project-links ul {
    list-style: none;
    padding: 0;
}

.project-links li {
    background: linear-gradient(135deg, #252525, #2a2a2a);
    margin-bottom: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-links li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.project-links li:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
    border-left-color: #4da3ff;
}

.project-links li:hover::before {
    left: 100%;
}

/* ===== GALLERY ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 2rem;
}

.gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.gallery img:hover {
    transform: scale(1.08) rotate(1deg);
    box-shadow: 
        0 15px 30px rgba(0, 123, 255, 0.3),
        0 0 20px rgba(0, 123, 255, 0.2);
    border-color: var(--accent-color);
    z-index: 10;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

/* ===== INTERACTIVE COMPARISON SLIDER ===== */
.comparison-container {
    margin-bottom: 3rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.image-comparison {
    position: relative;
    display: flex;
    flex-direction: column;
}

.comparison-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    aspect-ratio: 1;
    transition: all 0.3s ease;
}

.comparison-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 123, 255, 0.2);
}

.comparison-wrapper .bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.img-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
}

.slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(135, 206, 235, 0.9), 
        rgba(0, 191, 255, 0.8), 
        rgba(173, 216, 230, 0.7));
    cursor: ew-resize;
    z-index: 3;
    transform: translateX(-50%);
    transition: all 0.2s ease;
    box-shadow: 
        0 0 10px rgba(135, 206, 235, 0.6),
        0 0 20px rgba(0, 191, 255, 0.3);
}

.slider:hover {
    width: 6px;
    box-shadow: 
        0 0 15px rgba(135, 206, 235, 0.8),
        0 0 30px rgba(0, 191, 255, 0.5),
        0 0 40px rgba(173, 216, 230, 0.3);
}

.slider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, 
        rgba(135, 206, 235, 0.9), 
        rgba(0, 191, 255, 0.8));
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 0 4px rgba(255,255,255,0.3),
        0 4px 15px rgba(135, 206, 235, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.slider:hover::before {
    width: 28px;
    height: 28px;
    box-shadow: 
        0 0 0 6px rgba(255,255,255,0.4),
        0 6px 20px rgba(135, 206, 235, 0.7),
        0 0 15px rgba(0, 191, 255, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.slider::after {
    content: '⟷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.comparison-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: var(--secondary-text-color);
}

.comparison-labels span {
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.comparison-labels span:hover {
    background: rgba(0, 123, 255, 0.2);
    border-color: var(--accent-color);
    color: var(--primary-text-color);
}

.comparison-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-text-color);
    font-weight: bold;
    padding: 0.5rem;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 123, 255, 0.2);
    backdrop-filter: blur(5px);
}
