:root {
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* HERO ANIMATIONS */
.hero {
    position: relative;
    z-index: 1;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: float 10s infinite alternate ease-in-out;
}

@keyframes float {
    from { transform: translate(0, 0); }
    to { transform: translate(30px, 50px); }
}

.hero-kicker {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* CARDS PREMIUM */
.project-public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.project-public-card {
    border: none;
    border-radius: 24px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-public-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
}

.project-carousel {
    border-radius: 24px 24px 0 0;
    overflow: hidden;
}

.project-carousel-track {
    aspect-ratio: 16 / 9;
}

.project-carousel-btn {
    opacity: 0;
    transition: var(--transition);
}

.project-public-card:hover .project-carousel-btn {
    opacity: 1;
}

.project-public-content {
    padding: 24px;
    flex-grow: 1;
}

.project-creator-row {
    margin-bottom: 20px;
}

.project-creator-row img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 2px solid var(--primary-light);
}

.project-creator-row span {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--dark);
}

.project-tags {
    margin-bottom: 15px;
}

.project-tags b {
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.project-rating-summary {
    background: #fffbeb;
    padding: 8px 15px;
    border-radius: 12px;
    display: inline-flex;
    margin-bottom: 15px;
}

.project-rating-summary strong {
    color: #d97706;
}

.btn-open-project-details {
    width: 100%;
    margin: 20px 0;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #0f172a;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.btn-open-project-details:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}

.project-public-content h2 {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--dark);
}

.project-public-content p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.project-detail-list {
    background: #f8fafc;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    margin: 20px 0;
}

.project-detail-list div {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.project-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.project-contact-row a {
    flex: 1;
    min-width: 120px;
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 800;
    background: white;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-contact-row a:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.project-reviews {
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    margin-top: auto;
}

.project-review-item {
    background: #fdf2f8;
    padding: 12px;
    border-radius: 14px;
    border-left: 4px solid #db2777;
    margin-bottom: 15px;
}

.project-login-review {
    width: 100%;
    background: #eff6ff;
    color: #2563eb;
    padding: 14px;
    font-size: 0.9rem;
    font-weight: 800;
    border-radius: 16px;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-login-review:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

/* CAROUSEL IMPROVEMENTS */
.project-carousel-track img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

.project-public-card:hover .project-carousel-track img.active {
    transform: scale(1.1);
}

/* MODAL STYLES CLEAN & FAST */
.p-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    overflow-y: auto;
}

.p-modal-content {
    background-color: #fff;
    margin: 20px auto;
    padding: 0;
    border-radius: 20px;
    width: 95%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.p-modal-close {
    color: #fff;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: 0.2s;
}

.p-modal-close:hover { background: #000; }

.p-modal-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background: #f1f5f9;
}

.p-modal-gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.p-modal-gallery-track::-webkit-scrollbar { display: none; }

.p-modal-gallery-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
}

.p-modal-gallery-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.p-modal-gallery-nav button:hover { background: #fff; }
#prevImg { left: 10px; }
#nextImg { right: 10px; }

.p-modal-header-simple {
    padding: 25px 30px 10px;
}

#modalProjectTitle {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
}

.p-modal-body {
    padding: 10px 30px 30px;
    display: grid;
    gap: 15px;
}

.p-modal-section {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.p-modal-section i {
    font-size: 1.5rem;
    color: #2563eb;
    background: #fff;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.p-modal-section-info {
    flex: 1;
    min-width: 0;
}

.p-modal-section-info h4 {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 2px;
}

.p-modal-section-info p {
    font-size: 0.9rem;
    color: #1e293b;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all; /* Força a quebra mesmo em palavras gigantes sem espaço */
    overflow: hidden;
}

.p-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #f1f5f9;
    background: #fff;
}

.btn-email-creator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    border-radius: 14px;
    transition: 0.2s;
}
.btn-email-creator:hover { background: #1d4ed8; }

