/* 
* CampusUdaan - Professional Hero Image Styling
* Creates a premium, professional appearance for the hero dashboard image
*/

/* Main container styling */
.hero-image {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    z-index: 5;
}

/* Primary image styling with professional effects */
.hero-image img.float {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: perspective(1000px) rotateY(-12deg) rotateX(5deg) translateZ(0);
    transition: all 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Professional decorative elements */
.hero-image::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, #4CAF91, #45a049);
    border-radius: 12px;
    top: -20px;
    right: -20px;
    z-index: -1;
    opacity: 0.3;
}

.hero-image::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 70%;
    background: linear-gradient(135deg, #FF7F50, #ff6a3c);
    border-radius: 12px;
    bottom: -15px;
    left: -15px;
    z-index: -2;
    opacity: 0.2;
}

/* Floating animation */
@keyframes float {
    0% {
        transform: perspective(1000px) rotateY(-12deg) rotateX(5deg) translateZ(0) translateY(0);
    }
    50% {
        transform: perspective(1000px) rotateY(-10deg) rotateX(3deg) translateZ(10px) translateY(-10px);
    }
    100% {
        transform: perspective(1000px) rotateY(-12deg) rotateX(5deg) translateZ(0) translateY(0);
    }
}

.hero-image img.float {
    animation: float 6s ease-in-out infinite;
}

/* Professional highlight effect */
.hero-image img.float::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.2) 38%, rgba(255,255,255,0.2) 40%, rgba(255,255,255,0) 48%);
    background-size: 200% 100%;
    background-position: 100% 0;
    border-radius: 12px;
    animation: shine 3s infinite;
}

@keyframes shine {
    to {
        background-position: -100% 0;
    }
}

/* Device frame effect */
.hero-image .device-frame {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-image {
        max-width: 500px;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .hero-image {
        max-width: 400px;
    }
    
    .hero-image::before,
    .hero-image::after {
        width: 70%;
        height: 70%;
    }
    
    /* Remove all rotation and perspective effects for tablets and mobile */
    .hero-image img.float {
        animation: none !important;
        transform: none !important;
        perspective: none !important;
        transform-style: flat !important;
        box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3);
        transition: none !important;
        -webkit-transform: none !important;
        -moz-transform: none !important;
        -ms-transform: none !important;
        -o-transform: none !important;
    }
}

@media (max-width: 480px) {
    .hero-image {
        max-width: 90%;
    }
    
    .hero-image::before {
        top: -10px;
        right: -10px;
    }
    
    .hero-image::after {
        bottom: -10px;
        left: -10px;
    }
    
    /* Reinforced flat display for small mobile devices */
    .hero-image img.float {
        animation: none !important;
        transform: none !important;
        perspective: none !important;
        transform-style: flat !important;
        box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3);
        transition: none !important;
        -webkit-transform: none !important;
        -moz-transform: none !important;
        -ms-transform: none !important;
        -o-transform: none !important;
        position: relative !important;
        display: block !important;
    }
}
