/* Custom Properties */
:root {
    --custom-bg: #fdfcf6;
    --custom-primary: #467352;
    --custom-secondary: #a7dd9b;
    --custom-text: #2d2d2d;
    --custom-muted: #6c757d;
    --custom-light: #ffffff;
    --transition-base: all 0.3s ease;
    --box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
}

/* Override Bootstrap Variables */
.bg-primary {
    background-color: var(--custom-primary) !important;
}

.bg-secondary {
    background-color: var(--custom-secondary) !important;
}

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

.btn-primary {
    background-color: var(--custom-primary);
    border-color: var(--custom-primary);
    border-radius: 50px;
    font-weight: 500;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #3b6146;
    border-color: #3b6146;
}

.btn-outline-primary {
    color: var(--custom-primary);
    border-color: var(--custom-primary);
}

.btn-outline-primary:hover {
    background-color: var(--custom-primary);
    border-color: var(--custom-primary);
}

/* Force dark green styling for all success buttons - Override Bootstrap completely */
.btn-success,
#next-btn,
#submit-btn,
button.btn-success,
.btn.btn-success {
    background-color: #3b6146 !important;
    background-image: none !important;
    border-color: #3b6146 !important;
    color: white !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active,
#next-btn:hover,
#next-btn:focus,
#next-btn:active,
#submit-btn:hover,
#submit-btn:focus,
#submit-btn:active,
button.btn-success:hover,
button.btn-success:focus,
button.btn-success:active {
    background-color: #2d4d36 !important;
    background-image: none !important;
    border-color: #2d4d36 !important;
    color: white !important;
    box-shadow: none !important;
}

/* Disabled state for success buttons */
.btn-success:disabled,
#next-btn:disabled,
#submit-btn:disabled,
button.btn-success:disabled {
    opacity: 1.0 !important;
    background-color: #3b6146 !important;
    background-image: none !important;
    border-color: #3b6146 !important;
    color: white !important;
    cursor: not-allowed !important;
}

/* Button styling for test page */
#next-btn, #submit-btn {
    border-radius: 50px !important;
    padding-left: 1.75rem !important;
    padding-right: 1.75rem !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
}

