/* public/css/portfolio.css */
:root {
    --primary: #2ba283;
    --primary-dark: #059669;
    --bg-light: #fff;
    --bg-dark: #111;
    --border-light: #e1e1e1;
    --border-dark: #383848;
}

html {
    scroll-behavior: smooth;
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Micro-animations */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.dark .hover-lift:hover {
    box-shadow: 0 4px 6px -1px rgba(255, 255, 255, 0.05), 0 2px 4px -1px rgba(255, 255, 255, 0.03);
}

/* Timeline */
.timeline-dot {
    position: relative;
}
.timeline-dot::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: var(--border-light);
    left: 50%;
    transform: translateX(-50%);
    top: 24px;
}
.dark .timeline-dot::before {
    background: var(--border-dark);
}
.timeline-item:last-child .timeline-dot::before {
    display: none;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-light);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.dark #loader {
    background: var(--bg-dark);
}
#loader.hidden {
    opacity: 0;
    visibility: hidden;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(43, 162, 131, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
