/* ── Port Solutions Index — rebuilt to match React reference ── */

:root {
    --ps-primary: #034694;
    --ps-primary-500: #034694;
    --ps-primary-600: #023d83;
    --ps-primary-700: #022f66;
    --ps-primary-light: #60a5fa;
    --ps-primary-50: #eef4fb;
    --ps-icon-blue: #1e40af;
    --ps-slate-900: #0f172a;
    --ps-slate-800: #1e293b;
    --ps-slate-700: #334155;
    --ps-slate-600: #475569;
    --ps-slate-500: #64748b;
    --ps-gray-50: #f9fafb;
    --ps-gray-100: #f3f4f6;
    --ps-gray-200: #e5e7eb;
    --ps-card-bg: #edf2f7;
}

/* ──────────────────────────────────────────── HERO ──────────────────────────────────────────── */
.ps-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0b1220;
}

.ps-hero-bg {
    position: absolute;
    inset: 0;
}

.ps-hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ps-hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.8) 50%, rgba(3, 47, 102, 0.75) 100%);
}

.ps-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(4rem);
    pointer-events: none;
    animation: ps-pulse 4s ease-in-out infinite;
    z-index: 1;
}

.ps-hero-glow-1 {
    top: 25%;
    left: 20%;
    width: 24rem;
    height: 24rem;
    background: rgba(3, 70, 148, 0.2);
}

.ps-hero-glow-2 {
    bottom: 20%;
    right: 20%;
    width: 31rem;
    height: 31rem;
    background: rgba(3, 70, 148, 0.15);
    animation-delay: 1s;
}

@keyframes ps-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.ps-hero-content {
    position: relative;
    z-index: 10;
    padding: 8rem 0 5rem;
}

.ps-hero-inner {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.ps-hero-badge-wrap {
    margin-bottom: 1.5rem;
}

.ps-hero-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, var(--ps-primary-500), var(--ps-primary-600));
    color: #fff;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50rem;
    box-shadow: 0 8px 24px rgba(3, 70, 148, 0.4);
}

.ps-hero-title {
    font-size: clamp(2.25rem, 5.5vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.ps-hero-divider {
    width: 8rem;
    height: 0.25rem;
    background: linear-gradient(to right, var(--ps-primary-500), var(--ps-primary-600));
    border-radius: 50rem;
    margin: 0 auto 2rem;
}

.ps-hero-desc {
    font-size: 1.125rem;
    color: #d1d5db;
    line-height: 1.75;
    margin: 0 auto 2.5rem;
    max-width: 48rem;
}

.ps-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--ps-primary-500);
    color: #fff;
    font-weight: 700;
    border-radius: 0.75rem;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(3, 70, 148, 0.4);
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

.ps-hero-cta:hover {
    background: var(--ps-primary-600);
    color: #fff;
    transform: scale(1.05);
}

/* Category cards inside hero */
.ps-hero-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 3.5rem;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

.ps-hero-cat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    color: #fff;
    transition: transform 0.3s, border-color 0.3s, background 0.3s;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ps-hero-cat-card:hover {
    transform: scale(1.05);
    border-color: rgba(96, 165, 250, 0.6);
}

.ps-hero-cat-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 0.75rem;
    background: rgba(3, 70, 148, 0.2);
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.ps-hero-cat-card:hover .ps-hero-cat-icon {
    background: var(--ps-primary-500);
}

.ps-hero-cat-icon i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.ps-hero-cat-card:hover .ps-hero-cat-icon i {
    color: #fff;
}

.ps-hero-cat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

/* Scroll indicator */
.ps-hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    animation: ps-bounce 1.5s infinite;
}

.ps-hero-scroll-mouse {
    width: 2rem;
    height: 3rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.5rem;
}

.ps-hero-scroll-dot {
    width: 0.375rem;
    height: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50rem;
}

@keyframes ps-bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -8px); }
}

/* ──────────────────────────────────────────── STICKY NAV ──────────────────────────────────────────── */
.ps-sticky-nav {
    position: fixed;
    top: 112px;
    left: 0;
    right: 0;
    z-index: 1030;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 991px) {
    .ps-sticky-nav { top: 96px; }
}
@media (max-width: 767px) {
    .ps-sticky-nav { top: 88px; }
}

.ps-sticky-nav.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.ps-sticky-nav-inner {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.ps-sticky-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.ps-sticky-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, transform 0.15s;
}

