  /* Reset and base styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #2a2a4a 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Floating AI Chat Button */
.ai-chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.ai-chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(78, 205, 196, 0.4);
}

.ai-chat-toggle:active {
    transform: scale(0.95);
}

/* AI Chat Panel */
.ai-chat-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 360px;
    max-height: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-chat-panel.active {
    transform: translateY(0);
    opacity: 1;
}

.chat-header {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.chat-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.2s;
}

.close-chat:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-body {
    height: 300px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.02);
}

.welcome-message {
    margin-bottom: 20px;
}

.message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    color: black;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.user-message .avatar {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.ai-message .avatar {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.message-content {
    display: flex;
    gap: 12px;
    flex: 1;
}

.message .message {
    background: rgba(0, 0, 0, 0.05);
    padding: 12px 16px;
    border-radius: 18px;
    max-width: calc(100% - 44px);
    line-height: 1.4;
}

.user-message .message {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    margin-left: auto;
    text-align: right;
}

.ai-message .message {
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-10px); opacity: 1; }
}

.chat-input-container {
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    display: flex;
    gap: 12px;
}

#chatInput {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

#chatInput:focus {
    border-color: #4ecdc4;
}

#sendMessage {
    padding: 12px 20px;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

#sendMessage:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

#sendMessage:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Portfolio Layout */
.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-section {
    text-align: center;
    padding: 80px 0 60px;
    position: relative;
}

.profile-section {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 40px auto;
}

.profile-image {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(102, 126, 234, 0.1));
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

#model-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    cursor: grab;
}

#model-canvas:active {
    cursor: grabbing;
}

.profile-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.profile-text h2 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: #a0aec0;
    font-weight: 400;
    margin-bottom: 20px;
}

.tagline {
    font-size: 1.1rem;
    color: #cbd5e0;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.social-btn svg {
    transition: transform 0.2s;
}

.social-btn:hover svg {
    transform: scale(1.1);
}

.github { color: #667eea; }
.linkedin { color: #4ecdc4; }

.portfolio-main {
    padding: 0 0 80px;
}

/* Section Styles */
.skills-section, .projects-section, .about-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.skills-section.animate-in, .projects-section.animate-in, .about-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

section {
    margin-bottom: 100px;
}

section h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    font-weight: 600;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #4ecdc4, #667eea);
    border-radius: 2px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.skill-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 600;
}

.skill-card p {
    color: #a0aec0;
    line-height: 1.6;
}

/* ===== ENHANCED PROJECTS GRID & CARDS ===== */

/* Projects Grid with Staggered Animation */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    margin-top: 50px;
    perspective: 1000px;
}

/* Project Card with Glass Morphism Effect */
.project-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.02) 100%);
    border-radius: 24px;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(20px);
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: translateY(30px) rotateX(5deg);
    animation: cardEntrance 0.8s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes cardEntrance {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* Animated Gradient Border */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        #4ecdc4, 
        #667eea, 
        #ff6b6b, 
        #4ecdc4);
    background-size: 300% 100%;
    animation: gradientShift 4s ease infinite;
    z-index: 2;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Holographic Effect on Hover */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.project-card:hover::after {
    left: 100%;
}

/* Enhanced Hover Effects */
.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(78, 205, 196, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.04) 100%);
}

/* Project Header with Improved Layout */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
    z-index: 3;
}

.project-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    flex: 1;
    margin-right: 15px;
}

/* Enhanced Language/Status Tags */
.language-tag {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.2), rgba(102, 126, 234, 0.2));
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4ecdc4;
    border: 1px solid rgba(78, 205, 196, 0.4);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.language-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

/* Private Repository Badge */
.private-badge {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(238, 90, 36, 0.2));
    color: #ff6b6b;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 107, 107, 0.4);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.private-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Improved Project Description */
.project-description {
    color: #cbd5e0;
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 1rem;
    position: relative;
    z-index: 3;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 12px;
    border-left: 3px solid #4ecdc4;
}

/* Technology Tags Grid */
.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    position: relative;
    z-index: 3;
}

.tech-tag {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(102, 126, 234, 0.15));
    color: #4ecdc4;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(78, 205, 234, 0.3);
    transition: all 0.3s ease;
    cursor: default;
    backdrop-filter: blur(10px);
}

