/*
Pipsmash Custom Stylesheet - V6
*/

/* CSS Variables for Pipsmash Color Palette */
:root {
  --pipsmash-dark-green: #1E463A;
  --pipsmash-green: #25a163;
  --pipsmash-gold: #d4a04c;
  --pipsmash-light: #f8f9fa;
  --pipsmash-dark-text: #343a40;
}
/* get started phone number input placeholder 
#phoneNumber::placeholder{
	color:#FFF;
	
	}
#phoneNumber::-moz-placeholder{
	color:#FFF;
	opacity:1;
	
	}
#phoneNumber::-webkit-input-placeholder{
	color:#FFF;
	
	}
#phoneNumber:-ms-input-placeholder{
	color:#FFF;
	
	}*/
/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--pipsmash-light);
  color: var(--pipsmash-dark-text);
}

.container {
  max-width: 960px;
}

/* Translucent Site Header */
.site-header {
  background-color: rgba(30, 70, 58, 0.9); /* Dark Green */
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.site-header a {
  color: #e2e2e2;
  transition: color .15s ease-in-out;
}
.site-header a:hover {
  color: var(--pipsmash-gold);
  text-decoration: none;
}

/* Video Background */
.video-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}
#bgvid {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(30, 70, 58, 0.6), rgba(37, 161, 99, 0.5), rgba(212, 160, 76, 0.4), rgba(30, 70, 58, 0.6));
    background-size: 400% 400%;
    animation: gradient-shimmer 15s ease infinite;
    z-index: -1;
}
@keyframes gradient-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero Section */
.hero-section {
  min-height: 60vh;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.hero-content {
  z-index: 10;
}

/* Hero Content Animations */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-headline-animated {
    animation: fade-in-up 1s ease-out forwards;
}
.hero-subheadline-animated {
    opacity: 0;
    animation: fade-in-up 1s 0.3s ease-out forwards;
}
.hero-button-animated {
    opacity: 0;
    animation: fade-in-up 1s 0.6s ease-out forwards;
}

.btn-custom-gold {
    background-color: var(--pipsmash-gold);
    color: white;
    border: 1px solid var(--pipsmash-gold);
    transition: all 0.3s ease-in-out;
}
.btn-custom-gold:hover {
    background-color: transparent;
    color: var(--pipsmash-gold);
    border-color: var(--pipsmash-gold);
    transform: translateY(-3px);
}

/* Custom Feature Section Backgrounds */
.bg-custom-dark { background-color: var(--pipsmash-dark-green); }
.bg-custom-green { background-color: var(--pipsmash-green); }


/* Feature Box & Shared Chart styles */
.feature-chart-box {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 21px 21px 0 0;
    width: 80%;
    height: 150px;
    margin: 2rem auto 0 auto;
    padding: 1rem;
    backdrop-filter: blur(5px);
}
.chart-svg {
    width: 100%;
    height: 100%;
}

/* --- FEATURE: MARKET ANALYSIS --- */
.chart-path-1 {
    stroke: var(--pipsmash-gold);
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: draw-chart 4s ease-in-out infinite alternate;
}
@keyframes draw-chart {
    to { stroke-dashoffset: 0; }
}

/* --- FEATURE: SIGNAL SERVICE --- */
.scrolling-signals-container {
    height: 100%;
    overflow: hidden;
    font-family: monospace;
    font-size: 3px;
}
.scrolling-signals {
    animation: scroll-signals 10s linear infinite;
}
.signal-item {
    padding: 2px 4px;
    margin-bottom: 2px;
    border-radius: 3px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.signal-item.buy { background-color: rgba(37, 161, 99, 0.7); }
.signal-item.sell { background-color: rgba(220, 53, 69, 0.7); }
.signal-item span {
    font-weight: bold;
    color: white;
    padding: 1px 3px;
    border-radius: 2px;
    margin-right: 4px;
}
.signal-item.buy span { background-color: var(--pipsmash-green); }
.signal-item.sell span { background-color: #dc3545; }
@keyframes scroll-signals {
    from { transform: translateY(0%); }
    to { transform: translateY(-50%); }
}


/* --- FEATURE: TRADING TOOLS --- */
.chart-bar-1, .chart-bar-2, .chart-bar-3, .chart-bar-4 {
    fill: var(--pipsmash-dark-green);
    animation: rise-bar 3s ease-in-out infinite alternate;
    transform-origin: bottom;
}
.chart-bar-2 { animation-delay: 0.3s; }
.chart-bar-3 { animation-delay: 0.6s; }
.chart-bar-4 { animation-delay: 0.9s; }
@keyframes rise-bar {
    from { transform: scaleY(0.1); }
    to { transform: scaleY(1); }
}


/* --- REVISED: AI ASSISTANT --- */
.user-avatar-text {
    font-family: sans-serif;
    font-size: 24px;
    font-weight: bold;
    fill: #fff;
    text-anchor: middle;
    dominant-baseline: central;
}
.user-bubble {
    fill: #f1f3f5;
}
.bot-bubble {
    fill: var(--pipsmash-dark-green);
}
.chat-text {
    font-family: sans-serif;
    font-size: 10px;
    fill: #343a40;
}
#bot-answer-text {
    fill: #fff;
}
.chat-message {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}
.chat-message.visible {
    opacity: 1;
}

/* Blinking cursor for typing effect */
.typing-cursor {
    font-size: 10px;
    fill: #343a40;
    animation: blink 1s step-end infinite;
}
#bot-answer-text .typing-cursor {
    fill: #fff;
}
@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}


