/* FASTCOM Management System - Public Company Profile Theme (Responsive / Zero Overflow) */
:root {
    --primary: #0066FF;
    --primary-dark: #004ecc;
    --primary-light: #3385ff;
    --navy-900: #0B192C;
    --navy-800: #1E3E62;
    --accent: #00D2FF;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --bg-light: #F8FAFC;
    --card-shadow: 0 10px 30px rgba(0, 102, 255, 0.08);
    --transition: all 0.3s ease;
}

/* Global Reset & Layout Constraints */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: auto;
}

body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background-color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
}

/* Sticky Header Unified Container */
.header-main-sticky {
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    background: var(--navy-900);
}
.header-top-bar {
    background: #07101C;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Navbar */
.navbar-fastcom {
    background: rgba(11, 25, 44, 0.98);
    backdrop-filter: blur(12px);
    transition: var(--transition);
    padding: 12px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 0 !important;
}
.navbar-brand img {
    height: 44px;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition);
}
.navbar-brand img:hover {
    transform: scale(1.02);
}
.nav-link {
    color: #E2E8F0 !important;
    font-weight: 500;
    margin: 0 10px;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent) !important;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Main & Tab Structure - Seamless zero gap after header */
main {
    margin: 0 !important;
    padding: 0 !important;
}
.tab-content,
.tab-pane {
    margin: 0 !important;
    padding: 0 !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 60%, #0044aa 100%);
    color: #FFFFFF;
    padding: 32px 0 55px;
    margin: 0 !important;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    max-width: 100%;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.badge-tech {
    background: rgba(0, 210, 255, 0.15);
    color: var(--accent);
    border: 1px solid rgba(0, 210, 255, 0.3);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    letter-spacing: 0.5px;
    max-width: 100%;
    word-break: break-word;
}
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 15px;
    word-break: break-word;
}
.hero-title span {
    background: linear-gradient(90deg, #FFFFFF, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: #CBD5E1;
    margin-top: 20px;
    line-height: 1.6;
}
.btn-cta-primary {
    background: var(--primary);
    color: #FFFFFF;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    max-width: 100%;
    white-space: nowrap;
}
.btn-cta-primary:hover {
    background: var(--primary-light);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 102, 255, 0.5);
}
.btn-cta-outline {
    background: transparent;
    color: #FFFFFF;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    max-width: 100%;
    white-space: nowrap;
}
.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

/* Feature & Service Cards */
.section-title {
    font-weight: 800;
    color: var(--navy-900);
    font-size: 2.2rem;
    margin-bottom: 15px;
    word-break: break-word;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
}
.card-service {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 32px 24px;
    transition: var(--transition);
    height: 100%;
    position: relative;
    box-shadow: var(--card-shadow);
    width: 100%;
    box-sizing: border-box;
}
.card-service:hover {
    transform: translateY(-6px);
    border-color: var(--primary-light);
    box-shadow: 0 15px 35px rgba(0, 102, 255, 0.15);
}
.service-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(0, 102, 255, 0.08);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    transition: var(--transition);
}
.card-service:hover .service-icon-box {
    background: var(--primary);
    color: #FFFFFF;
}

/* Why Choose Us Cards */
.card-why {
    background: var(--navy-900);
    color: #FFFFFF;
    border-radius: 14px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}
.card-why:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}
.why-icon {
    font-size: 30px;
    color: var(--accent);
    margin-bottom: 16px;
}

/* Product Cards */
.card-product {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 16px;
    transition: var(--transition);
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.card-product:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.12);
    transform: translateY(-4px);
}
.card-product-img-wrap {
    width: 100%;
    height: 175px;
    background: #F8FAFC;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #EEF2F6;
}
.card-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.card-product:hover .card-product-img {
    transform: scale(1.05);
}
.card-product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F1F5F9;
}
.badge-cat {
    background: #EFF6FF;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    white-space: nowrap;
}

.card-product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6rem;
    font-size: 0.95rem;
    line-height: 1.35;
}

.card-product-desc-wrap {
    min-height: 4rem;
}

.card-product-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8rem;
    line-height: 1.4;
    max-height: 3.4rem;
    margin-bottom: 2px;
    color: #64748B;
}

.btn-copy-prod-link {
    transition: var(--transition);
}
.btn-copy-prod-link:hover {
    background-color: #EFF6FF !important;
    color: var(--primary) !important;
    border-color: var(--primary-light) !important;
}

