/* Hero Image Modern Effects */

.hero-image {
    position: relative;
    perspective: 1000px;
}

/* Main Image Styling with Modern Effects */
.hero-img {
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 3;
    border-radius: 30px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: heroFloat 6s ease-in-out infinite;
}

/* Hover Effect - 3D Tilt */
.hero-img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Floating Animation */
@keyframes heroFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(1deg);
    }
    50% { 
        transform: translateY(-25px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-1deg);
    }
}

/* Glowing Border Effect */
.hero-img::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(
        45deg,
        #667eea,
        #764ba2,
        #48bb78,
        #667eea
    );
    border-radius: 32px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: borderRotate 4s linear infinite;
    background-size: 300% 300%;
}

.hero-img:hover::before {
    opacity: 0.8;
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating Particles Around Image */
.hero-image::before,
.hero-image::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3), transparent);
    z-index: 1;
    animation: particleFloat 8s ease-in-out infinite;
    pointer-events: none;
}

.hero-image::before {
    top: 10%;
    left: -50px;
    animation-delay: 0s;
}

.hero-image::after {
    bottom: 10%;
    right: -50px;
    animation-delay: 2s;
    background: radial-gradient(circle, rgba(72, 187, 120, 0.3), transparent);
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    25% {
        transform: translate(20px, -30px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translate(-10px, -50px) scale(0.9);
        opacity: 0.6;
    }
    75% {
        transform: translate(30px, -20px) scale(1.1);
        opacity: 0.7;
    }
}

/* Decorative Shapes */
.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.deco-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    backdrop-filter: blur(5px);
    animation: shapeFloat 10s ease-in-out infinite;
}

.deco-shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 5%;
    right: 10%;
    animation-delay: 0s;
}

.deco-shape:nth-child(2) {
    width: 60px;
    height: 60px;
    bottom: 15%;
    left: 5%;
    animation-delay: 2s;
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.2), rgba(56, 161, 105, 0.2));
}

.deco-shape:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 40%;
    left: -20px;
    animation-delay: 4s;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
}

@keyframes shapeFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(20px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-15px, 20px) rotate(240deg);
    }
}

/* Shimmer Effect on Load */
.hero-img.loaded {
    animation: heroFloat 6s ease-in-out infinite, shimmer 2s ease-in-out;
}

@keyframes shimmer {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pulse Glow Effect */
.hero-img.loaded::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3), transparent 70%);
    border-radius: 30px;
    z-index: -2;
    animation: pulseGlow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* Parallax Effect on Scroll */
@media (prefers-reduced-motion: no-preference) {
    .hero-img {
        transition: transform 0.3s ease-out;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-img {
        border-radius: 20px;
    }
    
    .hero-img::before {
        border-radius: 22px;
    }
    
    .hero-image::before,
    .hero-image::after {
        width: 60px;
        height: 60px;
    }
    
    .deco-shape {
        display: none;
    }
    
    @keyframes heroFloat {
        0%, 100% { 
            transform: translateY(0px);
        }
        50% { 
            transform: translateY(-15px);
        }
    }
}

@media (max-width: 480px) {
    .hero-img {
        border-radius: 15px;
    }
    
    .hero-img::before {
        border-radius: 17px;
    }
    
    .hero-image::before,
    .hero-image::after {
        display: none;
    }
}

/* Performance Optimization */
.hero-img,
.hero-image::before,
.hero-image::after,
.deco-shape {
    will-change: transform;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .hero-img {
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.6),
            0 0 0 1px rgba(255, 255, 255, 0.2);
    }
    
    .hero-img:hover {
        box-shadow: 
            0 30px 80px rgba(0, 0, 0, 0.7),
            0 0 0 1px rgba(255, 255, 255, 0.3);
    }
}
