/* Landing Page Main Styles */
:root {
    --primary-color: #dc3545;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
}

/* Section Spacing */
section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 12px 24px;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b7d 100%);
    border: none;
    color: white;
}

.btn-primary:hover, 
.btn-primary:focus {
    background: linear-gradient(135deg, #c82333 0%, #e55a6c 100%) !important;
    color: white !important;
    text-decoration: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.4) !important;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.8);
    color: white;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: white !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
}

.navbar-brand img {
    transition: var(--transition);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-indicator a {
    color: rgba(255,255,255,0.8);
    font-size: 1.5rem;
    text-decoration: none;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(220, 53, 69, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(220, 53, 69, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(220, 53, 69, 0.4);
    }
}

@keyframes pulseSecondary {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(23, 162, 184, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(23, 162, 184, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(23, 162, 184, 0.4);
    }
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: var(--transition);
    transform: translateY(0);
    background: rgba(255, 0, 0, 0.1); /* Temporary red background for testing */
    padding: 5px;
    border-radius: 10px;
}

.floating-cta.show {
    opacity: 1;
    visibility: visible;
}

/* Second floating CTA positioned above the first */
.floating-cta-secondary {
    bottom: 90px; /* Position above the first button */
}

.floating-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b7d 100%);
    color: white !important;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.4);
    transition: var(--transition);
    display: flex !important;
    align-items: center;
    white-space: nowrap;
    border: 2px solid white;
    min-width: 150px;
    justify-content: center;
}

.floating-btn:hover, 
.floating-btn:focus {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(220, 53, 69, 0.6);
    text-decoration: none;
}

/* Secondary floating button styling */
.floating-btn-secondary {
    background: linear-gradient(135deg, var(--info-color) 0%, #20c0db 100%) !important;
    box-shadow: 0 5px 20px rgba(23, 162, 184, 0.4);
    border: 2px solid white;
}

.floating-btn-secondary:hover, 
.floating-btn-secondary:focus {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(23, 162, 184, 0.6);
    text-decoration: none;
}

/* Testimonials */
.testimonials-section {
    background: var(--light-color);
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.testimonial-rating {
    color: var(--warning-color);
    margin-bottom: 1rem;
}

.testimonial-author {
    margin-top: 1rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.testimonial-author strong {
    display: block;
    color: var(--dark-color);
}

.testimonial-author span {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* AdSense Section */
.ad-section {
    padding: 2rem 0;
    background: #f5f5f5;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.8);
}

.footer h6 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

.social-links a {
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    margin-right: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-divider {
    border-color: rgba(255,255,255,0.2);
    margin: 2rem 0 1rem;
}

.footer-copyright {
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* Consistent Button Hover Styles */
.btn-primary, .cta-primary, .floating-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover, 
.btn-primary:focus,
.cta-primary:hover, 
.cta-primary:focus,
.floating-btn:hover, 
.floating-btn:focus {
    background: linear-gradient(135deg, #c82333 0%, #e55a6c 100%) !important;
    color: white !important;
    text-decoration: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.4) !important;
}

/* Remove Bootstrap's focus outline */
.btn:focus, .btn:active:focus, .btn.active:focus {
    outline: none !important;
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.4) !important;
}

/* Animation Classes */
.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-scale {
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .section-title {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .floating-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) {
    section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .floating-cta {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-cta-secondary {
        bottom: 75px; /* Adjust for mobile spacing */
    }
    
    .floating-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
}

@media (max-width: 575px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .floating-cta-secondary {
        bottom: 65px; /* Tighter spacing on very small screens */
    }
    
    .floating-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .floating-btn span {
        display: none;
    }
}
