html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Poppins', sans-serif; 
    background-color: #000000; 
    color: #d1d5db; /* gray-300 */
    overflow-x: hidden; 
}
.nav-link {
    position: relative;
    transition: color 0.3s ease, transform 0.2s ease;
    padding-bottom: 8px; 
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #8b5cf6; /* violet-500 */
    transition: width 0.3s ease-out;
}
.nav-link.active::after, .nav-link:hover::after {
    width: 100%;
}
.nav-link.active, .nav-link:hover {
    color: #a78bfa; /* violet-400 */
    transform: translateY(-1px);
}

.timeline-item .timeline-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s cubic-bezier(0.165, 0.84, 0.44, 1), 
                padding 0.7s cubic-bezier(0.165, 0.84, 0.44, 1),
                opacity 0.5s ease-out 0.2s;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}
.timeline-item.open .timeline-content {
    max-height: 1500px; 
    padding-top: 1.25rem; 
    padding-bottom: 1.25rem; 
    opacity: 1;
}
.chart-container { /* For Radar Charts */
    position: relative;
    width: 100%;
    max-width: 480px; 
    margin-left: auto;
    margin-right: auto;
    height: 350px; 
    max-height: 400px; 
    margin-bottom: 3.5rem; 
}
.bar-chart-container { /* For Bar Chart */
    position: relative;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    height: 350px; 
    max-height: 420px; 
    margin-bottom: 3.5rem;
}
 @media (min-width: 768px) { 
    .chart-container { 
        height: 370px;
        max-width: 500px;
    }
    .bar-chart-container {
         height: 370px; 
         max-width: 620px;
    }
}
.section-title {
    position: relative;
    padding-bottom: 12px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-image: linear-gradient(to right, #7c3aed, #a78bfa, #7c3aed); /* violet gradient */
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); 
    box-shadow: 0 0 15px #a78bfa;
}
.section-title:hover::after {
    width: 120px;
}
.card {
    background-color: #111827; 
    border: 1px solid #374151; 
    border-radius: 1rem; 
    box-shadow: 0 0 8px rgba(0,0,0,0.4), 
                0 0 20px rgba(139,92,246,0.1), 
                inset 0 0 12px rgba(139,92,246,0.05); 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}
.card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #8b5cf6; 
    box-shadow: 0 0 12px rgba(0,0,0,0.5),
                0 0 35px rgba(139,92,246,0.3),
                inset 0 0 18px rgba(139,92,246,0.1);
}
.timeline-dot {
    background-color: #8b5cf6; 
    box-shadow: 0 0 15px #8b5cf6, 0 0 25px #a78bfa;
    border: 2px solid #000000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    box-shadow: 0 0 20px #8b5cf6, 0 0 35px #a78bfa;
}
.timeline-line {
    background-color: #374151; 
}
.expand-icon::before {
    content: '➔'; 
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); 
    font-weight: bold;
    font-size: 1.2em;
}
.timeline-item.open .expand-icon::before {
    transform: rotate(90deg); 
}

.animate-on-scroll {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out, filter 0.7s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
}
.button-primary {
    background-image: linear-gradient(to right, #7c3aed 0%, #8b5cf6 50%, #a78bfa 100%); 
    background-size: 200% auto;
    color: #ffffff; 
    font-weight: 600; 
    padding: 0.85rem 2.25rem; 
    border-radius: 0.75rem; 
    box-shadow: 0 5px 15px rgba(139,92,246, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.button-primary:hover {
    background-position: right center; 
    box-shadow: 0 8px 20px rgba(139,92,246, 0.5);
    transform: translateY(-3px) scale(1.03);
}
.button-primary:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 2px 10px rgba(139,92,246, 0.3);
}
.hero-text-gradient {
    background-image: linear-gradient(45deg, #a78bfa, #8b5cf6, #c4b5fd); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
.chart-bg-card {
    background-color: rgba(17, 24, 39, 0.7); 
    backdrop-filter: blur(8px);
}
.contact-icon {
    width: 1.1em;
    height: 1.1em;
    margin-right: 0.4em;
    vertical-align: -0.15em;
    color: #a78bfa; 
}
.avatar-container {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem auto; 
    border: 4px solid #8b5cf6; 
    box-shadow: 0 0 25px rgba(139,92,246,0.5);
    background-color: #1f2937; 
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6b7280; 
}
.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-left-color: #a78bfa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.skill-bar-container {
    margin-bottom: 1.25rem;
}
.skill-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #d1d5db; /* gray-300 */
}
.skill-bar-bg {
    height: 12px;
    background-color: #374151; /* gray-700 */
    border-radius: 6px;
    overflow: hidden;
}
.skill-bar-fill {
    height: 100%;
    background-image: linear-gradient(to right, #8b5cf6, #a78bfa); /* violet gradient */
    border-radius: 6px;
    width: 0; /* Initial width for animation */
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1) 0.2s; /* Smooth animation with delay */
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}
.cert-group-title {
    font-weight: 600;
    color: #c4b5fd; /* violet-300 */
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}

