/* ABA And Partners - Main Stylesheet */

/* ===== BASE & TYPOGRAPHY ===== */
body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* ===== UTILITY CLASSES ===== */
.text-gold-gradient {
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gold-gradient {
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
}

.bg-forest-gradient {
    background: linear-gradient(135deg, #2E8B57 0%, #3CB371 100%);
}

.section-divider {
    height: 4px;
    background: #D4AF37;
}

/* ===== COMPONENTS ===== */
/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.trading-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Navigation */
.nav-link.active {
    color: #D4AF37;
    font-weight: 600;
}

/* WhatsApp Float Button */
.whatsapp-float {
    animation: float 3s ease-in-out infinite;
}

/* Form Elements */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Flag Icons */
.fi {
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===== ANIMATIONS ===== */

/* Hamburger Menu Animation */
.hamburger-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-line:nth-child(1) {
    transform-origin: center;
}

.hamburger-line:nth-child(2) {
    opacity: 1;
}

.hamburger-line:nth-child(3) {
    transform-origin: center;
}

/* Hamburger to X animation */
.hamburger-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes subtleScale {
    from { transform: scale(0.95); }
    to { transform: scale(1); }
}

@keyframes pulseSubtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes subtleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gentleSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(212, 175, 55, 0.3); }
    50% { text-shadow: 0 0 20px rgba(212, 175, 55, 0.5); }
}

@keyframes borderPulse {
    0%, 100% { border-color: rgba(212, 175, 55, 0.3); }
    50% { border-color: rgba(212, 175, 55, 0.8); }
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes iconSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes wave {
    0% { transform: translateX(0); }
    50% { transform: translateX(-10px); }
    100% { transform: translateX(0); }
}

@keyframes fadeInStagger {
    0% { opacity: 0; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* New subtle animations */
@keyframes gentleShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

@keyframes softBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes gentleWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-1deg); }
    75% { transform: rotate(1deg); }
}

@keyframes colorShift {
    0% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(10deg); }
    100% { filter: hue-rotate(0deg); }
}

@keyframes gentleBreath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gentleTwist {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(2deg); }
}

@keyframes softGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.2); }
    50% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); }
}

