/* ============================================
   PROJELER PAGE STYLES
   ============================================ */

.nav-link.active-page {
    color: #fff;
}

.nav-link.active-page svg {
    opacity: 1;
}

/* Main */
.projects-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

/* Header */
.projects-header {
    text-align: center;
    padding: 2rem 0 2.5rem;
}

.projects-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    opacity: 0;
    animation: projFadeUp 0.6s ease forwards;
}

.projects-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0;
    animation: projFadeUp 0.6s ease 0.15s forwards;
}

/* Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    opacity: 0;
    animation: projFadeUp 0.6s ease 0.3s forwards;
}

/* Card */
.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 112, 243, 0.25);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
}

/* Featured card */
.project-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.06), rgba(239, 68, 68, 0.04));
    border-color: rgba(239, 68, 68, 0.2);
}

.project-card.featured:hover {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 16px 50px rgba(239, 68, 68, 0.1);
}

.project-badge-urgent {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    animation: urgentPulse 2s ease-in-out infinite;
}

@keyframes urgentPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Emoji */
.project-emoji {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

/* Body */
.project-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.65rem;
    letter-spacing: -0.01em;
}

.project-body>p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Highlights */
.project-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.project-highlights li {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    padding-left: 1.1rem;
    position: relative;
    line-height: 1.5;
}

.project-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-accent);
    font-weight: 700;
    font-size: 0.7rem;
}

/* Stats */
.project-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pstat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.pstat-num {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-accent);
}

.pstat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* CTA */
.project-cta {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.2), rgba(0, 112, 243, 0.08));
    border: 1px solid rgba(0, 112, 243, 0.3);
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    gap: 0.3rem;
    letter-spacing: 0.01em;
}

.project-cta:hover {
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.4), rgba(0, 112, 243, 0.2));
    border-color: rgba(0, 112, 243, 0.6);
    box-shadow: 0 4px 20px rgba(0, 112, 243, 0.2);
    transform: translateX(4px);
    gap: 0.55rem;
}

.project-card.featured .project-cta {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.08));
    border-color: rgba(239, 68, 68, 0.3);
}

.project-card.featured .project-cta:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(239, 68, 68, 0.2));
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2);
}

/* Bottom CTA */
.projects-bottom-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.projects-bottom-cta p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.bottom-cta-btn {
    display: inline-block;
    background: var(--primary-accent);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.bottom-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 112, 243, 0.3);
}

/* Animation */
@keyframes projFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card.featured {
        grid-column: auto;
    }

    .projects-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .projects-main {
        padding: 0.5rem 1rem 3rem;
    }

    .projects-header {
        padding: 1.5rem 0 1.5rem;
    }

    .projects-title {
        font-size: 1.8rem;
    }

    .projects-subtitle {
        font-size: 0.9rem;
    }

    .project-card {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }

    .project-emoji {
        font-size: 2rem;
    }

    .project-body h3 {
        font-size: 1.1rem;
    }

    .project-body>p {
        font-size: 0.82rem;
    }

    .project-highlights li {
        font-size: 0.75rem;
    }

    .pstat-num {
        font-size: 1.1rem;
    }

    .projects-bottom-cta {
        padding: 1.75rem 1.25rem;
    }
}

@media (max-width: 400px) {
    .projects-title {
        font-size: 1.5rem;
    }

    .project-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ============================================
   DONATION MODAL
   ============================================ */
.donate-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    padding: 1.5rem;
}

.donate-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.donate-modal {
    width: 100%;
    max-width: 920px;
    max-height: 90vh;
    background: linear-gradient(145deg, #0b1628 0%, #060e1f 40%, #040a18 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    position: relative;
    overflow: visible;
    /* Important: overrides style.css hidden so badge pops out */
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 80, 200, 0.05);
}

.donate-modal-overlay.active .donate-modal {
    transform: scale(1) translateY(0);
}

.donate-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donate-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.donate-modal-inner {
    display: flex;
    max-height: 90vh;
    overflow-y: auto;
}

/* Left Panel */
.dm-left {
    width: 42%;
    flex-shrink: 0;
    background: rgba(0, 40, 100, 0.05);
    padding: 0;
    display: flex;
    flex-direction: column;
    border-top-left-radius: 22px;
    border-bottom-left-radius: 22px;
}

.dm-photo-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-top-left-radius: 22px;
}

.dm-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dm-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 18, 46, 0.95) 10%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1rem 1.25rem;
}

.dm-photo-emoji {
    font-size: 2.5rem;
}

.dm-info {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
}

