body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    line-height: 1.8;
    background-color: #f9f9f9;
}

/* Add scroll-padding for better sticky positioning */
html {
    scroll-padding-top: 20px;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.01em;
}

.article-body p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    letter-spacing: 0.01em;
    line-height: 1.8;
    color: #374151;
}

.article-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    line-height: 1.3;
    color: #111827;
    letter-spacing: -0.025em;
}

.article-body a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    text-decoration-color: #818cf8;
}

.article-body blockquote {
    font-style: italic;
    border-left: 4px solid #6366f1;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: #f3f4f6;
    border-radius: 0 0.375rem 0.375rem 0;
}

@media (max-width: 768px) {
    .article-body p {
        font-size: 1rem;
        margin-bottom: 1.25rem;
        line-height: 1.7;
    }

    .article-body h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
    
    .article-body blockquote {
        padding: 0.75rem 1rem;
        margin: 1.5rem 0;
    }
}

/* Add a readable max-width for the article container on large screens */
@media (min-width: 1280px) {
    .container {
        max-width: 1200px;
    }
}

.card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: #fff;
}

/* Remove card hover elevation effect */
.card:hover {
    /* No transform or elevation on hover */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn-primary {
    background-color: #4da64d;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #3d8b3d;
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.modal-open {
    opacity: 1;
    display: block;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    opacity: 0;
    transition: all 0.3s ease;
}

/* Exit Intent Popup Specific Styles */
#exitPopup .modal-content {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

/* Lead Form Modal specific styles */
#leadFormModal {
    z-index: 60;
}

#leadFormModal .modal-content {
    max-width: 400px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.modal.modal-open .modal-content {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Close button hover effect */
.close {
    transition: color 0.2s ease;
    cursor: pointer;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* Lead Form Progress Bar */
#leadFormModal .flex.w-full {
    position: relative;
    height: 8px;
}

#step1Progress, #step2Progress {
    transition: all 0.5s ease-in-out;
}

/* Remove the absolute positioning to allow proper width display */
#step1Progress {
    position: relative;
    z-index: 2;
}

#step2Progress {
    position: relative;
    z-index: 1;
}

/* Ensure consistent indigo color that matches the form */
.bg-indigo-600 {
    background-color: #4f46e5;
}

#leadFormModal[style*="display: flex"] .modal-content {
    animation: growIn 0.4s ease;
}

@keyframes growIn {
    from { 
        transform: translate(-50%, -50%) scale(0.9); 
        opacity: 0; 
    }
    to { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 1; 
    }
}

.loading-dot {
    animation: loadingPulse 1.5s infinite ease-in-out;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingPulse {
    0%, 100% { transform: scale(0.5); opacity: 0.5; }
    50% { transform: scale(1); opacity: 1; }
}

/* IntlTelInput Customization */
.iti {
    width: 100%;
    display: block;
}

.iti__flag-container {
    display: flex !important;
}

/* Lead Form Button Styles */
#leadFormModal button {
    cursor: pointer;
}

/* Loading animations */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1.2s infinite linear;
}

/* New layout styles */
.hero-section {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3)), url('./images/main.png');
    background-size: cover;
    background-position: center;
    color: white;
}

.section-alt {
    background-color: #f0f7f0;
}

.countdown-container {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 0.3rem;
    margin: 0.3rem;
    min-width: 50px;
    text-align: center;
}

