/* =============================================
   PORTFOLIO.CSS — Zen Interactive Technologies
   Matches about.css theme: Plus Jakarta Sans,
   --primary-blue, --theme-yellow (#F5D547), #000
   ============================================= */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* ── CSS Variables (mirror style.css) ── */
:root {
    --primary-blue: #B8E0FF;
    --theme-yellow: #F5D547;
    --cream-bg: #F8F7F4;
    --dark: #000000;
    --text-muted: #666;
    --radius-lg: 20px;
    --radius-xl: 25px;
    --shadow-sm: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-md: 0 20px 50px rgba(0,0,0,0.12);
    --shadow-lg: 0 30px 70px rgba(0,0,0,0.15);
    --transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* =============================================
   PAGE HERO
   ============================================= */
.page-hero-section {
    background: var(--primary-blue);
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.page-hero-section .hero-shape {
    position: absolute;
    bottom: -120px;
    right: -120px;
    width: 450px;
    height: 450px;
    background: var(--theme-yellow);
    border-radius: 50%;
    opacity: 0.25;
    animation: float 7s ease-in-out infinite;
}

.page-hero-section .hero-shape::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -80px;
    width: 200px;
    height: 200px;
    background: #000;
    border-radius: 50%;
    opacity: 0.07;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(8deg); }
}

.page-hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    color: #000;
    margin-bottom: 22px;
    letter-spacing: -1.5px;
}

.page-hero-text {
    font-size: 17px;
    line-height: 1.75;
    color: #333;
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 35px;
}

.hero-breadcrumb a { color: #000; text-decoration: none; transition: color 0.3s; }
.hero-breadcrumb a:hover { color: var(--theme-yellow); }
.hero-breadcrumb i { font-size: 11px; color: #666; }
.hero-breadcrumb span { color: #555; }

.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 20px 30px;
    width: fit-content;
    border: 1px solid rgba(255,255,255,0.8);
}

.hero-stat-item { text-align: center; padding: 0 25px; }
.hero-stat-item h3 {
    font-size: 32px;
    font-weight: 800;
    color: #000;
    margin: 0 0 4px;
    line-height: 1;
}
.hero-stat-item span {
    font-size: 12px;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(0,0,0,0.15);
}

/* Orbit Animation */
.hero-brands-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 420px;
}

.brands-orbit {
    position: relative;
    width: 360px;
    height: 360px;
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--theme-yellow);
    box-shadow: 0 0 0 15px rgba(0,0,0,0.08), 0 0 0 30px rgba(0,0,0,0.04);
    z-index: 2;
}

.orbit-item {
    position: absolute;
    width: 55px;
    height: 55px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #000;
    box-shadow: var(--shadow-sm);
    animation: orbitSpin 12s linear infinite;
    border: 2px solid var(--theme-yellow);
}

.orbit-item:nth-child(2) { animation-delay: 0s; }
.orbit-item:nth-child(3) { animation-delay: -2s; }
.orbit-item:nth-child(4) { animation-delay: -4s; }
.orbit-item:nth-child(5) { animation-delay: -6s; }
.orbit-item:nth-child(6) { animation-delay: -8s; }
.orbit-item:nth-child(7) { animation-delay: -10s; }

/* Place items on a circle */
.orbit-1 { top: 5%; left: 50%; transform: translateX(-50%); animation: none; }
.orbit-2 { top: 22%; right: 2%; animation: none; }
.orbit-3 { bottom: 22%; right: 2%; animation: none; }
.orbit-4 { bottom: 5%; left: 50%; transform: translateX(-50%); animation: none; }
.orbit-5 { bottom: 22%; left: 2%; animation: none; }
.orbit-6 { top: 22%; left: 2%; animation: none; }

/* Add a rotating ring */
.brands-orbit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border: 2px dashed rgba(0,0,0,0.15);
    border-radius: 50%;
    animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* =============================================
   STICKY PORTFOLIO NAV
   ============================================= */
.portfolio-nav-section {
    background: #fff;
    border-bottom: 2px solid #f0f0f0;
    padding: 0;
    z-index: 100;
    position: relative;
}

