/*
MAINUL-X Portfolio - Main Styles
Author: Md. Mainul Islam
GitHub: https://github.com/M41NUL
*/

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

:root {
    --primary: #2563eb;
    --secondary: #7c3aed;
    --accent: #f59e0b;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --gray: #94a3b8;
    --card-bg: #1e293b;
    --border: #334155;
    --shadow: 0 10px 30px rgba(0,0,0,0.3);
    --gradient: linear-gradient(135deg, #2563eb, #7c3aed);
    
    --facebook: #1877f2;
    --messenger: #0084ff;
    --instagram: #e4405f;
    --whatsapp: #25d366;
    --telegram: #0088cc;
    --github: #333;
    --email: #ea4335;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--darker);
    color: var(--light);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== DARK MODE FIX - Light Mode Variables ===== */
body.light-mode {
    --darker: #ffffff !important;
    --light: #0f172a !important;
    --card-bg: #f8fafc !important;
    --border: #e2e8f0 !important;
    --gray: #475569 !important;
}

/* Force ALL elements to update */
body.light-mode,
body.light-mode .top-bar,
body.light-mode .tab-menu,
body.light-mode .hero,
body.light-mode .section,
body.light-mode .skills-preview,
body.light-mode .testimonial-section,
body.light-mode .current-work,
body.light-mode .services-grid-modern,
body.light-mode .projects-list,
body.light-mode .about-content,
body.light-mode .payment-grid-split,
body.light-mode .contact-grid-side,
body.light-mode .report-section,
body.light-mode footer,
body.light-mode .chatbot-container,
body.light-mode .chatbot-messages,
body.light-mode .quick-questions,
body.light-mode .chatbot-input,
body.light-mode .dropdown-menu,
body.light-mode .setting-icon {
    background-color: var(--darker) !important;
    color: var(--light) !important;
    border-color: var(--border) !important;
}

/* Cards and containers */
body.light-mode .service-card-modern,
body.light-mode .project-item,
body.light-mode .contact-card-modern,
body.light-mode .payment-card-group,
body.light-mode .payment-card-modern,
body.light-mode .testimonial-card,
body.light-mode .achievement-item {
    background: var(--card-bg) !important;
    border-color: var(--border) !important;
}

/* Text colors */
body.light-mode .hero-title,
body.light-mode .static-text,
body.light-mode .hero-description p,
body.light-mode .about-text p,
body.light-mode .service-card-modern p,
body.light-mode .project-info p,
body.light-mode .contact-info-modern p,
body.light-mode .payment-label,
body.light-mode .file-name,
body.light-mode .message-time {
    color: var(--gray) !important;
}

/* Buttons */
body.light-mode .btn.secondary-btn {
    background: var(--card-bg) !important;
    color: var(--light) !important;
    border-color: var(--border) !important;
}

/* Dropdown items */
body.light-mode .dropdown-item {
    color: var(--light) !important;
}

body.light-mode .dropdown-item:hover {
    background: var(--gradient) !important;
    color: white !important;
}

/* Chatbot specific */
body.light-mode .chatbot-header {
    background: var(--gradient) !important;
    color: white !important;
}

body.light-mode .message.user .message-content {
    background: var(--gradient) !important;
    color: white !important;
}

body.light-mode .message.bot .message-content {
    background: var(--card-bg) !important;
    color: var(--light) !important;
}

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

/* Top Bar */
.top-bar {
    background: rgba(2,6,23,0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
}

.home-icon:hover {
    transform: scale(1.1);
}

.settings-wrapper {
    position: relative;
}

.setting-icon {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.setting-icon:hover {
    background: var(--gradient);
    border-color: transparent;
}

.setting-icon.rotate {
    animation: spin 0.5s ease;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(180deg); }
}

.dropdown-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    min-width: 200px;
    display: none;
    z-index: 100;
    box-shadow: var(--shadow);
}

.dropdown-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.dropdown-item {
    width: 100%;
    padding: 12px 15px;
    background: none;
    border: none;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--gradient);
}

.dropdown-item i {
    width: 20px;
    font-size: 16px;
}

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

/* ===== Tab Menu - 8 icons 1 line ===== */
.tab-menu {
    background: var(--card-bg);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 64px;
    z-index: 999;
}

.tab-container {
    display: flex;
    justify-content: center;
    gap: 2px;
    flex-wrap: wrap;
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 16px;
    font-size: 12px;
    text-decoration: none;
    color: var(--gray);
    transition: 0.3s;
    background: transparent;
}

.tab-item i {
    font-size: 14px;
}

.tab-item:hover,
.tab-item.active {
    background: var(--gradient);
    color: white;
}

@media (max-width: 768px) {
    .tab-item span {
        display: none;
    }
    .tab-item i {
        font-size: 18px;
    }
    .tab-item {
        padding: 6px 10px;
    }
}

/* Hero Section */
.hero {
    padding: 40px 0;
    text-align: center;
}

.profile-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    position: relative;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    position: relative;
    z-index: 2;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.online-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid var(--darker);
    z-index: 3;
    animation: pulse 2s infinite;
}

