:root {
    --color-primary: #FF9F1C;
    --color-secondary: #FFFFF0;
    --color-dark: #121212;
    --color-accent: #E71D36;
}

html {
    scroll-behavior: smooth;
}

/* Custom Text Stroke Utility */
.text-stroke {
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.2);
    color: transparent;
}

/* Mobile adjustments for text stroke */
@media (max-width: 768px) {
    .text-stroke {
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    }
}

/* Loader Styles */
.loader-bar {
    transition: width 0.1s ease;
}

/* Selection Color */
::selection {
    background-color: var(--color-primary);
    color: var(--color-dark);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 5px;
    border: 2px solid var(--color-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Portfolio Hover Effects - Disable on mobile to prevent sticky states */
@media (min-width: 769px) {
    .portfolio-item img {
        transform-origin: center;
    }
    .portfolio-item:hover img {
        transform: scale(1.1) rotate(2deg);
    }
}

/* Floating Animation Utility */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Nav Link Hover Underline */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Slider */
.slider-mask {
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

@media (max-width: 768px) {
    .slider-mask {
        -webkit-mask-image: none;
        mask-image: none;
    }
}