/* --- How It Works Section --- */
.how-it-works-section {
    background-color: #ffffff;
}
.step-icon {
    color: var(--pipsmash-green);
}
.step-col {
    position: relative;
}
@media (min-width: 768px) {
    .step-col:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50px;
        right: -25px;
        width: 50px;
        height: 2px;
        background-image: linear-gradient(to right, var(--pipsmash-green) 50%, transparent 50%);
        background-size: 10px 2px;
        background-repeat: repeat-x;
        z-index: -1;
    }
}

/* Testimonials Section */
.testimonials-section { padding: 6rem 0; }
.testimonial-card {
    border: none; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-10px); box-shadow: 0 15px 40px rgba(30, 70, 58, 0.2);
}
.testimonial-rating { color: var(--pipsmash-gold); margin-bottom: 1rem; }
.testimonial-footer { background-color: transparent; border-top: 1px solid #eee; }

/* Call To Action (CTA) Section */
.cta-section {
    background-color: var(--pipsmash-dark-green);
    background-image: linear-gradient(315deg, var(--pipsmash-dark-green) 0%, var(--pipsmash-green) 74%);
    position: relative; overflow: hidden;
}

/* Animated Form & Validation */
.form-floating-group { position: relative; }
.form-control-animated {
    width: 100%; border: 0; border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent; color: white; font-size: 1.2rem;
    padding: 10px 0; transition: border-color 0.3s;
}
.form-control-animated:focus { outline: 0; }
.form-control-animated ~ label {
    position: absolute; top: 10px; left: 0; color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease; pointer-events: none;
}
.form-control-animated:focus ~ label, .form-control-animated:valid ~ label  {
    top: -20px; font-size: 0.9rem; color: var(--pipsmash-gold);
}
.invalid-feedback-custom, .valid-feedback-custom {
    display: none; width: 100%; margin-top: .25rem; font-size: .875em; text-align: left;
}
.invalid-feedback-custom { color: #ffc4c4; }
.valid-feedback-custom { color: #c4ffc4; }
.form-control-animated.is-invalid { border-bottom-color: #ff8a8a; }
.form-control-animated.is-invalid ~ .invalid-feedback-custom { display: block; }
.form-control-animated.is-valid { border-bottom-color: #8aff8a; }
.form-control-animated.is-valid ~ .valid-feedback-custom { display: block; }

/* Modal Customization */
.modal-content { border-radius: 15px; border: none; }
.modal-header { background-color: var(--pipsmash-dark-green); color: white; border-bottom: 3px solid var(--pipsmash-gold); }
.btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

/* Responsive Utilities */
.flex-equal > * { flex: 1; }
@media (min-width: 768px) { .flex-md-equal > * { flex: 1; } }