/* ===================================
   Capabilities Page - Premium Styles
   =================================== */

/* Override body padding from main styles (no navbar on this page) */
body {
    padding-top: 0 !important;
}

/* ---- Scroll Down Arrow ---- */
.cap-hero-scroll {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.cap-hero-scroll a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    text-decoration: none;
    animation: capBounce 2s ease-in-out infinite;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.05);
}

.cap-hero-scroll a:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

@keyframes capBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* ---- Page Header (Back Button) ---- */
.cap-page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 0.875rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.cap-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cap-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cap-back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-3px);
}

.cap-back-btn i {
    font-size: 0.8125rem;
    transition: transform 0.3s ease;
}

.cap-back-btn:hover i {
    transform: translateX(-3px);
}

.cap-header-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.cap-header-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.cap-header-logo span {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* ---- Hero Section ---- */
.cap-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #1a56db 100%);
    padding: 6rem 0 5rem;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
}

.cap-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.cap-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    animation: capFloat 12s ease-in-out infinite;
}

.cap-particle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -80px;
    right: -60px;
    background: rgba(59, 130, 246, 0.1);
    animation-delay: 0s;
    animation-duration: 15s;
}

.cap-particle:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -40px;
    left: 10%;
    background: rgba(245, 158, 11, 0.08);
    animation-delay: 2s;
    animation-duration: 18s;
}

.cap-particle:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 20%;
    background: rgba(59, 130, 246, 0.08);
    animation-delay: 4s;
    animation-duration: 14s;
}

.cap-particle:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 60%;
    left: 5%;
    background: rgba(251, 191, 36, 0.06);
    animation-delay: 1s;
}

.cap-particle:nth-child(5) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 30%;
    background: rgba(59, 130, 246, 0.06);
    animation-delay: 3s;
    animation-duration: 16s;
}

.cap-particle:nth-child(6) {
    width: 120px;
    height: 120px;
    bottom: 10%;
    right: 15%;
    background: rgba(245, 158, 11, 0.05);
    animation-delay: 5s;
    animation-duration: 20s;
}

@keyframes capFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -20px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 30px) scale(0.95);
    }

    75% {
        transform: translate(20px, 15px) scale(1.02);
    }
}

.cap-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.cap-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: #fbbf24;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.cap-hero-tag i {
    font-size: 0.875rem;
}

.cap-hero h1 {
    color: #ffffff;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.gradient-text-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cap-hero p {
    text-align: left;
    color: rgba(255, 255, 255, 0.8);
    word-spacing: -0.5px;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 600px;
}

.cap-hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.cap-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cap-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #fbbf24;
    font-family: var(--font-heading);
    line-height: 1;
}

.cap-stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    margin-top: 0.25rem;
}


/* ---- Tabs Section ---- */
.cap-tabs-section {
    position: sticky;
    top: 54px;
    z-index: 500;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    padding: 0;
}

.cap-tabs-outer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cap-tabs-arrow {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.cap-tabs-arrow:hover {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.3);
    transform: scale(1.05);
}

.cap-tabs-wrapper {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.75rem 0;
    flex: 1;
    min-width: 0;
    scroll-behavior: smooth;
}

.cap-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.cap-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: 50px;
    color: var(--gray-500);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    font-family: var(--font-primary);
    flex-shrink: 0;
}

.cap-tab i {
    font-size: 0.75rem;
    transition: color 0.3s ease;
}

.cap-tab:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
    border-color: var(--primary-blue-light);
}

.cap-tab.active {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(26, 86, 219, 0.3);
    font-weight: 600;
}

.cap-tab.active i {
    color: #ffffff;
}

/* ---- Content Section ---- */
.cap-content-section {
    padding: 3rem 0 4rem;
    background: var(--gray-50);
    min-height: 500px;
}

/* ---- Category Groups ---- */
.cap-category {
    display: none;
    animation: capFadeIn 0.5s ease-out;
}

.cap-category.active {
    display: block;
}

