/* ========================================
   Modern Theme CSS for QAS Homepage
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #0067ac;
    --primary-dark: #004d80;
    --primary-light: #e6f2fa;
    --gradient-start: #0067ac;
    --gradient-end: #00a8e8;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --font-main: "Plus Jakarta Sans", sans-serif;
}

/* Global Font for Modern Theme */
.hero-modern,
.hero-modern *,
.about-modern,
.about-modern *,
.reasons-modern,
.reasons-modern *,
.process-section,
.process-section *,
.cases-modern,
.cases-modern * {
    font-family: "Plus Jakarta Sans", sans-serif;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Badge - Center aligned */
.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hide old hero dots/pagination */
.hero-modern + .slick-dots,
.hero-modern ~ .slick-dots,
.hero-modern .slick-dots,
.tp-hero-area .slick-dots,
.tp-hero-five__ptb-5 .slick-dots,
.hero-modern + ul,
.hero-modern ~ ul.slick-dots,
section.hero-modern + *:not(section) {
    display: none !important;
}

/* Hide any orphan pagination dots after hero */
.hero-modern ~ .swiper-pagination,
.hero-modern ~ .owl-dots,
.hero-modern + .swiper-pagination,
.hero-modern + .owl-dots {
    display: none !important;
}

/* Hide dots between hero and about sections */
main > .slick-dots,
main > .swiper-pagination,
main > .owl-dots,
main > ul.slick-dots {
    display: none !important;
}

/* Hide any standalone dots/pagination that appear after hero */
.hero-modern ~ ul:not(.reasons-modern):not(.about-modern):not(.cases-modern),
section.hero-modern ~ ul.slick-dots,
section.hero-modern ~ .swiper-pagination,
section.hero-modern ~ .owl-dots {
    display: none !important;
}

/* Force hide all slick dots globally except in specific sliders */
.slick-dots:not(.cases-modern__slider .slick-dots) {
    display: none !important;
}

/* Hide any pagination that is direct child of main */
main > ul,
main > .slick-initialized + ul {
    display: none !important;
}

/* Ultra-aggressive dots hiding - target any orphan ul that could be dots */
main section.hero-modern + ul,
main section.hero-modern ~ ul:first-of-type,
.hero-modern + ul,
ul.slick-dots {
    display: none !important;
}

/* Hide slick dots by li button pattern */
.slick-dots li button,
.slick-dots li {
    display: none !important;
}

/* Keep only cases slider pagination visible */
.cases-modern .swiper-pagination {
    display: block !important;
}

/* Ensure about section comes right after hero */
.hero-modern + .about-modern,
section.hero-modern + section.about-modern {
    margin-top: 0;
}

/* Section Title */
.section-title-modern {
    font-family: var(--font-main);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Section Description */
.section-desc-modern {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Cases section subtitle - single line */
.cases-modern .section-desc-modern {
    max-width: none;
    white-space: nowrap;
}

/* Modern Button */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-modern--primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
}

.btn-modern--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 103, 172, 0.35);
    color: #fff;
}

.btn-modern--outline {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-modern--outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ========================================
   Header Fix - Menu spacing
   ======================================== */
.header-bottom__main-menu ul.pc-show {
    margin-left: 30px;
}

.header-bottom__logo img {
    max-width: 180px;
}

/* ========================================
   Hero Section Modern
   ======================================== */
.hero-modern {
    padding: 60px 0 40px;
    background: #062947;
    background: radial-gradient(circle, rgba(6, 41, 71, 1) 0%, rgba(19, 58, 99, 1) 100%);
    overflow: hidden;
}

.min-vh-80 {
    min-height: 80vh;
}

.hero-modern__content {
    padding-right: 40px;
}

.hero-modern__badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero-modern__title {
    font-family: var(--font-main);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-modern__subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #5cb8ff;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

.hero-modern__desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-modern__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-modern .btn-modern--primary {
    background: #ffaf1d;
    color: #000;
}

.hero-modern .btn-modern--primary:hover {
    background: #e69e15;
    box-shadow: 0 8px 25px rgba(255, 175, 29, 0.35);
    color: #000;
}

.hero-modern .btn-modern--outline {
    background: #ffffff;
    border-color: #ffffff;
    color: #062947;
}

.hero-modern .btn-modern--outline:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #062947;
}

.hero-modern__image {
    position: relative;
}

.hero-modern__image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.hero-modern__float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-white);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
}

