body {
    font-family: 'Nunito', sans-serif;
    /* Subtle dark grid background */
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-color: #030712; /* bg-gray-950 equivalent */
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(to right, #6EE7B7, #60A5FA, #8B5CF6); /* green, blue, purple */
}

/* Custom animation for fade-in effect */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out forwards;
    opacity: 0; /* Start hidden */
}
.animate-fade-in.delay-200 { animation-delay: 0.2s; }
.animate-fade-in.delay-400 { animation-delay: 0.4s; }

/* Custom underline effect for headings */
.section-heading-underline::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #34D399, #1D4ED8);
    margin: 1rem auto 0;
    border-radius: 9999px;
}

/* Card Hover Effect */
.card-hover-effect {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: translateZ(0); /* Force GPU acceleration */
}

.card-hover-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(107, 114, 128, 0.1), rgba(16, 185, 129, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card-hover-effect:hover::before {
    opacity: 1;
}

.card-hover-effect > * {
    position: relative;
    z-index: 2;
}

.card-hover-effect:hover {
    transform: translateY(-5px); /* This gives it a lift effect */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(52, 211, 153, 0.3); /* Green glow */
}

/* --- PRODUCTION ENHANCEMENTS --- */

/* Input focus glow */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.5);
    border-color: #10B981;
}

/* Accessibility: Enhanced focus rings for keyboard navigation */
a:focus-visible, button:focus-visible {
    outline: 2px solid #6EE7B7; /* A bright, visible color */
    outline-offset: 2px;
    border-radius: 4px;
}

/* For form inputs, use the existing glow effect but ensure it's applied for keyboard focus too */
input:focus-visible, textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.5);
    border-color: #10B981;
}

/* Gradient hover for nav links */
.nav-link-hover-gradient:hover {
    background-image: linear-gradient(to right, #34D399, #1D4ED8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Reveal on Scroll Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.6s ease-out;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Resume Timeline Styles */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background-color: #374151; /* Tailwind gray-700 */
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: -6px; /* (12px icon width + 4px border) / 2 - 2px line width */
    top: 6px;
    width: 16px;
    height: 16px;
    background-color: #34D399; /* Green from theme */
    border-radius: 9999px;
    border: 3px solid #030712; /* Page background color */
}

/* NEW: Timeline Card Style */
.timeline-card {
    background-color: rgba(31, 41, 55, 0.4); /* bg-gray-800 with opacity */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(55, 65, 81, 0.5); /* border-gray-700 with opacity */
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(52, 211, 153, 0.4); /* green-400 with opacity */
}


/* --- NEW STYLES FOR LATEST IMPROVEMENTS --- */

/* Glowing Cursor Effect */
#cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.15) 0%, rgba(45, 212, 191, 0) 70%);
    border-radius: 50%;
    pointer-events: none; /* Allows clicking through the element */
    transform: translate(-50%, -50%); /* Center the glow on the cursor */
    z-index: 9998;
    transition: opacity 0.3s ease;
}
/* Hide cursor on touch devices where it's not needed */
@media (hover: none) {
    #cursor-glow {
        display: none;
    }
}


/* Tech Tags for Projects */
.tech-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(107, 114, 128, 0.15); /* gray-400 with opacity */
    color: #a7f3d0; /* Tailwind green-200 */
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Skill Logos */
.skill-logo {
    height: 48px;
    width: 48px;
    transition: transform 0.3s ease;
}
.skill-logo:hover {
    transform: scale(1.1);
}

/* NEW: Interactive Skills Section Styles */
.skill-category-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    background-color: rgba(31, 41, 55, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(55, 65, 81, 0.4);
    padding: 2rem;
    border-radius: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(17, 24, 39, 0.5);
    border-radius: 0.75rem;
    width: 120px;
    height: 120px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.skill-item:hover {
    transform: translateY(-8px);
    background-color: rgba(31, 41, 55, 0.7);
    border-color: rgba(52, 211, 153, 0.5);
}

/* NEW: Polished List Styles */
#future-learning ul {
    list-style: none; /* Remove default bullets */
    padding-left: 0;
}

#future-learning li {
    position: relative;
    padding-left: 28px; /* Make space for the icon */
    margin-bottom: 0.75rem; /* Add spacing between items */
}

#future-learning li::before {
    content: '\f00c'; /* Font Awesome checkmark icon unicode */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #34D399; /* Theme green */
    position: absolute;
    left: 0;
    top: 4px;
    font-size: 1rem;
}


/* --- NEW: Chatbot Styles --- */
#chatbot-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
}

#chatbot-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(to right, #34D399, #1D4ED8);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#chatbot-icon:hover {
    transform: scale(1.1);
}

#chatbot-window {
    position: fixed;
    bottom: 7rem;
    right: 2rem;
    width: 350px;
    height: 500px;
    background-color: #111827; /* gray-900 */
    border: 1px solid #374151; /* gray-700 */
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

#chatbot-window.hidden {
    transform: scale(0);
    opacity: 0;
}

#chatbot-header {
    background-color: #1F2937; /* gray-800 */
    color: white;
    padding: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #374151;
}

#chatbot-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

#chatbot-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    line-height: 1.5;
}

.bot-message {
    background-color: #374151; /* gray-700 */
    color: #E5E7EB; /* gray-200 */
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-message {
    background: linear-gradient(to right, #34D399, #1D4ED8);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

#chatbot-input-container {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #374151; /* gray-700 */
}

#chatbot-input {
    flex-grow: 1;
    border: 1px solid #4B5563; /* gray-600 */
    background-color: #1F2937; /* gray-800 */
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    margin-right: 0.5rem;
}

#chatbot-input:focus {
    outline: none;
    border-color: #34D399;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.5);
}

#chatbot-send-btn {
    background-color: #34D399;
    color: white;
    border: none;
    border-radius: 8px;
    width: 48px;
    height: 48px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

#chatbot-send-btn:hover {
    background-color: #10B981; /* green-500 */
}

/* Typing indicator for chatbot */
.typing .typing-dot {
    animation: typing-bounce 0.8s infinite;
    animation-delay: 0s;
}

.typing .typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing .typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}
.typing {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: #E5E7EB; /* gray-200 */
    border-radius: 50%;
}