.rotating-border {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    border-bottom-color: var(--accent);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: rotate 4s linear infinite;
}

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

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

.hero-title {
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.hero-subheading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    font-size: 20px;
    flex-wrap: wrap;
}

.static-text {
    color: var(--gray);
}

.typing-text {
    color: var(--accent);
    font-weight: 600;
    min-width: 250px;
    text-align: left;
}

.hero-description {
    max-width: 800px;
    margin: 20px auto;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.8;
}

/* My Expertise */
.skills-preview {
    margin: 50px 0;
    padding: 20px 0;
    width: 100%;
    overflow: visible;
}

.skills-preview h3 {
    margin-bottom: 35px;
    font-size: 26px;
    text-align: center;
}

.skills-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px;
}

.skill-item {
    text-align: center;
    min-width: 120px;
    flex: 0 1 auto;
}

.skill-circle {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
}

.skill-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 8;
}

.circle-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    animation: fillCircle 1.5s ease forwards;
}

.skill-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.skill-item p {
    margin-top: 5px;
    font-size: 14px;
    font-weight: 500;
    color: var(--light);
}

@keyframes fillCircle {
    to { stroke-dashoffset: 0; }
}

/* Testimonials */
.testimonial-section {
    margin: 40px 0;
}

.testimonial-section h3 {
    margin-bottom: 25px;
    font-size: 22px;
}

.testimonial-slider {
    position: relative;
    min-height: 180px;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border);
    display: none;
    text-align: left;
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.testimonial-card i {
    font-size: 24px;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 10px;
}

.client-info h4 {
    margin-top: 15px;
    font-size: 14px;
}

.client-info span {
    font-size: 12px;
    color: var(--gray);
}

.slider-dots {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* Achievement Grid */
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 40px 0;
}

.achievement-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.achievement-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.achievement-item i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
}

.achievement-item .counter {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: var(--light);
}

.achievement-item p {
    color: var(--gray);
    font-size: 12px;
}

/* Current Work */
.current-work {
    margin: 40px 0;
    text-align: left;
}

.current-work h3 {
    margin-bottom: 25px;
    font-size: 22px;
    text-align: center;
}

.work-progress {
    max-width: 600px;
    margin: 0 auto;
}

.progress-item {
    margin-bottom: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 13px;
    color: var(--light);
}

.progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 3px;
    animation: fillWidth 1.5s ease forwards;
}

@keyframes fillWidth {
    from { width: 0; }
}

/* Tech Stack */
.tech-stack {
    margin: 40px 0;
}

.tech-stack h3 {
    margin-bottom: 25px;
    font-size: 22px;
}

.tech-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tech-icons i {
    font-size: 32px;
    color: var(--gray);
    transition: 0.3s;
    cursor: pointer;
}

.tech-icons i:hover {
    color: var(--primary);
    transform: translateY(-3px) scale(1.1);
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.btn {
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.primary-btn {
    background: var(--gradient);
    color: white;
}

.secondary-btn {
    background: var(--card-bg);
    color: var(--light);
    border: 1px solid var(--border);
}

.whatsapp-btn {
    background: #25d366;
    color: white;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow);
}

/* Section */
.section {
    padding: 50px 0;
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary);
}

/* Services Grid */
.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card-modern {
    background: var(--card-bg);
    padding: 25px 20px;
    border-radius: 15px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}

.service-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.card-icon i {
    font-size: 22px;
    color: white;
}