.hero-modern__float-card--1 {
    bottom: 20%;
    left: -30px;
}

.hero-modern__float-card--2 {
    top: 20%;
    right: -30px;
    animation-delay: 1.5s;
}

.float-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 12px;
    color: var(--primary-color);
}

.float-card__text strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.float-card__text span {
    font-size: 13px;
    color: var(--text-muted);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Hero Stat Cards */
.hero-stat-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.hero-stat-card__number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffaf1d;
    line-height: 1.2;
    margin-bottom: 8px;
}

.hero-stat-card__label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* ========================================
   About Section Modern
   ======================================== */
.about-modern {
    padding: 100px 0;
    background: var(--bg-white);
}

.about-modern__stat-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.about-modern__stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-card__number {
    font-family: var(--font-main);
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-card__label {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ========================================
   Reasons Section Modern
   ======================================== */
.reasons-modern {
    padding: 100px 0;
    background: var(--bg-light);
}

.reason-card {
    height: 100%;
    padding: 32px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.reason-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.reason-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 16px;
    color: var(--primary-color);
    margin-bottom: 24px;
    transition: var(--transition);
}

.reason-card:hover .reason-card__icon {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
}

.reason-card__title {
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.reason-card__desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.reason-card--highlight {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.reason-card--highlight .reason-card__icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.reason-card--highlight .reason-card__title,
.reason-card--highlight .reason-card__desc {
    color: #fff;
}

.reason-card__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
}

/* ========================================
   Cases Section Modern
   ======================================== */
.cases-modern {
    padding: 100px 0;
    background: var(--bg-white);
}

.cases-modern__slider {
    padding-bottom: 60px;
    position: relative;
}

.case-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.case-card__image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.case-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.case-card:hover .case-card__image img {
    transform: scale(1.05);
}

.case-card__overlay {
    position: absolute;
    top: 16px;
    left: 16px;
}

.case-card__tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
}

.case-card__content {
    padding: 24px;
}

.case-card__meta {
    margin-bottom: 12px;
}

.case-card__scale {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
}

.case-card__title {
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.case-card__desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.cases-modern__nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
}

.cases-nav-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.cases-nav-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Swiper Pagination */
.cases-modern__slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--primary-light);
    opacity: 1;
}

.cases-modern__slider .swiper-pagination-bullet-active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 991px) {
    .hero-modern {
        padding: 60px 0;
    }

    .hero-modern__content {
        padding-right: 0;
        text-align: center;
        margin-top: 40px;
    }

    .hero-modern__buttons {
        justify-content: center;
    }

    .hero-modern__float-card {
        display: none;
    }

    .min-vh-80 {
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .section-title-modern {
        font-size: 1.75rem;
    }

    .hero-modern__title {
        font-size: 2rem;
    }

    .about-modern,
    .reasons-modern,
    .cases-modern {
        padding: 60px 0;
    }

    .reason-card {
        padding: 24px;
    }

    .stat-card__number {
        font-size: 36px;
    }
}

/* ========================================
   Process Section - Timeline
   ======================================== */
.process-section {
    padding: 80px 0;
    background: #f8fafc;
}

.process-section__headline {
    font-family: var(--font-main);
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.process-section__sub {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 50px;
}

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--gradient-end) 100%);
    border-radius: 3px;
}

.process-timeline__item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.process-timeline__item:last-child {
    margin-bottom: 0;
}

.process-timeline__number {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--gradient-end));
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 103, 172, 0.3);
}

.process-timeline__content {
    background: #fff;
    padding: 24px 30px;
    margin-left: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    flex: 1;
    transition: var(--transition);
}

.process-timeline__content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.process-timeline__title {
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.process-timeline__desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .process-section {
        padding: 60px 0;
    }

    .process-section__headline {
        font-size: 26px;
    }

    .process-timeline::before {
        left: 22px;
    }

    .process-timeline__number {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 18px;
    }

    .process-timeline__content {
        padding: 20px;
        margin-left: 16px;
    }

    .process-timeline__title {
        font-size: 18px;
    }
}
