html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
    border: 2px solid #000;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease-out, opacity 0.3s ease;
    transform: translate(-50%, -50%);
}

.custom-cursor.active {
    transform: translate(-50%, -50%) scale(3);
}

@media (max-width: 1024px) {
    .custom-cursor {
        display: none;
    }
}

/* Magnetic button transition */
.px-10.py-4 {
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease-out, box-shadow 0.3s ease;
}

/* Image zoom and parallax */
section img {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Character animation stagger */
.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) rotateX(-90deg);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    transform-origin: bottom;
}

.active .char {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

/* Reveal Animations */
.reveal-up, .reveal-scale, .reveal-left, .reveal-fade, .reveal-left-item {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform, opacity;
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-scale {
    transform: scale(0.9);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-left-item {
    transform: translateX(-30px);
}

/* Active states for reveal */
.reveal-up.active, .reveal-scale.active, .reveal-left.active, .reveal-fade.active, .reveal-left-item.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Card Hover Effects */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

/* Image Zoom on Hover */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.img-zoom:hover img {
    transform: scale(1.1);
}

/* Parallax Container */
.parallax-bg {
    transition: transform 0.1s ease-out;
}

/* Navigation Link Underline */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-250 { transition-delay: 250ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-1000 { transition-delay: 1000ms; }

/* Loader Animation */
@keyframes loaderBar {
    0% { width: 0%; }
    100% { width: 100%; }
}

.loader-bar {
    animation: loaderBar 1.5s ease-in-out forwards;
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* FAQ transitions */
.faq-content {
    transition: all 0.3s ease-in-out;
}

.faq-content.open {
    height: auto;
    opacity: 1;
    padding-bottom: 1.5rem;
}

.faq-icon {
    transition: transform 0.3s ease-in-out;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

/* Loader text animation */
.loader-text {
    animation: pulseScale 1.5s ease-in-out infinite alternate;
}

@keyframes pulseScale {
    from { transform: scale(0.9); opacity: 0.8; }
    to { transform: scale(1); opacity: 1; }
}

/* Portfolio Modal */
#portfolio-modal {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#portfolio-modal:not(.hidden) {
    opacity: 1;
}

#portfolio-modal-image {
    animation: modalFadeIn 0.3s ease-in-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