.tech-tag:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.25), rgba(102, 126, 234, 0.25));
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.2);
}

/* Project Meta Information */
.project-meta {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    color: #a0aec0;
    position: relative;
    z-index: 3;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: #4ecdc4;
    font-size: 0.9rem;
}

/* Enhanced Project Links */
.project-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

/* Modern Button Styles */
.btn-secondary, .btn-outline {
    padding: 10px 20px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-secondary {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(78, 205, 196, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* ===== ENHANCED OUTLINE BUTTON (Similar to live-link) ===== */
.btn-outline {
    padding: 10px 20px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    
    /* Similar to live-link style */
    background: transparent;
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.6);
    
    /* Enhanced glow effect */
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

/* Shine effect on hover */
.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(102, 126, 234, 0.1),
        transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.btn-outline:hover::before {
    left: 100%;
}

/* Hover effects matching the desired style */
.btn-outline:hover {
    transform: translateY(-3px);
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    color: #667eea;
}

/* Icon animation */
.btn-outline i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.btn-outline:hover i {
    transform: translateX(2px);
}

/* Active state */
.btn-outline:active {
    transform: translateY(-1px);
    transition: all 0.1s ease;
}

/* Specific variants to match your color scheme */
.btn-outline.primary {
    color: #4ecdc4;
    border-color: rgba(78, 205, 196, 0.6);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.2);
}

.btn-outline.primary:hover {
    background: rgba(78, 205, 196, 0.1);
    border-color: #4ecdc4;
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

.btn-outline.accent {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.6);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
}

.btn-outline.accent:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

/* Keep the existing github-link and live-link styles intact */
.github-link {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.github-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.live-link {
    background: transparent;
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.6);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.live-link:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
    .btn-outline {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .btn-outline {
        transition: none;
    }
    
    .btn-outline::before {
        display: none;
    }
    
    .btn-outline:hover {
        transform: translateY(-2px);
    }
    
    .btn-outline:hover i {
        transform: none;
    }
}
/* GitHub Link Specific Styles */
.github-link {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.github-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

/* Live Demo Link Specific Styles */
.live-link {
    background: transparent;
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.6);
}

.live-link:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

/* View All Section */
.view-all {
    text-align: center;
    margin-top: 80px;
    position: relative;
}

.view-all::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    z-index: 1;
}

/* Featured Project Highlight */
.project-card.featured {
    border: 2px solid rgba(78, 205, 196, 0.3);
    box-shadow: 
        0 0 40px rgba(78, 205, 196, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project-card.featured::before {
    height: 6px;
    background: linear-gradient(90deg, 
        #4ecdc4, 
        #667eea, 
        #ff6b6b, 
        #4ecdc4,
        #667eea);
    animation: gradientShift 3s ease infinite;
}

/* Loading State for Cards */
.project-card.loading {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 25%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }
    
    .project-card {
        padding: 25px;
        margin: 0 10px;
    }
    
    .project-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .project-header h3 {
        margin-right: 0;
    }
    
    .project-links {
        justify-content: center;
    }
    
    .btn-secondary, .btn-outline {
        flex: 1;
        justify-content: center;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card {
        padding: 20px;
        border-radius: 20px;
    }
    
    .project-technologies {
        justify-content: center;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .project-links {
        flex-direction: column;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .project-card {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.05) 0%, 
            rgba(255, 255, 255, 0.02) 100%);
    }
    
    .project-card:hover {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.08) 0%, 
            rgba(255, 255, 255, 0.03) 100%);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .project-card {
        animation: none;
        transform: none;
    }
    
    .project-card::before,
    .project-card::after,
    .btn-secondary::before,
    .btn-outline::before {
        animation: none;
        display: none;
    }
    
    .project-card:hover {
        transform: translateY(-5px);
    }
    
    .btn-secondary:hover,
    .btn-outline:hover {
        transform: translateY(-2px);
    }
}
/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    color: #a0aec0;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.7;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 40px;
    margin-top: 40px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4ecdc4, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.stat-label {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
.portfolio-footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #718096;
    font-size: 0.9rem;
}

/* Loading Animation */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 26, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(78, 205, 196, 0.3);
    border-top: 3px solid #4ecdc4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-text {
    color: #4ecdc4;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Particles Canvas */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-container {
        padding: 0 15px;
    }
    
    .profile-section {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .ai-chat-panel {
        width: calc(100vw - 60px);
        right: 30px;
        bottom: 20px;
        max-height: calc(100vh - 120px);
    }
    
    .chat-body {
        height: 250px;
    }
    
    .skills-grid, .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 20px;
    }
    
    .project-card {
        padding: 20px;
    }
    
    .ai-chat-toggle {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .chat-input-container {
        flex-direction: column;
    }
    
    #sendMessage {
        width: 100%;
        justify-content: center;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Scrollbar Styling */
.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.chat-body::-webkit-scrollbar-thumb {
    background: rgba(78, 205, 196, 0.3);
    border-radius: 3px;
}

.chat-body::-webkit-scrollbar-thumb:hover {
    background: rgba(78, 205, 196, 0.5);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.ai-chat-toggle:focus,
.close-chat:focus,
#chatInput:focus,
#sendMessage:focus,
.social-btn:focus,
.btn-secondary:focus,
.btn-outline:focus {
    outline: 2px solid #4ecdc4;
    outline-offset: 2px;
}



        /* Exploration UI Styles */
        .explore-toggle {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1000;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 50px;
            padding: 12px 24px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
            transition: all 0.3s ease;
            font-family: inherit;
        }

        .explore-toggle:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
        }

        .explore-toggle.exploring {
            background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .exploration-message {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) translateY(30px);
            background: rgba(0, 0, 0, 0.8);
            color: #00ffff;
            padding: 15px 25px;
            border-radius: 25px;
            font-size: 16px;
            font-weight: 600;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.5s ease;
            text-align: center;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(0, 255, 255, 0.3);
        }

        .exploration-message.show {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, -50%) translateY(0);
        }

        /* Highlight for sections during exploration */
        .explore-highlight {
            outline: 3px solid #00ffff !important;
            box-shadow: 0 0 30px #00ffff !important;
            transition: all 0.3s ease !important;
            background: rgba(0, 255, 255, 0.1) !important;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .explore-toggle {
                bottom: 80px;
                right: 20px;
                padding: 10px 20px;
                font-size: 12px;
            }
            
            .exploration-message {
                font-size: 14px;
                padding: 12px 20px;
                max-width: 90%;
            }
        }

        /* Existing styles remain the same */
        .ai-chat-toggle {
            position: fixed;
            bottom: 20px;
            left: 20px;
            z-index: 1000;
            background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
            color: #333;
            border: none;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            font-size: 24px;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(255, 154, 158, 0.4);
            transition: all 0.3s ease;
        }

        .ai-chat-toggle:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(255, 154, 158, 0.6);
        }

        .ai-chat-panel {
            position: fixed;
            bottom: 90px;
            left: 20px;
            width: 350px;
            max-height: 500px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            transform: translateY(100%);
            transition: transform 0.3s ease;
            z-index: 1001;
            overflow: hidden;
            display: none;
        }

        .ai-chat-panel.active {
            transform: translateY(0);
            display: block;
        }

        .chat-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .chat-header h3 {
            margin: 0;
            font-size: 16px;
        }

        .close-chat {
            background: none;
            border: none;
            color: white;
            font-size: 18px;
            cursor: pointer;
            padding: 0;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .chat-body {
            height: 300px;
            overflow-y: auto;
            padding: 15px;
            background: #f8f9fa;
        }

        .message {
            margin-bottom: 15px;
            display: flex;
            animation: fadeIn 0.3s ease;
        }

        .message-content {
            display: flex;
            gap: 10px;
            align-items: flex-start;
        }

        .avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            flex-shrink: 0;
        }

        .user-message .avatar {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .ai-message .avatar {
            background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
            color: #333;
        }

        .message-text {
            background: white;
            padding: 10px 15px;
            border-radius: 18px;
            max-width: 80%;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .user-message .message-text {
            margin-left: auto;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .chat-input-container {
            padding: 15px;
            background: white;
            border-top: 1px solid #eee;
            display: flex;
            gap: 10px;
        }

        #chatInput {
            flex: 1;
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 25px;
            outline: none;
            font-size: 14px;
        }

        #chatInput:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
        }

        #sendMessage {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 25px;
            padding: 10px 20px;
            cursor: pointer;
            font-weight: 600;
            transition: transform 0.2s ease;
        }

        #sendMessage:hover:not(:disabled) {
            transform: translateY(-1px);
        }

        #sendMessage:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .typing-indicator {
            display: flex;
            gap: 4px;
            padding: 10px 0;
        }

        .typing-indicator span {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #667eea;
            animation: typing 1.4s infinite ease-in-out;
        }

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

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

        @keyframes typing {
            0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
            30% { transform: translateY(-10px); opacity: 1; }
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .ai-chat-panel {
                left: 10px;
                right: 10px;
                width: auto;
                bottom: 70px;
            }
            
            .explore-toggle {
                bottom: 22px;
            }
            
            .ai-chat-toggle {
                bottom: 10px;
            }
        }

                    /* Existing styles assumed to be in style.css, adding new styles for audio controls */
            .message-content {
                display: flex;
                align-items: flex-start;
                gap: 10px;
            }
            .audio-control {
                cursor: pointer;
                font-size: 1.2rem;
                background: none;
                border: none;
                padding: 0;
                margin-top: 2px;
                color: #06b6d4;
            }
            .audio-control:hover {
                color: #0891b2;
            }
            .ai-message .message {
                flex-grow: 1;
            }

                        /* Existing styles assumed to be in style.css, adding new styles for audio controls */
                        .message-content {
                            display: flex;
                            align-items: flex-start;
                            gap: 10px;
                        }
                        .audio-control {
                            cursor: pointer;
                            font-size: 1.2rem;
                            background: none;
                            border: none;
                            padding: 0;
                            margin-top: 2px;
                            color: #06b6d4;
                        }
                        .audio-control:hover {
                            color: #0891b2;
                        }
                        .ai-message .message {
                            flex-grow: 1;
                        }

                        a.btn-primary {
                            background: #000000;
                            color: #ffffff;
                            padding: 0.75rem 1.25rem;
                            border-radius: 8px;
                            text-decoration: none;
                            font-weight: 600;
                            transition: all 0.3s ease;
                            display: inline-flex;
                            margin-top: 130px;
                            align-items: center;
                            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
                            border: 1px solid #333333;
                        }
                        
                        a.btn-primary:hover {
                            background: #333333;
                            transform: translateY(-2px);
                            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
                            color: #ffffff;
                        }
                        
                        .resume-btn {
                            background: #e74c3c;
                            color: #ffffff;
                            padding: 0.75rem 1.25rem;
                            border-radius: 8px;
                            text-decoration: none;
                            font-weight: 600;
                            transition: all 0.3s ease;
                            display: inline-flex;
                            align-items: center;
                            box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
                            border: 1px solid #c0392b;
                        }
                        
                        .resume-btn:hover {
                            background: #c0392b;
                            transform: translateY(-2px);
                            box-shadow: 0 6px 12px rgba(231, 76, 60, 0.4);
                            color: #ffffff;
                        }
        /* Header and Navigation Styles */