.ps-sticky-btn:hover {
    background: var(--ps-primary-500);
    border-color: var(--ps-primary-500);
}

.ps-sticky-btn:active {
    transform: scale(0.95);
}

.ps-sticky-btn i {
    color: var(--ps-primary-light);
    transition: color 0.3s;
}

.ps-sticky-btn:hover i {
    color: #fff;
}

/* ──────────────────────────────────────────── SOLUTION BLOCKS ──────────────────────────────────────────── */
.ps-blocks {
    padding: 5rem 0;
    background: var(--ps-gray-50);
}

.ps-blocks-stack {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.ps-group-anchor {
    scroll-margin-top: 14rem;
}
@media (max-width: 991px) {
    .ps-group-anchor { scroll-margin-top: 12rem; }
}
@media (max-width: 767px) {
    .ps-group-anchor { scroll-margin-top: 11rem; }
}

.ps-group-card {
    background: #fff;
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--ps-gray-100);
}

.ps-group-inner {
    padding: 2rem;
}

@media (min-width: 768px) {
    .ps-group-inner { padding: 3rem; }
}

@media (min-width: 992px) {
    .ps-group-inner { padding: 4rem; }
}

.ps-group-head {
    max-width: 56rem;
    margin-bottom: 2.5rem;
}

.ps-group-title {
    font-size: clamp(1.5rem, 2.4vw, 1.875rem);
    font-weight: 700;
    color: var(--ps-slate-900);
    line-height: 1.25;
    margin-bottom: 1rem;
}

.ps-group-desc {
    font-size: 0.9375rem;
    color: var(--ps-slate-600);
    line-height: 1.7;
    max-width: 48rem;
    margin: 0;
}

.ps-sol-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .ps-sol-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .ps-sol-grid { grid-template-columns: repeat(3, 1fr); }
}

.ps-sol-card {
    position: relative;
    background: var(--ps-card-bg);
    border: 1px solid transparent;
    border-radius: 1rem;
    padding: 2rem;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: background 0.5s, border-color 0.5s, box-shadow 0.5s, transform 0.3s;
}

.ps-sol-card:hover {
    background: #fff;
    border-color: var(--ps-gray-200);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.ps-sol-bgicon {
    position: absolute;
    top: -1rem;
    right: 0;
    font-size: 6rem;
    color: rgba(203, 213, 225, 0.5);
    opacity: 0.3;
    pointer-events: none;
    transition: transform 0.7s, color 0.7s;
    line-height: 1;
}

.ps-sol-card:hover .ps-sol-bgicon {
    transform: scale(1.1);
    color: var(--ps-primary-50);
}

.ps-sol-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ps-sol-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--ps-icon-blue);
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.25);
    transition: transform 0.3s, background 0.3s;
}

.ps-sol-card:hover .ps-sol-icon {
    transform: scale(1.1);
    background: var(--ps-primary-600);
}

.ps-sol-title {
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--ps-slate-900);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.ps-sol-desc {
    font-size: 0.875rem;
    color: var(--ps-slate-600);
    line-height: 1.65;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.ps-sol-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ps-icon-blue);
    font-weight: 700;
    font-size: 0.875rem;
    transition: gap 0.3s, color 0.3s;
}

.ps-sol-card:hover .ps-sol-link {
    gap: 0.75rem;
    color: var(--ps-primary-600);
}

/* ──────────────────────────────────────────── UNIFIED SYSTEM ──────────────────────────────────────────── */
.ps-unified {
    padding: 6rem 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.ps-unified-head {
    max-width: 48rem;
    margin: 0 auto 5rem;
    text-align: center;
}

.ps-unified-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--ps-slate-900);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.ps-unified-title span {
    color: var(--ps-primary-500);
}

.ps-unified-divider {
    width: 6rem;
    height: 0.375rem;
    background: var(--ps-primary-500);
    border-radius: 50rem;
    margin: 0 auto;
}

.ps-unified-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .ps-unified-grid { grid-template-columns: repeat(2, 1fr); }
}

.ps-unified-card {
    background: var(--ps-gray-50);
    border: 1px solid var(--ps-gray-100);
    padding: 2.5rem;
    border-radius: 2rem;
    color: var(--ps-slate-800);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: background 0.5s, color 0.5s, transform 0.5s, box-shadow 0.5s;
}

.ps-unified-card:hover {
    background: linear-gradient(135deg, var(--ps-slate-900), var(--ps-slate-800));
    color: #fff;
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.25);
}