.service-card-modern h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-card-modern p {
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 15px;
}

.card-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(37,99,235,0.2);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
}

/* Projects List */
.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.project-item {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
    text-decoration: none;
    color: var(--light);
}

.project-item:hover {
    transform: translateX(5px);
    border-color: var(--secondary);
    background: var(--gradient);
}

.project-item i {
    font-size: 20px;
    color: var(--primary);
}

.project-item:hover i {
    color: white;
}

.project-info {
    flex: 1;
}

.project-info h4 {
    font-size: 14px;
    margin-bottom: 3px;
}

.project-info p {
    font-size: 11px;
    color: var(--gray);
}

.project-item:hover .project-info p {
    color: rgba(255,255,255,0.8);
}

.view-more {
    text-align: center;
    margin-top: 25px;
}

/* About Section - Bold Italic */
.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 250px;
    border-radius: 15px;
    border: 3px solid var(--primary);
}

.about-text {
    flex: 2;
}

.about-text p {
    font-weight: 600;
    font-style: italic;
    margin-bottom: 15px;
    color: var(--gray);
    font-size: 14px;
}

/* Payment Section - 2 Cards */
.payment-grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

.payment-card-group {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.payment-card-group:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.payment-group-title {
    color: var(--light);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.payment-group-title i {
    color: var(--primary);
    font-size: 22px;
}

.payment-card-modern {
    background: var(--darker);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.payment-card-modern:last-child {
    margin-bottom: 0;
}

.payment-card-modern:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(37,99,235,0.2);
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.payment-header i {
    font-size: 20px;
    color: var(--primary);
    background: rgba(37,99,235,0.1);
    padding: 8px;
    border-radius: 10px;
}

.payment-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--light);
}

.payment-details {
    padding-left: 5px;
}

.payment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
    padding: 5px 0;
    border-bottom: 1px dashed var(--border);
}

.payment-row:last-child {
    border-bottom: none;
}

.payment-label {
    color: var(--gray);
    font-size: 13px;
    font-weight: 500;
}

