/* Custom CSS for Black-themed Portfolio */

:root {
    --primary-color: #3b82f6;
    --secondary-color: #1e40af;
    --bg-color: #0a0a0a;
    --bg-secondary: #111111;
    --text-color: #ffffff;
    --text-secondary: #a3a3a3;
    --border-color: #333333;
    --card-bg: #1a1a1a;
    --hover-color: #2563eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hover-color);
}

/* Navigation */
.navbar {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--text-color) !important;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--hover-color);
    border-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-outline-light {
    border-color: var(--text-color);
    color: var(--text-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

/* Code Animation */
.code-animation {
    position: relative;
    padding: 2rem;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    color: var(--primary-color);
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: -1s;
}

.floating-icon:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: -2s;
}

.floating-icon:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: -3s;
}

.floating-icon:nth-child(4) {
    top: 40%;
    right: 10%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-15px) rotate(3deg); }
}

/* Section Styling */
.section-padding {
    padding: 100px 0;
}

.bg-dark-secondary {
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-content h3 {
    color: var(--primary-color);
    font-weight: 600;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.stat-item h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.about-image .image-placeholder {
    background-color: var(--card-bg);
    border-radius: 20px;
    height: 400px;
    border: 1px solid var(--border-color);
}

/* Project Cards */
.project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-icon {
    margin-bottom: 1.5rem;
}

.project-card h4 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    margin-bottom: 1.5rem;
}

.tech-badge {
    display: inline-block;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 0.25rem 0.5rem 0.25rem 0;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.project-links .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Skills Section */
.skill-category {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.skill-category h5 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.skill-list {
    list-style: none;
    padding: 0;
}

.skill-list li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.skill-list li:last-child {
    border-bottom: none;
}

/* Contact Section */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
    text-decoration: none;
}

.contact-link i {
    margin-bottom: 0.5rem;
}

.contact-link span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Chatbot */
.chatbot-section {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 350px;
    max-width: calc(100vw - 40px);
}

.chatbot-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
}

.chatbot-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h5 {
    margin: 0;
    font-weight: 600;
}

.chatbot-body {
    transition: all 0.3s ease;
    max-height: 400px;
    overflow: hidden;
}

.chatbot-body.collapsed {
    max-height: 0;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background-color: var(--bg-secondary);
}

.message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease;
}

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

.bot-message {
    color: var(--text-secondary);
}

.user-message {
    flex-direction: row-reverse;
    color: var(--text-color);
}

.user-message i {
    margin-left: 0.5rem;
    margin-right: 0;
}

.bot-message i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.message span {
    background-color: var(--card-bg);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
}

.user-message span {
    background-color: var(--primary-color);
    color: white;
}

.chat-input {
    padding: 1rem;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.chat-input .form-control {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 25px;
}

.chat-input .form-control:focus {
    background-color: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.chat-input .btn {
    border-radius: 25px;
}

/* Loading animation */
.loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loading-dots {
    display: flex;
    gap: 0.25rem;
}

.loading-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
    animation: loadingDots 1.5s infinite ease-in-out;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.3s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes loadingDots {
    0%, 60%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    30% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .chatbot-section {
        width: 100%;
        left: 20px;
        right: 20px;
    }
    
    .contact-links {
        gap: 1rem;
    }
    
    .floating-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .project-card,
    .skill-category {
        padding: 1.5rem;
    }
}
/* About Section Improvements */
.section-header {
    position: relative;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    margin: 1rem auto;
    border-radius: 2px;
}

.about-badge {
    display: inline-block;
}

.badge-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.about-content h3 {
    color: var(--text-color);
    font-weight: 700;
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--text-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Stats Improvements */
.stat-item {
    padding: 1.5rem 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(59, 130, 246, 0.05);
}

.stat-icon {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.2);
    color: var(--hover-color);
}

.stat-item h4 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.stat-item:hover h4 {
    transform: scale(1.1);
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0;
}

/* Image Improvements */
.image-container {
    position: relative;
    display: inline-block;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-profile-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 20px;
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
}

.image-container:hover .about-profile-image {
    transform: scale(1.03);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
    z-index: 3;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.image-container:hover .image-overlay {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), transparent);
}

/* Floating Icons for Image */
.about-image .floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    pointer-events: none;
}

.about-image .floating-icon {
    position: absolute;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.7;
    animation: floatAround 8s ease-in-out infinite;
}

.about-image .floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.about-image .floating-icon:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: -2s;
}

.about-image .floating-icon:nth-child(3) {
    bottom: 25%;
    left: 20%;
    animation-delay: -4s;
}

@keyframes floatAround {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    25% { 
        transform: translate(10px, -15px) rotate(5deg) scale(1.1);
        opacity: 0.9;
    }
    50% { 
        transform: translate(-5px, -10px) rotate(-5deg) scale(0.9);
        opacity: 0.6;
    }
    75% { 
        transform: translate(-10px, 5px) rotate(3deg) scale(1.05);
        opacity: 0.8;
    }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .about-content h3 {
        font-size: 1.8rem;
    }
    
    .stat-item {
        padding: 1rem 0.5rem;
    }
    
    .stat-item h4 {
        font-size: 1.8rem;
    }
    
    .about-image .floating-icon {
        font-size: 1.5rem;
    }
}