/* ===== PORTAL-STYLES — MODERN MINIMAL WHITE THEME ===== */
:root {
    --primary: #00629b;
    /* IEEE Blue */
    --accent: rgb(1, 74, 110);
    --text-main: #1d1d1f;
    --text-sub: #424245;
    --bg-main: #ffffff;
    --bg-sub: rgba(255, 255, 255, 0.6);
    --border: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.5);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(-45deg, #ffffff, #f4f8fc, #faf0ff, #ffffff);
    background-size: 400% 400%;
    animation: gradient-bg 20s ease infinite;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

@keyframes gradient-bg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header */
.portal-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    height: 35px;
    object-fit: contain;
}

.logo-divider {
    width: 1px;
    height: 25px;
    background: var(--border);
}

.portal-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.portal-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.portal-nav a:hover {
    color: var(--primary);
}

.nav-zentrix-btn {
    background: var(--primary);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 50px;
}

/* Hero */
.portal-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 8% 80px;
    gap: 60px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* Background Elements */
.bg-elements {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float-orb 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -10%;
    right: -5%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #aa8be4;
    bottom: -10%;
    left: -10%;
    animation-delay: -5s;
    animation-duration: 25s;
}

.bg-grid {
    position: absolute;
    inset: -50%;
    background-image: 
        linear-gradient(to right, rgba(0, 98, 155, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 98, 155, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    transform-origin: center;
    animation: grid-move 30s linear infinite;
    mask-image: radial-gradient(circle at center, black 40%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 70%);
}

.particles {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle 15s infinite linear;
}

@keyframes float-orb {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, 30px) scale(1.1); }
    66% { transform: translate(30px, -50px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes grid-move {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

@keyframes float-particle {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

.hero-content {
    max-width: 520px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.hero-visual {
    flex: 1;
    max-width: 520px;
    min-width: 320px;
    position: relative;
    z-index: 2;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hologram-graphic {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.1s linear;
}

.hologram-base {
    position: absolute;
    bottom: 10%;
    width: 250px;
    height: 60px;
    background: radial-gradient(ellipse at center, rgba(0, 98, 155, 0.4) 0%, transparent 70%);
    filter: blur(10px);
    transform: rotateX(75deg);
}

.hologram-rings {
    position: absolute;
    width: 320px;
    height: 320px;
    transform-style: preserve-3d;
    transform: rotateX(60deg);
}

.ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 98, 155, 0.3);
}

.ring-1 {
    animation: rotate-ring 15s linear infinite;
    border-top: 2px solid var(--primary);
}

.ring-2 {
    transform: scale(0.85) rotateX(20deg);
    animation: rotate-ring 20s linear infinite reverse;
    border-left: 2px solid #aa8be4;
}

.ring-3 {
    transform: scale(0.7) rotateY(20deg);
    animation: rotate-ring 12s linear infinite;
    border-bottom: 2px solid var(--primary);
    border-style: dashed;
}

.hologram-core {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 40px rgba(0, 98, 155, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: core-float 4s ease-in-out infinite alternate;
}

.core-inner {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #aa8be4, var(--primary));
    border-radius: 50%;
    box-shadow: 0 0 30px #aa8be4;
    animation: pulse-core 2s ease-in-out infinite alternate;
}

.data-panel {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 1);
    z-index: 3;
}

.panel-1 {
    top: 20%;
    right: 5%;
    width: 140px;
    animation: float-panel 6s ease-in-out infinite;
}

.panel-line {
    height: 6px;
    background: rgba(0, 98, 155, 0.15);
    border-radius: 3px;
    margin-bottom: 8px;
    width: 100%;
}
.panel-line.short { width: 60%; }

.panel-2 {
    bottom: 25%;
    left: 10%;
    animation: float-panel 7s ease-in-out infinite -3s;
}

.panel-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 40px;
}

.bar {
    width: 12px;
    background: var(--primary);
    border-radius: 3px;
    opacity: 0.8;
}

.bar-1 { height: 60%; animation: chart-pulse 2s ease infinite; }
.bar-2 { height: 100%; animation: chart-pulse 2.5s ease infinite -1s; }
.bar-3 { height: 40%; animation: chart-pulse 1.8s ease infinite -0.5s; }
.bar-4 { height: 80%; background: #aa8be4; animation: chart-pulse 3s ease infinite -1.5s; }

.floating-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    mask-image: radial-gradient(circle at center, black 25%, transparent 60%);
    -webkit-mask-image: radial-gradient(circle at center, black 25%, transparent 60%);
    opacity: 0.3;
    animation: pulse-dots 4s ease-in-out infinite alternate;
}

@keyframes rotate-ring {
    0% { transform: rotateZ(0deg); }
    100% { transform: rotateZ(360deg); }
}

@keyframes core-float {
    0% { transform: translateY(-10px); }
    100% { transform: translateY(10px); }
}

@keyframes pulse-core {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.15); opacity: 1; }
}

@keyframes float-panel {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes chart-pulse {
    0%, 100% { transform: scaleY(1); transform-origin: bottom; }
    50% { transform: scaleY(0.6); transform-origin: bottom; }
}

@keyframes pulse-dots {
    0% { transform: scale(1); opacity: 0.2; }
    100% { transform: scale(1.05); opacity: 0.5; }
}

.hero-pretitle {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.portal-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
}

.accent-text {
    color: var(--accent);
}

.hero-subtext {
    font-size: 1.25rem;
    color: var(--text-sub);
    margin-bottom: 40px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.portal-btn {
    padding: 18px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-zentrix {
    background: var(--text-main);
    color: #fff;
}

.btn-zentrix:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    border: 2px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--bg-sub);
    border-color: var(--text-main);
}

/* Sections */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.portal-section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
    background: transparent;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.about-text {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    padding: 40px;
    border-radius: 24px;
    margin-bottom: 20px;
    transition: transform 0.4s ease, box-shadow 0.4s;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 98, 155, 0.1);
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 8px;
}

/* Zentrix Card Section */
.zentrix-card {
    background: linear-gradient(135deg, rgba(19, 19, 32, 0.85), rgba(40, 25, 70, 0.85));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(170, 139, 228, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    padding: 80px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.zentrix-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(170, 139, 228, 0.15), transparent 60%);
    animation: rotate-glow 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.card-zentrix-logo {
    height: 60px;
    margin-bottom: 24px;
}

.zentrix-card p {
    opacity: 0.7;
    margin: 16px auto 40px;
    max-width: 500px;
    font-size: 1.1rem;
}

.zentrix-card-btn {
    background: #aa8be4;
    color: #fff;
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
}

.zentrix-card-btn:hover {
    transform: scale(1.05);
}

/* Event Posters 3D Carousel */
.event-posters-section {
    background: var(--bg-main);
    overflow: hidden;
}

.coverflow-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    /* 3D Perspective */
}

.coverflow-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.coverflow-item {
    position: absolute;
    width: 320px;
    height: 480px;
    border-radius: 20px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease, z-index 0s;
    opacity: 0;
    z-index: 0;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: #e6e6ea;
    /* fallback */
    will-change: transform, opacity;
}

.coverflow-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    /* Let the div handle clicks */
}

/* Base states: hidden */
.coverflow-item {
    transform: translateX(0) scale(0.6) rotateY(0deg);
    opacity: 0;
    z-index: 0;
    visibility: hidden;
}

/* Active Center */
.coverflow-item.active {
    transform: translateX(0) scale(1) translateZ(100px);
    opacity: 1;
    z-index: 10;
    visibility: visible;
    box-shadow: 0 25px 50px rgba(0, 98, 155, 0.25);
}

/* Previous 1 & Next 1 */
.coverflow-item.prev-1 {
    transform: translateX(-40%) scale(0.85) translateZ(0px) rotateY(15deg);
    opacity: 0.8;
    z-index: 9;
    visibility: visible;
}

.coverflow-item.next-1 {
    transform: translateX(40%) scale(0.85) translateZ(0px) rotateY(-15deg);
    opacity: 0.8;
    z-index: 9;
    visibility: visible;
}

/* Previous 2 & Next 2 */
.coverflow-item.prev-2 {
    transform: translateX(-75%) scale(0.7) translateZ(-100px) rotateY(25deg);
    opacity: 0.5;
    z-index: 8;
    visibility: visible;
}

.coverflow-item.next-2 {
    transform: translateX(75%) scale(0.7) translateZ(-100px) rotateY(-25deg);
    opacity: 0.5;
    z-index: 8;
    visibility: visible;
}

/* Previous 3 & Next 3 (Fading out at edges) */
.coverflow-item.prev-3 {
    transform: translateX(-105%) scale(0.55) translateZ(-200px) rotateY(35deg);
    opacity: 0.2;
    z-index: 7;
    visibility: visible;
}

.coverflow-item.next-3 {
    transform: translateX(105%) scale(0.55) translateZ(-200px) rotateY(-35deg);
    opacity: 0.2;
    z-index: 7;
    visibility: visible;
}

/* Controls */
.coverflow-controls {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 20;
}

.coverflow-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: var(--transition);
}