.ps-unified-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: #dbeafe;
    color: var(--ps-primary-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    transition: background 0.3s, color 0.3s;
}

.ps-unified-card:hover .ps-unified-icon {
    background: var(--ps-primary-500);
    color: #fff;
}

.ps-unified-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--ps-slate-800);
    transition: color 0.3s;
}

.ps-unified-card:hover h3 {
    color: #fff;
}

.ps-unified-card p {
    color: var(--ps-slate-500);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin: 0;
    transition: color 0.3s;
}

.ps-unified-card:hover p {
    color: #d1d5db;
}

/* ──────────────────────────────────────────── FINAL CTA ──────────────────────────────────────────── */
.ps-final-cta {
    position: relative;
    overflow: hidden;
    background: #00070f;
    color: #fff;
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .ps-final-cta { padding: 6rem 0; }
}

.ps-final-cta-glow {
    position: absolute;
    top: 0;
    left: 33%;
    width: 24rem;
    height: 24rem;
    background: var(--ps-primary-500);
    border-radius: 50%;
    filter: blur(4rem);
    opacity: 0.1;
    animation: ps-pulse 4s ease-in-out infinite;
    pointer-events: none;
}

.ps-final-cta-inner {
    position: relative;
    z-index: 10;
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.ps-final-cta-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

@media (min-width: 768px) {
    .ps-final-cta-title { margin-bottom: 2rem; }
}

.ps-final-cta-desc {
    font-size: 1.125rem;
    color: #d1d5db;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .ps-final-cta-desc {
        font-size: 1.5rem;
        margin-bottom: 3rem;
    }
}

.ps-final-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 576px) {
    .ps-final-cta-actions { flex-direction: row; }
}

.ps-final-cta-primary,
.ps-final-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

@media (min-width: 768px) {
    .ps-final-cta-primary,
    .ps-final-cta-secondary { padding: 1.25rem 3rem; }
}

.ps-final-cta-primary {
    background: linear-gradient(to right, var(--ps-primary-500), var(--ps-primary-600));
    color: #fff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3);
}

.ps-final-cta-primary:hover {
    color: #fff;
    background: linear-gradient(to right, var(--ps-primary-600), var(--ps-primary-700));
    transform: scale(1.05);
    box-shadow: 0 24px 48px rgba(3, 70, 148, 0.5);
}

.ps-final-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.ps-final-cta-secondary:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* ──────────────────────────────────────────── RESPONSIVE TWEAKS ──────────────────────────────────────────── */
.ps-hero, .ps-blocks, .ps-unified, .ps-final-cta { overflow-x: clip; max-width: 100%; }

@media (max-width: 767px) {
    .ps-hero { min-height: 78vh; }
    .ps-hero-content { padding: 5rem 0 2.5rem; }
    .ps-hero-title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
    .ps-hero-desc { font-size: 1rem; line-height: 1.7; }
    .ps-hero-cat-grid {
        grid-template-columns: 1fr;
        gap: .75rem;
        margin-top: 2rem;
    }
    .ps-hero-cat-card { padding: 1rem; }
    .ps-hero-cat-icon { width: 2.75rem; height: 2.75rem; margin-bottom: .5rem; }
    .ps-blocks { padding: 2.5rem 0; }
    .ps-blocks-stack { gap: 2.5rem; }
    .ps-group-inner { padding: 1.5rem; }
    .ps-group-title { font-size: 1.375rem; }
    .ps-group-card { border-radius: 1.5rem; }
    .ps-unified { padding: 3rem 0; }
    .ps-unified-head { margin-bottom: 2.5rem; }
    .ps-unified-title { font-size: 1.625rem; }
    .ps-unified-card { padding: 1.5rem; border-radius: 1.25rem; }
    .ps-final-cta { padding: 3rem 0; }
    .ps-final-cta-title { font-size: 1.5rem; }
    .ps-final-cta-desc { font-size: 1rem; }
    .ps-sticky-btn { font-size: 0.75rem; padding: 0.6rem 0.85rem; }
    .ps-sticky-btn span { display: none; }
}

@media (max-width: 575px) {
    .ps-sol-card { padding: 1.25rem; }
    .ps-sol-title { font-size: 1.0625rem; }
    .ps-final-cta-primary,
    .ps-final-cta-secondary { padding: .875rem 1.5rem; width: 100%; }
}