/* Enhanced Header and Navigation Styles */
.site-header {
    background: linear-gradient(90deg, #0a0a1a, #1e3a8a);
    padding: 0.9rem 2.5rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #06b6d4;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: #06b6d4;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 4px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

@media (max-width: 768px) {
    .site-header {
        padding: 1rem 1.5rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.85);

        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        border-radius: 0 0 8px 8px;
        transform: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        font-size: 1.2rem;
        padding: 0.5rem 0;
    }

    .resume-btn {
        text-align: center;
        margin-top: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .portfolio-container {
        margin-top: 90px;
    }

    .logo {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 1rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .nav-menu a {
        font-size: 1rem;
    }

    .portfolio-container {
        margin-top: 80px;
    }
}




.search-container {
    position: relative;
    display: inline-block;
    margin-left: 20px;
}

#searchInput {
    padding: 8px 36px 8px 12px; /* فضای سمت راست برای آیکون */
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 14px;
    width: 200px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 6px rgba(6, 182, 212, 0.5);
}

/* آیکون ذره‌بین داخل input */
.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    pointer-events: none; /* آیکون روی تایپ تاثیر نذاره */
    transition: color 0.3s ease;
}

#searchInput:focus + .search-icon {
    color: #06b6d4;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.suggestion-item:hover {
    background: #f0f0f0;
}

