/* AB House Projects Landing Page Styles */
/* Superhero Theme Compliant Styling */

:root {
    --primary-color: #df691a;
    --secondary-color: #fd7e14;
    --accent-color: #ffc107;
    --success-color: #28a745;
    --dark-color: #495057;
    --light-color: #f8f9fa;
    --body-bg: #2b3035;
    --card-bg: #3a3f44;
    --text-light: #ffffff;
    --text-muted: #e2e6ea; /* Enhanced from #ced4da for better contrast */
    
    /* RGB color variables for rgba() functions */
    --primary-color-rgb: 223, 105, 26;
    --secondary-color-rgb: 253, 126, 20;
    --accent-color-rgb: 255, 193, 7;
    --card-bg-rgb: 58, 63, 68;
    --border-color-rgb: 73, 80, 87;
    --text-light-rgb: 255, 255, 255;
    --text-muted-rgb: 226, 230, 234;
}

/* Accessibility Enhancement: Text contrast improvements */
.accessibility-enhanced {
    --text-muted: #f1f3f4; /* Even higher contrast when needed */
}

/* Enhanced text readability with subtle shadows */
.hero-title,
.hero-subtitle,
.section-title,
.card-title,
.trust-label {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Ensure muted text has adequate contrast */
.text-muted,
.hero-subtitle,
.service-card p,
.trust-label {
    color: var(--text-muted);
    font-weight: 500; /* Slightly bolder for better readability */
}

/* Global Styles */
body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background-color: var(--body-bg);
    color: var(--text-light);
    margin: 0;
    padding: 0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--body-bg) 0%, var(--dark-color) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15px 15px, rgba(223, 105, 26, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 45px 45px, rgba(253, 126, 20, 0.06) 1px, transparent 1px),
        linear-gradient(45deg, transparent 24px, rgba(223, 105, 26, 0.04) 25px, rgba(223, 105, 26, 0.04) 26px, transparent 27px),
        linear-gradient(-45deg, transparent 24px, rgba(253, 126, 20, 0.03) 25px, rgba(253, 126, 20, 0.03) 26px, transparent 27px);
    background-size: 30px 30px, 60px 60px, 50px 50px, 50px 50px;
    background-position: 0 0, 15px 15px, 0 0, 25px 25px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.1;
    color: var(--text-light);
}

.hero-location {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-top: 1rem;
    font-style: italic;
}

.hero-description {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 100%;
    line-height: 1.6;
}

.hero-buttons .btn {
    padding: 1.25rem 3rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.hero-image {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-svg {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

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

/* Section Styling */
.services-section,
.portfolio-section,
.journey-section,
.platform-section {
    min-height: 100vh;
    padding: 8rem 0;
    position: relative;
    display: flex;
    align-items: center;
}

.services-section {
    background: linear-gradient(45deg, var(--card-bg) 0%, var(--body-bg) 100%);
    position: relative;
    overflow: hidden;
}

/* Ensure all section containers are above background patterns */
.services-section .container,
.journey-section .container,
.platform-section .container,
.team-section .container,
.testimonials-section .container,
.portfolio-section .container,
.footer-section .container {
    position: relative;
    z-index: 2;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15px 15px, rgba(223, 105, 26, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 45px 45px, rgba(253, 126, 20, 0.06) 1px, transparent 1px),
        linear-gradient(45deg, transparent 24px, rgba(223, 105, 26, 0.04) 25px, rgba(223, 105, 26, 0.04) 26px, transparent 27px),
        linear-gradient(-45deg, transparent 24px, rgba(253, 126, 20, 0.03) 25px, rgba(253, 126, 20, 0.03) 26px, transparent 27px);
    background-size: 30px 30px, 60px 60px, 50px 50px, 50px 50px;
    background-position: 0 0, 15px 15px, 0 0, 25px 25px;
    z-index: 1;
}

.portfolio-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--card-bg) 100%);
    position: relative;
    overflow: hidden;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15px 15px, rgba(223, 105, 26, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 45px 45px, rgba(253, 126, 20, 0.06) 1px, transparent 1px),
        linear-gradient(45deg, transparent 24px, rgba(223, 105, 26, 0.04) 25px, rgba(223, 105, 26, 0.04) 26px, transparent 27px),
        linear-gradient(-45deg, transparent 24px, rgba(253, 126, 20, 0.03) 25px, rgba(253, 126, 20, 0.03) 26px, transparent 27px);
    background-size: 30px 30px, 60px 60px, 50px 50px, 50px 50px;
    background-position: 0 0, 15px 15px, 0 0, 25px 25px;
    z-index: 1;
}

