/* ==========================================================================
   VectraFX Component Stylesheet
   ========================================================================== */

/* Services Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem 2rem;
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    cursor: pointer;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(255, 255, 255, 0.05), transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    color: var(--text-bright);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    transition: var(--transition-smooth);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-bright);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-main);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features li::before {
    content: '✦';
    color: var(--color-primary);
}

.service-card.tech:hover {
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
    transform: translateY(-5px);
}

.service-card.tech:hover .service-icon {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    color: var(--color-primary);
}

.service-card.creative:hover {
    border-color: rgba(189, 0, 255, 0.3);
    box-shadow: 0 10px 30px rgba(189, 0, 255, 0.1);
    transform: translateY(-5px);
}

.service-card.creative:hover .service-icon {
    background: rgba(189, 0, 255, 0.1);
    border-color: var(--color-secondary);
    box-shadow: 0 0 15px rgba(189, 0, 255, 0.3);
    color: var(--color-secondary);
}

.service-card.creative .service-features li::before {
    color: var(--color-secondary);
}

/* Portfolio Filters & Grid */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3.5rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.filter-btn:hover {
    color: var(--text-bright);
    border-color: var(--glass-border-hover);
}

.filter-btn.active {
    background: var(--text-bright);
    color: var(--bg-dark);
    border-color: var(--text-bright);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 10;
    cursor: pointer;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    background-color: #121124;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(7, 6, 15, 0.95) 10%, rgba(7, 6, 15, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 2;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay span {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
}

.portfolio-overlay.creative span {
    color: var(--color-secondary);
}

.portfolio-overlay h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.portfolio-tags span {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-bright) !important;
    font-family: var(--font-body);
    font-size: 0.72rem;
    text-transform: none;
    letter-spacing: 0;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

/* Quote Calculator */
.calc-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
}

@media (max-width: 768px) {
    .calc-container {
        padding: 2rem 1.5rem;
    }
    .calc-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.calc-options {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.calc-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.calc-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
}

.calc-val {
    color: var(--color-primary);
    font-weight: 600;
}

/* Custom Range Input */
.calc-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--color-primary);
    transition: var(--transition-smooth);
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-checkboxes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.calc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}

.calc-checkbox-label:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--glass-border-hover);
}

.calc-checkbox-label input {
    display: none;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.custom-checkbox::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--color-secondary);
    border-radius: 2px;
    transform: scale(0);
    transition: var(--transition-smooth);
}

.calc-checkbox-label input:checked + .custom-checkbox {
    border-color: var(--color-secondary);
    box-shadow: 0 0 8px var(--color-secondary-glow);
}

.calc-checkbox-label input:checked + .custom-checkbox::after {
    transform: scale(1);
}

.calc-summary {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
}

.summary-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 1.5rem;
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    list-style: none;
    margin-bottom: 2rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
}

.breakdown-item span:last-child {
    color: var(--text-bright);
    font-weight: 500;
}

.total-block {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
    margin-top: auto;
}

.total-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.total-amount {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-shadow: 0 0 15px var(--color-primary-glow);
    margin: 0.2rem 0 1.5rem 0;
}

/* Chatbot Floating Widget & Embedded Simulator */
.chatbot-widget-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 4px 20px rgba(189, 0, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    border: none;
    color: white;
    transition: var(--transition-smooth);
}

.chatbot-widget-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 30px rgba(189, 0, 255, 0.6);
}

.chatbot-widget-btn svg {
    width: 26px;
    height: 26px;
}

.chat-panel {
    position: fixed;
    bottom: 105px;
    right: 30px;
    width: 380px;
    height: 520px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.chat-panel.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 480px) {
    .chat-panel {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        bottom: 95px;
        height: 480px;
    }
}

.chat-header {
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(18, 17, 36, 0.8);
}

.chat-agent {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.agent-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--color-primary);
    background: rgba(0, 229, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.agent-avatar svg {
    width: 18px;
    height: 18px;
}

.agent-info h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-bright);
}