.portfolio-nav-section.is-sticky {
    position: sticky;
    top: 80px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.portfolio-tabs-wrapper {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.portfolio-tabs-wrapper::-webkit-scrollbar { display: none; }

.portfolio-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
    min-width: max-content;
}

.portfolio-tabs li { flex-shrink: 0; }

.tab-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 28px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-pill i { font-size: 15px; }

.tab-pill:hover {
    color: #000;
    border-bottom-color: var(--theme-yellow);
    background: rgba(245, 213, 71, 0.06);
}

.tab-pill.active {
    color: #000;
    border-bottom-color: var(--theme-yellow);
    background: rgba(245, 213, 71, 0.08);
}

/* =============================================
   PORTFOLIO SECTIONS
   ============================================= */
.portfolio-section {
    padding: 90px 0;
    background: #fff;
}

.portfolio-section.alt-bg {
    background: var(--cream-bg);
}

/* Section Header */
.section-header {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
}

.section-number {
    font-size: 80px;
    font-weight: 800;
    color: rgba(0,0,0,0.06);
    line-height: 1;
    flex-shrink: 0;
    margin-top: -10px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -3px;
}

.section-subtitle {
    display: inline-block;
    background: var(--theme-yellow);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 25px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    color: #000;
    margin-bottom: 12px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 680px;
    margin: 0;
}

/* =============================================
   BRAND BLOCKS
   ============================================= */
.brand-block {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 35px;
    border: 2px solid #f0f0f0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.alt-bg .brand-block {
    background: #fff;
}

.brand-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--theme-yellow);
    border-radius: 4px 0 0 4px;
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.brand-block:hover::before {
    transform: scaleY(1);
}

