/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #d1d5db;
    background-color: #0a0a0f;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== SCROLL PROGRESS BAR ===== */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* ===== HERO SECTION ===== */
.hero-bg {
    background: #0a0a0f;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 1;
    animation: blobFloat 8s ease-in-out infinite;
}

.hero-gradient-blob.blob-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.hero-gradient-blob.blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    bottom: -10%;
    right: -5%;
    animation-delay: -3s;
}

.hero-gradient-blob.blob-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #ffffff !important;
}

.hero-content .typed-role {
    color: transparent;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 600;
}

.typed-cursor {
    color: #8b5cf6 !important;
    font-weight: 300;
}

.hero-content p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: #9ca3af !important;
}

/* Hero stat counters */
.stat-counter {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.stat-number .stat-suffix {
    font-size: 1.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 0.25rem;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    align-self: center;
}

.hero-content .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-content .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.hero-content .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #d1d5db;
}

.hero-content .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ===== GLASSMORPHISM UTILITIES ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ===== SECTION STYLES ===== */
.section-dark {
    background-color: #0a0a0f;
}

.section-dark-alt {
    background-color: #0f0f18;
}

.section-heading {
    color: #ffffff;
}

.section-subheading {
    color: #9ca3af;
}

/* ===== ABOUT SECTION ===== */
.about-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    transition: all 0.3s ease;
}

.about-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 1.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

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