/* Global Styles */
body {
    background-color: var(--custom-bg);
    color: var(--custom-text);
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

h2 {
    font-size: 2rem;
    color: var(--secondary-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: 25px !important; /* 15px corner radius for all buttons */
    cursor: pointer;
    transition: var(--transition), transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    color: white;
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn:disabled {
    opacity: 1.0 !important;  /* Remove opacity for disabled state */
    cursor: not-allowed;
}



/* Navigation */
.navbar {
    background-color: var(--custom-light);
    padding: 1rem 0;
    transition: var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
}

.navbar-nav {
    align-items: center; /* Align all navbar items vertically */
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-base);
}

.nav-link:hover {
    color: var(--custom-primary) !important;
}

/* Make the Take Test button aligned with nav links */
.navbar .btn {
    padding: 0.5rem 1.25rem !important;
    line-height: 1.5;
    margin-left: 0.5rem;
}

/* Hero Section */
.hero-section {
    padding: 6rem 0 2rem 0; /* Add top padding to compensate for fixed navbar */
    margin-bottom: 0;
    background-color: var(--custom-bg);
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13rem 0 0 0; /* Added top padding */
    margin: 0;
}

.floating-card {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    margin-bottom: 0;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

/* Section Spacing */
section {
    margin-bottom: 2rem;
    position: relative;
}

section:not(:first-child) {
    padding-top: 4rem; 
    padding-bottom: 4rem;
}

section:not(.hero-section) {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

section:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
}

/* Custom spacing utility classes */
.py-6 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

.py-8 {
    padding-top: 8rem !important;
    padding-bottom: 8rem !important;
}

.mt-6 {
    margin-top: 6rem !important;
}

.mb-6 {
    margin-bottom: 6rem !important;
}

/* Section headers */
.section-header {
    margin-bottom: 4rem;
}

/* Footer Styles */
footer {
    background-color: #1a1a1a !important;
    padding-top: 3rem !important;
    padding-bottom: 2rem !important;
}

footer .text-light-emphasis {
    color: rgba(255, 255, 255, 0.85) !important; /* Improved visibility */
    font-weight: 500;
}

footer h3 {
    color: #ffffff !important;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

footer h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 40px;
    background-color: var(--custom-primary);
}

footer a.text-light-emphasis {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: color 0.2s ease;
}

footer a.text-light-emphasis:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.footer-section {
    padding: 0 1.5rem;
}

footer .social-links a:hover {
    transform: translateY(-3px);
    color: #ffffff !important;
    background-color: var(--custom-primary);
}

footer .social-links a {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

footer hr.border-light-subtle {
    opacity: 0.2;
    margin-top: 2rem !important;
    margin-bottom: 1.5rem !important;
}

.py-8 {
    padding-top: 5rem !important;
    padding-bottom: 3rem !important;
}

/* Compact Footer for Test and Results Pages */
footer.compact-footer {
    padding: 2.5rem 0 1.5rem !important;
    background-color: #1a1a1a !important;
}

footer.compact-footer p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
}

footer.compact-footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Enhanced Results Page Features */

/* Fade-in animation for results cards */
.results-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: resultsAppear 0.8s ease forwards;
}

.results-fade-in:nth-child(1) { animation-delay: 0.1s; }
.results-fade-in:nth-child(2) { animation-delay: 0.3s; }
.results-fade-in:nth-child(3) { animation-delay: 0.5s; }
.results-fade-in:nth-child(4) { animation-delay: 0.7s; }

@keyframes resultsAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Improved trait bar animations */
.trait-bar {
    background: linear-gradient(135deg, var(--custom-primary) 0%, var(--custom-secondary) 50%, #82c26e 100%);
    box-shadow: 
        0 2px 4px rgba(70, 115, 82, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Pulse animation for high scores */
.trait-bar.high-score {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 4px rgba(70, 115, 82, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 4px 8px rgba(70, 115, 82, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

/* Enhanced button styling for results page */
.results-page .btn-primary {
    background: linear-gradient(135deg, var(--custom-primary) 0%, #4a7a57 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(70, 115, 82, 0.3);
    transition: all 0.3s ease;
}

.results-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 115, 82, 0.4);
    background: linear-gradient(135deg, #3b6146 0%, #4a7a57 100%);
}

/* Interactive elements feedback */
.trait-category:hover .trait-bar-container {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

.trait-category:hover .trait-label {
    color: var(--custom-primary);
    transition: color 0.2s ease;
}

/* Success state for purchase button */
.btn-purchased {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border-color: #28a745 !important;
    animation: purchaseSuccess 0.6s ease;
}

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

/* Loading state for buttons */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Image sizing control */
.personality-image {
    width: 80%;
    height: auto;
    margin: 0 auto;
}

/* Results Page Styling */
.results-icon {
    animation: float 6s ease-in-out infinite;
}

/* Enhanced Trait Bars */
.trait-category {
    margin-bottom: 2rem;
    padding: 0;
}

.trait-info {
    margin-bottom: 0.75rem;
}

.trait-label {
    font-size: 1rem;
    color: var(--custom-text);
    font-weight: 600;
}

.trait-bar-container {
    height: 12px;
    background-color: #f1f3f4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.trait-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--custom-primary) 0%, var(--custom-secondary) 100%);
    border-radius: 12px;
    transition: width 1s ease-in-out;
    box-shadow: 0 2px 4px rgba(70, 115, 82, 0.3);
    position: relative;
}

.trait-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 12px 12px 0 0;
}

.trait-value {
    font-size: 1rem;
    color: var(--custom-primary);
    font-weight: 700;
}

/* Animation for trait bars */
@keyframes expandBar {
    from {
        width: 0%;
    }
    to {
        width: var(--target-width);
    }
}

/* Card styling consistency */
.bg-white.rounded-4.shadow-sm {
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-white.rounded-4.shadow-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Responsive adjustments for results page */
@media (max-width: 768px) {
    .trait-category {
        margin-bottom: 1.5rem;
    }
    
    .trait-info {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }
    
    .trait-value {
        align-self: flex-end;
    }
    
    .results-icon {
        margin-top: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .bg-white.rounded-4.shadow-sm {
        padding: 2rem !important;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .trait-bar-container {
        height: 10px;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .feature-card, .testimonial-card {
        min-width: calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .feature-card, .testimonial-card {
        min-width: 100%;
    }
    
    .trait-category {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .trait-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .trait-bar-container {
        width: 100%;
        margin: 5px 0;
    }
    
    .trait-value {
        width: 100%;
        text-align: left;
        margin-top: 5px;
    }
}

/* Styling for test page questions */
.test-container h1 {
    font-size: 2.2rem; /* Increase font size for better readability */
}

/* Enhanced Test Container Styles */
.test-container {
    background-color: var(--custom-light);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    border-radius: 20px;
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    max-height: 85vh;
    overflow-y: auto;
}

.test-container p {
    font-size: 1.1rem;
    color: var(--custom-muted);
}

/* Question Styles */
.question {
    margin-bottom: 1.5rem;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--custom-text);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-align: center;
}

/* Answer Options Container */
.answer-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 550px;
    margin: 0 auto;
}

/* Enhanced Answer Option Styling */
.answer-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background-color: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--custom-text);
    margin: 0;
    user-select: none;
    position: relative;
    min-height: 50px;
    font-size: 0.95rem;
}

.answer-option:hover {
    background-color: #e8f5e8;
    border-color: var(--custom-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(71, 115, 82, 0.15);
}

.answer-option.selected {
    background-color: var(--custom-secondary);
    border-color: var(--custom-primary);
    color: var(--custom-primary);
    font-weight: 600;
}

.answer-option.selected:hover {
    background-color: var(--custom-secondary);
    border-color: var(--custom-primary);
}

/* Hide radio buttons */
.answer-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom radio indicator */
.answer-option::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    margin-right: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.answer-option:hover::before {
    border-color: var(--custom-primary);
}

.answer-option.selected::before {
    background-color: var(--custom-primary);
    border-color: var(--custom-primary);
    box-shadow: inset 0 0 0 3px white;
}

/* Progress Section Improvements */
.progress-section {
    margin-bottom: 2rem;
}

.progress {
    height: 10px;
    border-radius: 10px;
    background-color: #f1f3f4;
    overflow: hidden;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.4s ease;
}

.progress-text {
    font-size: 0.95rem;
}

.estimated-time {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--custom-muted);
}

/* Navigation Buttons Improvements */
.navigation-buttons {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.btn-outline-secondary {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-width: 2px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Contact Section Styling */
.contact-info {
    padding: 1rem 0;
}

.contact-item {
    padding: 0.75rem 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background-color: rgba(70, 115, 82, 0.05);
    transform: translateX(5px);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(70, 115, 82, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.1rem;
    color: var(--custom-primary);
}

/* Contact Form Styling */
.contact-form .form-floating {
    margin-bottom: 0;
}

.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.95rem;
    padding: 0.85rem 0.75rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
    min-height: 48px;
}

.contact-form .form-control:focus {
    border-color: var(--custom-primary);
    box-shadow: 0 0 0 0.2rem rgba(70, 115, 82, 0.15);
    background-color: white;
}

.contact-form .form-floating > label {
    color: var(--custom-muted);
    font-weight: 500;
}

.contact-form .form-control:focus ~ label,
.contact-form .form-control:not(:placeholder-shown) ~ label {
    color: var(--custom-primary);
}

/* Accent underline for section headers */
.underline-accent {
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--custom-primary) 0%, var(--custom-secondary) 100%);
    border-radius: 2px;
}

/* Contact form button enhancement */
.contact-form .btn-primary {
    background: linear-gradient(135deg, var(--custom-primary) 0%, #4a7a57 100%);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(70, 115, 82, 0.3);
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 115, 82, 0.4);
    background: linear-gradient(135deg, #3b6146 0%, #4a7a57 100%);
}

/* Form validation states */
.contact-form .form-control.is-valid {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

.contact-form .form-control.is-invalid {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

/* Contact section typography adjustments */
.contact-item h6 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--custom-text);
}

.contact-item p.small {
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Ensure contact info and form have similar visual weight */
.contact-form .form-floating > label {
    font-size: 0.9rem;
}

/* Reduce the gap between form fields */
.contact-form .row.g-3 {
    --bs-gutter-y: 1rem;
}

/* Optimize contact section card spacing */
#contact .bg-white.rounded-4 {
    padding: 2.5rem 2rem !important;
}

@media (max-width: 768px) {
    #contact .bg-white.rounded-4 {
        padding: 2rem 1.5rem !important;
    }
}

/* Responsive adjustments for contact section */
@media (max-width: 768px) {
    .contact-info {
        margin-bottom: 2rem;
    }
    
    .contact-item {
        margin-bottom: 1rem;
    }
    
    .contact-form .btn-primary {
        padding: 1rem 2rem;
    }
}

@media (max-width: 576px) {
    .contact-item {
        padding: 0.5rem 0;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
    }
    
    .contact-icon i {
        font-size: 1rem;
    }
}

/* Responsive Design for Test Page */
@media (max-width: 768px) {
    .test-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .question-text {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .answer-option {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        min-height: 55px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .navigation-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .answer-option {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-height: 50px;
    }
    
    .answer-option::before {
        width: 18px;
        height: 18px;
        margin-right: 0.75rem;
    }
}

/* Button Transitions */
.btn {
    transition: all 0.3s ease;
}

@media print {
    .no-print {
        display: none !important;
    }
    
    .trait-bar-container {
        border: 1px solid #ddd;
    }
    
    .trait-bar {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* CSS Override Section - Ensure custom button styling takes precedence */
.test-container .btn-success,
.test-container #next-btn,
.test-container #submit-btn {
    background: #3b6146 !important;
    border: 1px solid #3b6146 !important;
    color: #ffffff !important;
}

.test-container .btn-success:hover,
.test-container #next-btn:hover,
.test-container #submit-btn:hover {
    background: #2d4d36 !important;
    border-color: #2d4d36 !important;
}

.test-container .btn-success:disabled,
.test-container #next-btn:disabled,
.test-container #submit-btn:disabled {
    background: #3b6146 !important;
    background-color: #3b6146 !important;
    border-color: #3b6146 !important;
    color: white !important;
    opacity: 1.0 !important;
    filter: none !important;
    -webkit-filter: none !important;
}

/* Additional Bootstrap override for disabled buttons */
button:disabled,
.btn:disabled,
.btn-success:disabled,
#next-btn:disabled,
#submit-btn:disabled {
    opacity: 1.0 !important;
    filter: none !important;
    -webkit-filter: none !important;
    background-color: #3b6146 !important;
    border-color: #3b6146 !important;
    color: white !important;
}

/* Full-screen sections and smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Full-screen section base styles */
.full-screen-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Hero section - full screen */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

/* About section - full screen */
#about {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

/* Features section - full screen */
#features {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

/* Testimonials section - full screen */
#testimonials {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

/* Contact section - full screen */
#contact {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

/* Navbar smooth scrolling enhancement */
.navbar-nav .nav-link {
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--custom-primary) !important;
}

.navbar-nav .nav-link.active {
    color: var(--custom-primary) !important;
    font-weight: 500;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--custom-primary);
    border-radius: 1px;
}

/* Enhanced navbar scrolled state */
.navbar.scrolled {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

/* Section content wrapper to ensure proper centering */
.section-content {
    width: 100%;
}

/* Responsive adjustments for full-screen sections */
@media (max-width: 768px) {
    .full-screen-section,
    #home, #about, #features, #testimonials, #contact {
        min-height: auto;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    #home {
        min-height: 100vh;
        padding-top: 6rem;
    }
}

/* Offset for fixed navbar when scrolling to sections */
section {
    scroll-margin-top: 80px;
}

/* Enhanced full-screen section styling */
.full-screen-section .section-header {
    animation: fadeInUp 0.8s ease-out;
}

.full-screen-section .feature-card,
.full-screen-section .testimonial-card {
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.full-screen-section .feature-card:nth-child(2) {
    animation-delay: 0.4s;
}

.full-screen-section .feature-card:nth-child(3) {
    animation-delay: 0.6s;
}

/* Fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced section spacing for full-screen layout */
.full-screen-section .container {
    max-width: 1200px;
}

/* Improved testimonials grid for full-screen */
#testimonials .row:first-child .col-md-4:nth-child(1) .testimonial-card {
    animation-delay: 0.2s;
}

#testimonials .row:first-child .col-md-4:nth-child(2) .testimonial-card {
    animation-delay: 0.4s;
}

#testimonials .row:first-child .col-md-4:nth-child(3) .testimonial-card {
    animation-delay: 0.6s;
}

#testimonials .row:nth-child(2) .col-md-4:nth-child(1) .testimonial-card {
    animation-delay: 0.8s;
}

#testimonials .row:nth-child(2) .col-md-4:nth-child(2) .testimonial-card {
    animation-delay: 1.0s;
}

#testimonials .row:nth-child(2) .col-md-4:nth-child(3) .testimonial-card {
    animation-delay: 1.2s;
}

/* Contact section animations */
#contact .contact-info {
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

#contact .contact-form {
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* About section content animation */
#about .bg-white {
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Hero content enhanced animations - FINAL VERSION */
.hero-content {
    padding: 2rem 0 0 0;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0 0 0;
    margin: 0;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

/* Scroll indicator for first section */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-indicator a {
    color: var(--custom-primary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.scroll-indicator a:hover {
    color: var(--custom-primary);
    transform: scale(1.2);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Test page background image styling */
.test-page-bg {
    background-image: url('images/converted.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

/* Override the bg-light class for test page when background image is used */
body.test-page-bg.bg-light {
    background-color: transparent !important;
}

/* Add slight overlay to ensure text readability */
.test-page-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(253, 252, 246, 0.2); /* Reduced opacity for better visibility */
    z-index: -1;
    pointer-events: none;
}

/* Parallax scrolling for Key Features section */
#features {
    position: relative;
    background-image: url('images/converted.webp');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

#features .section-content {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.85); /* Slight overlay for readability */
    padding: 2rem;
    border-radius: 10px;
}
