/* =============================================
   Personal Portfolio - Main Stylesheet
   ============================================= */

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #d946ef, #06b6d4, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, #d946ef, #06b6d4);
}

/* Gradient Border */
.gradient-border {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #d946ef, #06b6d4) border-box;
}

.dark .gradient-border {
    background: linear-gradient(#1e293b, #1e293b) padding-box,
                linear-gradient(135deg, #d946ef, #06b6d4) border-box;
}

/* Blob Animation */
.blob {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob 8s ease-in-out infinite;
}

@keyframes blob {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

/* Card Hover Effect */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
}

/* Skill Bar Animation */
.skill-bar {
    transition: width 1s ease-in-out;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #d946ef, #06b6d4);
    border-radius: 4px;
}

/* =============================================
   Active Navigation Link Styles
   ============================================= */

/* Desktop Navigation Active State */
.nav-link.active {
    color: #d946ef;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #d946ef, #06b6d4);
    border-radius: 2px;
}

.dark .nav-link.active {
    color: #e879f9;
}

/* Mobile Navigation Active State */
.mobile-nav-link.active {
    color: #d946ef;
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 0.5rem;
    padding-left: 1rem;
    border-left: 3px solid #d946ef;
}

.dark .mobile-nav-link.active {
    color: #e879f9;
    border-left-color: #e879f9;
}

/* =============================================
   Additional Utility Classes
   ============================================= */

/* Smooth transitions for theme toggle */
.theme-transition {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d946ef;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(217, 70, 239, 0.3);
    color: inherit;
}

::-moz-selection {
    background: rgba(217, 70, 239, 0.3);
    color: inherit;
}
