/* ==========================================================================
   Monaliza Tours — Portfolio & Company Profile Styles
   ========================================================================== */

:root {
    --brand: #00b589;
    --brand-dark: #00936f;
    --brand-glow: rgba(0, 181, 137, 0.35);
    --bg-dark: #071719;
    --bg-card: #0c2023;
    --bg-card-hover: #10292d;
    --surface-border: rgba(255, 255, 255, 0.1);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --gold: #d4af37;
    --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

[dir="rtl"] {
    --font-heading: 'Cairo', system-ui, sans-serif;
    --font-body: 'Cairo', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Atmosphere */
.portfolio-ambient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(circle at 15% 20%, rgba(0, 181, 137, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(15, 38, 40, 0.6) 0%, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.04) 0%, transparent 50%);
}

/* Sticky Header */
.portfolio-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(7, 23, 25, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--surface-border);
    transition: all 0.3s ease;
}

.portfolio-header__inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.portfolio-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--surface-border);
    color: var(--text-main);
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.portfolio-back-btn:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    transform: translateX(-4px);
    box-shadow: 0 4px 16px var(--brand-glow);
}

[dir="rtl"] .portfolio-back-btn:hover {
    transform: translateX(4px);
}

.portfolio-brand img {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.05);
}

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

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #00b589 0%, #008f6b 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 16px var(--brand-glow);
    transition: all 0.25s ease;
}

.pdf-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 181, 137, 0.5);
}

/* Sub-nav Category Pills */
.portfolio-pills-bar {
    background: rgba(12, 32, 35, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 24px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.portfolio-pills-bar::-webkit-scrollbar { display: none; }

.portfolio-pills-inner {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pill-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pill-item:hover, .pill-item.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* Hero Section */
.portfolio-hero {
    position: relative;
    z-index: 1;
    padding: 60px 24px 40px;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.portfolio-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #e5c158;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    animation: fadeInDown 0.8s ease;
}

.portfolio-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 40%, #00b589 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.9s ease;
}

.portfolio-subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--text-muted);
    max-width: 820px;
    margin: 0 auto 36px;
    line-height: 1.7;
    animation: fadeInUp 1s ease;
}

/* Quick Stats Bar */
.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 40px 0 20px;
    animation: fadeInUp 1.1s ease;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    padding: 22px 16px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--brand);
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.stat-card strong {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 4px;
}

.stat-card span {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* View Mode Switcher */
.view-modes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 36px 0 20px;
}

.view-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--surface-border);
    color: var(--text-main);
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-mode-btn.is-active, .view-mode-btn:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* Interactive Slides Deck (Continuous Scroll View) */
.portfolio-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px 80px;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    margin-bottom: 50px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
}

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

.portfolio-card:hover {
    border-color: rgba(0, 181, 137, 0.5);
    box-shadow: 0 24px 60px rgba(0, 181, 137, 0.18);
}

.portfolio-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 26px;
    background: rgba(15, 38, 40, 0.6);
    border-bottom: 1px solid var(--surface-border);
}

.portfolio-card__title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portfolio-card__num {
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 30px;
}

.portfolio-card__heading {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.portfolio-card__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--surface-border);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zoom-btn:hover {
    background: var(--brand);
    border-color: var(--brand);
}

.portfolio-card__media {
    position: relative;
    background: #000;
    cursor: pointer;
    overflow: hidden;
}

.portfolio-card__media img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-card__media:hover img {
    transform: scale(1.02);
}

.media-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-hover-overlay span {
    background: rgba(0, 181, 137, 0.95);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.portfolio-card__media:hover .media-hover-overlay {
    opacity: 1;
}

.portfolio-card__media:hover .media-hover-overlay span {
    transform: translateY(0);
}

/* Lightbox Modal */
.portfolio-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(3, 10, 11, 0.96);
    backdrop-filter: blur(12px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-modal.is-open {
    display: flex;
    opacity: 1;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--surface-border);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background: #e11d48;
    border-color: #e11d48;
}

.modal-content-wrap {
    max-width: 95vw;
    max-height: 86vh;
    overflow: auto;
    border-radius: 12px;
    border: 1px solid var(--surface-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-content-wrap img {
    max-width: 100%;
    height: auto;
    display: block;
}

.modal-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.modal-nav-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--surface-border);
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-nav-btn:hover {
    background: var(--brand);
}

/* Call to Action Footer Box */
.portfolio-cta {
    background: linear-gradient(135deg, #0c2427 0%, #061719 100%);
    border: 1px solid rgba(0, 181, 137, 0.3);
    border-radius: 24px;
    padding: 50px 32px;
    text-align: center;
    max-width: 1100px;
    margin: 40px auto 60px;
    position: relative;
    z-index: 1;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.portfolio-cta h2 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    margin-bottom: 16px;
}

.portfolio-cta p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 30px;
}

.portfolio-cta-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-btn-primary {
    background: var(--brand);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 6px 20px var(--brand-glow);
    transition: all 0.25s ease;
}

.cta-btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(0, 181, 137, 0.5);
}

.cta-btn-whatsapp {
    background: #25D366;
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    transition: all 0.25s ease;
}

.cta-btn-whatsapp:hover {
    background: #20ba59;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    .portfolio-header__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .portfolio-header-actions {
        width: 100%;
        justify-content: space-between;
    }
    .portfolio-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .portfolio-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Language switch (AR / EN) */
.portfolio-lang-switch {
    display: inline-flex;
    padding: 3px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.portfolio-lang-switch a {
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.portfolio-lang-switch a:hover { color: #fff; }
.portfolio-lang-switch a.is-active {
    background: #00b589;
    color: #fff;
}
