/* ============================================================
   HOMEPAGE SECTIONS — homepage.css
   Products · Why Choose Us · Partners Marquee · Vision
   ============================================================ */


/* ---- Extra reveal-delay utility classes ---- */
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ---- Directional reveal: higher specificity overrides .reveal Y-translate ---- */
.reveal.reveal-from-left  { transform: translateX(-44px); }
.reveal.reveal-from-right { transform: translateX( 44px); }
.reveal.reveal-from-left.reveal-visible,
.reveal.reveal-from-right.reveal-visible { transform: translateX(0); opacity: 1; }

/* ---- Section heading rule ---- */
.section-rule {
    height: 3px;
    width: 56px;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    border-radius: 9999px;
    margin: 0.75rem auto 0;
}


/* ================================================================
   PRODUCTS SECTION
   ================================================================ */
html.theme-white .products-section { background: #f8fafc; }
html.theme-blue  .products-section { background: #0a1120; }

/* Card wrapper */
.prod-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

html.theme-white .prod-card {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}
html.theme-blue .prod-card {
    background: #0b1220;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    border: 1px solid #1e293b;
}

.prod-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

html.theme-blue .prod-card:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* Image container — fixed 4:3 aspect */
.prod-img-wrap {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 4 / 3;
    background: #e2e8f0;
}

html.theme-blue .prod-img-wrap { background: #1e293b; }

/* Image — zooms on card hover */
.prod-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s cubic-bezier(.2, .6, .2, 1);
}

.prod-card:hover .prod-img {
    transform: scale(1.07);
}

/* Category badge — top left corner */
.prod-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #2563eb;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    z-index: 2;
}

/* Hover overlay */
.prod-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 3;
}

.prod-card:hover .prod-overlay { opacity: 1; }

.prod-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #ffffff;
    color: #1e3a8a;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.55rem 1.25rem;
    border-radius: 9999px;
    transform: translateY(8px);
    transition: transform 0.35s ease;
    white-space: nowrap;
}

.prod-card:hover .prod-cta { transform: translateY(0); }

/* Card bottom label */
.prod-label {
    padding: 0.85rem 1rem;
}

