/* Add custom cursor */
html {
    cursor: default;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #667eea, #764ba2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #5a71d4, #6a43a1);
}

/* Selection style */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: #333;
}

/* Add focus styles for accessibility */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Add page transitions */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #667eea, #764ba2);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.7s cubic-bezier(0.7, 0, 0.3, 1);
}

.page-transition.active {
    transform: translateY(0%);
}

.page-transition.exit {
    transform: translateY(-100%);
}

/* Image hover effects */
img {
    transition: all 0.4s ease;
}

img:hover {
    transform: scale(1.05);
}

/* Better mobile menu animation */
@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        width: 250px;
        flex-direction: column;
        padding: 2rem;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(20px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        width: 30px;
        height: 20px;
        position: relative;
        z-index: 10;
    }
    
    .mobile-menu-btn span {
        position: absolute;
        width: 100%;
        height: 2px;
        background: #667eea;
        transition: all 0.3s ease;
        left: 0;
    }
    
    .mobile-menu-btn span:nth-child(1) {
        top: 0;
    }
    
    .mobile-menu-btn span:nth-child(2) {
        top: 9px;
    }
    
    .mobile-menu-btn span:nth-child(3) {
        top: 18px;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Preloader animation */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
