/* Modern Portfolio Effects */

/* Hero Section Effects */
.hero-portrait {
    position: relative;
    overflow: visible;
}

.hero-portrait .pic {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

/* Glowing border effect */
.hero-portrait .pic::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(45deg, var(--bs-primary), transparent);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-portrait:hover .pic {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-portrait:hover .pic::before {
    opacity: 0.8;
}

/* Floating circles with glow */
.small-circle {
    box-shadow: 0 0 15px var(--bs-primary);
    animation: floatCircle 4s infinite;
}

@keyframes floatCircle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(10px, -15px) scale(1.2);
    }
}

/* About Section Modern Effects */
.about-portrait {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.about-portrait .pic {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 15px;
}

/* Shine effect */
.about-portrait::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: skewX(-25deg);
    transition: all 0.75s ease;
}

.about-portrait:hover .pic {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.about-portrait:hover::after {
    left: 150%;
}

/* Bio text effect */
.bio {
    position: relative;
    padding: 20px;
    border-radius: 15px;
    background: rgba(var(--bs-primary-rgb), 0.03);
    transition: all 0.3s ease;
}

.bio:hover {
    transform: translateY(-5px);
    background: rgba(var(--bs-primary-rgb), 0.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Social Icons Effects */
.social-icons a {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bs-primary);
    transition: all 0.3s ease;
    opacity: 0;
}

.social-icons a:hover {
    transform: translateY(-5px);
    color: var(--bs-primary);
}

.social-icons a:hover::before {
    top: 0;
    opacity: 0.1;
}

/* Button Effects */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
}

.btn:hover::after {
    width: 100%;
}

.primary-bg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--bs-primary-rgb), 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-portrait .pic {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .small-circle {
        transform: scale(0.8);
    }
    
    .about-portrait {
        margin: 0 auto;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .hero-portrait .pic {
        max-width: 200px;
    }
    
    .about-portrait {
        max-width: 250px;
    }
    
    .bio {
        padding: 15px;
    }
}