:root {
    --elite-green: #28a745;
    --elite-green-dark: #218838;
    --elite-green-light: #34ce57;
}

.navbar {
    background-color: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    padding: 0.25rem 0;
}

.navbar-brand img {
    border-radius: 8px;
    object-fit: contain;
    transition: transform 0.2s ease;
    background: white;
    padding: 4px;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.texas-text {
    font-size: 1.35rem;
    font-weight: 300;
    color: #2c3e50 !important;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-family: 'Arial', sans-serif;
}

.tax-lady-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e91e63 !important;
    font-style: italic;
    letter-spacing: 1px;
    font-family: 'Georgia', serif;
    margin-top: -4px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.nav-link {
    color: var(--elite-green) !important;
}

.nav-link:hover {
    color: var(--elite-green-dark) !important;
}

/* Custom hamburger menu button */
.navbar-toggler {
    border: 2px solid var(--elite-green) !important;
    background-color: white !important;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25) !important;
}

/* Custom hamburger icon lines */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2328a745' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Enable smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Custom styles to complement Bootstrap theme */
.hero-section {
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background-color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none; /* Allow clicks to pass through */
}

.hero-section .bg-dark {
    position: relative;
    z-index: 1; /* Ensure content stays above the overlay */
}

.card {
    transition: transform 0.3s ease;
    border-color: rgba(40, 167, 69, 0.1);
}

.card:hover {
    transform: translateY(-5px);
}

.features-section .fas {
    color: var(--bs-primary);
}

.testimonials-section {
    background-color: var(--bs-dark);
}

.contact-section {
    background-color: var(--bs-dark);
}

.footer {
    background-color: var(--bs-dark);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
    }
    
    .navbar-brand img {
        height: 35px !important;
    }
    
    .texas-text {
        font-size: 0.9rem !important;
        letter-spacing: 2px;
    }
    
    .tax-lady-text {
        font-size: 1.1rem !important;
    }
}

.calculator-section {
    background-color: var(--bs-dark);
}

.calculator-section .card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#estimatedCost {
    transition: color 0.3s ease;
}

#estimatedCost.highlight {
    color: var(--bs-warning);
}

.calculator-section input[type="number"] {
    text-align: right;
}

.calculator-section .form-label {
    font-weight: 500;
}

.calculator-section .card.bg-primary {
    transition: transform 0.3s ease;
}

.calculator-section .card.bg-primary:hover {
    transform: scale(1.02);
}


.tax-brackets-section {
    background-color: var(--bs-dark);
}

.tax-brackets-section .card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tax-brackets-section canvas {
    min-height: 300px;
}

#effective_rate {
    transition: color 0.3s ease;
}

.tax-brackets-section .card.bg-primary {
    transition: transform 0.3s ease;
}

.tax-brackets-section .card.bg-primary:hover {
    transform: scale(1.02);
}

.btn-primary {
    background-color: var(--elite-green) !important;
    border-color: var(--elite-green) !important;
}

.btn-primary:hover {
    background-color: var(--elite-green-dark) !important;
    border-color: var(--elite-green-dark) !important;
}

.text-primary {
    color: var(--elite-green) !important;
}

.bg-primary {
    background-color: var(--elite-green) !important;
}
/* Achievement System Styles */
.achievement-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    border-color: var(--elite-green);
}

.achievement-earned {
    animation: achievementEarned 0.5s ease-out;
}

.achievement-icon {
    transition: transform 0.3s ease;
}

.achievement-icon.bounce {
    animation: iconBounce 0.5s ease infinite;
}

.points-updated {
    animation: pointsUpdate 0.5s ease;
}

@keyframes achievementEarned {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes pointsUpdate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        color: var(--elite-green);
    }
    100% {
        transform: scale(1);
    }
}

.achievement-details {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.achievement-card:hover .achievement-details {
    opacity: 1;
    transform: translateY(0);
}

.reward-text {
    color: var(--elite-green);
    font-size: 0.85rem;
}

/* Countdown Timer Styles */
.countdown-container {
    padding: 1.5rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.03);
}

.countdown-item {
    padding: 1rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
}

.countdown-item .display-4 {
    font-weight: 600;
    color: var(--elite-green);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.countdown-item small {
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#refundProgress {
    background-color: var(--elite-green);
    transition: width 0.5s ease-in-out;
}