/* ========================================
   CUSTOM UX ENHANCEMENTS
   Enhanced user experience with smooth animations,
   modern hover effects, and visual improvements
   ======================================== */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced Card Hover Effects */
.rn-service {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.rn-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s;
}

.rn-service:hover::before {
    left: 100%;
}

.rn-service:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 1, 79, 0.15);
}

.rn-service .icon {
    transition: all 0.4s ease;
}

.rn-service:hover .icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--color-primary);
}

/* Portfolio Card Enhancements */
.rn-portfolio {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.rn-portfolio::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), #ff6b9d);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.rn-portfolio:hover::after {
    transform: scaleX(1);
}

.rn-portfolio:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 1, 79, 0.2);
}

.rn-portfolio .thumbnail img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.rn-portfolio:hover .thumbnail img {
    transform: scale(1.08);
}

/* Resume Cards Enhancement */
/* Resume Cards Enhancement - Premium Glassmorphism */
.resume-single-list {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy premium feel */
    position: relative;
    padding: 20px 24px;
    /* Restore some padding for breathing room */
    border-radius: 16px;
    /* Modern rounded corners */
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, rgba(30, 32, 36, 0.9) 0%, rgba(20, 22, 26, 0.9) 100%);
    backdrop-filter: blur(10px);
    /* Glass effect */
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    /* For shine effect */
}

/* Shine Effect on Hover */
.resume-single-list::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-25deg);
    transition: 0.75s;
    pointer-events: none;
}

.resume-single-list:hover::after {
    left: 200%;
}

.resume-single-list::before {
    /* Left accent pill */
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    bottom: 20px;
    width: 4px;
    background: var(--color-primary);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 15px var(--color-primary);
    /* Neon Glow */
    opacity: 0.8;
    transition: all 0.3s ease;
}

.resume-single-list:hover::before {
    top: 0;
    bottom: 0;
    width: 6px;
    opacity: 1;
    box-shadow: 0 0 25px var(--color-primary), 0 0 10px rgba(255, 255, 255, 0.5);
}

.resume-single-list:hover {
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(145deg, rgba(40, 42, 46, 0.95), rgba(25, 27, 31, 0.95));
    border-color: rgba(255, 1, 79, 0.5);
    /* Glowing border */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 1, 79, 0.1);
}

.resume-single-list .title h4 {
    font-size: 18px;
    /* Bigger & Bolder */
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.resume-single-list .title span {
    font-size: 13px;
    font-weight: 400;
    color: #d1d1d1;
    /* Lighter grey for better contrast */
    display: block;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.resume-single-list:hover .title h4 {
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(255, 1, 79, 0.5);
}

.resume-single-list .description {
    font-size: 14px;
    line-height: 1.7;
    color: #e0e6ed;
    /* Brighter text */
    margin-bottom: 15px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 15px;
    /* Indented description style */
}

/* Tech Badges Style - Premium Pill */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

.tech-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    /* Fully rounded pill */
    background: rgba(13, 16, 19, 0.8);
    /* Dark background */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resume-single-list:hover .tech-badge {
    border-color: var(--color-primary);
    background: rgba(255, 1, 79, 0.15);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 1, 79, 0.2);
    transform: translateY(-2px);
}

/* Remove the old transform to prevent conflicting movements */


/* Button Enhancements */
.rn-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
}

.rn-btn::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;
    z-index: -1;
}

.rn-btn:hover::before {
    width: 300px;
    height: 300px;
}

.rn-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 1, 79, 0.3);
}

/* Social Icons Enhancement */
.social-share li a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.social-share li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.social-share li a:hover::after {
    width: 80%;
}

.social-share li a:hover {
    transform: translateY(-5px) scale(1.1);
}

/* Section Title Animation */
.section-title {
    position: relative;
}

.section-title .title {
    position: relative;
    display: inline-block;
}

.section-title .title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), #ff6b9d);
    border-radius: 2px;
}

/* Profile Picture Enhancement */
.profile-pict {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(0%);
    position: relative;
}

.thumbnail:hover .profile-pict {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1.1);
    box-shadow: 0 20px 60px rgba(255, 1, 79, 0.3);
}

/* Smooth Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), #ff6b9d, #ffa8c5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Skill Progress Bar Enhancement */
.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Back to Top Button Enhancement */
.backto-top {
    transition: all 0.3s ease;
}

.backto-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 1, 79, 0.4);
}

/* Contact Section Enhancement */
.contact-about-area {
    transition: all 0.3s ease;
}

.contact-about-area:hover {
    transform: translateY(-5px);
}

/* Loading Animation for Images */
img {
    transition: opacity 0.3s ease;
}

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

/* Smooth Color Transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: var(--color-tertiary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-primary), #ff6b9d);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff6b9d, var(--color-primary));
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .rn-service:hover {
        transform: translateY(-5px) scale(1.01);
    }

    .rn-portfolio:hover {
        transform: translateY(-5px);
    }
}

/* Pulse Animation for Important Elements */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.pulse-on-hover:hover {
    animation: pulse 1s infinite;
}

/* Glowing Effect */
.glow-effect {
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--color-primary), #ff6b9d, #ffa8c5, var(--color-primary));
    border-radius: inherit;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.3s ease;
    z-index: -1;
    background-size: 400%;
    animation: glowing 20s linear infinite;
}

.glow-effect:hover::before {
    opacity: 0.7;
}

@keyframes glowing {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }
}

/* Typing Cursor Effect Enhancement */
.cd-words-wrapper::after {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Improved Card Shadows */
.rn-service .inner,
.rn-portfolio .inner {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.rn-service:hover .inner,
.rn-portfolio:hover .inner {
    box-shadow: 0 15px 40px rgba(255, 1, 79, 0.15);
}

/* Smooth Page Transitions */
.main-page-wrapper {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Enhanced Navigation */
.mainmenu-nav .nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.mainmenu-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.mainmenu-nav .nav-link:hover::before,
.mainmenu-nav .nav-link.active::before {
    width: 80%;
}

/* Certification Badge Effect */
.experience-list .resume-single-list:nth-child(odd) {
    animation-delay: 0.1s;
}

.experience-list .resume-single-list:nth-child(even) {
    animation-delay: 0.2s;
}

/* Interactive Particle Background Enhancement */
#particles-js {
    transition: opacity 0.5s ease;
}

/* Improved Typography Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -0.5px;
    font-weight: 700;
}

/* Micro-interactions for Better UX */
button,
a,
input,
textarea {
    -webkit-tap-highlight-color: transparent;
}

/* Enhanced Focus Indicators */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Smooth Transitions for Theme Changes */
body,
.main-page-wrapper {
    transition: background-color 0.3s ease, color 0.3s ease;
}