.timeline-dot {
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.timeline-title {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}

.timeline-company {
    color: #8b5cf6;
    font-size: 0.85rem;
    font-weight: 500;
}

.timeline-date {
    color: #6b7280;
    font-size: 0.8rem;
}

/* ===== BENTO GRID SKILLS ===== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

.bento-cell {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: default;
}

.bento-cell:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.bento-cell .skill-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.bento-cell .skill-info h4 {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.bento-cell .skill-info p {
    color: #6b7280;
    font-size: 0.75rem;
    line-height: 1.3;
}

/* Skill category colors */
.skill-icon.data { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.skill-icon.web { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.skill-icon.ai { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.skill-icon.tools { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

/* Bento category header cell */
.bento-category-header {
    grid-column: span 4;
    background: transparent;
    border: none;
    padding: 1.5rem 0 0.5rem 0;
}

@media (max-width: 1024px) {
    .bento-category-header { grid-column: span 3; }
}

@media (max-width: 768px) {
    .bento-category-header { grid-column: span 2; }
}

@media (max-width: 480px) {
    .bento-category-header { grid-column: span 1; }
}

.bento-category-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== PROJECT FILTER TABS ===== */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-tab {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #d1d5db;
}

.filter-tab.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* ===== PROJECT CARDS (Dark Premium) ===== */
.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: background 0.4s ease;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: transparent;
}

.project-card:hover::before {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.project-card .card-image {
    position: relative;
    overflow: hidden;
}

.project-card .card-image img {
    transition: transform 0.4s ease;
}

.project-card:hover .card-image img {
    transform: scale(1.05);
}

.project-card .card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.9), transparent);
    pointer-events: none;
}

.project-card .card-body {
    padding: 1.5rem;
}

.project-card .card-category {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-card .card-title {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0.5rem 0 0.75rem;
}

.project-card .card-description {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.project-card .card-tag {
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Project filter animation */
.project-card.filter-hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.project-card.filter-visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Category colors for cards */
.category-data { color: #60a5fa; }
.category-web { color: #34d399; }
.category-ai { color: #a78bfa; }

/* ===== FLOATING CONTROLS ===== */
.floating-controls {
    position: fixed;
    top: 120px;
    right: 24px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.floating-controls.scrolled {
    opacity: 0.95;
    transform: scale(0.95);
}

/* Hide on mobile */
@media (max-width: 768px) {
    .floating-controls {
        display: none;
    }
}

/* ===== TOGGLE BUTTONS ===== */
.language-toggle,
.dark-mode-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 12px;
    font-weight: 600;
    color: #d1d5db;
}

.language-toggle:hover,
.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* ===== CHATBOT WIDGET ===== */
.chatbot-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    font-family: 'Inter', sans-serif;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chatbot-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.6);
}

.chatbot-toggle:active {
    transform: translateY(0) scale(0.95);
}

.chatbot-notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #0a0a0f;
    animation: pulse-notification 2s infinite;
}

@keyframes pulse-notification {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: #1a1a2e;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: chatbotSlideUp 0.3s ease-out;
    z-index: 9998;
}

.chatbot-window.active {
    display: flex;
}

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

.chatbot-header {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-header-actions { display: flex; gap: 8px; align-items: center; }
.chatbot-header-info { display: flex; align-items: center; gap: 12px; }

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.chatbot-title h3 { margin: 0; font-size: 16px; font-weight: 600; }

.chatbot-status {
    font-size: 12px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chatbot-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
}

.chatbot-close,
.chatbot-fullscreen {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.chatbot-close:hover,
.chatbot-fullscreen:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #111122;
}

.chatbot-message { display: flex; gap: 12px; animation: messageSlideIn 0.3s ease-out; }

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

.bot-message { align-items: flex-start; }
.user-message { align-items: flex-end; flex-direction: row-reverse; }

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

.bot-message .message-avatar {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
}

.user-message .message-avatar {
    background: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
}

.message-content {
    max-width: 80%;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: #d1d5db;
}

.user-message .message-content {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
}

.message-content p { margin: 0; font-size: 14px; line-height: 1.4; }
.message-text { font-size: 14px; line-height: 1.5; text-align: left; white-space: pre-line; }
.message-text strong { font-weight: 600; color: #ffffff; }
.user-message .message-text strong { color: white; }
.message-text em { font-style: italic; color: #9ca3af; }
.user-message .message-text em { color: rgba(255, 255, 255, 0.8); }

.chatbot-window.fullscreen {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    max-width: none; max-height: none;
    border-radius: 0;
    z-index: 9999;
    transform: none;
    margin: 0;
    right: auto;
}

.chatbot-window.fullscreen .chatbot-messages {
    height: calc(100vh - 140px);
    max-height: none;
}

.message-time { font-size: 11px; opacity: 0.6; margin-top: 4px; display: block; }

.chatbot-input-container {
    padding: 16px 20px;
    background: #1a1a2e;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.chatbot-input-wrapper { display: flex; gap: 8px; align-items: center; }

.chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    color: #d1d5db;
}

.chatbot-input:focus {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.08);
}

.chatbot-input::placeholder { color: #6b7280; }

.chatbot-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chatbot-send:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4); }
.chatbot-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

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

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

.chatbot-typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.chatbot-typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@media (max-width: 768px) {
    .chatbot-widget { bottom: 16px; right: 16px; }
    .chatbot-window {
        position: fixed !important;
        width: calc(100vw - 32px);
        height: calc(100vh - 140px);
        top: 50% !important; left: 50% !important;
        bottom: auto !important; right: auto !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        max-width: 400px;
    }
    .chatbot-toggle { width: 56px; height: 56px; }
    body.chatbot-open { overflow: hidden; position: fixed; width: 100%; }
}

@media (max-width: 480px) {
    .chatbot-window {
        position: fixed !important;
        width: calc(100vw - 16px) !important;
        height: calc(100vh - 120px) !important;
        border-radius: 12px;
        top: 50% !important; left: 50% !important;
        bottom: auto !important; right: auto !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
    }
    .chatbot-header { padding: 12px 16px; }
    .chatbot-messages { padding: 16px; }
    .chatbot-input-container { padding: 12px 16px; }
}

/* ===== NAVIGATION STYLES ===== */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
    color: #9ca3af;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: #3b82f6; }

/* ===== HEADER ===== */
#header {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#header .gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background-color: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 8px 8px;
    z-index: 50;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu.active { display: block; animation: slideDown 0.3s ease-out; }

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

.mobile-menu a {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.mobile-menu a:hover { color: #3b82f6; }

/* ===== BUTTON STYLES ===== */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.btn-primary::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;
}

.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ===== FORM STYLES ===== */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: #d1d5db;
    transition: all 0.3s ease;
    font-size: 16px;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background-color: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder { color: #6b7280; }
.form-textarea { resize: vertical; min-height: 120px; }

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #16162a;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #d1d5db;
}

.modal-content h2 { color: #ffffff; }
.modal-content h3 { color: #ffffff; }
.modal-content p { color: #9ca3af; }
.modal-content li { color: #9ca3af; }
.modal-content a { color: #60a5fa; }
.modal-content a:hover { color: #93c5fd; }

.modal-content .bg-blue-50,
.modal-content .bg-green-50,
.modal-content .bg-purple-50,
.modal-content .bg-gray-50 {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px;
}

.modal-content .bg-blue-50 p,
.modal-content .bg-green-50 p,
.modal-content .bg-purple-50 p,
.modal-content .bg-gray-50 p {
    color: #d1d5db !important;
}

.modal-content .text-blue-800,
.modal-content .text-green-800,
.modal-content .text-purple-800,
.modal-content .text-gray-800 {
    color: #d1d5db !important;
}

/* Modal navigation */
.modal-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 1001;
    left: 0; right: 0;
}

.modal-nav-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    z-index: 1002;
    position: relative;
}

.modal-nav-btn:hover { background: rgba(59, 130, 246, 0.5); transform: scale(1.1); }
.modal-prev { margin-left: 20px; }
.modal-next { margin-right: 20px; }

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes modalOpen {
    from { transform: scale(0.8) translateY(-30px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes modalBackdropFade {
    from { opacity: 0; backdrop-filter: blur(0px); }
    to { opacity: 1; backdrop-filter: blur(8px); }
}

.modal-content.modal-open {
    animation: modalOpen 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.modal-backdrop-fade {
    animation: modalBackdropFade 0.3s ease-out;
}

@keyframes slideInFromRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutToLeft {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 0; }
}

@keyframes slideOutToRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.modal-content.slide-in-right { animation: slideInFromRight 0.3s ease-out; }
.modal-content.slide-in-left { animation: slideInFromLeft 0.3s ease-out; }
.modal-content.slide-out-left { animation: slideOutToLeft 0.3s ease-out; }
.modal-content.slide-out-right { animation: slideOutToRight 0.3s ease-out; }

.close {
    color: #9ca3af;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px; top: 15px;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close:hover { color: #ffffff; }

/* ===== ANIMATIONS ===== */
.floating { animation: floating 3s ease-in-out infinite; }

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* ===== GSAP ANIMATION STATES ===== */
.gsap-reveal {
    opacity: 0;
    transform: translateY(40px);
}

/* ===== HERO SECTION BUTTONS ===== */
.hero-content .flex {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.hero-content .btn-primary,
.hero-content .btn-secondary {
    min-width: 180px;
    margin: 0.5rem;
    position: relative;
    z-index: 10;
}

/* ===== CONTACT SECTION ===== */
#contact {
    background: #0f0f18;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-bg { padding: 60px 0; min-height: auto; }
    .stat-number { font-size: 1.75rem; }
    .stat-label { font-size: 0.75rem; }
    .stat-divider { height: 40px; }
    .project-card { margin-bottom: 20px; }
    .modal-content { width: 95%; margin: 10% auto; }
    .hero-content .btn-primary,
    .hero-content .btn-secondary {
        min-width: 160px;
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    .about-card { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-bg { padding: 40px 0; }
    .modal-content { width: 98%; margin: 5% auto; }
    .btn-primary, .btn-secondary { width: 100%; margin-bottom: 12px; }
    .hero-content .btn-primary,
    .hero-content .btn-secondary {
        min-width: 140px;
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
    .stat-number { font-size: 1.5rem; }
}

/* ===== LOADING ANIMATIONS ===== */
.loading {
    display: inline-block;
    width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ===== LIGHT MODE OVERRIDES ===== */
.light-mode {
    background-color: #f9fafb;
    color: #374151;
}

.light-mode #header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #e5e7eb;
}

.light-mode .nav-link { color: #6b7280; }
.light-mode .nav-link:hover { color: #3b82f6; }

.light-mode .hero-bg { background: #0a0a0f; }

.light-mode .section-dark { background-color: #ffffff; }
.light-mode .section-dark-alt { background-color: #f9fafb; }

.light-mode .section-heading { color: #111827; }
.light-mode .section-subheading { color: #6b7280; }

/* Light mode glass card */
.light-mode .glass-card,
.light-mode .about-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: #e5e7eb;
}

/* Light mode about */
.light-mode .about-badge {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #374151;
}

.light-mode .timeline-item { border-left-color: #e5e7eb; }
.light-mode .timeline-title { color: #111827; }
.light-mode .timeline-company { color: #7c3aed; }
.light-mode .timeline-date { color: #9ca3af; }

/* Light mode bento grid */
.light-mode .bento-cell {
    background: #ffffff;
    border-color: #e5e7eb;
}

.light-mode .bento-cell:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.light-mode .bento-cell .skill-info h4 { color: #111827; }
.light-mode .bento-cell .skill-info p { color: #9ca3af; }
.light-mode .bento-category-header h3 { color: #6b7280; }

/* Light mode filter tabs */
.light-mode .filter-tab {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #6b7280;
}

.light-mode .filter-tab:hover {
    background: #e5e7eb;
    color: #374151;
}

.light-mode .filter-tab.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #ffffff;
    border-color: transparent;
}

/* Light mode project cards */
.light-mode .project-card {
    background: #ffffff;
    border-color: #e5e7eb;
}

.light-mode .project-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.light-mode .project-card .card-title { color: #111827; }
.light-mode .project-card .card-description { color: #6b7280; }
.light-mode .project-card .card-tags { border-top-color: #e5e7eb; }
.light-mode .project-card .card-tag {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #e5e7eb;
}

.light-mode .project-card .card-image::after {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
}

/* Light mode modals */
.light-mode .modal-content {
    background-color: #ffffff;
    border-color: #e5e7eb;
    color: #374151;
}

.light-mode .modal-content h2 { color: #111827; }
.light-mode .modal-content h3 { color: #111827; }
.light-mode .modal-content p { color: #6b7280; }
.light-mode .modal-content li { color: #6b7280; }

.light-mode .modal-content .bg-blue-50,
.light-mode .modal-content .bg-green-50,
.light-mode .modal-content .bg-purple-50,
.light-mode .modal-content .bg-gray-50 {
    background: #f3f4f6 !important;
}

.light-mode .modal-content .bg-blue-50 p,
.light-mode .modal-content .bg-green-50 p,
.light-mode .modal-content .bg-purple-50 p,
.light-mode .modal-content .bg-gray-50 p {
    color: #374151 !important;
}

.light-mode .modal-content .text-blue-800 { color: #1e40af !important; }
.light-mode .modal-content .text-green-800 { color: #166534 !important; }
.light-mode .modal-content .text-purple-800 { color: #6b21a8 !important; }
.light-mode .modal-content .text-gray-800 { color: #1f2937 !important; }

.light-mode .close { color: #9ca3af; }
.light-mode .close:hover { color: #111827; }

/* Light mode form */
.light-mode .form-input {
    background-color: #ffffff;
    border-color: #d1d5db;
    color: #374151;
}

.light-mode .form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #ffffff;
}

.light-mode .form-input::placeholder { color: #9ca3af; }

/* Light mode toggle buttons */
.light-mode .language-toggle,
.light-mode .dark-mode-toggle {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.light-mode .language-toggle:hover,
.light-mode .dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Light mode mobile menu */
.light-mode .mobile-menu {
    background-color: rgba(255, 255, 255, 0.95);
    border-top-color: #e5e7eb;
}

.light-mode .mobile-menu a { color: #6b7280; }
.light-mode .mobile-menu a:hover { color: #3b82f6; }

/* Light mode contact */
.light-mode #contact { background: #111827; }

/* Light mode chatbot */
.light-mode .chatbot-window {
    background: white;
    border-color: #e5e7eb;
}

.light-mode .chatbot-messages { background: #f9fafb; }
.light-mode .chatbot-input-container { background: white; border-color: #e5e7eb; }
.light-mode .message-content { background: white; color: #374151; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.light-mode .user-message .message-content { background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: white; }
.light-mode .chatbot-input { background: #f9fafb; border-color: #d1d5db; color: #374151; }
.light-mode .chatbot-input:focus { background: white; border-color: #3b82f6; }
.light-mode .message-text strong { color: #1f2937; }
.light-mode .user-message .message-avatar { background: #e5e7eb; color: #374151; }
.light-mode .chatbot-notification-dot { border-color: white; }

/* Light mode scrollbar */
.light-mode ::-webkit-scrollbar-track { background: #f1f1f1; }
.light-mode ::-webkit-scrollbar-thumb { background: #c1c1c1; }
.light-mode ::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }

/* Light mode stat counters */
.light-mode .stat-divider { background: rgba(255, 255, 255, 0.1); }