.brand-block:hover {
    border-color: var(--theme-yellow);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

/* Brand Header */
.brand-header {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.brand-logo-box {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    transition: var(--transition);
}

.brand-block:hover .brand-logo-box { transform: scale(1.1) rotate(3deg); }

/* Brand color variants */
.brand-micron   { background: rgba(0, 84, 166, 0.12); color: #0054A6; }
.brand-crucial  { background: rgba(229, 54, 52, 0.12); color: #E53634; }
.brand-netac    { background: rgba(0, 150, 136, 0.12); color: #009688; }
.brand-3cx      { background: rgba(30, 144, 255, 0.12); color: #1E90FF; }
.brand-dinstar  { background: rgba(76, 175, 80, 0.12); color: #4CAF50; }
.brand-snom     { background: rgba(255, 87, 34, 0.12); color: #FF5722; }
.brand-nearity  { background: rgba(156, 39, 176, 0.12); color: #9C27B0; }
.brand-yealink  { background: rgba(33, 150, 243, 0.12); color: #2196F3; }
.brand-hushpod  { background: rgba(121, 85, 72, 0.12); color: #795548; }
.brand-joan     { background: rgba(255, 193, 7, 0.18); color: #F57F17; }
.brand-ezon     { background: rgba(0, 0, 0, 0.08); color: #000; }
.brand-onescreen { background: rgba(63, 81, 181, 0.12); color: #3F51B5; }

.brand-info h3 {
    font-size: 26px;
    font-weight: 800;
    color: #000;
    margin-bottom: 8px;
}

.brand-info p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #000;
    color: var(--theme-yellow);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 25px;
}

.brand-badge::before {
    content: '✓';
    font-size: 12px;
}

/* =============================================
   PRODUCTS GRID
   ============================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.products-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.products-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Product Card */
.product-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--cream-bg);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.alt-bg .product-card {
    background: #f1f1ee;
}

.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--theme-yellow);
    transition: width 0.3s ease;
}

.product-card:hover::after { width: 100%; }

.product-card:hover {
    background: #fff;
    border-color: var(--theme-yellow);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    color: inherit;
}

.product-card.accent {
    border-color: rgba(245, 213, 71, 0.4);
    background: rgba(245, 213, 71, 0.06);
}

.product-card.accent:hover {
    background: rgba(245, 213, 71, 0.15);
    border-color: var(--theme-yellow);
}

.product-card.compact {
    padding: 14px 16px;
}

.product-card.compact .product-info h4 { font-size: 14px; }
.product-card.compact .product-info p { display: none; }

.product-icon {
    width: 46px;
    height: 46px;
    background: var(--theme-yellow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #000;
    flex-shrink: 0;
    transition: var(--transition);
}

.product-card:hover .product-icon {
    background: #000;
    color: var(--theme-yellow);
    transform: scale(1.1);
}

.product-info { flex: 1; min-width: 0; }

.product-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    margin: 0 0 4px;
    line-height: 1.3;
}

.product-info p {
    font-size: 12px;
    color: #777;
    margin: 0;
    line-height: 1.4;
}

.product-arrow {
    color: #ccc;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.product-card:hover .product-arrow {
    color: var(--theme-yellow);
    transform: translateX(4px);
}

/* Workspace & Display card variants */
.workspace-card .product-icon { background: #000; color: var(--theme-yellow); }
.workspace-card:hover .product-icon { background: var(--theme-yellow); color: #000; }

.display-card .product-icon { background: #1a1a2e; color: #fff; }
.display-card:hover .product-icon { background: var(--theme-yellow); color: #000; }

/* =============================================
   SUB CATEGORIES
   ============================================= */
.sub-category {
    margin-top: 30px;
    padding-top: 28px;
    border-top: 1px dashed #e5e5e5;
}

.sub-cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.sub-cat-header i {
    width: 34px;
    height: 34px;
    background: rgba(245, 213, 71, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #000;
}

.sub-cat-header h4 {
    font-size: 17px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

/* =============================================
   PARTNERS STRIP
   ============================================= */
.partners-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.partner-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 2px solid #e8e8e8;
    color: #000;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    cursor: default;
}

.partner-chip i {
    font-size: 14px;
    color: #555;
    transition: color 0.3s;
}

.partner-chip:hover {
    background: var(--theme-yellow);
    border-color: var(--theme-yellow);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 213, 71, 0.35);
}

.partner-chip:hover i { color: #000; }

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
    padding: 80px 0;
    background: #fff;
}

.cta-box {
    background: linear-gradient(135deg, #000 0%, #1a1a2e 100%);
    padding: 60px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -15%;
    width: 450px;
    height: 450px;
    background: var(--theme-yellow);
    border-radius: 50%;
    opacity: 0.08;
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.04;
}

.cta-box h2 {
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.cta-box p {
    color: rgba(255,255,255,0.75);
    font-size: 16px;
    margin: 0;
}

.btn-theme-yellow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--theme-yellow);
    color: #000;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--theme-yellow);
}

.btn-theme-yellow:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255,255,255,0.2);
}

.btn-outline-dark-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.3);
    transition: var(--transition);
}

.btn-outline-dark-custom:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #000;
    color: var(--theme-yellow);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--theme-yellow);
    color: #000;
    transform: translateY(-4px);
}

/* Active nav state */
.navbar-nav .nav-link.active {
    color: #000 !important;
}

.navbar-nav .nav-link.active::after {
    width: 60%;
}
/* Clickable Brand Header */
.brand-header-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.brand-header-link:hover .brand-header {
    background: rgba(245, 213, 71, 0.03);
    border-radius: 16px;
}

.brand-header-link:hover h3 {
    color: var(--micron-blue, #0077C8);
}

.brand-header-link:hover .brand-logo-box {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(0, 119, 200, 0.2);
}

.brand-header-link:hover .brand-badge {
    background: var(--theme-yellow);
    color: #000;
}

/* Add pointer cursor to indicate clickability */
.brand-header-link {
    cursor: pointer;
}
/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1200px) {
    .products-grid.cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .page-hero-title { font-size: 38px; }
    .page-hero-section { padding: 130px 0 70px; min-height: auto; }
    .section-title { font-size: 30px; }
    .section-header { flex-direction: column; gap: 15px; }
    .section-number { font-size: 50px; }
    
    .products-grid.cols-3,
    .products-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-block { padding: 28px 22px; }
    .cta-box { padding: 40px 30px; text-align: center; }
    .cta-box h2 { font-size: 26px; }
    
    .hero-stats { padding: 16px 20px; }
    .hero-stat-item { padding: 0 15px; }
    .hero-stat-item h3 { font-size: 26px; }
}

@media (max-width: 767px) {
    .page-hero-title { font-size: 30px; letter-spacing: -0.5px; }
    .hero-stats { flex-direction: column; gap: 16px; width: 100%; }
    .hero-stat-divider { width: 80%; height: 1px; }

    .products-grid,
    .products-grid.cols-3,
    .products-grid.cols-4 {
        grid-template-columns: 1fr;
    }

    .brand-header { flex-direction: column; }
    .tab-pill { padding: 14px 18px; font-size: 13px; }
    
    .partner-chip { font-size: 13px; padding: 8px 14px; }
    
    .cta-box { padding: 30px 20px; }
    .cta-box .btn-theme-yellow,
    .btn-outline-dark-custom { width: 100%; justify-content: center; margin-bottom: 10px; }
    
    .section-header { margin-bottom: 35px; }
}

/* Scroll margin for anchor links with fixed header */
#storage, #unified-comms, #voip, #workspace, #displays {
    scroll-margin-top: 130px;
}