.prod-name {
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.theme-white .prod-name { color: #0f172a; }
html.theme-blue  .prod-name { color: #e2e8f0; }


/* ================================================================
   WHY CHOOSE US
   ================================================================ */
html.theme-white .why-section { background: #f1f5f9; }
html.theme-blue  .why-section { background: #0a1120; }

.why-underline {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    border-radius: 9999px;
    margin: 0.75rem auto 0;
}

.why-card {
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

html.theme-white .why-card {
    background: #ffffff;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
}
html.theme-blue .why-card {
    background: #0b1220;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
    border: 1px solid #1e293b;
}

.why-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.25rem;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #2563eb, #06b6d4) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.why-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.13);
}

.why-card:hover::after { opacity: 1; }

.why-icon-wrap {
    width: 58px;
    height: 58px;
    margin: 0 auto 1.25rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

html.theme-white .why-icon-wrap { background: #eff6ff; color: #2563eb; }
html.theme-blue  .why-icon-wrap { background: rgba(96,165,250,0.1); color: #60a5fa; }

.why-card:hover .why-icon-wrap {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    transform: rotate(-6deg) scale(1.1);
}

.why-icon-wrap svg { width: 28px; height: 28px; stroke: currentColor; }

.why-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.65rem; }
html.theme-white .why-title { color: #0f172a; }
html.theme-blue  .why-title { color: #e5e7eb; }

.why-desc { font-size: 0.875rem; line-height: 1.65; color: #64748b; }
html.theme-blue .why-desc { color: #94a3b8; }


/* ================================================================
   PARTNERS MARQUEE
   ================================================================ */
html.theme-white .partners-section { background: #ffffff; }
html.theme-blue  .partners-section { background: #0b1220; }

.marquee-track {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent 0%, black 22%, black 78%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 22%, black 78%, transparent 100%);
}

.marquee-inner {
    display: flex;
    width: max-content;
    animation: marquee-scroll 28s linear infinite;
    align-items: center;
    /* No gap — spacing goes on each item so -50% lands exactly on the duplicate */
}

.marquee-track:hover .marquee-inner {
    animation-play-state: paused;
}

.marquee-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 4rem; /* part of the item's own width → seamless -50% loop */
}

.marquee-item img {
    height: 56px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.55;
    transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
    display: block;
}

.marquee-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

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


/* ================================================================
   VISION / QUOTE SECTION
   ================================================================ */
.vision-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.vision-overlay {
    background: linear-gradient(135deg, rgba(15,23,42,0.88) 0%, rgba(30,58,138,0.72) 100%);
}

.vision-img-wrap {
    position: relative;
    flex-shrink: 0;
}

.vision-img-wrap::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 9999px;
    border: 2px solid rgba(96, 165, 250, 0.45);
    animation: vision-ring-pulse 3.2s ease-in-out infinite;
}

@keyframes vision-ring-pulse {
    0%, 100% { transform: scale(1);    opacity: 0.5; }
    50%       { transform: scale(1.06); opacity: 1; }
}

.vision-quote {
    font-size: 5rem;
    line-height: 0.8;
    color: #60a5fa;
    font-family: Georgia, 'Times New Roman', serif;
    margin-bottom: -0.75rem;
    opacity: 0.6;
    user-select: none;
}


/* ================================================================
   VIEW ALL BUTTON
   ================================================================ */
.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: #2563eb;
    color: #ffffff !important;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}

.btn-view-all:hover {
    background: #1d4ed8;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.btn-view-all svg { transition: transform 0.25s ease; }
.btn-view-all:hover svg { transform: translateX(4px); }


/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
    position: relative;
}

/* Decorative blurred orb shapes */
.cta-shape {
    position: absolute;
    border-radius: 9999px;
    filter: blur(72px);
    pointer-events: none;
}

.cta-shape-1 {
    width: 380px;
    height: 380px;
    background: rgba(37, 99, 235, 0.35);
    top: -120px;
    left: -80px;
}

.cta-shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(6, 182, 212, 0.25);
    bottom: -100px;
    right: -60px;
}

.cta-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #60a5fa;
    margin-bottom: 1rem;
}

.cta-heading {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.cta-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Primary CTA button */
.cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2.25rem;
    background: #ffffff;
    color: #1e3a8a !important;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s;
}

.cta-btn-primary:hover {
    background: #e0f2fe;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
    color: #1e3a8a !important;
}

.cta-btn-primary svg { transition: transform 0.25s ease; }
.cta-btn-primary:hover svg { transform: translateX(4px); }

/* Outline CTA button */
.cta-btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 2.25rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #ffffff !important;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: border-color 0.25s, background 0.25s, transform 0.25s;
    backdrop-filter: blur(4px);
}

.cta-btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: #ffffff !important;
}


/* ================================================================
   BLOG PREVIEW SECTION
   ================================================================ */
html.theme-white .blog-preview-section { background: #f8fafc; }
html.theme-blue  .blog-preview-section { background: #0a1120; }

/* Card — is an <a> tag */
.blog-card-hp {
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none !important;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

html.theme-white .blog-card-hp {
    background: #ffffff;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
}
html.theme-blue .blog-card-hp {
    background: #0b1220;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
    border: 1px solid #1e293b;
}

.blog-card-hp:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.13);
}
html.theme-blue .blog-card-hp:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

/* Image wrapper */
.blog-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #e2e8f0;
    flex-shrink: 0;
}
html.theme-blue .blog-card-img-wrap { background: #1e293b; }

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s cubic-bezier(.2, .6, .2, 1);
}
.blog-card-hp:hover .blog-card-img { transform: scale(1.06); }

.blog-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a, #0891b2);
}

/* Genre badge */
.blog-card-genre {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #2563eb;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
}

/* Body */
.blog-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-date {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    display: block;
}

.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
html.theme-white .blog-card-title { color: #0f172a; }
html.theme-blue  .blog-card-title { color: #e2e8f0; }

.blog-card-excerpt {
    font-size: 0.85rem;
    line-height: 1.65;
    color: #64748b;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}
html.theme-blue .blog-card-excerpt { color: #94a3b8; }

/* Read more link */
.blog-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #2563eb;
    margin-top: auto;
    transition: gap 0.25s ease, color 0.25s ease;
}
html.theme-blue .blog-card-cta { color: #60a5fa; }

.blog-card-hp:hover .blog-card-cta { gap: 0.6rem; }
.blog-card-hp:hover .blog-card-cta { color: #1d4ed8; }
html.theme-blue .blog-card-hp:hover .blog-card-cta { color: #93c5fd; }