.journey-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--card-bg) 100%);
    position: relative;
    overflow: hidden;
}

.journey-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15px 15px, rgba(223, 105, 26, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 45px 45px, rgba(253, 126, 20, 0.06) 1px, transparent 1px),
        linear-gradient(45deg, transparent 24px, rgba(223, 105, 26, 0.04) 25px, rgba(223, 105, 26, 0.04) 26px, transparent 27px),
        linear-gradient(-45deg, transparent 24px, rgba(253, 126, 20, 0.03) 25px, rgba(253, 126, 20, 0.03) 26px, transparent 27px);
    background-size: 30px 30px, 60px 60px, 50px 50px, 50px 50px;
    background-position: 0 0, 15px 15px, 0 0, 25px 25px;
    z-index: 1;
}

.platform-section {
    background: linear-gradient(45deg, var(--body-bg) 0%, var(--dark-color) 100%);
    position: relative;
    overflow: hidden;
}

.platform-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15px 15px, rgba(223, 105, 26, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 45px 45px, rgba(253, 126, 20, 0.06) 1px, transparent 1px),
        linear-gradient(45deg, transparent 24px, rgba(223, 105, 26, 0.04) 25px, rgba(223, 105, 26, 0.04) 26px, transparent 27px),
        linear-gradient(-45deg, transparent 24px, rgba(253, 126, 20, 0.03) 25px, rgba(253, 126, 20, 0.03) 26px, transparent 27px);
    background-size: 30px 30px, 60px 60px, 50px 50px, 50px 50px;
    background-position: 0 0, 15px 15px, 0 0, 25px 25px;
    z-index: 1;
}

.section-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-light);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.section-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Service Cards */
.service-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
}

.service-icon svg {
    width: 50px;
    height: 50px;
}

.service-card h4 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); /* Enhanced readability */
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1.1rem;
    font-weight: 500; /* Slightly bolder for better contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Subtle shadow for readability */
}

/* Portfolio Cards */
.portfolio-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    min-height: 400px;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 20px 20px 0 0;
}

.portfolio-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 20px 20px 0 0;
}

.portfolio-card:hover .portfolio-image svg {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h5 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.portfolio-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Contact Section */
.contact-item {
    padding: 2.5rem 1.5rem;
}

.contact-icon {
    margin-bottom: 1.5rem;
}

.contact-icon i {
    font-size: 3rem !important;
}

.contact-item h5 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.contact-item p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-item a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

/* Footer Section */
.footer-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a1d20 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0;
    padding: 6rem 0 3rem 0;
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15px 15px, rgba(223, 105, 26, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 45px 45px, rgba(253, 126, 20, 0.06) 1px, transparent 1px),
        linear-gradient(45deg, transparent 24px, rgba(223, 105, 26, 0.04) 25px, rgba(223, 105, 26, 0.04) 26px, transparent 27px),
        linear-gradient(-45deg, transparent 24px, rgba(253, 126, 20, 0.03) 25px, rgba(253, 126, 20, 0.03) 26px, transparent 27px);
    background-size: 30px 30px, 60px 60px, 50px 50px, 50px 50px;
    background-position: 0 0, 15px 15px, 0 0, 25px 25px;
    z-index: 1;
}

.footer-brand h4 {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(223, 105, 26, 0.3);
    color: white;
}