@keyframes capFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cap-category-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.cap-category-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.cap-category-banner-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.cap-category-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(26, 86, 219, 0.25);
}

.cap-category-icon i {
    font-size: 1.5rem;
    color: #ffffff;
}

.cap-category-banner-content h2 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
    font-weight: 700;
}

.cap-category-banner-content p {
    text-align: left;
    font-size: 1rem;
    word-spacing: -0.5px;
    color: var(--gray-500);
    margin-bottom: 0;
}

.cap-category-banner-image {
    flex: 0 0 320px;
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.cap-category-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cap-category-banner:hover .cap-category-banner-image img {
    transform: scale(1.05);
}

/* ---- Capability Cards ---- */
.cap-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.cap-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    position: relative;
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.cap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cap-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(26, 86, 219, 0.08);
    border-color: rgba(26, 86, 219, 0.2);
}

.cap-card:hover::before {
    opacity: 1;
}

.cap-card-number {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-100);
    font-family: var(--font-heading);
    line-height: 1;
    transition: color 0.3s ease;
    user-select: none;
}

.cap-card:hover .cap-card-number {
    color: rgba(26, 86, 219, 0.08);
}

.cap-card-header {
    margin-bottom: 0.875rem;
}

.cap-card-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    padding-right: 2.5rem;
    line-height: 1.3;
}

.cap-card-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--light-blue);
    color: var(--primary-blue);
    border-radius: 50px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cap-card p {
    text-align: left;
    font-size: 0.9375rem;
    word-spacing: -0.5px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ---- CTA Section ---- */
.cap-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1a56db 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cap-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cap-cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.cap-cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin: 0 auto;
}

.cap-cta-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(10px);
}

.cap-cta-icon i {
    font-size: 2rem;
    color: #fbbf24;
}

.cap-cta h2 {
    color: #ffffff;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: 1rem;
}

.cap-cta p {
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    word-spacing: -0.5px;
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.cap-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.0625rem;
}

.cap-cta .btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

.cap-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

/* ---- Active Nav Link ---- */
.nav-link.active {
    color: var(--primary-blue);
    font-weight: 600;
}

.nav-link.active::after {
    transform: scaleX(1);
}

/* ---- Scroll to Top (same as homepage) ---- */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(26, 86, 219, 0.35);
    z-index: 1000;
    font-size: 1.125rem;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26, 86, 219, 0.45);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .cap-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .cap-hero {
        padding: 4rem 0 3.5rem;
    }

    .cap-hero h1 {
        font-size: 2rem;
    }

    .cap-hero-stats {
        gap: 1.5rem;
    }

    .cap-stat-number {
        font-size: 1.5rem;
    }

    .cap-tabs-section {
        top: 54px;
    }

    .cap-tab {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }

    .cap-tab span {
        display: none;
    }

    .cap-tab i {
        font-size: 1rem;
    }

    .cap-tab.active span {
        display: inline;
    }

    .cap-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cap-card {
        padding: 1.25rem;
    }

    .cap-category-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .cap-category-banner-content {
        flex-direction: column;
        align-items: center;
    }

    .cap-category-banner-image {
        flex: auto;
        width: 100%;
        height: 200px;
    }

    .cap-category-icon {
        width: 48px;
        height: 48px;
    }

    .cap-category-icon i {
        font-size: 1.125rem;
    }

    .cap-category-banner-content h2 {
        font-size: 1.375rem;
    }

    .cap-cta {
        padding: 3.5rem 0;
    }

    .cap-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .cap-hero {
        padding: 3rem 0 2.5rem;
    }

    .cap-hero h1 {
        font-size: 1.75rem;
    }

    .cap-hero p {
        text-align: left;
        font-size: 1rem;
        word-spacing: -0.5px;
    }

    .cap-hero-stats {
        gap: 1.25rem;
    }

    .cap-card-number {
        font-size: 1.5rem;
    }

    .cap-card-header h3 {
        font-size: 1rem;
    }
}
