

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #ffffff;
    --text-main: #0d0d0d;
    --text-muted: #6b6b6b;
    --border-color: #e5e5e5;
    --accent: #10a37f; 
    --accent-hover: #1a7f64;
    --nav-height: 70px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-full: 999px;
    
    font-family: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}






/* ==================================================== */
/*  Actual css start from here  */
/* ==================================================== */

.portfolio {
    padding: 60px 0;
    background-color: #fafbfc; /* Slight off-white to make the white cards pop */
}

.portfolio-wrapper {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1.2fr;
    gap: 30px;
    align-items: stretch;
    width: 100%;
    padding: 36px 82px;
}

.portfolio-col {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.port-header {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
}

.port-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color:#fff;
}

.hdr-icon-slot {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hdr-icon-slot img {
/*    height: 24px;
    width: auto;*/
    height: 100%;
    width: 30px;
}

.port-body {
    padding: 15px;
    flex: 1;
}



.portfolio .container {
    max-width: 1300px;
} 

/* Base Icon styling for items */
.item-icon-slot {
    width: 41px;
    height: 42px;
    background: #f8fbff; /* default blue */
    color: #2846a8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.card-list .item-icon-slot{
  border-right: 2px solid lightgrey;
}

.item-icon-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

/* Interconnect IPs (Blue) */
.interconnect-col {
    border: 2px solid #2846a8;
}
.blue-hdr {
    background: #2846a8;
}
.inter-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.port-card {
    border: 2px solid #d0daee;
    border-radius: 8px;
    padding: 12px;
    background: #f8fbff;
}
.card-title {
    color: #2846a8;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
}
.card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    
}
.card-list li {
    background: #f8fbff;
    border: 2px solid #d0daee;
    border-radius: 6px;
    padding: 6px 1px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    
}
.bridge_ip_inner{
    padding: 0 61px;
    gap: 10px;
}
.card-list li span {
    line-height: 1.3;
}
.card-list li small {
    display: block;
    margin-top: -1px; /* Pull it slightly closer to offset remaining natural baseline gap */
    font-size: 10px;
    color: #666;
    font-weight: 400;
    line-height: 1.1;
}
.chip-text-icon {
    font-weight: 700;
    font-size: 10px;
}

/* Bridge IPs (Orange) */
.bridge-col {
    border: 2px solid #e67c22;
    background-color: white;
    
}
.orange-hdr {
    background: #e67c22;
}
.bridge-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bridge-list li {
    background: #fff9f2;
    border: 1px solid #f6d2b5;
    border-radius: 6px;
    padding: 0px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.bridge-list .item-icon-slot {
    background: transparent;
    color: #e67c22;
    font-size: 18px;
}

/* Controller IPs (Purple) */
.controller-col {
    border: 2px solid #5a4094;
}
.purple-hdr {
    background: #5a4094;
}
.control-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.control-grid li {
    background: #fff9ff;
    border: 1px solid #d6c6e8;
    border-radius: 6px;
    padding: 8px 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.control-grid .item-icon-slot {
    background: #5b4095;
}
.control-grid .full-width {
    grid-column: 1 / -1;
}

.card-list li:hover {
/*    background-color: #c4efff;*/
    cursor: pointer;
}

.bridge-list li:hover {
/*    background-color: #f6d2b5;*/
    cursor: pointer;
}

.control-grid li:hover {
    background-color: #d6c6e8;
    cursor: pointer;
}





.card-list li, .bridge-list li, .control-grid li {
    position: relative;
    cursor: pointer; /* Fallback for the li itself */
}
.stretched-link {
    color: inherit;
    text-decoration: none;
}
.stretched-link::after {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 10;
    content: "";
}

.card-list-inner_1 {
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                box-shadow 0.8s ease;
    transform-origin: center;
}

.card-list-inner_1:hover {
    border: none;
     transform: scale(1.04);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    
}

/* INNER ITEMS */
.card-list-inner_2 {
    transition: all 0.25s ease;
}

.card-list-inner_2:hover {
    transform: scale(0.92);   /* stronger zoom out */
    background: #fff;
}

@media (max-width: 1024px) {
    .portfolio-wrapper {
        grid-template-columns: 1fr 1fr;
    }
    .interconnect-col {
        grid-column: 1 / -1;
    }
}
@media (max-width: 768px) {
    .portfolio-wrapper {
        grid-template-columns: 1fr;
    }
    .inter-body {
        grid-template-columns: 1fr;
    }
    .control-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-wrapper{padding:0;}
}