/* Chart Animation Styles */
@keyframes growHeight {
    from {
        height: 0;
    }

    to {
        height: var(--final-height);
    }
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.candlestick {
    transform-origin: bottom;
    --final-height: inherit;
    height: 0;
    animation: growHeight 1.5s ease forwards;
    animation-play-state: paused;
}

.trading-line path {
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    animation: drawLine 2s ease-in-out forwards;
    animation-play-state: paused;
}

/* Reset animations when not animated */
.chart-container:not(.animate) .candlestick {
    height: 0;
    opacity: 0;
}

.chart-container:not(.animate) .trading-line path {
    stroke-dashoffset: 240;
    opacity: 0;
}

/* Play animations when animated */
.chart-container.animate .candlestick {
    animation-play-state: running;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.chart-container.animate .trading-line path {
    animation-play-state: running;
    opacity: 1;
    transition: opacity 0.3s ease;
    animation-delay: 1s; /* Delay the line drawing until after bars start appearing */
}

.candlestick:nth-child(1) {
    animation-delay: 0.1s;
}

.candlestick:nth-child(2) {
    animation-delay: 0.2s;
}

.candlestick:nth-child(3) {
    animation-delay: 0.3s;
}

.candlestick:nth-child(4) {
    animation-delay: 0.4s;
}

.candlestick:nth-child(5) {
    animation-delay: 0.5s;
}

.candlestick:nth-child(6) {
    animation-delay: 0.6s;
}

.candlestick:nth-child(7) {
    animation-delay: 0.7s;
}

.candlestick:nth-child(8) {
    animation-delay: 0.8s;
}

.candlestick:nth-child(9) {
    animation-delay: 0.9s;
}

.candlestick:nth-child(10) {
    animation-delay: 1.0s;
}

.candlestick:nth-child(11) {
    animation-delay: 1.1s;
}

.candlestick:nth-child(12) {
    animation-delay: 1.2s;
}

.candlestick:nth-child(13) {
    animation-delay: 1.3s;
}

.candlestick:nth-child(14) {
    animation-delay: 1.4s;
}

.candlestick:nth-child(15) {
    animation-delay: 1.5s;
}

.candlestick:nth-child(16) {
    animation-delay: 1.6s;
}

.candlestick:nth-child(17) {
    animation-delay: 1.7s;
}

.candlestick:nth-child(18) {
    animation-delay: 1.8s;
}

/* Notification Popup Styles */
.notification-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: white;
    border-left: 4px solid #4f46e5;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    max-width: 350px;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease-out;
    animation: pulse 2s infinite;
}

/* Mobile styles for notification popup */
@media (max-width: 640px) {
    .notification-popup {
        bottom: 20px;
        right: 10px;
        left: 10px;
        max-width: none;
        width: auto;
        padding: 12px;
    }
    
    .notification-popup .avatar {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    .notification-popup .name {
        font-size: 14px;
    }
    
    .notification-popup .message {
        font-size: 12px;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

    50% {
        box-shadow: 0 15px 30px rgba(79, 70, 229, 0.3);
    }

    100% {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }
}

.notification-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-popup .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid #4f46e5;
}

.notification-popup .content {
    flex: 1;
}

.notification-popup .name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
    color: #1f2937;
}

.notification-popup .message {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.notification-popup .amount {
    color: #10b981;
    font-weight: 700;
    font-size: 14px;
}

.notification-popup .icon {
    width: 32px;
    height: 32px;
    background-color: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.notification-popup .close-notification {
    background: none;
    border: none;
    color: #9ca3af;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s, color 0.2s;
}

.notification-popup .close-notification:hover {
    background-color: #f3f4f6;
    color: #4b5563;
}

/* Countdown Timer Styles */
.countdown-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #4f46e5, #3730a3);
    color: white;
    padding: 15px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.5s ease-out;
}

.countdown-bar.show {
    transform: translateY(0);
}

.countdown-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.countdown-text {
    font-weight: 600;
    margin-right: 15px;
    font-size: 16px;
}

.countdown-display {
    display: flex;
    margin: 0 15px;
}

.countdown-unit {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 4px 8px;
    margin: 0 4px;
    font-weight: bold;
    font-size: 18px;
    min-width: 40px;
    text-align: center;
}

.countdown-separator {
    padding: 4px 0;
    font-weight: bold;
}

.countdown-cta {
    background-color: white;
    color: #4f46e5;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
    white-space: nowrap;
    margin-left: 15px;
}

.countdown-cta:hover {
    background-color: #f9fafb;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .countdown-content {
        flex-direction: column;
        padding: 10px;
    }
    
    .countdown-text {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .countdown-cta {
        margin-left: 0;
        margin-top: 8px;
    }
}

/* Add custom animation for loading dots */
@keyframes pulse-scale {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.loading-dot {
    animation: pulse-scale 1.2s infinite;
}

.loading-dot:nth-child(1) {
    animation-delay: 0s;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.4s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.8s;
}

/* Notification toggle switch styles */
#notificationToggle:checked + div {
    background-color: #4f46e5;
}

/* Toast notification styles */
#toastContainer {
    pointer-events: none;
}

#toastContainer > div {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    margin-bottom: 0.5rem;
    max-width: 300px;
}

/* Make notification bar responsive */
@media (max-width: 640px) {
    .notification-settings-bar {
        padding: 0.25rem 1rem;
    }
    
    .notification-settings-bar span {
        font-size: 0.75rem;
    }
}

/* Grid alignments for main content and sidebar */
@media (min-width: 1024px) {
    /* Grid base alignments */
    .grid.grid-cols-1.lg\:grid-cols-12 {
        align-items: flex-start;
    }
    
    /* Main content column */
    main.lg\:col-span-8 {
        display: flex;
        flex-direction: column;
    }
    
    /* Adjust the breadcrumbs */
    main.lg\:col-span-8 > .text-sm.text-gray-500.mb-4 {
        margin-bottom: 1rem;
    }
    
    /* Sidebar adjustments */
    .lg\:col-span-4 {
        display: flex;
        flex-direction: column;
        height: 100%; /* Ensure the container has height */
    }
    
    /* Sidebar inner container */
    .sidebar-content {
        margin-top: 40px; /* Hard-coded value that matches breadcrumbs + spacing */
    }
    
    /* Remove sticky positioning and overflow settings */
    .lg\:sticky {
        position: static;
    }
}

/* Breadcrumbs styling */
.text-sm.text-gray-500.mb-4.overflow-x-auto.whitespace-nowrap {
    margin-bottom: 1rem;
}

/* Add custom hover effect for sidebar CTA */
.sidebar-cta-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.sidebar-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3) !important;
}

.sidebar-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transition: all 0.6s ease;
    z-index: -1;
}

.sidebar-cta-button:hover::before {
    left: 100%;
}

.investment-calculator {
    margin: 0 0 1.5rem 0;
    padding: 0;
    border: none;
    box-shadow: none;
}

.investment-calculator .card {
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
}

/* Ensure consistent animation for all modals */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal.modal-open .modal-content {
    animation: modalFadeIn 0.3s ease forwards;
} 