/* Portfolio Modal Styles */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.portfolio-modal.active {
    opacity: 1;
    visibility: visible;
}

.portfolio-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.portfolio-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(50px);
    transition: all 0.3s ease;
}

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

.portfolio-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.portfolio-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

/* Loading State */
.modal-loading {
    text-align: center;
    padding: 60px 40px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--google-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Project Showcase */
.project-showcase {
    padding: 40px;
}

.project-counter {
    text-align: center;
    color: var(--google-gray-600);
    font-size: 14px;
    margin-bottom: 30px;
    font-weight: 500;
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px 20px 20px;
}

.project-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.project-question {
    text-align: center;
}

.project-question h3 {
    font-size: 24px;
    color: var(--google-gray-800);
    margin-bottom: 10px;
    line-height: 1.3;
}

.project-description {
    color: var(--google-gray-600);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.feedback-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.feedback-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 150px;
    justify-content: center;
}

.feedback-btn .icon {
    font-size: 20px;
}

.like-btn {
    background: var(--google-green-50);
    color: var(--google-green-700);
    border-color: var(--google-green-200);
}

.like-btn:hover {
    background: var(--google-green-100);
    border-color: var(--google-green-400);
    transform: translateY(-2px);
}

.dislike-btn {
    background: var(--google-red-50);
    color: var(--google-red-700);
    border-color: var(--google-red-200);
}

.dislike-btn:hover {
    background: var(--google-red-100);
    border-color: var(--google-red-400);
    transform: translateY(-2px);
}

/* Feedback Response */
.feedback-response {
    padding: 40px;
    text-align: center;
}

.response-content {
    max-width: 500px;
    margin: 0 auto;
}

.response-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.feedback-response h3 {
    font-size: 28px;
    color: var(--google-gray-800);
    margin-bottom: 15px;
}

.feedback-response p {
    font-size: 16px;
    color: var(--google-gray-600);
    margin-bottom: 30px;
    line-height: 1.5;
}

.project-inquiry h4,
.feedback-form h4 {
    font-size: 20px;
    color: var(--google-gray-800);
    margin-bottom: 20px;
}

.inquiry-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.inquiry-btn {
    padding: 12px 24px;
    border: 2px solid var(--google-blue);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.yes-btn {
    background: var(--google-blue);
    color: white;
}

.yes-btn:hover {
    background: var(--google-blue-600);
    transform: translateY(-2px);
}

.no-btn {
    background: white;
    color: var(--google-blue);
}

.no-btn:hover {
    background: var(--google-blue-50);
}

.feedback-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 2px solid var(--google-gray-300);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 20px;
}

.feedback-form textarea:focus {
    outline: none;
    border-color: var(--google-blue);
}

.submit-feedback-btn {
    background: var(--google-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-feedback-btn:hover {
    background: var(--google-blue-600);
    transform: translateY(-2px);
}

/* Lead Capture Form */
.lead-capture-form {
    padding: 40px;
}

.form-content {
    max-width: 600px;
    margin: 0 auto;
}

.lead-capture-form h3 {
    font-size: 28px;
    color: var(--google-gray-800);
    margin-bottom: 10px;
    text-align: center;
}

.lead-capture-form p {
    color: var(--google-gray-600);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

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

.form-group label {
    display: block;
    color: var(--google-gray-700);
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--google-gray-300);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--google-blue);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--google-blue);
    color: white;
    border-color: var(--google-blue);
}

.btn-primary:hover:not(:disabled) {
    background: var(--google-blue-600);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: var(--google-gray-600);
    border-color: var(--google-gray-300);
}

.btn-secondary:hover {
    background: var(--google-gray-50);
    border-color: var(--google-gray-400);
}

/* Thank You Message */
.thank-you-message {
    padding: 60px 40px;
    text-align: center;
}

.thank-you-content {
    max-width: 500px;
    margin: 0 auto;
}

.thank-you-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.thank-you-message h3 {
    font-size: 32px;
    color: var(--google-gray-800);
    margin-bottom: 15px;
}

.thank-you-message p {
    font-size: 16px;
    color: var(--google-gray-600);
    margin-bottom: 30px;
    line-height: 1.5;
}

.continue-btn {
    background: var(--google-blue);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.continue-btn:hover {
    background: var(--google-blue-600);
    transform: translateY(-2px);
}

/* Floating Action Button */
.portfolio-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--google-blue);
    color: white;
    border-radius: 50px;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    z-index: 1000;
    transition: all 0.3s ease;
    transform: translateY(100px);
    opacity: 0;
}

.portfolio-fab.visible {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-fab:hover {
    background: var(--google-blue-600);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.fab-icon {
    font-size: 18px;
}

.fab-text {
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 15px;
    }
    
    .project-showcase,
    .feedback-response,
    .lead-capture-form,
    .thank-you-message {
        padding: 30px 20px;
    }
    
    .project-content {
        gap: 20px;
    }
    
    .project-question h3 {
        font-size: 20px;
    }
    
    .feedback-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .feedback-btn {
        min-width: auto;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .inquiry-buttons {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .portfolio-fab {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
    }
    
    .fab-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .project-image {
        height: 200px;
    }
    
    .thank-you-icon {
        font-size: 60px;
    }
    
    .thank-you-message h3 {
        font-size: 24px;
    }
    
    .response-icon {
        font-size: 50px;
    }
    
    .feedback-response h3 {
        font-size: 22px;
    }
    
    .lead-capture-form h3 {
        font-size: 22px;
    }
}