@keyframes productPulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.7);
        transform: translateY(-4px) scale(1.02);
        border-color: var(--primary);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(0, 102, 255, 0.2);
        transform: translateY(-4px) scale(1.02);
        border-color: var(--primary);
    }
    100% {
        box-shadow: 0 10px 30px rgba(0, 102, 255, 0.12);
        transform: translateY(0) scale(1);
        border-color: #E2E8F0;
    }
}

.product-highlight-pulse {
    animation: productPulseGlow 3s ease-in-out;
    border-color: var(--primary) !important;
    scroll-margin-top: 140px;
}

/* ======================================================== */
/* FASTCOM PRODUCT CAROUSEL (PAGE-BASED NEXT/PREV)         */
/* ======================================================== */
.product-carousel {
    width: 100%;
    position: relative;
}

.product-carousel-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    width: 100%;
}

.product-carousel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 96px;
    min-height: 44px;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: var(--navy-900);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    text-transform: uppercase;
}

.product-carousel-btn:hover:not(:disabled) {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.35);
    transform: translateY(-2px);
}

.product-carousel-btn:active:not(:disabled) {
    transform: translateY(0);
}

.product-carousel-btn:disabled,
.product-carousel-btn.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    background: #F1F5F9;
    color: #94A3B8;
    border-color: #E2E8F0;
    box-shadow: none;
}

.product-carousel-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy-900);
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    min-width: 80px;
    letter-spacing: 1px;
}

.product-carousel-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 4px 2px 6px 2px;
    margin: 0;
}

.product-carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.35s ease;
    will-change: transform;
}

.product-carousel-page {
    min-width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    display: grid;
    gap: 1.5rem;
    box-sizing: border-box;
}

/* Breakpoints for Product Carousel */
/* DESKTOP: >= 1200px -> 4 cards */
@media (min-width: 1200px) {
    .product-carousel-page {
        grid-template-columns: repeat(4, 1fr);
    }
    .product-carousel-navigation {
        margin-top: 28px;
    }
}

/* TABLET: 768px – 1199.98px -> 3 cards */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .product-carousel-page {
        grid-template-columns: repeat(3, 1fr);
    }
    .product-carousel-navigation {
        margin-top: 24px;
    }
}

/* HP: < 768px -> 1 card */
@media (max-width: 767.98px) {
    .product-carousel-page {
        grid-template-columns: 1fr;
    }
    .product-carousel-navigation {
        margin-top: 20px;
        gap: 8px;
    }
    .product-carousel-btn {
        min-width: 84px;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .product-carousel-indicator {
        padding: 6px 12px;
        font-size: 0.85rem;
        min-width: 65px;
    }
}

/* Footer */
.footer-fastcom {
    background: var(--navy-900);
    color: #94A3B8;
    padding: 60px 0 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.footer-fastcom h5 {
    color: #FFFFFF;
    font-weight: 700;
    margin-bottom: 20px;
}
.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

/* Footer Sponsor / Partner Badges */
.sponsor-logo-badge {
    background: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 5px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    max-width: 85px;
    height: 38px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    text-decoration: none;
}
.sponsor-logo-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 210, 255, 0.35);
    border-color: var(--accent);
}
.sponsor-img {
    max-height: 26px;
    max-width: 100%;
    object-fit: contain;
}

/* Quick Tab Navigation Cards */
.quick-tab-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 24px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}
.quick-tab-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.12);
    transform: translateY(-4px);
}
.quick-tab-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #EFF6FF;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    transition: var(--transition);
}
.quick-tab-card:hover .quick-tab-icon {
    background: var(--primary);
    color: #FFFFFF;
}

#landingMainTabContent {
    min-height: 80vh;
    width: 100%;
}
.tab-content > .tab-pane {
    display: none;
    width: 100%;
    max-width: 100%;
}
.tab-content > .tab-pane.active {
    display: block !important;
}

/* Responsive Breakpoints & Mobile Optimization */
@media (max-width: 991.98px) {
    .navbar-fastcom {
        padding: 10px 0;
    }
    .nav-link {
        margin: 6px 0;
    }
    .hero-section {
        padding: 28px 0 35px;
        text-align: center;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.65rem;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero-buttons .btn,
    .hero-buttons .btn-cta-primary,
    .hero-buttons .btn-cta-outline {
        width: 100%;
        margin-bottom: 8px;
        text-align: center;
    }
    .card-service, .card-why, .card-product, .quick-tab-card {
        padding: 18px 16px;
    }
}