.payment-value {
    color: var(--light);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-text {
    cursor: pointer;
    color: var(--primary);
    transition: 0.3s;
}

.copy-text:hover {
    color: var(--secondary);
    transform: scale(1.1);
}

.copy-text i {
    font-size: 16px;
}

/* ===== Contact Grid - 4/3/2/1 Columns ===== */
.contact-grid-side {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.contact-card-modern {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--light);
    transition: all 0.3s ease;
}

.contact-card-modern:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.contact-icon-modern {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.contact-icon-modern.github { background: #333; }
.contact-icon-modern.facebook { background: #1877f2; }
.contact-icon-modern.messenger { background: #0084ff; }
.contact-icon-modern.instagram { background: #e4405f; }
.contact-icon-modern.telegram { background: #0088cc; }
.contact-icon-modern.whatsapp { background: #25d366; }
.contact-icon-modern.email { background: #ea4335; }

.contact-info-modern {
    overflow: hidden;
    flex: 1;
}

.contact-info-modern h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
}

.contact-info-modern p {
    font-size: 11px;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Laptop / Small Desktop - 3 columns */
@media (max-width: 1100px) {
    .contact-grid-side {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet - 2 columns */
@media (max-width: 768px) {
    .contact-grid-side {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile - 1 column */
@media (max-width: 480px) {
    .contact-grid-side {
        grid-template-columns: 1fr;
    }
}

/* Report Section */
.report-section {
    max-width: 600px;
    margin: 0 auto 40px;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--light);
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--darker);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--light);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37,99,235,0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
    opacity: 0.7;
}

/* File Input */
.file-input {
    position: relative;
}

.file-input label {
    display: inline-block;
    padding: 10px 20px;
    background: var(--darker);
    border: 2px dashed var(--border);
    border-radius: 8px;
    color: var(--light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.file-input label:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.file-input label i {
    margin-right: 8px;
    color: var(--primary);
}

.file-input input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-name {
    display: inline-block;
    margin-left: 15px;
    color: var(--gray);
    font-size: 13px;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37,99,235,0.3);
}

.submit-btn i {
    font-size: 18px;
}

/* Message Display Styles */
.report-message {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.3s ease;
    transition: all 0.3s ease;
}

/* Success Message */
.report-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #10b981;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

/* Error Message */
.report-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.2);
}

/* Sending Message */
.report-message.sending {
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid #64748b;
    color: #64748b;
    box-shadow: 0 2px 10px rgba(100, 116, 139, 0.2);
}

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

/* Icons in message */
.report-message i {
    margin-right: 8px;
    font-size: 16px;
}

.report-message.success i {
    color: #10b981;
}

.report-message.error i {
    color: #ef4444;
}

.report-message.sending i {
    color: #64748b;
    animation: spin 1s linear infinite;
}

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

/* Chatbot Container */
.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    border: 1px solid var(--border);
}

.chatbot-container.open {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-left i {
    font-size: 24px;
}

.header-left h3 {
    font-size: 16px;
    margin-bottom: 2px;
}

.bot-status {
    font-size: 12px;
    opacity: 0.9;
}

.header-right {
    display: flex;
    gap: 10px;
}

.header-right button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.header-right button:hover {
    background: rgba(255,255,255,0.3);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--darker);
}

.message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.message.bot {
    align-items: flex-start;
}

.message.user {
    align-items: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 15px;
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
}

.bot .message-content {
    background: var(--card-bg);
    color: var(--light);
    border-bottom-left-radius: 5px;
}

.user .message-content {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    border-bottom-right-radius: 5px;
}

.message-time {
    font-size: 10px;
    color: var(--gray);
    margin-top: 5px;
    margin-left: 5px;
}

.quick-questions {
    padding: 15px;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-btn {
    background: var(--darker);
    border: 1px solid var(--border);
    color: var(--light);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.quick-btn:hover {
    background: var(--gradient);
    border-color: transparent;
}

.chatbot-input {
    padding: 15px;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

.chatbot-input input {
    flex: 1;
    padding: 12px 15px;
    background: var(--darker);
    border: 1px solid var(--border);
    border-radius: 25px;
    color: var(--light);
    font-size: 13px;
    outline: none;
}

.chatbot-input input:focus {
    border-color: var(--primary);
}

.chatbot-input button {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.chatbot-input button:hover {
    transform: scale(1.1);
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 12px 15px;
    background: var(--card-bg);
    border-radius: 15px;
    width: fit-content;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--gray);
    border-radius: 50%;
    animation: typing 1s infinite;
}

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

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

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

/* Chatbot Toggle */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(37,99,235,0.3);
    transition: 0.3s;
    z-index: 10000;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    padding: 25px 0;
    text-align: center;
    color: var(--gray);
    font-size: 12px;
    border-top: 1px solid var(--border);
    clear: both;
    position: relative;
    z-index: 1;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 26px;
    }
    
    .hero-subheading {
        font-size: 18px;
        flex-direction: column;
    }
    
    .typing-text {
        min-width: auto;
    }
    
    .skills-container {
        gap: 25px;
    }
    
    .skill-circle {
        width: 85px;
        height: 85px;
    }
    
    .skill-percent {
        font-size: 16px;
    }
    
    .payment-grid-split {
        grid-template-columns: 1fr;
    }
    
    .report-section {
        padding: 20px;
    }
    
    .file-input label {
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .file-name {
        display: block;
        margin-left: 0;
        text-align: center;
    }
    
    .chatbot-container {
        width: 300px;
        right: 20px;
        bottom: 80px;
    }
}

@media (max-width: 480px) {
    .skills-container {
        gap: 15px;
    }
    
    .skill-circle {
        width: 75px;
        height: 75px;
    }
    
    .skill-item p {
        font-size: 12px;
    }
    
    .payment-row {
        flex-direction: column;
        gap: 3px;
    }
    
    .payment-label {
        width: auto;
    }
}

/* ===== Posts Section ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.post-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--darker);
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.post-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--light);
}

.post-description {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.post-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    transition: 0.3s;
}

.post-link:hover {
    color: var(--secondary);
    gap: 12px;
}

.post-link i {
    font-size: 12px;
}

/* View All Posts Link */
.view-all-posts {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.view-all-link:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(37,99,235,0.4);
}

.view-all-link i {
    font-size: 18px;
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
    border: 2px dashed var(--border);
    border-radius: 15px;
    grid-column: 1 / -1;
}

.no-posts i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-image {
        height: 180px;
    }
}