.suggestion-item strong {
    display: block;
    font-size: 14px;
    color: #1e3a8a;
}

.suggestion-item p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #666;
}

/* AI Chat Panel Styles */
.ai-chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .ai-chat-toggle img {
    width: 80px;
    height: 40px;
    margin-left: -8px;
  }
  
  .ai-chat-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
  }
  
  .ai-chat-panel {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
  }
  
  .ai-chat-panel.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
  }
  
  .close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
  }
  
  .close-chat:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  
  .chat-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .chat-input-container {
    padding: 16px;
    border-top: 1px solid #e2e8f0;
    background: white;
    border-radius: 0 0 16px 16px;
    display: flex;
    gap: 8px;
  }
  
  #chatInput {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
  }
  
  #chatInput:focus {
    border-color: #667eea;
  }
  
  #sendMessage {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
    white-space: nowrap;
  }
  
  #sendMessage:hover:not(:disabled) {
    background: #5a6fd8;
  }
  
  #sendMessage:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
  }
  
  /* Message Styles */
  .message {
    display: flex;
    gap: 8px;
  }
  
  .message-content {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    max-width: 100%;
  }
  
  .user-message .message-content {
    flex-direction: row-reverse;
  }
  
  .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    overflow: hidden;
  }
  
  .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .user-message .avatar {
    background: #48bb78;
  }
  
  .message .message {
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 280px;
    word-wrap: break-word;
  }
  
  .user-message .message {
    background: #667eea;
    color: white;
  }
  
  .audio-control {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    padding: 6px;
    border-radius: 4px;
    transition: background 0.2s ease;
    align-self: center;
  }
  
  .audio-control:hover {
    background: rgba(0, 0, 0, 0.1);
  }
  
  .typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 0;
  }
  
  .typing-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #667eea;
    animation: typing 1.4s infinite ease-in-out;
  }
  
  .typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
  .typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
  
  @keyframes typing {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
  }
  
  .welcome-message {
    display: flex;
    gap: 8px;
    align-items: flex-start;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .ai-chat-panel {
      width: calc(100vw - 40px);
      height: 60vh;
      right: 20px;
      left: 20px;
      bottom: 80px;
    }
    
    .ai-chat-toggle {
      right: 20px;
      bottom: 20px;
      padding: 10px 16px;
      font-size: 12px;
    }
    
    .ai-chat-toggle img {
        width: 80px;
        height: 40px;
        margin-left: -4px;
    }
  }
  /* Active Navigation Styles */
