/* ==========================================================================
   PT Arif Supplier Group - CSS Brand Overhaul (Fresh Fish & Fruits)
   ========================================================================== */

:root {
    --brand-blue: #0EA5E9;
    --brand-blue-dark: #0369A1;
    --brand-green: #10B981;
    --brand-green-dark: #047857;
    --brand-dark: #0F172A;
    --brand-light: #F8FAFC;
    
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--brand-light);
    color: var(--brand-dark);
    overflow-x: hidden;
}

/* Custom Text and Background Utilities */
.text-brand-blue { color: var(--brand-blue); }
.text-brand-green { color: var(--brand-green); }
.bg-brand-dark { background-color: var(--brand-dark); }
.bg-brand-light { background-color: var(--brand-light); }

/* Premium Gradient Primary Button */
.btn-brand-primary {
    background: linear-gradient(-45deg, var(--brand-blue), var(--brand-green), var(--brand-blue-dark), var(--brand-green-dark));
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    color: #ffffff;
    border: none;
    font-weight: 700;
    border-radius: 12px;
    padding: 12px 28px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-brand-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3);
    color: #ffffff;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Borders & Rounded Helpers */
.rounded-2xl { border-radius: 1rem !important; }
.rounded-3xl { border-radius: 1.5rem !important; }

/* Interactive Hover Transitions */
.hero-text-block {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hero-text-block:hover {
    transform: translateY(-8px) scale(1.01);
}

.hover-lift {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-16px) scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
}

.hover-feature {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-feature:hover {
    transform: scale(1.04);
    box-shadow: 0 20px 25px -5px rgba(14, 165, 233, 0.15) !important;
}

/* ==========================================================================
   Scroll Reveal Animations (Intersection Observer)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.17, 0.55, 0.55, 1);
    visibility: hidden;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* ==========================================================================
   Infinite Badges & Logos Marquee
   ========================================================================== */
@keyframes marquee-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes marquee-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    width: 100%;
    position: relative;
}

.marquee-container::before, .marquee-container::after {
    content: "";
    height: 100%;
    width: 150px;
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--brand-light), transparent);
}
.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--brand-light), transparent);
}

.marquee-container.dark-marquee::before {
    background: linear-gradient(to right, var(--brand-dark), transparent);
}
.marquee-container.dark-marquee::after {
    background: linear-gradient(to left, var(--brand-dark), transparent);
}

.animate-marquee-left {
    display: flex;
    width: max-content;
    animation: marquee-left 35s linear infinite;
}
.animate-marquee-right {
    display: flex;
    width: max-content;
    animation: marquee-right 35s linear infinite;
}
.animate-marquee-left:hover, .animate-marquee-right:hover {
    animation-play-state: paused;
}

.badge-card {
    display: inline-block;
    padding: 14px 28px;
    margin: 0 12px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 16px;
    font-weight: 700;
    color: var(--brand-dark);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.badge-card-hotel {
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.15);
    color: var(--brand-blue-dark);
}

/* ==========================================================================
   Translucent testimonial elements
   ========================================================================== */
.testimonial-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 380px;
    flex-shrink: 0;
    white-space: normal;
    border-radius: 1.25rem;
    padding: 1.5rem;
    margin: 0 0.75rem;
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-blue) !important;
    background: rgba(255, 255, 255, 0.07) !important;
}

/* ==========================================================================
   Navigation Bar (Glassmorphic)
   ========================================================================== */
.navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ==========================================================================
   Dynamic catalog Switch Pills
   ========================================================================== */
.product-nav .nav-link {
    border-radius: 12px;
    font-weight: 700;
    color: #64748b;
    border: 1px solid transparent;
    padding: 10px 24px;
    transition: all 0.2s ease;
}
.product-nav .nav-link.active.fish-tab {
    background-color: var(--brand-blue) !important;
    color: white !important;
}
.product-nav .nav-link.active.fruit-tab {
    background-color: var(--brand-green) !important;
    color: white !important;
}

/* ==========================================================================
   General styling elements for sub-pages (About, Detail, Catalog)
   ========================================================================== */
.section-heading-serif {
    font-family: var(--font-heading);
    font-weight: 800;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.spec-table tr {
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table th, .spec-table td {
    padding: 1rem 1.25rem;
    text-align: left;
}

.spec-table th {
    background-color: var(--brand-dark);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 35%;
}

.spec-table td {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--brand-dark);
}

.spec-table tr:nth-child(even) td {
    background-color: #f8fafc;
}

.detail-tab-btn {
    border: none;
    background: none;
    font-weight: 700;
    padding: 10px 20px;
    border-bottom: 3px solid transparent;
    color: #64748b;
    transition: all 0.2s ease;
}
.detail-tab-btn.active {
    border-bottom-color: var(--brand-blue);
    color: var(--brand-blue-dark);
}

/* ==========================================================================
   Floating WhatsApp Widget (Harmonized with blue/green layout)
   ========================================================================== */
.wa-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

.wa-button {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    outline: none;
    position: relative;
}

.wa-button i {
    color: #ffffff;
    font-size: 2rem;
}

.wa-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.wa-pulse {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 15px;
    height: 15px;
    background-color: #FF3B30;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.wa-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 330px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.wa-box.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.wa-header {
    background-color: var(--brand-dark);
    color: #ffffff;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wa-header-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    border: 2px solid #ffffff;
}

.wa-header-info h4 {
    color: #ffffff;
    font-size: 0.95rem;
    margin: 0;
}

.wa-header-info span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.wa-header-info span::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #25D366;
    border-radius: 50%;
}

.wa-body {
    padding: 1.25rem;
    background-color: #efeae2;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-size: contain;
    min-height: 100px;
}

.wa-msg {
    background-color: #ffffff;
    padding: 0.75rem 0.9rem;
    border-radius: 0px 8px 8px 8px;
    font-size: 0.8rem;
    color: var(--brand-dark);
    max-width: 90%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
    line-height: 1.4;
}

.wa-msg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid #ffffff;
    border-left: 8px solid transparent;
}

.wa-msg-meta {
    display: block;
    text-align: right;
    font-size: 0.65rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.wa-footer {
    padding: 0.75rem 1.25rem;
    background-color: #ffffff;
}

.wa-btn {
    background-color: #25D366;
    color: #ffffff;
    width: 100%;
    border-radius: 8px;
    padding: 0.65rem;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.wa-btn:hover {
    background-color: #128C7E;
    color: #ffffff;
}
