
/* Swiflare Custom Fixes */

/* ============================================
   Breadcrumb â€” white on dark page header
   ============================================ */
.thm-breadcrumb li a {
    color: var(--nexin-white) !important;
    text-decoration: underline;
}
.thm-breadcrumb li a:hover {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ============================================
   Services Cards — stretch-link technique.
   The title <a> gets an ::after that covers the
   entire card (making the whole card clickable).
   The Read More <a> sits above it via z-index
   so it is independently clickable.
   ============================================ */

/* Title link stretches to cover the whole card */
.services-three__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Read More <a> must sit above the stretch layer */
.services-three__read-more {
    position: relative;
    z-index: 2;
}

.services-three__read-more a {
    position: relative;
    z-index: 2;
}

/* ============================================
   Services Cards (services-page â€” light bg)
   Default: dark text (already set in services.css)
   Hover: white text because dark overlay slides in
   ============================================ */

/* Number counter â€” dark on default, white on hover */
.services-page .services-three__count::before {
    color: var(--nexin-gray) !important;
}
.services-page .services-three__single:hover .services-three__count::before {
    color: var(--nexin-white) !important;
}

/* Icon â€” dark on default (set in services.css), white on hover */
.services-page .services-three__single:hover .services-three__icon span {
    color: var(--nexin-white) !important;
}

/* Title â€” dark on default (set in services.css), white on hover */
.services-page .services-three__single:hover .services-three__title a {
    color: var(--nexin-white) !important;
}

/* Body text â€” dark on default, white on hover */
.services-page .services-three__text {
    color: var(--nexin-gray) !important;
}
.services-page .services-three__single:hover .services-three__text {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Read More link â€” dark on default (set in services.css), white on hover */
.services-page .services-three__single:hover .services-three__read-more a {
    color: var(--nexin-white) !important;
}

/* Card border: light on default, disappears on hover (already in services.css) */
.services-page .services-three__single {
    border-color: var(--nexin-bdr-color) !important;
    transition: border-color 0.5s ease, transform 0.3s ease !important;
}
.services-page .services-three__single:hover {
    border-color: transparent !important;
    transform: translateY(-4px);
}

/* Hover overlay â€” use brand dark navy instead of near-black */
.services-page .services-three__single-bg::before {
    background-color: rgba(2, 21, 90, 0.97) !important;
}

/* ============================================
   Global Buttons â€” brand navy, white text, zoom hover
   ============================================ */
.thm-btn {
    color: var(--nexin-white) !important;
    background-color: #02155A !important;
    transition: transform 0.3s ease-in-out !important;
}
.thm-btn:hover {
    color: var(--nexin-white) !important;
    transform: scale(1.05) !important;
}
.thm-btn::before {
    background-color: #0a2580 !important;
}
.thm-btn::after {
    background-color: rgba(2, 21, 90, 0.3) !important;
}

/* ============================================
   Footer link hover â€” subtle white fade
   ============================================ */
.footer-widget-two__link-list li a:hover,
.footer-widget-two__bottom-menu li a:hover,
.site-footer-two__bottom-menu li a:hover {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ============================================
   Page header â€” compact and centered
   ============================================ */
.page-header__inner {
    padding: 180px 0 90px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.thm-breadcrumb {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* ============================================
   Brand Images Background Removal
   ============================================ */
.brand-no-bg {
    /* The images are now true transparent PNGs. 
       This filter turns the dark logos solid white so they show up on the dark background. */
    filter: brightness(0) invert(1);
    
    /* Fix cropping: Ensure the image scales down properly within its container */
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.brand-light-bg {
    /* For true transparent PNGs on a light background. 
       We do NOT invert them, we let them show their original colors. */
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* When brand-light-bg images appear inside a dark section (.brand-four),
   invert them to white so they are visible against the dark background */
.brand-four .brand-light-bg {
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.brand-four .brand-light-bg:hover {
    opacity: 1;
}

/* ============================================
   Team Section — disable hover animation & hide social icons
   ============================================ */

/* Remove hover lift/transform on the card */
.team-one__single,
.team-one__single:hover {
    transform: none !important;
    transition: none !important;
}

/* Disable overlay animations on hover */
.team-one__img-box::before,
.team-one__img-box::after,
.team-one__img::before,
.team-one__img::after {
    display: none !important;
}

/* Hide social icon box if still present in DOM */
.team-one__social-box {
    display: none !important;
}

/* Remove image scale animation */
.team-one__img img {
    transition: none !important;
    transform: none !important;
}


/* ============================================
   Custom Elegant Service Details Redesign
   ============================================ */

.custom-service-detail {
    background-color: #0d0f12; /* Very dark rich background */
    color: #d1d5db;
    font-family: 'DM Sans', sans-serif;
    overflow: hidden;
    position: relative;
}

.custom-service-detail h1,
.custom-service-detail h2,
.custom-service-detail h3,
.custom-service-detail h4,
.custom-service-detail h5 {
    color: #ffffff;
    font-family: 'Kanit', sans-serif;
}

/* Sleek Hero Section */
.csd-hero {
    position: relative;
    padding: 180px 0 120px;
    text-align: center;
    background: linear-gradient(180deg, #13171d 0%, #0d0f12 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

/* Subtle glow behind hero */
.csd-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 252, 241, 0.05) 0%, rgba(13, 15, 18, 0) 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.csd-hero .container {
    position: relative;
    z-index: 1;
}

.csd-hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    background: -webkit-linear-gradient(45deg, #ffffff, #8892b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.csd-hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto;
    color: #a8b2d1;
    line-height: 1.8;
}

/* Overview Section */
.csd-overview {
    padding: 100px 0;
}

.csd-overview-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.csd-overview-text {
    flex: 1;
}

.csd-overview-text h2 {
    font-size: 42px;
    margin-bottom: 30px;
    line-height: 1.2;
}

.csd-overview-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 24px;
    color: #a8b2d1;
}

.csd-overview-image {
    flex: 1;
    position: relative;
}

.csd-overview-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.csd-overview-image img:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Glassmorphism Features Grid */
.csd-features {
    padding: 100px 0;
    background: #111419;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.csd-section-title {
    text-align: center;
    margin-bottom: 60px;
}

.csd-section-title h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.csd-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.csd-feature-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    padding: 50px 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.csd-feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.csd-feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 252, 241, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.csd-feature-card:hover::before {
    opacity: 1;
}

.csd-feature-card h3 {
    font-size: 26px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.csd-feature-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #a8b2d1;
    position: relative;
    z-index: 1;
}

.csd-feature-card ul {
    margin-top: 20px;
    padding-left: 0;
    position: relative;
    z-index: 1;
}

.csd-feature-card li {
    margin-bottom: 10px;
    color: #a8b2d1;
    display: flex;
    align-items: flex-start;
    font-size: 15px;
}

.csd-feature-card li i {
    color: #66fcf1;
    margin-right: 10px;
    margin-top: 4px;
}

/* Elegant Process Timeline */
.csd-process {
    padding: 100px 0;
}

.csd-process-list {
    max-width: 800px;
    margin: 0 auto;
}

.csd-process-step {
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(255,255,255,0.03);
    border-left: 4px solid #3b82f6;
    padding: 30px 40px;
    margin-bottom: 20px;
    border-radius: 0 16px 16px 0;
    transition: all 0.3s ease;
}

.csd-process-step:hover {
    background: rgba(59, 130, 246, 0.05);
    border-left-color: #60a5fa;
    transform: translateX(10px);
}

.csd-process-step strong {
    color: #ffffff;
    font-size: 22px;
    display: block;
    margin-bottom: 12px;
    font-family: 'Kanit', sans-serif;
}

.csd-process-step span {
    color: #a8b2d1;
    font-size: 16px;
    line-height: 1.6;
}

.csd-process-step p {
    margin-top: 10px;
    color: #a8b2d1;
    font-size: 16px;
}

/* Technology Stack */
.csd-toolkit {
    background: #111419;
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.csd-toolkit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.csd-toolkit-item {
    background: rgba(255,255,255,0.02);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: background 0.3s ease;
}

.csd-toolkit-item:hover {
    background: rgba(255,255,255,0.04);
}

.csd-toolkit-item strong {
    color: #ffffff;
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.csd-toolkit-item span {
    color: #8892b0;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 991px) {
    .csd-overview-container {
        flex-direction: column;
    }
    .csd-hero h1 {
        font-size: 40px;
    }
}