.footer-links h5 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 1.4rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
    font-size: 1.1rem;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    transform: translateX(8px);
}

.footer-links ul li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links ul li a:hover::before {
    width: 100%;
}

.footer-contact h5 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 1.4rem;
}

.contact-info-item {
    padding: 1rem 0;
}

.contact-info-item i {
    font-size: 1.5rem;
    width: 40px;
    flex-shrink: 0;
}

.contact-info-item strong {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-info-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.contact-info-item a:hover {
    color: var(--secondary-color);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 3rem 0 2rem 0;
}

.copyright {
    color: var(--text-muted);
    font-size: 1rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* Button Overrides for Superhero Theme */

/* Global button rounded corners for modern appearance */
.btn, 
button, 
.accordion-button,
input[type="submit"],
input[type="button"] {
    border-radius: 12px !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    transform: translateY(-2px);
}

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

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

.btn-outline-light {
    border-color: var(--text-light);
    color: var(--text-light);
}

.btn-outline-light:hover {
    background-color: var(--text-light);
    color: var(--dark-color);
}

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

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-location {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
        max-width: 100%;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .service-card {
        padding: 2.5rem 2rem;
        min-height: 320px;
    }
    
    .service-icon {
        width: 90px;
        height: 90px;
    }
    
    .service-icon svg {
        width: 45px;
        height: 45px;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1.5rem;
        padding: 1rem 2rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .services-section,
    .portfolio-section,
    .contact-section {
        min-height: auto;
        padding: 6rem 0;
    }
    
    .portfolio-image {
        height: 220px;
    }
    
    .contact-icon i {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-location {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        min-height: 300px;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
    }
    
    .service-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .portfolio-image {
        height: 200px;
    }
    
    .contact-icon i {
        font-size: 2rem !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.service-card:focus,
.portfolio-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card,
    .portfolio-card {
        border: 2px solid var(--text-light);
    }
}

/* Journey Section Styling */
.journey-section {
    overflow: hidden;
}

.journey-content .section-title {
    color: var(--text-color);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.journey-feature {
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.journey-feature:hover {
    background: rgba(223, 105, 26, 0.1);
    transform: translateX(10px);
}

.journey-feature .feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.journey-feature .feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.journey-feature h5 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.journey-svg {
    width: 100%;
    height: 400px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

/* Construction Animation */
.construction-phase-1 {
    animation: buildFoundation 2s ease-in-out;
}

.construction-phase-2 {
    animation: buildWalls 2s ease-in-out 0.5s both;
}

.construction-phase-3 {
    animation: buildRoof 2s ease-in-out 1s both;
}

.construction-phase-4 {
    animation: addDetails 2s ease-in-out 1.5s both;
}

.construction-phase-5 {
    animation: addLandscaping 2s ease-in-out 2s both;
}

.crane-animation {
    animation: craneSway 3s ease-in-out infinite;
}

.progress-dots circle {
    animation: progressPulse 1s ease-in-out infinite;
}

.progress-dot-1 { animation-delay: 0s; }
.progress-dot-2 { animation-delay: 0.2s; }
.progress-dot-3 { animation-delay: 0.4s; }
.progress-dot-4 { animation-delay: 0.6s; }
.progress-dot-5 { animation-delay: 0.8s; }

@keyframes buildFoundation {
    from { opacity: 0.01; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes buildWalls {
    from { opacity: 0.01; transform: scaleY(0); }
    to { opacity: 1; transform: scaleY(1); }
}

@keyframes buildRoof {
    from { opacity: 0.01; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes addDetails {
    from { opacity: 0.01; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes addLandscaping {
    from { opacity: 0.01; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes craneSway {
    0%, 100% { transform: rotate(-1deg); }
    50% { transform: rotate(1deg); }
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* Platform Section Styling */
.platform-section {
    position: relative;
}

.platform-feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.platform-feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(223, 105, 26, 0.2);
}

.platform-feature-card .feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.platform-feature-card .feature-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.platform-feature-card h5 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.platform-highlight {
    margin-top: 3rem;
}

.highlight-card {
    background: var(--dark-color);
    border: 3px solid var(--primary-color);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 15px 40px rgba(223, 105, 26, 0.3);
    position: relative;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(223, 105, 26, 0.1), rgba(253, 126, 20, 0.1));
    border-radius: 17px;
    z-index: 1;
}

.highlight-card * {
    position: relative;
    z-index: 2;
}

.highlight-card h5 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.highlight-card p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.feature-badges .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    margin: 0.2rem;
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.feature-badges .badge:hover {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
    text-shadow: none;
}

.platform-svg {
    width: 100%;
    height: 450px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

/* Platform Animations */
.kanban-column-1,
.kanban-column-2,
.kanban-column-3 {
    animation: slideInUp 1s ease-out;
}

.kanban-column-2 { animation-delay: 0.2s; }
.kanban-column-3 { animation-delay: 0.4s; }

.kanban-card-1,
.kanban-card-2,
.kanban-card-3,
.kanban-card-4 {
    animation: cardSlideIn 1s ease-out;
}

.kanban-card-2 { animation-delay: 0.3s; }
.kanban-card-3 { animation-delay: 0.6s; }
.kanban-card-4 { animation-delay: 0.9s; }

.floating-icon-1,
.floating-icon-2 {
    animation: float 3s ease-in-out infinite;
}

.floating-icon-2 { animation-delay: 1.5s; }

@keyframes slideInUp {
    from {
        opacity: 0.01;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardSlideIn {
    from {
        opacity: 0.01;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive updates for new sections */
@media (max-width: 768px) {
    .services-section,
    .portfolio-section,
    .journey-section,
    .platform-section {
        min-height: auto;
        padding: 6rem 0;
    }
    
    .journey-content .section-title {
        font-size: 2.5rem;
    }
    
    .journey-svg {
        height: 300px;
    }
    
    .platform-svg {
        height: 350px;
    }
    
    .platform-feature-card {
        margin-bottom: 2rem;
    }
    
    .highlight-card {
        padding: 2rem;
    }
    
    .back-to-top-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    opacity: 0.01;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(223, 105, 26, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(223, 105, 26, 0.4);
}

.back-to-top-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(223, 105, 26, 0.3);
}

.back-to-top-btn:focus {
    outline: 3px solid rgba(223, 105, 26, 0.5);
    outline-offset: 2px;
}

/* Back to Top Button Animation */
@keyframes bounceIn {
    0% {
        opacity: 0.01;
        transform: translateY(20px) scale(0.8);
    }
    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.back-to-top-btn.bounce-in {
    animation: bounceIn 0.5s ease-out;
}

/* =============================================================================
   Team Section Styles
   ============================================================================= */

.team-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--card-bg) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15px 15px, rgba(223, 105, 26, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 45px 45px, rgba(253, 126, 20, 0.06) 1px, transparent 1px),
        linear-gradient(45deg, transparent 24px, rgba(223, 105, 26, 0.04) 25px, rgba(223, 105, 26, 0.04) 26px, transparent 27px),
        linear-gradient(-45deg, transparent 24px, rgba(253, 126, 20, 0.03) 25px, rgba(253, 126, 20, 0.03) 26px, transparent 27px);
    background-size: 30px 30px, 60px 60px, 50px 50px, 50px 50px;
    background-position: 0 0, 15px 15px, 0 0, 25px 25px;
    z-index: 1;
}

.team-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(var(--border-color-rgb), 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.team-card:hover::before {
    left: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(var(--primary-color-rgb), 0.2);
    border-color: rgba(var(--primary-color-rgb), 0.3);
}

.team-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.team-image svg {
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.team-card:hover .team-image svg {
    transform: scale(1.05);
}

.team-content h4 {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.team-role {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 1.5rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.team-social a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 20px rgba(var(--primary-color-rgb), 0.4);
}

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

.team-card {
    animation: teamCardFloat 6s ease-in-out infinite;
}

.team-card:nth-child(2) {
    animation-delay: -2s;
}

.team-card:nth-child(3) {
    animation-delay: -4s;
}

/* =============================================================================
   Testimonials Section Styles
   ============================================================================= */

.testimonials-section {
    min-height: 100vh;
    background: linear-gradient(45deg, var(--card-bg) 0%, var(--body-bg) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15px 15px, rgba(223, 105, 26, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 45px 45px, rgba(253, 126, 20, 0.06) 1px, transparent 1px),
        linear-gradient(45deg, transparent 24px, rgba(223, 105, 26, 0.04) 25px, rgba(223, 105, 26, 0.04) 26px, transparent 27px),
        linear-gradient(-45deg, transparent 24px, rgba(253, 126, 20, 0.03) 25px, rgba(253, 126, 20, 0.03) 26px, transparent 27px);
    background-size: 30px 30px, 60px 60px, 50px 50px, 50px 50px;
    background-position: 0 0, 15px 15px, 0 0, 25px 25px;
    z-index: 1;
}

.testimonial-card {
    background: var(--card-bg);
    border-radius: 25px;
    padding: 2.5rem;
    border: 1px solid rgba(var(--border-color-rgb), 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(223, 105, 26, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.testimonial-card:hover::before {
    transform: scale(1);
}

.testimonial-card:hover {
    transform: translateY(-15px) rotateY(5deg);
    box-shadow: 0 40px 80px rgba(var(--primary-color-rgb), 0.15);
    border-color: rgba(var(--primary-color-rgb), 0.3);
}

.testimonial-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

.testimonial-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    transition: transform 0.4s ease;
}

.testimonial-card:hover .testimonial-icon svg {
    transform: scale(1.1) rotate(5deg);
}

.testimonial-stars {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.testimonial-stars i {
    color: #ffc107;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.testimonial-card:hover .testimonial-stars i {
    transform: scale(1.2);
    animation: starTwinkle 0.6s ease;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; transform: scale(1.3); }
}

.testimonial-stars i:nth-child(1) { animation-delay: 0s; }
.testimonial-stars i:nth-child(2) { animation-delay: 0.1s; }
.testimonial-stars i:nth-child(3) { animation-delay: 0.2s; }
.testimonial-stars i:nth-child(4) { animation-delay: 0.3s; }
.testimonial-stars i:nth-child(5) { animation-delay: 0.4s; }

.testimonial-content blockquote {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    quotes: """ """ "'" "'";
}

.testimonial-content blockquote::before {
    content: open-quote;
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    left: -10px;
    line-height: 1;
    opacity: 0.7;
}

.testimonial-content blockquote::after {
    content: close-quote;
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    bottom: -30px;
    right: -10px;
    line-height: 1;
    opacity: 0.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.testimonial-card:hover .author-avatar {
    transform: scale(1.1);
}

.author-avatar svg {
    width: 100%;
    height: 100%;
}

.author-info h5 {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Trust Indicators */
.trust-indicators {
    /* Clean, transparent background - let the trust-items provide the styling */
    padding: 3rem 2rem;
    position: relative;
}

.trust-item {
    padding: 1.5rem;
    transition: all 0.3s ease;
    background: rgba(var(--card-bg-rgb), 0.7); /* Slightly more opaque for better contrast */
    border-radius: 15px;
    border: 1px solid rgba(var(--border-color-rgb), 0.2); /* More visible border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Slightly stronger shadow */
}

.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
    background: rgba(var(--card-bg-rgb), 0.85); /* More opaque on hover */
}

.trust-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.trust-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600; /* Increased from 500 for better readability */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Subtle shadow for better contrast */
}

/* Testimonial animations */
@keyframes testimonialFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-8px) rotate(1deg); }
    66% { transform: translateY(-4px) rotate(-1deg); }
}

.testimonial-card {
    animation: testimonialFloat 8s ease-in-out infinite;
}

.testimonial-card:nth-child(2) {
    animation-delay: -2.5s;
}

.testimonial-card:nth-child(3) {
    animation-delay: -5s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-card,
    .testimonial-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .team-image {
        width: 150px;
        height: 150px;
    }
    
    .trust-number {
        font-size: 2.5rem;
    }
    
    .testimonial-content blockquote {
        font-size: 1rem;
    }
    
    .trust-indicators {
        padding: 2rem 1rem;
    }
}

/* ===== ACCESSIBILITY: HIGH CONTRAST MODE ===== */
/* Optional high-contrast mode for users who need maximum readability */
/* Add class="high-contrast" to body element to activate */

.high-contrast {
    --text-muted: #f8f9fa !important; /* Even brighter muted text */
    --card-bg: #454a50 !important; /* Lighter card backgrounds */
}

.high-contrast .text-muted,
.high-contrast .hero-subtitle,
.high-contrast .service-card p,
.high-contrast .trust-label {
    color: var(--text-muted) !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.high-contrast .trust-item,
.high-contrast .service-card {
    background: rgba(var(--card-bg-rgb), 0.9) !important;
    border: 2px solid rgba(var(--border-color-rgb), 0.4) !important;
}

.high-contrast figure {
    background: transparent !important;
}

.high-contrast .trust-number {
    /* Keep the gradient but ensure high contrast */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    text-shadow: none !important;
    /* Add a subtle glow for better visibility in high contrast */
    filter: drop-shadow(0 0 8px var(--primary-color)) !important;
}

/* ===== ACCESSIBILITY TOGGLE BUTTON ===== */
.accessibility-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    transition: all 0.3s ease;
}

.accessibility-toggle button {
    background: rgba(var(--card-bg-rgb), 0.9);
    border: 2px solid rgba(var(--primary-color-rgb), 0.6);
    color: var(--text-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.accessibility-toggle button:hover {
    background: rgba(var(--primary-color-rgb), 0.9);
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.3);
}

.accessibility-toggle button:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* High contrast mode active state */
.high-contrast .accessibility-toggle button {
    background: var(--primary-color) !important;
    border-color: var(--accent-color) !important;
    color: #ffffff !important;
}

.high-contrast .accessibility-toggle button i {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .accessibility-toggle {
        top: 15px;
        right: 15px;
    }
    
    .accessibility-toggle button {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* ===== FAQ SECTION STYLING ===== */
.faq-section {
    background: linear-gradient(135deg, var(--body-bg) 0%, var(--dark-color) 100%);
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="faqPattern" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="rgba(223,105,26,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23faqPattern)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.faq-section .container {
    position: relative;
    z-index: 2;
}

.faq-card {
    background: var(--card-bg);
    border-radius: 25px;
    padding: 2.5rem;
    border: 1px solid rgba(var(--border-color-rgb), 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.faq-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(223, 105, 26, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.faq-card:hover {
    transform: translateY(-15px) rotateY(5deg);
    box-shadow: 0 40px 80px rgba(var(--primary-color-rgb), 0.15);
    border-color: rgba(var(--primary-color-rgb), 0.3);
}

.faq-card:hover::before {
    transform: scale(1);
}

.faq-card > * {
    position: relative;
    z-index: 2;
}

.faq-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faq-icon svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.faq-card:hover .faq-icon svg {
    transform: scale(1.1) rotate(5deg);
}

.faq-content {
    text-align: center;
}

.faq-content .heading-sm {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.faq-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* High contrast mode support */
.high-contrast .faq-card {
    background: rgba(var(--card-bg-rgb), 0.9) !important;
    border: 2px solid rgba(var(--border-color-rgb), 0.4) !important;
    backdrop-filter: none !important;
}

.high-contrast .faq-card .heading-sm,
.high-contrast .faq-card p {
    color: #ffffff !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .faq-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .faq-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
}
