/* Custom Styles for Portfolio */

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
.dark ::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.dark ::-webkit-scrollbar-thumb {
    background: #333;
}
::-webkit-scrollbar-thumb:hover {
    background: #0f6b75;
}

/* Glass Panel Effect */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.dark .glass-panel {
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Tech Card Hover Effect */
.tech-card:hover {
    border-color: #0f6b75;
    box-shadow: 0 0 15px rgba(15, 107, 117, 0.2);
    transform: translateY(-2px);
}

/* Grid Background */
.grid-bg {
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, transparent, 5%, black, 95%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, 5%, black, 95%, transparent);
}

/* Timeline Line */
.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 23px;
    width: 2px;
    background: #e5e7eb;
}
.dark .timeline-line::before {
    background: #27272a;
}

/* Toggle Checkbox */
.toggle-checkbox:checked {
    right: 0;
    border-color: #68D391;
}
.toggle-checkbox:checked + .toggle-label {
    background-color: #68D391;
}

/* Architecture Diagram Styles */
.arch-node {
    position: relative;
    z-index: 10;
}
.arch-line {
    position: absolute;
    background: #27272a;
    z-index: 0;
}
.dark .arch-line {
    background: #3f3f46;
}

/* Architecture Connector for Desktop */
@media (min-width: 768px) {
    .arch-connector::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -2rem;
        width: 2rem;
        height: 2px;
        background-color: #3f3f46;
        transform: translateY(-50%);
    }
    .arch-connector:last-child::after {
        display: none;
    }
}
