:root {
    --primary: #00f7ff;
    --primary-dark: #0068b7;
    --bg-dark: rgb(3, 0, 40);
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
    --card-bg: #1e293b;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Header --- */
.header {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    background: rgba(3, 0, 40, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 247, 255, 0.2);
}

/* Header Layout Variants */
.header.logo-right {
    flex-direction: row-reverse;
}

.header.logo-center {
    justify-content: space-between;
}
.header.logo-center .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}


.logo {
    width: 200px;
    height: 50px;
    display: flex;
    align-items: center;
    z-index: 2;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.logo-svg {
    width: 100%;
    height: 100%;
}

.logo-text-svg {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 1px;
    fill: rgba(255, 255, 255, 0);
    stroke: #ffffff;
    stroke-width: 0.8px;
    text-transform: lowercase;
}

.logo-text-svg:nth-of-type(1) {
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    animation: writeText108 8s ease-in-out infinite;
}

.logo-text-svg:nth-of-type(2) {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: writeTextSoftcare 8s ease-in-out infinite;
}

@keyframes writeText108 {
    0% { stroke-dashoffset: 150; fill: rgba(255, 255, 255, 0); }
    5% { stroke-dashoffset: 150; }
    30% { stroke-dashoffset: 0; fill: rgba(255, 255, 255, 0); }
    40% { fill: #ffffff; }
    90% { fill: #ffffff; opacity: 1; }
    100% { fill: rgba(255, 255, 255, 0); opacity: 0; }
}

@keyframes writeTextSoftcare {
    0% { stroke-dashoffset: 300; fill: rgba(255, 255, 255, 0); }
    35% { stroke-dashoffset: 300; }
    80% { stroke-dashoffset: 0; fill: rgba(255, 255, 255, 0); }
    90% { fill: #ffffff; }
    95% { fill: #ffffff; opacity: 1; }
    100% { fill: rgba(255, 255, 255, 0); opacity: 0; }
}

.logo-path {
    fill: none;
    stroke: url(#logoGradient);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 600; /* Approximate length of path */
    stroke-dashoffset: 600;
    animation: drawLogo 8s ease-in-out infinite;
}

@keyframes drawLogo {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Simulating running gradient by shifting stroke color slightly or using filter */
@keyframes gradientRun {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.nav-icons {
    display: flex;
    gap: 10px;
    z-index: 2;
    align-items: center;
}

.icon-box {
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box i {
    background: #fff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.icon-box:hover {
    transform: scale(1.1);
}

/* --- Search Logic --- */
.search-container {
    position: absolute;
    right: 80px; /* Starts near the search icon */
    top: 0;
    height: 100%;
    width: 0; /* Initially closed */
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.search-container input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-gray);
    color: var(--text-light);
    font-size: 1rem;
    outline: none;
    padding: 5px 10px;
    opacity: 0;
    transition: opacity 0.3s delay 0.1s;
}

/* Active state for search */
.header.search-active .search-container {
    width: calc(100% - 100px); /* Expands to cover left side */
}

.header.search-active .search-container input {
    opacity: 1;
}

.header.search-active .logo {
    opacity: 0; /* Hide logo when search is active */
    pointer-events: none;
}

/* --- Side Menu --- */
.side-menu {
    position: fixed;
    top: var(--header-height);
    right: -50%; /* Hidden initially */
    width: 50%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-dark);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transition: right 0.4s ease-in-out;
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.side-menu.active {
    right: 0;
}

.side-menu ul {
    list-style: none;
    width: 100%;
}

.side-menu li {
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

/* Staggered animation for menu items */
.side-menu.active li {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.1s; /* Default delay for items > 4 */
}
.side-menu.active li:nth-child(1) { transition-delay: 0.1s; }
.side-menu.active li:nth-child(2) { transition-delay: 0.2s; }
.side-menu.active li:nth-child(3) { transition-delay: 0.3s; }
.side-menu.active li:nth-child(4) { transition-delay: 0.4s; }

.side-menu a {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 8px;
    transition: 0.3s;
}

.side-menu a i {
    font-size: 1.4rem;
    width: 30px;
    text-align: center;
}

/* Unique Gradient-like Colors for Menu Icons */
.side-menu li:nth-child(1) a i { color: #00d2ff; filter: drop-shadow(0 0 3px rgba(0, 210, 255, 0.6)); } /* Cyan */
.side-menu li:nth-child(2) a i { color: #ff0099; filter: drop-shadow(0 0 3px rgba(255, 0, 153, 0.6)); } /* Pink */
.side-menu li:nth-child(3) a i { color: #ff9900; filter: drop-shadow(0 0 3px rgba(255, 153, 0, 0.6)); } /* Orange */
.side-menu li:nth-child(4) a i { color: #00ff99; filter: drop-shadow(0 0 3px rgba(0, 255, 153, 0.6)); } /* Green */
.side-menu li:nth-child(5) a i { color: #9900ff; filter: drop-shadow(0 0 3px rgba(153, 0, 255, 0.6)); } /* Purple */
.side-menu li:nth-child(6) a i { color: #ffff00; filter: drop-shadow(0 0 3px rgba(255, 255, 0, 0.6)); } /* Yellow */
.side-menu li:nth-child(7) a i { color: #ff0055; filter: drop-shadow(0 0 3px rgba(255, 0, 85, 0.6)); } /* Red */

/* The Animated Border Logic for Menu */
.side-menu li::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(transparent, transparent, transparent, #00F2FF, #FF0090, #00F2FF);
    animation: rotateBorder 4s linear infinite;
    z-index: -2;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.side-menu li:hover::before {
    opacity: 1;
    visibility: visible;
}

.side-menu li::after {
    content: '';
    position: absolute;
    inset: 2px; /* Border width */
    background: var(--bg-dark);
    border-radius: 6px;
    z-index: -1;
}

/* --- Hero Section --- */
main {
    margin-top: var(--header-height);
    padding: 2rem;
}

.announcement-bar {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 242, 255, 0.05), rgba(255, 255, 255, 0.15), rgba(255, 0, 144, 0.05));
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding: 10px 15px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.announcement-icon {
    color: var(--primary);
    font-size: 1.2rem;
    margin-right: 15px;
    animation: pulse-icon 2s infinite;
}

.announcement-icon i {
    color: var(--primary);
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.announcement-text-wrapper {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
}

.announcement-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
    font-size: 0.9rem;
    color: var(--text-light);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.hero-section {
    text-align: center;
    padding: 0.5rem 0 1rem 0;
    margin-bottom: 1.5rem;
}

.hero-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: baseline; /* Align text baselines */
    max-width: 100%;
    margin: 0;
    text-align: left;
    line-height: 1.4;
    padding: 0;
}

.hero-left-col {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center icon below text */
    margin-right: 15px;
}

.hero-static {
    flex-shrink: 0;
    color: var(--text-light);
    font-size: 1.4rem; /* Reduced size */
    font-weight: 700;
    margin-right: 0;
    white-space: nowrap;
}

.hero-right-col {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hero-dynamic {
    font-size: 0.95rem; /* Reduced size */
    font-weight: 400;
    min-height: 4.5em; /* Reserve space for ~3 lines */
}

.hero-anim-icon {
    margin-top: 10px;
    color: var(--primary);
    font-size: 1.2rem;
    animation: bounceIcon 2s infinite;
    opacity: 0.8;
}

@keyframes bounceIcon {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}

#heroText {
    background: linear-gradient(90deg, #00F2FF, #FF0090);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cursor {
    display: inline-block;
    width: 2px;
    background-color: var(--text-light);
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Dual Action Row --- */
.dual-action-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding: 0 2rem;
}

.action-box {
    flex: 1;
    max-width: 200px;
    padding: 10px 20px; /* Reduced height */
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1rem;
}

.action-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* --- Premium Divider --- */
.premium-divider {
    width: 95%;
    max-width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f7ff, #ff0090, transparent);
    margin: 25px auto 0 auto;
    opacity: 0.7;
}

/* --- Grid Section with Running Gradient --- */
.models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 boxes per row on desktop */
    gap: 20px; /* Uniform proper gap */
    padding-bottom: 2rem;
}

.gradient-box {
    position: relative;
    height: 200px; /* Required height */
    background: #ffffff; /* Pure White Solid Box */
    backdrop-filter: none;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: none;
}

.gradient-box:hover {
    transform: translateY(-5px);
}

/* The Inner Content (Masking the center) */
.box-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 20px;
    text-align: center;
    z-index: 1;
}

/* --- Top Boxes Unique Gradients --- */
/* Glassy Gradients with Shine */
.gradient-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px; /* Gradient Separator Line */
    background: linear-gradient(90deg, #00F2FF, #FF0090);
}

/* Remove specific box styles to maintain uniformity */
.gradient-box:nth-child(n) { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); border: none; }

/* Dual Action Gradients */
.subscribe-box {
    background: linear-gradient(135deg, #FF0090, #ff5e62);
    box-shadow: 0 0 15px rgba(255, 0, 144, 0.4);
}
.all-models-box {
    background: linear-gradient(135deg, #00F2FF, #0068b7);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}

/* Remove old grid lines from boxes */
.gradient-box::before { display: none; }
.gradient-box::after { display: none; }

.box-content h3, .box-content .box-value {
    color: rgb(3, 0, 40); /* Branding Consistency */
    text-shadow: none;
}

.box-content h3 {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: capitalize;
}

.box-value {
    position: absolute;
    bottom: 15px;
    font-size: 1.5rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    color: rgb(3, 0, 40);

}

/* --- Slider Dots (Mobile) --- */



.slider-dots {
    display: none; /* Hidden on desktop */
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-gray);
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
    opacity: 1;
    box-shadow: 0 0 8px var(--primary);
}


.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    margin-bottom: 4rem;
    gap: 20px;
}

.filter-label {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.select-wrapper {
    position: relative;
    min-width: 200px;
    z-index: 10;
}

.custom-select-trigger {
    position: relative;
    padding: 10px 20px;
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center; /* Center text */
    height: 45px;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
}

.custom-select-trigger span {
    z-index: 2;
}

.arrow {
    position: absolute;
    right: 15px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    z-index: 2;
}

.select-wrapper.open .arrow {
    transform: rotate(180deg);
}

/* Running Border for Trigger */
.custom-select-trigger::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 500%;
    top: -200%;
    left: -50%;
    background: conic-gradient(transparent, transparent, transparent, #00F2FF, #FF0090, #00F2FF);
    animation: rotateBorder 4s linear infinite;
    z-index: -2;
}

.custom-select-trigger::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-dark);
    border-radius: 6px;
    z-index: -1;
}

.custom-options {
    display: none; /* Hidden by default */
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    z-index: 100; /* Increased z-index to ensure it's on top */
    background-color: var(--bg-dark); /* Explicit solid background */
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.custom-options::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

/* Running Border for Options Box */
.custom-options::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 500%;
    top: -200%;
    left: -50%;
    background: conic-gradient(transparent, transparent, transparent, #00F2FF, #FF0090, #00F2FF);
    animation: rotateBorder 4s linear infinite;
    z-index: -2;
}

.custom-options::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-dark);
    border-radius: 6px;
    z-index: -1;
}

.select-wrapper.open .custom-options {
    display: block;
}

.custom-option {
    position: relative; /* To sit above ::after */
    z-index: 1;
    padding: 10px 20px;
    cursor: pointer;
    color: var(--text-gray);
    transition: background 0.2s;
    text-align: center; /* Center text */
}

.custom-option:hover, .custom-option.selected {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}


.post-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.post-thumbnail {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Like Option --- */
.like-option {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 10;
}

.like-icon {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.2s ease, color 0.2s ease;
}

.like-count {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    margin-top: 2px;
}

.like-option:hover .like-icon {
    transform: scale(1.1);
    color: rgba(255, 255, 255, 1);
}

.like-option.liked .like-icon {
    color: #ff0055; /* Filled heart color */
    transform: scale(1.1);
}

.post-details {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

.post-details h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: rgb(3, 0, 40);
}

.model-label {
    margin-right: 10px;
    color: #000000;
}

.post-meta-row {
    display: flex;
    position: relative;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 6px;
    background: linear-gradient(#fff, #fff) padding-box, 
                linear-gradient(to right, #00F2FF, #FF0090) border-box;
}

/* Divider between meta items */
.post-meta-row::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 5px;
    bottom: 5px;
    width: 1px;
    background: linear-gradient(to bottom, #00F2FF, #FF0090);
    transform: translateX(-50%);
}

.meta-box {
    flex: 1;
    border: none;
    padding: 8px;
    font-size: 0.85rem;
    color: rgb(3, 0, 40);
    text-align: center;
}

.post-desc {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.post-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.view-btn {
    position: relative;
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    text-transform: capitalize;
    font-size: 0.9rem;
    overflow: hidden;
    z-index: 1;
    flex: 1; /* 50% width */
}

.view-btn::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 500%;
    top: -200%;
    left: -50%;
    background: conic-gradient(transparent, transparent, transparent, #00F2FF, #FF0090, #00F2FF);
    animation: rotateBorder 4s linear infinite;
    z-index: -2;
}

.view-btn::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgb(3, 0, 40);
    border-radius: 4px;
    z-index: -1;
}

.share-btn {
    position: relative;
    background: transparent;
    border: none;
    color: var(--text-light);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    overflow: hidden;
    z-index: 1;
    flex: 1; /* 50% width */
}

.share-btn::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 500%;
    top: -200%;
    left: -50%;
    background: conic-gradient(transparent, transparent, transparent, #00F2FF, #FF0090, #00F2FF);
    animation: rotateBorder 4s linear infinite;
    z-index: -2;
}

.share-btn::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgb(3, 0, 40);
    border-radius: 4px;
    z-index: -1;
}


/* Reusing .post-meta-row, .post-desc, .post-actions from previous styles */

/* --- Scroll To Top Button --- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    color: rgb(3, 0, 40); /* Requested Color */
    font-size: 1.5rem;
    overflow: visible; /* Allow running border */
    background: transparent;
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.5);
}

.scroll-top-btn .material-symbols-outlined {
    font-variation-settings: 'wght' 700; /* Bold Arrow */
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    bottom: 40px; /* Slight animation up */
}

.scroll-top-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.8);
}

.scroll-top-btn::before {
    content: '';
    position: absolute;
    inset: -1px; /* Thin Running Gradient Border */
    background: conic-gradient(transparent, transparent, transparent, #00F2FF, #FF0090, #00F2FF);
    animation: rotateBorder 2s linear infinite;
    z-index: -2;
    border-radius: 50%;
}

.scroll-top-btn::after {
    content: '';
    position: absolute;
    inset: 1px; /* Thin Border Mask */
    background: #ffffff; /* Solid White Background */
    border-radius: 50%;
    z-index: -1;
}

/* --- Models Page Header --- */
.models-header-row {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.back-btn-container {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box, linear-gradient(to right, #00F2FF, #FF0090) border-box;
    border-radius: 50%;
    cursor: pointer;
    color: var(--primary);
    transition: all 0.3s;
}

.back-btn-container:hover {
    background: var(--primary);
    color: #000;
}

.models-page-title {
    flex-grow: 1;
    text-align: center;
    color: var(--primary);
    margin-right: 40px; /* Balance the back button width */
}

/* --- Search Results Overlay --- */
.search-results-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-dark);
    z-index: 998; /* Below menu (999) but above content */
    overflow-y: auto;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-result-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-serial {
    color: var(--text-gray);
    font-size: 0.9rem;
    min-width: 25px;
}

.search-logo {
    font-size: 1.5rem;
    color: var(--primary);
    width: 40px;
    text-align: center;
}

.search-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
}

.search-category-box {
    border: 1px solid var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: capitalize;
    background: rgba(0, 242, 255, 0.05);
    white-space: nowrap;
}

/* --- Partners Section --- */
.partners-section {
    padding-bottom: 0.5rem;
    padding-top: 0;
    overflow: hidden;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 4rem; /* Gap between logos */
    width: max-content;
    padding: 10px 0;
}

.partner-logo {
    font-size: 3rem;
    color: var(--text-gray);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    opacity: 0.6;
}

.partner-logo:hover {
    color: var(--primary);
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px var(--primary));
}

.scroll-left {
    animation: scrollLeft linear infinite;
}

.scroll-right {
    animation: scrollRight linear infinite;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* --- Meet the Minds Behind Section --- */
.team-section {
    padding-bottom: 2rem;
    text-align: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
    background-color: #ffffff; /* Strictly White Background */
}

/* --- Model Page Layout & Background --- */
body.model-page-active {
    background-color: #ffffff;
}

body.model-page-active main {
    padding: 0; /* Remove default padding to allow full bleed */
    margin-top: var(--header-height);
    max-width: 100%;
    overflow-x: hidden;
}

#models-view {
    /* Whitish Gradient: Soft blend of Cyan/Pink with White */
    background: #ffffff;
    min-height: calc(100vh - var(--header-height));
    padding: 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#modelResultsGrid {
    width: 100%;
    max-width: 1000px; /* Centered max width */
    margin: 0 auto;
    grid-template-columns: repeat(2, 1fr); /* 2 Models per row */
    gap: 2rem;
    padding-bottom: 4rem;
}

/* --- Sub-Model Details View --- */
#sub-model-view {
    padding: 0;
    max-width: 100%;
    width: 100%;
    margin: 0;
    animation: fadeIn 0.4s ease;
}

.sub-model-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    width: 95%;
    max-width: 1200px;
    margin: 1rem auto 10px auto;
}

.sub-model-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgb(3, 0, 40);
    text-transform: capitalize;
    text-align: right;
    flex-grow: 1;
    margin-right: 15px;
}

.header-model-icon {
    color: var(--primary);
    margin-right: 10px;
    font-size: 1.3rem;
    vertical-align: middle;
}

.tapered-line {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent, #00F2FF, #FF0090, transparent);
    margin-bottom: 2rem;
    opacity: 0.8;
    width: 95%;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
}

.sub-model-content {
    background: transparent !important;
    border: none;
    padding: 0;
    margin-top: 1.5rem;
    animation: fadeIn 0.5s ease;
    box-shadow: none !important;
}

/* --- New Layout Wrappers --- */
.sub-model-section-wrapper {
    width: 100%;
    padding: 1.5rem 0;
    position: relative;
}

.sub-model-inner-container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Unique Section Backgrounds (Soft Whitish Gradients) */
.section-share { background: radial-gradient(ellipse at center, rgba(0, 198, 255, 0.03) 0%, transparent 70%); }
.section-about { background: radial-gradient(ellipse at center, rgba(17, 153, 142, 0.03) 0%, transparent 70%); }
.section-how-to { background: radial-gradient(ellipse at center, rgba(255, 210, 0, 0.03) 0%, transparent 70%); }
.section-benefits { background: radial-gradient(ellipse at center, rgba(142, 45, 226, 0.03) 0%, transparent 70%); }
.section-support { background: radial-gradient(ellipse at center, rgba(255, 0, 144, 0.03) 0%, transparent 70%); }
.section-contact { background: #ffffff; }

/* Remove old block styles */
.sub-model-block {
    display: none; /* Deprecated */
}

.section-title-left {
    text-align: left;
    margin-left: 0 !important;
    margin-top: 0;
    color: #000000 !important;
    font-size: 1rem !important;
    margin-bottom: 1.5rem;
    display: inline-block;
    width: fit-content;
    padding: 10px 40px 10px 20px !important;
    border-radius: 0 50px 50px 0 !important;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
    font-weight: 300 !important;
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

/* 1. Share Title */
.section-share .section-title-left {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
}

/* 2. About Title */
.section-about .section-title-left {
    background: linear-gradient(90deg, #11998e, #38ef7d);
}

/* 3. How to Use Title */
.section-how-to .section-title-left {
    background: linear-gradient(90deg, #FFD200, #F7971E);
}

/* 4. Benefits Title */
.section-benefits .section-title-left {
    background: linear-gradient(90deg, #8E2DE2, #4A00E0);
}

/* 5. Support Title */
.section-support .section-title-left {
    background: linear-gradient(90deg, #ff9a9e, #fecfef);
}

/* 6. Review Title */
.section-review { background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.03) 0%, transparent 70%); }
.section-review .section-title-left {
    background: linear-gradient(90deg, #667eea, #764ba2);
}


.sub-model-section h3 {
    color: rgb(3, 0, 40);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Justify Text for Article Feel */
.sub-model-inner-container p {
    text-align: justify;
    width: 100%;
    color: #444;
    line-height: 1.8;
}

.sub-model-actions {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
}

/* --- 1. Specification Table (The Data Hub) --- */
.spec-table-wrapper {
    overflow-x: auto;
    margin: 0 auto 1.5rem auto;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.15); /* Soft Glowing Effect */
    border: 1px solid rgba(0, 247, 255, 0.1);
    background: #ffffff;
    width: 95%;
    height: auto;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Prevent horizontal overflow */
}

.spec-table th, .spec-table td {
    padding: 18px 25px;
    text-align: right;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    word-wrap: break-word; /* Ensure text wraps */
    white-space: normal;
    vertical-align: middle;
}

.spec-table th {
    background: rgba(0, 247, 255, 0.05);
    color: rgb(3, 0, 40);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.spec-table td {
    color: #333;
    font-size: 0.95rem;
}

.spec-table tr:last-child td {
    border-bottom: none;
}

/* Table Name & Logo Integration */
.table-name-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

.table-model-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 242, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.9rem;
}

/* Action Buttons */
.action-cell {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    flex: 1;
    min-width: 100px;
    white-space: nowrap;
}

.action-btn.visit {
    background: rgba(0, 247, 255, 0.1);
    color: #008891;
    border: 1px solid rgba(0, 247, 255, 0.3);
}

.action-btn.download {
    background: rgba(255, 0, 144, 0.1);
    color: #b30066;
    border: 1px solid rgba(255, 0, 144, 0.3);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


.article-section h3 {
    color: rgb(3, 0, 40);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.article-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.custom-list {
    list-style: none;
    margin-bottom: 3rem;
}

.custom-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: #444;
    line-height: 1.6;
}

.custom-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary); /* Brand Cyan */
    font-size: 2rem;
    line-height: 1.2rem;
    top: 0;
}

.video-placeholder-iframe {
    width: 90%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 2rem auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.triple-action-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 3rem;

    flex-wrap: wrap;
}

.triple-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    transition: transform 0.3s;
}

.triple-btn:hover {
    transform: translateY(-5px);
}

.t-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);

}

.t-icon.youtube { background: #FF0000; }
.t-icon.whatsapp { background: #25D366; }
.t-icon.bot { background: linear-gradient(135deg, #00F2FF, #0068b7); }

.triple-btn span {
    color: rgb(3, 0, 40);
    font-weight: 600;
    font-size: 0.9rem;

}

/* --- 3. Engagement & Support --- */
.share-icons-centered-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 1rem;
}

.share-icon {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1.8rem;
    border: none;
    cursor: pointer;
    padding: 0 10px;
    box-shadow: none !important;
}

.share-icon:hover {
    transform: scale(1.1);
}

/* Brand Colors */
.share-icon.whatsapp { color: #25D366; }
.share-icon.facebook { color: #1877F2; }
.share-icon.instagram { color: #E1306C; } /* Instagram Brand Color */
.share-icon.telegram { color: #0088cc; }
.share-icon.twitter { color: #000000; }
.share-icon.native-share { color: #00F2FF; }

.share-icons-centered {
    flex: 1;
    display: flex;
    justify-content: center; /* Center icons in remaining space */
    gap: 20px;
}

.share-block .section-title-left {
    margin-bottom: 0;
    white-space: nowrap;
}

.sub-model-contact {
    background: linear-gradient(135deg, #f0faff, #eef2f6);

    padding: 3rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 25px rgba(0, 247, 255, 0.2), 0 0 10px rgba(255, 0, 144, 0.1);
    margin-top: 0;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.sub-model-contact .contact-form {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    margin-top: 0;
    width: 100%;
}

.sub-model-contact h3 {
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 400;
    background: linear-gradient(90deg, #00F2FF, #0068b7);
    display: inline-block;
    padding: 10px 40px;
    border-radius: 50px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.sub-model-contact .form-group input,
.sub-model-contact .form-group textarea {
    color: rgb(3, 0, 40);
    border-bottom-color: #cbd5e1;
}

.sub-model-contact .form-group input:focus,
.sub-model-contact .form-group textarea:focus {
    border-bottom-color: var(--primary);
}

.send-msg-btn {
    color: #ffffff !important;
}

/* --- Model Page Box Styling (White Theme & Unique Shadows) --- */
#models-view .model-card-analytics {
    background-color: rgb(3, 0, 40);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#models-view .model-card-title {
    color: #ffffff;
}

#models-view .footer-stat.left,
#models-view .footer-stat.right {
    color: #f8fafc;
}

#models-view .model-card-divider {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Unique Whitish Gradient Shadows */
#models-view .model-card-analytics:nth-child(4n+1) {
    /* Cyan-White Glow */
    box-shadow: 0 15px 40px -5px rgba(0, 247, 255, 0.15);
}

#models-view .model-card-analytics:nth-child(4n+2) {
    /* Pink-White Glow */
    box-shadow: 0 15px 40px -5px rgba(255, 0, 144, 0.15);
}

#models-view .model-card-analytics:nth-child(4n+3) {
    /* Purple-White Glow */
    box-shadow: 0 15px 40px -5px rgba(150, 0, 255, 0.15);
}

#models-view .model-card-analytics:nth-child(4n+4) {
    /* Blue-White Glow */
    box-shadow: 0 15px 40px -5px rgba(0, 100, 255, 0.15);
}


.team-slider-container {
    position: relative;
    width: 100%; /* Full Width */
    max-width: 100%; /* Edge to Edge */
    height: 450px; /* Card height */
    margin: 0 auto;
    perspective: 1000px;
    padding: 2rem 0;
}

.team-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0; /* Reset default */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.9);
    transition: transform 0.5s ease, opacity 0.5s ease;
    background-color: #1e293b;
}

.team-card.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    z-index: 2;
    animation: enterUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Animation Classes controlled by JS */
.team-card.exit-left {
    animation: exitLeftRotate 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.team-card.exit-right {
    animation: exitRightRotate 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes enterUp {
    from { opacity: 0; transform: translateY(50px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes exitLeftRotate {
    to { 
        opacity: 0; 
        transform: translateX(-120%) rotate(-25deg); 
    }
}

@keyframes exitRightRotate {
    to { 
        opacity: 0; 
        transform: translateX(120%) rotate(25deg); 
    }
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.team-card:hover .card-img {
    transform: scale(1.05);
}

.founder-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: var(--bg-dark); /* Use main dark background as requested */
}

/* --- Success Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--primary);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
    transform: scale(0.9);
    animation: scaleUp 0.3s ease forwards;
}

@keyframes scaleUp {
    to { transform: scale(1); }
}

.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 255, 153, 0.1);
    color: #00ff99;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
    border: 2px solid #00ff99;
}

.modal-content h3 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.modal-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.modal-close-btn {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-close-btn:hover {
    transform: scale(1.05);
}
.founder-logo-placeholder .logo-svg {
    width: 80%;
    height: auto;
}

/* Glassmorphism Panel */
.glass-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center; /* Center text */
}

.card-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.card-role {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px; /* Reduced margin */
}

/* --- Team Dots --- */
.team-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.team-dot {
    width: 10px;
    height: 10px;
    background-color: var(--text-gray);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.5;
}

.team-dot.active {
    background-color: var(--primary);
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 8px var(--primary);
}

/* --- Contact Us Section --- */
.contact-section {
    padding-bottom: 2rem;
    max-width: 600px;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 0px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 95%;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.3);
}

.contact-form:hover {
    transform: none;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px; /* Proper left padding */
    background: transparent;
    border: none;
    border-bottom: 0.5px solid rgb(255, 0, 140);
    border-radius: 0;
    color: var(--text-light);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 10px -5px rgba(0, 242, 255, 0.1); /* Permanent Soft Glow */
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group label {
    position: absolute;
    left: 20px; /* Align with padding */
    top: 10px;
    color: var(--text-gray);
    pointer-events: none;
    transition: 0.3s ease all;
}

.form-group input:focus,
.form-group textarea:focus {
    border: 1px solid var(--primary); /* Full Border on Focus */
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -25px;
    left: 0;
    font-size: 0.8rem;
    color: var(--primary);
}

.c-icon i {
    color: rgb(3, 0, 40);
    font-size: 1.5rem;
    transition: transform 0.3s;
}

/* --- FAQ Section --- */
.faq-section {
    padding-bottom: 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0faff, #e6fffa);
    transition: all 0.3s;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: rgb(3, 0, 40);
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: transparent;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: rgb(3, 0, 40);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Dynamic Page View --- */
.page-view-container {
    padding: 2rem; /* Increased top padding for better spacing when notice bar is hidden */
    background: transparent; /* Remove card bg to match models view style */
    border-radius: 0;
    border: none;
    color: var(--text-light);
    animation: fadeIn 0.5s ease;
    margin: 0 auto;
    max-width: 1200px; /* Wider for better reading */
}

.page-view-container .page-content h1,
.page-view-container .page-content h2,
.page-view-container .page-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.page-view-container .page-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-gray);
}

.page-view-container .page-content a {
    color: var(--primary);
    text-decoration: none;
}

.page-view-container .page-content a:hover {
    text-decoration: underline;
}

/* --- Footer Section --- */
.footer {
    padding-top: 0;
    background-color: transparent;
    text-align: center;
    position: relative;
}

.footer-logo-centered {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

.footer-logo-centered .logo-svg {
    width: 180px;
    height: 45px;
}

.footer-logo-text {
    fill: rgb(3, 0, 40) !important;
    stroke: none !important;
    font-weight: 700;
}

.footer-links-container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
    gap: 5rem;
}

.footer-column {
    width: auto;
    flex: 0 1 250px;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    text-align: left;
}

/* Explore (Left) */
.footer-column:first-child {
    padding-left: 0;
    align-items: flex-start;
}

/* Connect (Right) */
.footer-column:last-child {
    padding-right: 0;
    text-align: left;
    align-items: flex-start;
}

.footer-column h4 {
    color: rgb(3, 0, 40);
    font-weight: 300; /* Thin */
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    border-radius: 50px;
}

.footer-column:first-child h4 {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

.footer-column:last-child h4 {
    background: linear-gradient(135deg, #fff0f5, #ffe4e6);
}

.footer-column a {
    display: block;
    color: rgb(3, 0, 40);
    text-decoration: none;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    font-weight: 300; /* Thin */
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--primary);
    font-weight: 400;
}

.footer-right-col {
    margin-top: 3rem;
    position: relative;
    z-index: 5;
    width: 100%;
}

#footerExploreLinks,
#footerConnectLinks {
    padding-left: 25px;
}

.social-media-container {
    display: flex;
    justify-content: center;
    gap: 1.2rem; /* Adjusted for mobile fit */
    margin-bottom: 2rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.social-icon {
    font-size: 1.4rem; /* Small size */
    text-decoration: none;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon i {
    background: none;
    -webkit-text-fill-color: initial;
    filter: none;
    color: rgb(3, 0, 40); /* Default fallback */
}

/* Brand Colors */
.social-icon .fa-whatsapp { color: #25D366; }
.social-icon .fa-facebook-f { color: #1877F2; }
.social-icon .fa-youtube { color: #FF0000; }
.social-icon .fa-twitter { color: #1DA1F2; }
.social-icon .fa-telegram { color: #0088cc; }
.social-icon .fa-instagram { color: #E1306C; }

.social-icon:hover {
    transform: scale(1.2);
}

.footer-address {
    color: rgb(3, 0, 40);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f9ff, #ffe4f5); /* Unique Gradient */
    border-radius: 8px;
    display: inline-block;
}

.copyright-box {
    position: relative;
    padding: 1.5rem 1rem;
    background: transparent;
    overflow: hidden;
}

.copyright-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #00F2FF, #FF0090);
}

.copyright-box p {
    white-space: nowrap;
    color: rgb(3, 0, 40);
    font-size: 0.9rem;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Official Website Section (Footer) --- */
.official-website-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    width: 100%;
}

.official-web-header {
    background: linear-gradient(to right, #6db6ff, #35f8ff);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgb(3, 0, 40);
    margin-bottom: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    width: fit-content;
}

.official-links-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.official-link-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.serial-no {
    font-size: 0.9rem;
    color: rgb(3, 0, 40);
    font-weight: 600;
    min-width: 20px;
}

.official-link-pill {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(3, 0, 40, 0.1);
    padding: 6px 15px;
    border-radius: 20px;
    color: rgb(3, 0, 40);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.official-link-pill:hover {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

/* --- Dynamic Model Sections --- */
.category-section {
    margin-bottom: 0; /* Seamless transition */
    padding: 3rem 0; /* Symmetrical padding for gradient fade */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-right: 2rem; /* Right padding for 'More' link */
    position: relative;
    z-index: 2;
}

.cat-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff; /* High Contrast */
    font-weight: 700;
    font-size: 1.2rem;
    padding: 12px 30px 12px 1%; /* 1% padding inside left */
    border-radius: 0 50px 50px 0; /* Rounded right edge */
    width: fit-content; /* Fixed width adjustment (fit content perfectly) */
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
}

.cat-header-left .material-symbols-outlined {
    font-variation-settings: 'wght' 108;
    font-size: 1.8rem;
    color: #ffffff;
}

.cat-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #ffffff;
}

.cat-header-right a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgb(3, 0, 40);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.cat-header-right a:hover {
    color: var(--primary-dark);
}

/* Unique Gradients */
.cat-gradient-recent { background: linear-gradient(90deg, #00c6ff, #0072ff); }
.cat-gradient-app { background: linear-gradient(90deg, #11998e, #38ef7d); }
.cat-gradient-web_app { background: linear-gradient(90deg, #8E2DE2, #4A00E0); }
.cat-gradient-website { background: linear-gradient(90deg, #FFD200, #F7971E); }
.cat-gradient-trending { background: linear-gradient(90deg, #f093fb, #f5576c); }
.cat-gradient-upcoming { background: linear-gradient(90deg, #fc4a1a, #f7b733); }

/* Soft 'Torch-Glow' Backgrounds for Sections */
.cat-bg-recent { background: radial-gradient(ellipse at center, rgba(0, 198, 255, 0.15) 0%, transparent 70%); }
.cat-bg-app { background: radial-gradient(ellipse at center, rgba(56, 239, 125, 0.15) 0%, transparent 70%); }
.cat-bg-web_app { background: radial-gradient(ellipse at center, rgba(142, 45, 226, 0.15) 0%, transparent 70%); }
.cat-bg-website { background: radial-gradient(ellipse at center, rgba(255, 210, 0, 0.15) 0%, transparent 70%); }
.cat-bg-trending { background: radial-gradient(ellipse at center, rgba(245, 87, 108, 0.15) 0%, transparent 70%); }
.cat-bg-upcoming { background: radial-gradient(ellipse at center, rgba(252, 74, 26, 0.15) 0%, transparent 70%); }

.category-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
}

.model-grid-unified {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 800px; /* Centered max width */
}

.empty-category-msg {
    text-align: center;
    color: rgba(3, 0, 40, 0.7);
    font-size: 1rem;
    padding: 2rem 1rem;
    font-weight: 500;
}

/* --- Advanced Analytics Model Card --- */
.model-card-analytics {
    background-color: rgb(3, 0, 40);
    border-radius: 0;
    padding: 20px 10px; /* Reduced side padding to maximize width */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    min-height: 180px;
}

.model-serial-badge {
    position: absolute;
    top: 12px;
    left: 15px;
    font-size: 1rem;
    font-weight: 700;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: var(--model-color);
}

.model-card-analytics:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px var(--model-color);
    border-color: var(--model-color);
}

.model-card-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
    flex-grow: 1;
    justify-content: center;
}

.model-card-logo {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.model-card-title {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    line-height: 1.3;
}

.model-card-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin-bottom: 10px;
    margin-top: 10px;
}

.model-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 0.85rem;
    color: var(--text-light);
    padding-top: 5px;
}

.model-category-row {
    width: 100%;
    text-align: center;
    color: var(--model-color);
    font-size: 0.9rem;
    text-transform: capitalize;
    white-space: normal; /* Allow wrapping */
    overflow: visible;
    text-overflow: clip;
    padding: 0 5px;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Mobile Font Adjustment for Long Categories */
@media screen and (max-width: 480px) {
    .model-category-row {
        font-size: 0.85rem;
    }
}

/* --- Desktop View Specifics (Min Width 1025px) --- */
@media screen and (min-width: 1025px) {
    
    /* 1. Header Layout */
    .nav-icons { 
        display: flex; /* Keep original icons */
    }

    /* 2. Hero Section */
    .hero-wrapper {
        margin: 0 15%; /* Proper gap left/right */
        justify-content: center;
    }

    /* 3. Models Grid (6 Boxes in one row) */
    .models-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1.5rem;
    }

    .gradient-box {
        height: 140px; /* Reduced height */
    }

    .view-btn, .share-btn {
        box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
        transition: box-shadow 0.3s;
    }
    .view-btn:hover, .share-btn:hover {
        box-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
    }
    

    /* 6. Model Wise Services */
    .model-services-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
    }
    .model-services-section .section-title {
        margin-bottom: 0;
        text-align: left;
    }
    .service-filter-row {
        margin-bottom: 0;
    }
    .service-card {
        width: 30%; /* Required 30% width */
        margin: 0 auto;
    }

    /* 7. Contact & FAQ Split */
    .content-split-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding-bottom: 4rem;
    }
    .contact-section {
        width: 35%;
        padding-bottom: 0;
    }
    .faq-section {
        width: 60%;
        padding-bottom: 0;
        margin: 0;
    }

    /* 8. Footer Layout */
    .footer {
        display: grid;
        grid-template-columns: 1fr; /* Stacked for logo, then grid for links */
        text-align: left;
        padding: 3rem 5rem 0 5rem; /* Remove bottom padding */
        gap: 4rem; /* Reduced gap between columns */
    }
    
    .footer-logo-centered { grid-column: 1 / -1; }
    
    .footer-links-container { 
        display: grid; 
        grid-template-columns: 1fr 1fr; 
        gap: 2rem;
        justify-content: center;
        margin: 0 auto;
    }
    
    .footer-right-col { 
        text-align: center; 
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .copyright-box {
        grid-column: 1 / -1;
        width: calc(100% + 10rem); /* Full width including parent padding */
        margin: 2rem -5rem 0 -5rem; /* Negative margin to touch edges */
        border-radius: 0;
        text-align: center;
        background: transparent;
    }
}

/* --- Google Material Symbols Base Style --- */
.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 108,
  'GRAD' 0,
  'opsz' 24;
}

/* --- Gradient Divider (Post-Upcoming) --- */
.separator-line {
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00F2FF, #FF0090, transparent);
    margin: 40px auto;
    border: none;
    opacity: 0.8;
}

/* --- Med-Social Section (Pinned Carousel) --- */
.med-social-section {
    padding: 0;
    margin-bottom: 40px; /* Standard spacing */
    overflow: hidden;
    perspective: 1000px;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: rgb(3, 0, 40); /* Typography Update */
    margin-bottom: 5px; /* Significantly reduced gap */
    font-weight: 700;
}

.med-social-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    height: auto; /* Remove fixed height to fix gap */
}

.med-social-card {
    position: relative;
    width: 320px;
    min-height: 380px;
    background: rgba(255, 255, 255, 0.7); /* Light Glass */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.1s ease-out; /* Fast response for tilt */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    z-index: 1;
}

/* Floating Glow */
.med-social-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(-50px);
    width: 180px;
    height: 180px;
    background: var(--card-accent);
    filter: blur(70px);
    opacity: 0.4;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.med-social-icon {
    font-size: 3.5rem;
    color: var(--card-accent);
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.15));
    transform: translateZ(30px); /* 3D Depth */
}

.med-social-header-text {
    font-size: 1rem;
    font-weight: 300; /* Thin font */
    color: #333;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateZ(20px);
}

.med-social-sub-header {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
    transform: translateZ(20px);
}

.med-social-desc {
    font-size: 0.95rem;
    color: rgb(3, 0, 40); /* Requested Color */
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
    transform: translateZ(10px);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.med-social-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(90deg, var(--card-accent), #ff5e62); /* Gradient fallback */
    background-image: linear-gradient(90deg, var(--card-accent), color-mix(in srgb, var(--card-accent), white 30%));
    color: white;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateZ(40px); /* Button pops out */
    animation: pulse-btn 2s infinite;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.med-social-btn:hover {
    transform: translateZ(40px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

@keyframes pulse-btn {
    0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2); }
    70% { box-shadow: 0 0 0 10px rgba(0, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

@media screen and (max-width: 768px) {
}

/* --- Light Theme Body Base --- */
body.light-theme {
    background-color: #ffffff;
}

/* --- Light Theme Premium Header --- */
body.light-theme .header {
    background: #ffffff;
    border: none;
    box-shadow: 0 0 8px rgb(3, 0, 40), inset 1px rgba(0, 247, 255, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

body.light-theme .scroll-top-btn::after {
    background: #ffffff;
}

body.light-theme .logo-text-svg {
    stroke: rgb(3, 0, 40);
    font-weight: 700;
}

/* Override animations for dark text in light theme */
body.light-theme .logo-text-svg:nth-of-type(1) {
    animation-name: writeText108Light;
}

body.light-theme .logo-text-svg:nth-of-type(2) {
    animation-name: writeTextSoftcareLight;
}

@keyframes writeText108Light {
    0% { stroke-dashoffset: 150; fill: rgba(3, 0, 40, 0); }
    30% { stroke-dashoffset: 0; fill: rgba(3, 0, 40, 0); }
    40% { fill: rgb(3, 0, 40); }
    90% { fill: rgb(3, 0, 40); opacity: 1; }
    100% { fill: rgba(3, 0, 40, 0); opacity: 0; }
}

@keyframes writeTextSoftcareLight {
    0% { stroke-dashoffset: 300; fill: rgba(3, 0, 40, 0); }
    80% { stroke-dashoffset: 0; fill: rgba(3, 0, 40, 0); }
    90% { fill: rgb(3, 0, 40); }
    95% { fill: rgb(3, 0, 40); opacity: 1; }
    100% { fill: rgba(3, 0, 40, 0); opacity: 0; }
}

body.light-theme .icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    overflow: visible;
}

body.light-theme .icon-box .material-symbols-outlined {
    color: rgb(3, 0, 40);
    transition: color 0.2s ease;
    font-size: 1.8rem;
    /* Boldness increased for solid look */
    font-variation-settings:
      'FILL' 0,
      'wght' 400,
      'GRAD' 0,
      'opsz' 24;
}

/* Size balancing for icons */
body.light-theme #menuIcon {
    font-size: 1.9rem;
}

/* Hover effect - change color only */
body.light-theme .icon-box:hover .material-symbols-outlined {
    color: #00b4bd; /* Deep cyan */
}

body.light-theme .nav-icons {
    gap: 15px; /* Professional Spacing */
}

body.light-theme .search-container {
    background-color: transparent;
}

body.light-theme .search-container input {
    color: rgb(3, 0, 40);
    border-bottom-color: rgba(3, 0, 40, 0.3);
}

/* --- Light Theme Side Menu --- */
body.light-theme .side-menu {
    background-color: #ffffff;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .side-menu a {
    color: rgb(3, 0, 40);
}

body.light-theme .side-menu li::after {
    background: #ffffff;
}

/* --- Light Theme Notice Section --- */
body.light-theme .announcement-bar {
    color: rgb(3, 0, 40);
}

body.light-theme .announcement-text {
    color: rgb(3, 0, 40);
}

body.light-theme .announcement-icon {
    color: rgb(3, 0, 40);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.light-theme .announcement-icon .material-symbols-outlined {
    font-variation-settings: 'wght' 700;
}

/* --- Light Theme Typography Updates --- */
body.light-theme .box-content h3 {
    color: rgb(3, 0, 40);
}

body.light-theme .section-title {
    color: rgb(3, 0, 40);
}


/* --- New Founder Cards Structure (Overlapping) --- */
.team-slider-container {
    /* Zigzag Layout Container */
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    perspective: none;
    max-width: 1000px;
    margin: 0 auto; /* Centered container */
    padding: 20px 0;
}

.team-card {
    position: relative;
    width: 70%; /* Exactly 70% width */
    min-height: 150px;
    display: flex;
    justify-content: space-between; /* Info left, DP right */
    align-items: center;
    transition: transform 0.3s ease;
    border-radius: 20px;
    padding: 25px 35px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    border: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.team-card:hover {
    transform: scale(1.02);
    z-index: 10;
}

/* Alternating Grid (Zigzag) */
/* 1st, 3rd... (Odd): Left Attached */
.team-card:nth-child(odd) {
    align-self: flex-start;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: 0;
}

/* 2nd, 4th... (Even): Right Attached */
.team-card:nth-child(even) {
    align-self: flex-end;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-right: 0;
}

/* Unique Dark Gradients */
.team-card:nth-child(4n+1) {
    background: linear-gradient(135deg, #ff00aa, #e90061); /* Deep Royal Blue to Midnight Black */
    --card-glow: #002366;
}
.team-card:nth-child(4n+2) {
    background: linear-gradient(135deg, #004e92, #000428); /* Dark Blue */
    --card-glow: #004e92;
}
.team-card:nth-child(4n+3) {
    background: linear-gradient(135deg, #007e3d, #00ed72); /* Dark Emerald Green to Charcoal */
    --card-glow: #00be5c;
}
.team-card:nth-child(4n+4) {
    background: linear-gradient(135deg, #870000, #d93600); /* Dark Red */
    --card-glow: #870000;
}

/* DP Circle (Inside Card) */
.team-card-dp {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #ffffff; /* Thin white border */
    background: #000; /* Fallback */
    box-shadow: 0 0 25px var(--card-glow); /* Subtle glow */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevent shrinking */
    font-size: 2rem; /* For icon */
    color: #fff; /* For icon */
}

.team-card-dp img, .team-card-dp svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Box Layout */
.team-card-info {
    display: flex;
    flex-direction: column; /* Stack Name/Role vertically */
    align-items: center; /* Center-align text */
    gap: 12px;
    text-align: center;
}

/* Text Styling */
.team-card .card-name {
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.team-card .card-role {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300; /* Thin */
    font-family: 'Inter', sans-serif;
    margin: 0;
    white-space: nowrap;
}

/* Hide old elements */
.team-dots, .team-card .card-img, .team-card .glass-panel { display: none !important; }

/* Mobile Adjustments */
@media screen and (max-width: 480px) {
    .team-card {
        width: 90%; /* Responsive Width */
        padding: 20px;
        min-height: auto;
    }
    
    .team-card-dp {
        width: 85px;
        height: 85px;
    }
    
    .team-card .card-name {
        font-size: 1.2rem;
    }
    
    .team-card .card-role {
        font-size: 0.85rem;
    }
}

/* --- Model Page Specifics --- */
.model-page-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.model-page-header.shifted-header {
    justify-content: space-between;
    padding-left: 0;
    padding-right: 1rem;
}

.back-btn-circle {
    /* position: absolute; */ /* Let it be part of the flex flow */
    /* left: 1rem; */
    width: auto;
    height: auto;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: rgb(3, 0, 40);
    background: transparent;
    z-index: 10;
    box-shadow: none; /* Remove any existing box-shadow */
    font-weight: 700;
    border: none;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2)); /* Shadow-only effect */
    transition: transform 0.2s;
}

.back-btn-circle:hover {
    transform: scale(1.1);
}

.shifted-header .back-btn-circle {
    position: relative;
    left: auto;
    margin-right: 0;
}

.back-btn-circle.bold-icon .material-symbols-outlined {
    font-variation-settings: 'wght' 700;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.back-btn-circle::before {
    display: none; /* Remove Animation */
}

.back-btn-circle::after {
    display: none; /* Remove Mask */
}

.page-title-center {
    font-size: 1.2rem;
    color: rgb(3, 0, 40);
    font-weight: 600;
    text-align: right;
    flex-grow: 1;
}

.filter-bar-3-tier {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px 12px 0 0; /* Rounded top only for sticky feel */
    margin-bottom: 2rem;
    position: sticky; /* Sticky Positioning */
    top: calc(var(--header-height) + 20px); /* Offset from fixed header */
    z-index: 90;
    padding: 0;
    height: 60px; /* Fixed height for uniformity */
    width: 100%;
    max-width: 1000px;
    backdrop-filter: blur(15px); /* Glass effect */
    -webkit-backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.8); /* Light glass background */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.filter-bar-3-tier::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, #00F2FF, #FF0090);
    opacity: 0.8;
}

.filter-box {
    flex: 1;
    position: static; /* Allows dropdown to position relative to bar */
    padding: 5px 15px; /* Add top/bottom padding */
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to top */
    transition: background-color 0.3s ease;
}

.filter-box.glow {
    background-color: rgba(0, 247, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.4);
}

.filter-divider {
    width: 1px;
    /* height: 100%; */ /* Let flexbox handle height */
    align-self: stretch; /* Ensure it stretches */
    background-color: rgb(3, 0, 40);
    opacity: 0.5;
    margin: 8px 0; /* Align with padding of filter-box */
}

.filter-tiny-label {
    display: block;
    font-size: 0.7rem;
    color: #64748b; /* Darker gray for light background */
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.filter-box .dropdown-trigger {
    background: transparent;
    border: none;
    padding: 2px 0 0 0; /* Adjust padding */
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer; /* Inherited but good to keep */
    color: rgb(3, 0, 40); /* Dark text for light background */
    font-weight: 600;
    box-shadow: none;
    height: auto;
    pointer-events: none; /* Let clicks pass to filter-box */
}

.filter-box .dropdown-trigger::before,
.filter-box .dropdown-trigger::after {
    display: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff; /* White background for dropdowns */
    border-radius: 0 0 12px 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    z-index: 100;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-top: none;
    margin-top: 2px; /* Gap for gradient line */
    max-height: 350px; /* Prevent page scroll */
    overflow-y: auto; /* Internal scrollbar */
}

.paginated-dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.dropdown-option {
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    color: rgb(3, 0, 40); /* Dark text */
    background: #f8fafc;
    transition: all 0.3s;
    text-align: center;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.dropdown-option:hover, .dropdown-option.selected {
    background: linear-gradient(90deg, rgba(0, 242, 255, 0.1), rgba(255, 0, 144, 0.1));
    color: rgb(3, 0, 40);
    border-color: rgba(0, 242, 255, 0.3);
    font-weight: 700;
}

.dropdown-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 10px;
    display: flex;
    justify-content: center;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgb(3, 0, 40);
    font-weight: 600;
    font-size: 0.9rem;
}

.page-arrow {
    cursor: pointer;
    user-select: none;
    transition: color 0.3s;
}

.page-arrow:hover {
    color: #00f7ff;
}