.agent-status {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.chat-close:hover {
    color: var(--text-bright);
}

.chat-close svg {
    width: 20px;
    height: 20px;
}

/* Chat Feed */
.chat-feed {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-bubble {
    max-width: 80%;
    padding: 0.8rem 1.1rem;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.5;
    position: relative;
    word-break: break-word;
}

.chat-bubble.bot {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-bubble.user {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(0, 229, 255, 0.1));
    border: 1px solid rgba(0, 229, 255, 0.25);
    color: var(--text-bright);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-bubble.bot-options {
    background: none;
    border: none;
    padding: 0;
    max-width: 90%;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-opt {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
}

.chat-opt:hover {
    background: rgba(0, 229, 255, 0.05);
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
}

.chat-bubble.bot-options-creative .chat-opt {
    color: var(--color-secondary);
}

.chat-bubble.bot-options-creative .chat-opt:hover {
    background: rgba(189, 0, 255, 0.05);
    border-color: var(--color-secondary);
    box-shadow: 0 0 10px rgba(189, 0, 255, 0.1);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    align-items: center;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: typing 1s infinite alternate;
}

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

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

@keyframes typing {
    0% { transform: translateY(0); opacity: 0.3; }
    100% { transform: translateY(-4px); opacity: 1; }
}

/* Chat Input Bar */
.chat-input-bar {
    padding: 1rem 1.2rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 10, 18, 0.9);
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 0.65rem 1.2rem;
    color: var(--text-bright);
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition-smooth);
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-input:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.04);
}

.chat-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    transition: var(--transition-smooth);
}

.chat-send:hover {
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.chat-send svg {
    width: 16px;
    height: 16px;
    transform: translateX(1px);
}

/* Contact Form Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-bright);
}

.contact-info p {
    color: var(--text-muted);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-details h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-bright);
    margin-bottom: 0.2rem;
}

.contact-details p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Contact Inputs Form */
.contact-form {
    padding: 3rem;
}

@media (max-width: 480px) {
    .contact-form {
        padding: 2rem 1.5rem;
    }
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

@media (max-width: 576px) {
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
}

.form-group {
    position: relative;
    margin-bottom: 1.8rem;
}

.form-group:last-of-type {
    margin-bottom: 2.5rem;
}

.form-control {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--glass-border-hover);
    padding: 0.6rem 0;
    color: var(--text-bright);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group label {
    position: absolute;
    top: 0.6rem;
    left: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.form-control:focus ~ label,
.form-control:valid ~ label {
    top: -1.2rem;
    font-size: 0.78rem;
    color: var(--color-primary);
}

.form-control:focus {
    border-bottom-color: var(--color-primary);
}

textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* Footer Section */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem 0;
    background: #040309;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-link:hover {
    color: var(--text-bright);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.social-link.github:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
    color: var(--color-primary);
}

.social-link.youtube:hover {
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
    color: #ff0000;
}

.social-link.instagram:hover {
    border-color: var(--color-secondary);
    box-shadow: 0 0 10px rgba(189, 0, 255, 0.2);
    color: var(--color-secondary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--text-bright);
}

/* ==========================================================================
   Project Details Modal Popup Component
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 6, 15, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10;
    border-radius: var(--border-radius-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 12;
}

.modal-close:hover {
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--glass-border-hover);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-img {
    width: 100%;
    border-radius: var(--border-radius-sm);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #121124;
    border: 1px solid var(--glass-border);
}

.modal-tag {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-primary);
}

.modal-body.creative .modal-tag {
    color: var(--color-secondary);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-top: -0.5rem;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-tech span {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-size: 0.78rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--glass-border);
}

.modal-action {
    margin-top: 0.5rem;
    display: flex;
    gap: 1rem;
}

.modal-action .btn {
    flex: 1;
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
    white-space: nowrap;
}

/* Modal Responsive Media Queries */
@media (max-width: 576px) {
    .portfolio-filters {
        gap: 0.5rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    .modal {
        padding: 0.8rem;
    }
    .modal-content {
        max-height: 95vh;
    }
    .modal-body {
        padding: 1.5rem;
        gap: 1rem;
    }
    .modal-title {
        font-size: 1.4rem;
    }
    .modal-desc {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    .modal-tech span {
        font-size: 0.72rem;
        padding: 0.2rem 0.6rem;
    }
    .modal-action {
        flex-direction: column;
        gap: 0.6rem;
        margin-top: 0.2rem;
    }
    .modal-action .btn {
        width: 100%;
        padding: 0.7rem 1.5rem;
        font-size: 0.88rem;
    }
    .modal-close {
        top: 0.6rem;
        right: 0.6rem;
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
        line-height: 28px;
    }
}
