/* ==================== CUSTOM FONT CONFIGURATION ==================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Primary Colors from Official Brand Identity */
    --primary-dark: #012C57;
    --primary-teal: #0C646D;
    --dark-gray: #2D3436;
    --light-gray: #F7F7F7;
    
    /* Accent Colors */
    --success-green: #10B981;
    --danger-red: #EF4444;
    --warning-orange: #F59E0B;
    
    /* Text Colors */
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    
    /* Borders & Backgrounds */
    --border-light: #E5E7EB;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
}

/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.25rem;
    font-weight: 800;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

p {
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ==================== UTILITY CLASSES ==================== */
.font-inter {
    font-family: 'Inter', sans-serif;
}

/* ==================== HEADER STYLES ==================== */
header {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
}

header.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background-color: rgba(255, 255, 255, 0.98);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav button {
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav button:hover {
    transform: translateY(-2px);
}

/* ==================== HERO SECTION STYLES ==================== */
section:first-of-type {
    position: relative;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: rgba(15, 169, 169, 0.1);
    color: var(--primary-dark);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse-dot {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ==================== GRADIENT BUTTONS ==================== */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-teal) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(0, 61, 92, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-gradient:hover {
    transform: translateY(-4px) translateZ(0);
    box-shadow: 0 25px 50px -10px rgba(0, 61, 92, 0.4);
}

.btn-gradient:active {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 15px 30px -5px rgba(0, 61, 92, 0.3);
}

/* ==================== CARD STYLES ==================== */
.stock-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stock-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-teal));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stock-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 169, 169, 0.05) 0%, transparent 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.stock-card:hover {
    transform: translateY(-12px) translateZ(0);
    box-shadow: 0 25px 50px -12px rgba(0, 61, 92, 0.2);
    border-color: rgba(15, 169, 169, 0.5);
}

.stock-card:hover::before {
    transform: scaleX(1);
}

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

/* ==================== BADGE STYLES ==================== */
.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-red);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ==================== ANIMATED SVG ==================== */
svg {
    display: block;
}

.candlestick-1,
.candlestick-2,
.candlestick-3,
.candlestick-4 {
    transform-origin: center bottom;
}

/* ==================== RESPONSIVE GRID ==================== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== TESTIMONIAL STYLES ==================== */
.testimonial-card {
    background: linear-gradient(135deg, #F3F4F6 0%, #FFFFFF 100%);
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-teal));
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 61, 92, 0.15);
    transform: translateY(-8px) translateZ(0);
    border-color: rgba(15, 169, 169, 0.2);
}

.testimonial-card:hover::before {
    left: 100%;
}

/* ==================== CTA SECTION ==================== */
.cta-premium-gradient {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-teal) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 61, 92, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-premium-gradient:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 65px -12px rgba(0, 61, 92, 0.4);
}

.cta-premium-gradient button:first-of-type {
    background: white;
    color: var(--primary-dark);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.cta-premium-gradient button:first-of-type::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 61, 92, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.cta-premium-gradient button:first-of-type:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.25);
}

.cta-premium-gradient button:first-of-type:hover::before {
    transform: translateX(100%);
}

.cta-gradient {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-teal) 100%);
    position: relative;
    overflow: hidden;
}

.cta-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float-slow 6s ease-in-out infinite;
}

.cta-gradient::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float-slow 8s ease-in-out infinite reverse;
}

/* ==================== FOOTER STYLES ==================== */
footer {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    background-attachment: fixed;
    color: #CBD5E1;
    position: relative;
}

footer a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-teal), var(--primary-dark));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

footer a:hover::after {
    width: 100%;
}

footer a:hover {
    color: var(--primary-teal);
    transform: translateX(2px);
}

footer h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

footer h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-teal), transparent);
    border-radius: 2px;
}