.coverflow-arrow:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 98, 155, 0.2);
}

/* Poster Modal */
.poster-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(10px);
}

.poster-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.poster-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--accent);
}

/* Members Marquee */
.members-section {
    overflow: hidden;
}

.section-subtitle {
    text-align: center;
    color: var(--text-sub);
    margin-top: -24px;
    margin-bottom: 48px;
    font-size: 1.1rem;
}

.members-marquee {
    overflow: hidden;
    position: relative;
    padding: 16px 0;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: marquee-scroll 60s linear infinite;
}

.marquee-reverse .marquee-track {
    animation-direction: reverse;
}

.marquee-track-large {
    animation-duration: 110s;
}

.members-marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.member-card {
    flex-shrink: 0;
    width: 140px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.member-card:hover {
    transform: translateY(-5px) scale(1.08);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #e1e1e6;
    background-size: cover;
    background-position: center;
    margin: 0 auto 12px;
    overflow: hidden;
    filter: grayscale(100%);
    border: 3px solid transparent;
    transition: filter 0.5s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.member-card:hover .member-photo {
    filter: grayscale(0%);
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(0, 98, 155, 0.25);
}

.member-card span {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-sub);
    white-space: nowrap;
}

.member-card .member-role {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--primary);
    opacity: 0.8;
    margin-top: 2px;
    white-space: normal;
    line-height: 1.3;
}