.dm-info h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.dm-info>p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.dm-features {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.dm-feature {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    line-height: 1.4;
}

.dm-feature::first-letter {
    color: var(--primary-accent);
}

.dm-stats-row {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dm-stat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.dm-stat-num {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-accent);
}

.dm-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Right Panel - Form */
.dm-right {
    flex: 1;
    padding: 2.5rem 2rem 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: linear-gradient(165deg, #0d1a33 0%, #091428 50%, #060f20 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-top-right-radius: 22px;
    border-bottom-right-radius: 22px;
}

/* Premium Form Panel Override */
.dm-form-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
}

/* Badge/Notch on the top border line */
.dm-badge {
    position: absolute;
    top: 0;
    left: 71%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #0072ff, #00c6ff);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 7px 20px;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 114, 255, 0.4), 0 0 10px rgba(0, 180, 255, 0.2);
    white-space: nowrap;
    pointer-events: none;
}

/* Description card with icon */
.dm-form-desc {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    margin-bottom: 1.5rem;
}

.dm-form-desc-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.15), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(0, 112, 243, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 160, 255, 0.7);
}

.dm-form-desc p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

/* Override nested form-group in modal for better spacing */
.dm-form-panel .panel-content {
    gap: 1.2rem;
}

.dm-form-panel .form-group {
    gap: 0.5rem;
}

.dm-form-panel .form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.02em;
}

.dm-form-panel .form-group select,
.dm-form-panel .form-group input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.88rem;
    transition: all 0.25s ease;
}

/* Select arrow (chevron) */
.dm-form-panel .form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' opacity='0.5'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 14px;
    padding-right: 2.5rem;
    cursor: pointer;
}

.dm-form-panel .form-group select:focus,
.dm-form-panel .form-group input:focus {
    border-color: rgba(0, 112, 243, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.1);
    outline: none;
}

/* Better donate button style in modal */
.dm-form-panel .btn-donate {
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 0.95rem;
    padding: 0.85rem 2rem;
}

.dm-right h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.dm-field {
    margin-bottom: 0.9rem;
}

.dm-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dm-field select,
.dm-field input,
.dm-field textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #fff;
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.dm-field select:focus,
.dm-field input:focus,
.dm-field textarea:focus {
    border-color: rgba(0, 112, 243, 0.4);
}

.dm-field select option {
    background: #0a122e;
    color: #fff;
}

.dm-field textarea {
    resize: vertical;
    min-height: 50px;
}

.dm-donor-info {
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dm-donor-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.8rem;
}

/* Submit Button */
.dm-submit-btn {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, var(--primary-accent), #0284c7);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.dm-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 112, 243, 0.3);
}

/* Checkout */
.dm-checkout {
    margin-top: 1.25rem;
    animation: projFadeUp 0.4s ease;
}

.dm-checkout-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.dm-checkout-header h4 {
    color: #22c55e;
    font-size: 0.95rem;
    font-weight: 600;
}

.dm-checkout-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
}

.dm-bank {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.5rem;
}

.dm-bank-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}

.dm-bank-iban {
    font-size: 0.8rem;
    color: var(--primary-accent);
    font-weight: 600;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.03em;
}

.dm-bank-holder {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.dm-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    margin: 0.75rem 0;
}

.dm-summary-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.dm-summary pre {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: pre-wrap;
    font-family: inherit;
    line-height: 1.6;
    margin: 0;
}

.dm-copy-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem;
    background: rgba(0, 112, 243, 0.1);
    border: 1px solid rgba(0, 112, 243, 0.2);
    border-radius: 10px;
    color: var(--primary-accent);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dm-copy-btn:hover {
    background: rgba(0, 112, 243, 0.2);
    border-color: rgba(0, 112, 243, 0.4);
}

.dm-guide {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dm-guide-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
}

.dm-guide-step span {
    width: 20px;
    height: 20px;
    background: rgba(0, 112, 243, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary-accent);
    flex-shrink: 0;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .donate-modal-inner {
        flex-direction: column;
    }

    .dm-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dm-photo-wrap {
        height: 150px;
    }

    .dm-right {
        padding: 2rem 1.25rem 1.25rem;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .dm-badge {
        font-size: 0.65rem;
        padding: 5px 14px;
        top: 0;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .dm-form-desc {
        padding: 0.8rem 1rem;
        margin-bottom: 1rem;
    }

    .dm-form-desc-icon {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }

    .dm-form-desc p {
        font-size: 0.72rem;
    }

    .donate-modal {
        max-height: 95vh;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .donate-modal-overlay {
        padding: 0.5rem;
    }

    .dm-info h2 {
        font-size: 1.1rem;
    }

    .dm-photo-wrap {
        height: 120px;
    }
}