footer ul li {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

footer ul li:hover {
    padding-left: 8px;
}

/* ==================== PREMIUM ANIMATIONS ==================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes pulse-whatsapp {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

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

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(15, 169, 169, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(15, 169, 169, 0.6);
    }
}

@keyframes slide-right {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== SCROLL EFFECTS ==================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-dark), var(--primary-teal));
    border-radius: 10px;
    border: 3px solid var(--bg-light);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-teal), var(--primary-dark));
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
}

/* ==================== PROCESS SECTION TIMELINE ==================== */
.group {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.group:hover {
    --tw-shadow: 0 25px 50px -15px rgba(15, 169, 169, 0.2);
}

/* Step Badge Border Animation */
.group .absolute.inset-0.border-2 {
    animation: border-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.group:hover .absolute.inset-0.border-2 {
    animation: border-glow-active 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.3);
}

@keyframes border-glow {
    0%, 100% {
        box-shadow: inset 0 0 0px rgba(239, 68, 68, 0);
    }
    50% {
        box-shadow: inset 0 0 12px rgba(239, 68, 68, 0.2);
    }
}

@keyframes border-glow-active {
    from {
        box-shadow: inset 0 0 0px rgba(239, 68, 68, 0.2);
    }
    to {
        box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.4);
    }
}

/* Connector Line Animation */
.hidden.md\:block.absolute.top-24 {
    animation: line-flow 3s ease-in-out infinite;
}

@keyframes line-flow {
    0%, 100% {
        opacity: 0.3;
        background: linear-gradient(90deg, transparent, rgba(15, 169, 169, 0.3), transparent);
    }
    50% {
        opacity: 0.6;
        background: linear-gradient(90deg, transparent, rgba(15, 169, 169, 0.6), transparent);
    }
}

/* ==================== FOOTER STYLES ==================== */
footer {
    background: linear-gradient(180deg, #111827 0%, #030712 100%);
    border-color: rgba(15, 169, 169, 0.1);
}

footer a {
    position: relative;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

footer a:hover {
    color: #0C646D;
}

footer h4 {
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Footer Logo - No hover effects */
.footer-logo {
    display: inline-flex;
    align-items: center;
}
.footer-logo::after {
    display: none !important;
}
.footer-logo:hover {
    color: inherit !important;
    transform: none !important;
}

/* Social Icon Hover Effects */
footer .bg-gray-800:hover {
    background: linear-gradient(135deg, #1a9faa, #012C57) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(26, 159, 170, 0.35);
}

/* Footer Social Icons - visible teal hover */
footer a.social-icon:hover {
    background: linear-gradient(135deg, #1a9faa, #0C646D) !important;
    box-shadow: 0 6px 14px rgba(26, 159, 170, 0.35);
}

/* Footer Link Hover Animation */
footer .text-gray-400:hover {
    color: #0C646D;
    text-decoration: none;
}

/* Badge Hover */
footer .bg-gray-800\/50:hover {
    background: rgba(15, 169, 169, 0.1) !important;
    border-color: rgba(15, 169, 169, 0.5) !important;
    transform: translateY(-2px);
}

/* ==================== WHATSAPP FLOATING BUTTON ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.3s ease, pointer-events 0s;
}

.whatsapp-wrapper {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.35),
                0 0 0 0 rgba(37, 211, 102, 0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    animation: whatsapp-pulse 3s ease-in-out infinite;
    border: 2px solid white;
}

.whatsapp-img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    border-radius: 50%;
}

.whatsapp-label {
    background: white;
    color: #25d366;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    opacity: 1;
    transform: translateX(8px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    letter-spacing: 0.3px;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

/* Hover Animation */
.whatsapp-wrapper:hover .whatsapp-btn {
    transform: scale(1.12);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45),
                0 0 15px rgba(37, 211, 102, 0.25);
}

.whatsapp-wrapper:hover .whatsapp-label {
    background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
    color: white;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
    transform: translateX(0) scale(1);
    border-color: #25d366;
}

/* Pulse Animation */
@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(37, 211, 102, 0.35),
                    0 0 0 0 rgba(37, 211, 102, 0.1);
    }
    50% {
        box-shadow: 0 2px 10px rgba(37, 211, 102, 0.35),
                    0 0 0 8px rgba(37, 211, 102, 0);
    }
}

/* Active State */
.whatsapp-btn:active {
    transform: scale(0.95);
}

/* Tablet adjustment */
@media screen and (max-width: 1024px) {
    .whatsapp-btn {
        width: 48px;
        height: 48px;
    }
}

/* Mobile adjustment */
@media screen and (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        width: 45px;
        height: 45px;
    }
    
    .whatsapp-label {
        display: none;
    }
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ==================== DARK MODE PREPARATION ==================== */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #F3F4F6;
        --text-secondary: #D1D5DB;
        --bg-white: #1F2937;
        --bg-light: #111827;
        --border-light: #374151;
    }
    
    body {
        background-color: var(--bg-white);
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    header, footer {
        display: none;
    }
    
    body {
        background: white;
    }
}
