/**
 * Main Portal Subdomain Specific Styles
 * bastion-pmr.com / dev
 */

/* BACKGROUND VIDEO */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65) saturate(1.1);
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(11, 17, 32, 0.55) 0%, rgba(11, 17, 32, 0.92) 100%);
    z-index: -1;
}

/* PORTAL BODY & WRAPPER */
body {
    background: linear-gradient(180deg, rgba(11, 17, 32, 0.75) 0%, rgba(11, 17, 32, 0.92) 100%), url('../images/bg_poster.jpg') center/cover no-repeat fixed !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    padding: 20px 16px;
}

.portal-wrapper {
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.top-nav-bar {
    max-width: 1080px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 16px;
    z-index: 100;
}

/* HERO HEADER (PORTAL OVERRIDE) */
header.hero,
.hero {
    position: static !important;
    min-height: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin-bottom: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    background: none !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    animation: fadeInDown 0.8s ease-out;
}

header.hero::after,
.hero::after {
    display: none !important;
}

.hero-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.6));
}

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

.badge-loc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    backdrop-filter: blur(8px);
}

.hero h1 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: clamp(30px, 5.5vw, 48px);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero p {
    font-size: clamp(14px, 2.5vw, 17px);
    color: var(--text-muted);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* GRID OF SITES / ECOSYSTEM HUB CARDS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    margin-bottom: 40px;
}

.service-card {
    background: var(--bg-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 24px;
    text-decoration: none;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px var(--accent-glow);
}

.service-card:hover::before {
    opacity: 1;
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.service-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent);
    color: #0b1120;
}

.card-tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body h2 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-body p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 18px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

.card-footer i {
    transition: transform 0.3s ease;
}

.service-card:hover .card-footer i {
    transform: translateX(4px);
}

/* SECTION: HISTORY & CONSTRUCTION STAGES */
.history-section {
    width: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px 30px;
    margin-bottom: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.history-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

.history-header .badge-loc {
    margin-bottom: 12px;
}

.history-header h2 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: clamp(26px, 4vw, 36px);
    color: #fff;
    margin-bottom: 14px;
}

.history-intro {
    color: #cbd5e1;
    font-size: 14.5px;
    line-height: 1.8;
    margin-bottom: 30px;
    background: rgba(11, 17, 32, 0.55);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.stages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
}

.stage-card {
    background: rgba(11, 17, 32, 0.7);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s;
}

.stage-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--accent-glow);
}

.stage-img-box {
    position: relative;
    height: 190px;
    cursor: pointer;
    overflow: hidden;
}

.stage-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.stage-card:hover .stage-img-box img {
    transform: scale(1.06);
}

.stage-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(4px);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.stage-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stage-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
}

.stage-text {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.btn-tour-stage {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0b1120;
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    width: 100%;
}

.btn-tour-stage:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--accent-glow);
}