.nav-menu a.active {
    color: #667eea;
    font-weight: 600;
    position: relative;
  }
  
  .nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
  }
  
  /* Mobile navigation active state */
  @media (max-width: 768px) {
    .nav-menu.active a.active {
      background: rgba(102, 126, 234, 0.1);
      border-radius: 8px;
    }
  }
  
  /* Ensure home section is properly targeted */
  .hero-section#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }

  /* Additional styles for skills section */
  .skills-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
  }
  
  .skill-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
  }
  
  .skill-category h3 {
    color: #4ecdc4;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .skill-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .skill-category li {
    padding: 8px 0;
    color: #a0aec0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .skill-category li:last-child {
    border-bottom: none;
  }
  
  .skill-category li i {
    color: #4ecdc4;
    width: 16px;
  }
  
  .projects-preview {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .projects-preview p {
    color: #a0aec0;
    margin-bottom: 20px;
    font-size: 1.1rem;
  }
  
  .btn-projects {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  }
  
  .btn-projects:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  }
  
  /* Skill proficiency indicators */
  .skill-level {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
  }
  
  .skill-dots {
    display: flex;
    gap: 4px;
  }
  
  .skill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
  }
  
  .skill-dot.filled {
    background: #4ecdc4;
  }
  
  .skill-level-text {
    font-size: 0.75rem;
    color: #718096;
  }