/* Additional custom styles */

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

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

::-webkit-scrollbar-thumb {
    background: #8B7355;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A0826D;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease;
}

/* Button animations */
.btn-primary,
.bg-gray-800 {
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.bg-gray-800::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.bg-gray-800:hover::before {
    width: 300px;
    height: 300px;
}

/* Card hover effects */
.card-program {
    position: relative;
    overflow: hidden;
}

.card-program::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    transition: all 0.5s;
}

.card-program:hover::after {
    left: 100%;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive text sizing */
@media (max-width: 768px) {
    .text-7xl {
        font-size: 3rem;
    }
    
    .text-6xl {
        font-size: 2.5rem;
    }
    
    .text-5xl {
        font-size: 2rem;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #8B7355;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #8B7355;
    color: white;
}

::-moz-selection {
    background: #8B7355;
    color: white;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #8B7355 0%, #A0826D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image loading effect */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

img[src] {
    opacity: 1;
}
