/* Page Hero - Professional Design Matching Header/Footer Theme */
.page-hero {
    padding: 60px 0 50px;
    background: linear-gradient(135deg, #052D69 0%, #0a4da3 50%, #052D69 100%);
    background-size: 200% 200%;
    animation: pageHeroGradientShift 10s ease infinite;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
    box-shadow: 0 4px 30px rgba(5, 45, 105, 0.3);
}

@keyframes pageHeroGradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        transparent 100%);
    animation: pageHeroShimmer 4s infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes pageHeroShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.page-hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, 
        rgba(5, 45, 105, 0.3) 0%, 
        rgba(5, 45, 105, 0.15) 40%, 
        transparent 70%);
    border-radius: 50%;
    animation: pageHeroGlow 20s ease-in-out infinite;
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

@keyframes pageHeroGlow {
    0%, 100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.3) translate(-30px, -30px);
        opacity: 0.7;
    }
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: pageHeroContentFade 0.8s ease-out;
}

@keyframes pageHeroContentFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-hero-title {
    font-size: clamp(28px, 4.5vw, 42px);
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.9) 50%, 
        rgba(255, 255, 255, 1) 100%);
    background-size: 200% 100%;
    animation: pageHeroTitleShine 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.2));
    position: relative;
    display: inline-block;
}

@keyframes pageHeroTitleShine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.page-hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        transparent 100%);
    border-radius: 2px;
    animation: pageHeroUnderline 1s ease-out 0.5s forwards;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

@keyframes pageHeroUnderline {
    to {
        width: 60%;
    }
}

.page-hero-subtitle {
    font-size: clamp(14px, 1.8vw, 17px);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: pageHeroSubtitleFade 1s ease-out 0.3s both;
}

@keyframes pageHeroSubtitleFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 80px 0 50px;
        margin-top: 70px;
    }
}

/* Portfolio Gallery */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    color: #000;
    background: #ffffff;
    border: 2px solid #052D69;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(5, 45, 105, 0.1);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: #052D69;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    z-index: -1;
}

.filter-btn:hover {
    color: #ffffff;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 6px 18px rgba(5, 45, 105, 0.35);
    border-color: #052D69;
}

.filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.filter-btn.active {
    background: linear-gradient(135deg, #052D69 0%, #052D69 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(5, 45, 105, 0.4);
    transform: translateY(-2px);
}

.filter-btn.active::before {
    width: 300px;
    height: 300px;
}

.portfolio-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
}

/* Tablet Portfolio Gallery */
@media (max-width: 1024px) {
    .portfolio-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Mobile Portfolio Gallery */
@media (max-width: 768px) {
    .portfolio-gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        width: 100%;
    }
}

.portfolio-gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 12px rgba(5, 45, 105, 0.12);
    border: 1px solid rgba(5, 45, 105, 0.06);
}

.portfolio-gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 45, 105, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.portfolio-gallery-item:hover {
    transform: scale(1.05) translateY(-5px);
    z-index: 10;
    box-shadow: 0 12px 40px rgba(5, 45, 105, 0.4);
    border-color: #052D69;
}

.portfolio-gallery-item:hover::before {
    opacity: 1;
}

.portfolio-gallery-item.hidden {
    display: none;
}

.portfolio-gallery-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: rgba(5, 45, 105, 0.05);
    background-repeat: no-repeat;
    transition: transform 0.4s ease;
}

.portfolio-gallery-item:hover .portfolio-gallery-image {
    transform: scale(1.1);
}

.portfolio-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 45, 105, 0.9) 0%, rgba(5, 45, 105, 0.85) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(2px);
    z-index: 2;
}

.portfolio-gallery-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.portfolio-gallery-item:hover .portfolio-gallery-overlay {
    opacity: 1;
}

.portfolio-gallery-item:hover .portfolio-gallery-overlay::before {
    width: 300px;
    height: 300px;
}

.portfolio-gallery-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    position: relative;
    z-index: 3;
}

.portfolio-gallery-item:hover .portfolio-gallery-title {
    transform: translateY(0);
}

.portfolio-view-btn {
    margin-top: 8px;
    position: relative;
    z-index: 3;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-gallery-item:hover .portfolio-view-btn {
    transform: translateY(0);
    animation: pulse 2s infinite;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    width: 85vw;
    max-width: 1050px;
    max-height: 85vh;
    z-index: 10001;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 247, 255, 0.98) 100%);
    border-radius: 18px;
    padding: 32px;
    overflow-y: auto;
    animation: lightboxFadeIn 0.3s ease;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.lightbox-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease;
}

.lightbox-image-wrapper:hover {
    transform: scale(1.02);
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.lightbox-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: #000;
}

.lightbox-category {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #052D69, #ffffff);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
}

.lightbox-title {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.lightbox-description {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin: 0;
}

.lightbox-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.lightbox-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.lightbox-location-text {
    font-weight: 500;
    color: #052D69;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10002;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: rgba(5, 45, 105, 0.8);
}

/* Portfolio Responsive */
@media (max-width: 1024px) {
    .portfolio-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 90px 0 60px;
        margin-top: 70px;
    }

    .page-hero-title {
        font-size: clamp(32px, 8vw, 42px) !important;
        margin-bottom: 18px;
        line-height: 1.3;
        text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4)) !important;
    }

    .page-hero-subtitle {
        font-size: clamp(17px, 4.5vw, 20px) !important;
        line-height: 1.8;
        padding: 0 20px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
        color: rgba(255, 255, 255, 0.95) !important;
    }

    .portfolio-filters {
        margin-bottom: 35px;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        padding: 0 10px;
    }

    .filter-btn {
        padding: 12px 20px;
        font-size: 15px !important;
        min-height: 44px;
        min-width: 80px;
        touch-action: manipulation;
        flex: 1 1 auto;
        max-width: 200px;
    }

    .portfolio-gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .portfolio-gallery-item {
        aspect-ratio: 4 / 3;
    }

    .portfolio-gallery-title {
        font-size: 20px !important;
        margin-bottom: 16px;
    }

    .portfolio-view-btn {
        font-size: 15px !important;
        padding: 12px 24px;
        min-height: 44px;
    }

    .lightbox-content {
        max-width: 95vw;
        max-height: 90vh;
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 24px;
        width: 95vw;
        box-sizing: border-box;
    }

    .lightbox-image {
        max-height: 50vh;
        border-radius: 12px;
        width: 100%;
        height: auto;
    }

    .lightbox-title {
        font-size: clamp(22px, 5.5vw, 26px) !important;
        line-height: 1.3;
        margin-bottom: 12px;
        word-wrap: break-word;
    }

    .lightbox-description {
        font-size: 16px !important;
        line-height: 1.8;
        word-wrap: break-word;
    }

    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 42px;
        height: 42px;
        font-size: 28px;
    }

    .lightbox-category {
        font-size: 13px !important;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 80px 0 50px;
    }

    .page-hero-title {
        font-size: clamp(28px, 9vw, 36px) !important;
    }

    .page-hero-subtitle {
        font-size: clamp(16px, 5vw, 19px) !important;
        padding: 0 16px;
    }

    .filter-btn {
        padding: 11px 18px;
        font-size: 14px !important;
        min-height: 42px;
    }

    .portfolio-gallery-title {
        font-size: 18px !important;
    }

    .lightbox-content {
        padding: 24px 16px;
        gap: 20px;
    }

    .lightbox-title {
        font-size: clamp(20px, 6vw, 24px) !important;
    }

    .lightbox-description {
        font-size: 15px !important;
    }
}

