/* 
========================================
  MV Edu Institution - Animation Styles
========================================
*/

/* Base Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Specific Animation Variations */
.fade-in {
    opacity: 0;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in-down {
    opacity: 0;
    transform: translateY(-30px);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
}

/* Animation for Decorated Elements */
.decorated-title {
    position: relative;
}

.decorated-title::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.6s ease;
}

.decorated-title.animated::before {
    width: 50px;
}

/* University-Style Decorative Elements */
.university-seal {
    position: relative;
}

.university-seal::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 60px;
    height: 60px;
    background-image: url('images/university-seal.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transform: rotate(15deg) scale(0.8);
    transition: all 0.6s ease;
}

.university-seal:hover::before {
    opacity: 0.8;
    transform: rotate(0) scale(1);
}

/* Hover Effects for Cards */
.card-hover-effect {
    transition: all 0.3s ease;
    z-index: 1;
}

.card-hover-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(200, 163, 95, 0.05) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.card-hover-effect:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-hover-effect:hover::after {
    opacity: 1;
}

/* University-style button hover effect */
.btn-university {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-university::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-university:hover::before {
    left: 0;
}

.btn-university:hover {
    color: white;
}

/* Academic laurel decoration */
.laurel-decoration {
    position: relative;
}

.laurel-decoration::before,
.laurel-decoration::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: all 0.3s ease;
}

.laurel-decoration::before {
    top: 50%;
    left: -30px;
    transform: translateY(-50%) rotate(-15deg);
    background-image: url('images/laurel-left.png');
}

.laurel-decoration::after {
    top: 50%;
    right: -30px;
    transform: translateY(-50%) rotate(15deg);
    background-image: url('images/laurel-right.png');
}

.laurel-decoration:hover::before,
.laurel-decoration:hover::after {
    opacity: 0.8;
}