.member-card:hover span {
    color: var(--primary);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: var(--bg-sub);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 98, 155, 0.18);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 98, 155, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(2px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid rgba(255, 255, 255, 0.7);
    padding: 10px 28px;
    border-radius: 50px;
    transition: background 0.3s ease;
}

.gallery-overlay span:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Gallery Lightbox Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(12px);
}

.gallery-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-modal .modal-content {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-modal.active .modal-content {
    transform: scale(1);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.portal-footer {
    padding: 80px 5%;
    background: var(--bg-sub);
    border-top: 1px solid var(--border);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
}

.footer-logo {
    height: 30px;
    margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 992px) {
    .portal-hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 140px;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        max-width: 600px;
    }

    .poster-carousel {
        transform: none;
    }

    .poster-carousel:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    .portal-nav {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .zentrix-card {
        padding: 40px 20px;
    }

    .poster-track {
        height: 380px;
    }
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    overflow: hidden;
}

.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #aa8be4);
    border-radius: 24px 24px 0 0;
    z-index: 1;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 98, 155, 0.1);
}

/* Message Side */
.testimonial-message {
    flex: 1;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-message h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 12px 0 4px;
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-bottom: 20px;
    line-height: 1.4;
}

.testimonial-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), #aa8be4);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.testimonial-body {
    position: relative;
    padding-left: 16px;
}

.quote-icon {
    position: absolute;
    top: -16px;
    left: -4px;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: var(--primary);
    opacity: 0.1;
    line-height: 1;
    pointer-events: none;
}

.testimonial-body p {
    font-size: 0.92rem;
    color: var(--text-sub);
    line-height: 1.8;
    margin-bottom: 10px;
}

.testimonial-body p:first-of-type {
    font-weight: 600;
    color: var(--text-main);
}

.testimonial-body p:last-child {
    margin-bottom: 0;
}

/* Portrait Side */
.testimonial-portrait {
    flex-shrink: 0;
    width: 300px;
    min-height: 360px;
    position: relative;
    overflow: hidden;
}

.testimonial-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gradient overlay on portrait edges for a blended look */
.testimonial-card:not(.testimonial-reversed) .testimonial-portrait::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to right, var(--glass-bg), transparent);
    z-index: 1;
}

.testimonial-reversed .testimonial-portrait::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to left, var(--glass-bg), transparent);
    z-index: 1;
}

/* Responsive */
@media (max-width: 900px) {
    .testimonial-card,
    .testimonial-reversed {
        flex-direction: column !important;
    }

    .testimonial-portrait {
        width: 100%;
        min-height: 250px;
        max-height: 300px;
        order: -1;
    }

    .testimonial-card:not(.testimonial-reversed) .testimonial-portrait::before,
    .testimonial-reversed .testimonial-portrait::after {
        display: none;
    }

    .testimonial-portrait::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(to top, var(--glass-bg), transparent);
        z-index: 1;
    }

    .testimonial-message {
        padding: 30px;
    }

    .testimonial-message h3 {
        font-size: 1.3rem;
    }
}
/* Core Team Grid */
.core-team-section {
    padding-bottom: 60px;
}
.core-team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}
.core-team-grid .member-card {
    width: 180px;
}
.core-team-grid .member-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.core-team-grid .member-role {
    font-size: 0.85rem;
    margin-top: 4px;
}