@keyframes gentleSway {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gentleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes shimmerSubtle {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.slide-in-up {
    animation: slideInUp 0.8s ease forwards;
}

.gentle-float {
    animation: gentleFloat 3s ease-in-out infinite;
}

.subtle-scale {
    animation: subtleScale 0.4s ease forwards;
}

.pulse-subtle {
    animation: pulseSubtle 2s ease-in-out infinite;
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.6s ease forwards;
}

.gentle-pulse {
    animation: gentlePulse 3s ease-in-out infinite;
}

.subtle-bounce {
    animation: subtleBounce 2s ease-in-out infinite;
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 1.5s ease-out infinite;
}

.fade-in-down {
    animation: fadeInDown 0.6s ease forwards;
}

.rotate-slow {
    animation: rotateSlow 20s linear infinite;
}

.gradient-shift {
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

.gentle-slide-up {
    animation: gentleSlideUp 0.6s ease forwards;
}

.text-glow {
    animation: textGlow 3s ease-in-out infinite;
}

.border-pulse {
    animation: borderPulse 2s ease-in-out infinite;
}

.card-reveal {
    animation: cardReveal 0.6s ease forwards;
}

.icon-spin {
    animation: iconSpin 2s linear infinite;
}

.wave {
    animation: wave 3s ease-in-out infinite;
}

.fade-in-stagger {
    animation: fadeInStagger 0.5s ease forwards;
}

/* New animation utility classes */
.gentle-shake {
    animation: gentleShake 3s ease-in-out infinite;
}

.soft-blink {
    animation: softBlink 3s ease-in-out infinite;
}

.gentle-wiggle {
    animation: gentleWiggle 3s ease-in-out infinite;
}

.color-shift {
    animation: colorShift 5s ease-in-out infinite;
}

.gentle-breath {
    animation: gentleBreath 4s ease-in-out infinite;
}

.slide-up-fade {
    animation: slideUpFade 0.6s ease forwards;
}

.slide-down-fade {
    animation: slideDownFade 0.6s ease forwards;
}

.gentle-twist {
    animation: gentleTwist 3s ease-in-out infinite;
}

.soft-glow {
    animation: softGlow 3s ease-in-out infinite;
}

.gentle-sway {
    animation: gentleSway 3s ease-in-out infinite;
}

.fade-in-scale {
    animation: fadeInScale 0.6s ease forwards;
}

.gentle-bounce {
    animation: gentleBounce 2s ease-in-out infinite;
}

.shimmer-subtle {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 75%, 
        transparent 100%);
    background-size: 200% 100%;
    animation: shimmerSubtle 3s infinite;
}

/* Hover animations */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Staggered animations */
.stagger-delay-1 { animation-delay: 0.1s; }
.stagger-delay-2 { animation-delay: 0.2s; }
.stagger-delay-3 { animation-delay: 0.3s; }
.stagger-delay-4 { animation-delay: 0.4s; }
.stagger-delay-5 { animation-delay: 0.5s; }

/* Scroll-triggered animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll {
    opacity: 1 !important;
    transform: translateX(0) scale(1) !important;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8941f;
}

/* ===== PRODUCT CAROUSEL ===== */
.carousel-track {
    overflow: hidden;
    padding: 1rem 0;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 0.75rem;
}

.carousel-slide {
    flex-shrink: 0;
    min-width: 280px;
    max-width: 280px;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #D4AF37;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #D4AF37;
    color: white;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.carousel-prev:disabled,
.carousel-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f3f4f6;
    color: #9ca3af;
}

.carousel-prev:disabled:hover,
.carousel-next:disabled:hover {
    background: #f3f4f6;
    color: #9ca3af;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: not-allowed;
}

.carousel-prev {
    left: 12px;
}

.carousel-next {
    right: 12px;
}

.carousel-prev:disabled,
.carousel-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f3f4f6;
    color: #9ca3af;
}

.carousel-prev:disabled:hover,
.carousel-next:disabled:hover {
    background: #f3f4f6;
    color: #9ca3af;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicator:hover {
    background: #D4AF37;
    transform: scale(1.2);
}

.carousel-indicator.bg-brand-gold {
    background: #D4AF37;
    transform: scale(1.2);
}

/* Responsive carousel */
@media (max-width: 768px) {
    .carousel-slide {
        min-width: 200px;
        max-width: 200px;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        left: 8px;
        right: 8px;
    }

    .relative.max-w-6xl.mx-auto.px-12 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Make category tabs wrap better on mobile */
    .category-tab {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.875rem !important;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 640px) {
    .carousel-slide {
        min-width: 180px;
        max-width: 180px;
    }

    .carousel-prev,
    .carousel-next {
        width: 36px;
        height: 36px;
        left: 4px;
        right: 4px;
    }

    .relative.max-w-6xl.mx-auto.px-12 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Make category tabs even more compact on small mobile */
    .category-tab {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem !important;
    }

    .hero-subtitle {
        font-size: 1.5rem !important;
    }

    .section-padding {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* Mobile card adjustments */
    .product-card img {
        height: 120px !important;
    }

    .product-card .p-5 {
        padding: 1rem !important;
    }

    .product-card h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .product-card p {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
    }

    .product-card .min-h-[320px] {
        min-height: 280px !important;
    }

    /* Static cards on mobile */
    #forces .bg-white {
        padding: 1.5rem !important;
    }

    #forces h3 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    #bespoke .bg-white {
        padding: 1.5rem !important;
    }

    #bespoke h3 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    #trading .trading-card img {
        height: 120px !important;
    }

    #trading .trading-card .p-6 {
        padding: 1rem !important;
    }

    #trading .trading-card h4 {
        font-size: 1.1rem !important;
    }

    /* Mobile Navbar Fixes - Hide desktop elements on mobile */
    /* Hide desktop navigation, language selector, and CTA button on mobile */
    #lang-selector-desktop,
    #lang-dropdown-desktop,
    div[class*="hidden"][class*="md:flex"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Specifically hide the CTA button in desktop navbar on ALL screen sizes for now */
    div[class*="hidden"][class*="md:flex"] a.bg-gold-gradient {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Show mobile navigation on mobile */
    div[class*="md:hidden"][class*="flex"] {
        display: flex !important;
    }

    /* Mobile menu styling */
    #mobile-menu {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(212, 175, 55, 0.15);
        border-top: 1px solid rgba(212, 175, 55, 0.2);
        margin-top: 0.5rem;
        box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
        border-radius: 0 0 12px 12px;
        transition: all 0.3s ease;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
    }

    /* Mobile menu visible state */
    #mobile-menu:not(.hidden) {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    /* Mobile menu container - 2 column grid */
    #mobile-menu .flex.flex-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        padding: 1rem;
    }

    /* Mobile menu items */
    #mobile-menu .nav-link {
        padding: 0.75rem 1rem;
        display: block;
        position: relative;
        font-weight: 700;
        color: #1f2937;
        text-align: center;
        transition: all 0.3s ease;
        border-radius: 8px;
        margin: 0.25rem;
    }

    /* Gold separator lines - horizontal only, thinner */
    #mobile-menu .nav-link:nth-child(n+3)::before {
        content: '';
        position: absolute;
        top: -0.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 85%;
        height: 2px;
        background: linear-gradient(to right, #D4AF37, #FFD700);
        opacity: 0.6;
        border-radius: 2px;
    }

    #mobile-menu .nav-link:hover {
        background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.04) 100%);
        color: #D4AF37;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
    }

    #mobile-menu .nav-link:hover::before {
        opacity: 0.8;
    }

    /* Mobile menu CTA button - hide it completely */
    #mobile-menu .pt-4,
    #mobile-menu a.bg-gold-gradient {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .bg-brand-gold {
        background-color: #b8941f !important;
    }
    
    .text-brand-gold {
        color: #b8941f !important;
    }
}

/* ===== DARK MODE OVERRIDES ===== */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #ffffff;
        color: #1f2937;
    }
    
    .bg-white {
        background-color: #ffffff !important;
        color: #1f2937 !important;
    }
    
    .text-gray-700 {
        color: #374151 !important;
    }
    
    .text-gray-600 {
        color: #4b5563 !important;
    }
    
    .border-gray-300 {
        border-color: #d1d5db !important;
    }
    
    .bg-gray-50 {
        background-color: #f9fafb !important;
        color: #1f2937 !important;
    }
    
    .bg-brand-sand {
        background-color: #F5F5DC !important;
        color: #1f2937 !important;
    }
    
    .text-brand-navy {
        color: #0B2545 !important;
    }
    
    .product-card {
        background-color: #ffffff !important;
        color: #1f2937 !important;
    }
    
    .product-card p {
        color: #4b5563 !important;
    }
    
    #contact .bg-white {
        background-color: #ffffff !important;
        color: #1f2937 !important;
    }
    
    #contact input,
    #contact textarea {
        background-color: #ffffff !important;
        border-color: #d1d5db !important;
        color: #1f2937 !important;
    }
    
    #contact input::placeholder,
    #contact textarea::placeholder {
        color: #6b7280 !important;
    }
    
    #contact input:focus,
    #contact textarea:focus {
        border-color: #D4AF37 !important;
        box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1) !important;
    }
    
    footer {
        background-color: #ffffff !important;
    }
}
