/* ============================================
   ABOUT & CONTACT PAGES FIX
   Better Text Visibility & Backgrounds
   ============================================ */

/* ========== ABOUT PAGE BACKGROUND ========== */
body.about-page {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.93), rgba(248, 249, 250, 0.93)),
                url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* ========== CONTACT PAGE BACKGROUND ========== */
body.contact-page {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.93), rgba(248, 249, 250, 0.93)),
                url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* ========== ABOUT PAGE HERO SECTION FIX ========== */
.about-hero,
#about-us {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.95), rgba(0, 188, 212, 0.95)) !important;
    padding: 5rem 2rem !important;
    margin-bottom: 3rem;
    border-radius: 0 0 50px 50px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.about-hero::before,
#about-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    animation: waveMove 20s ease-in-out infinite;
}

@keyframes waveMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-50px); }
}

/* ========== TEXT VISIBILITY FIX ========== */
.about-hero h1,
.about-hero h2,
.about-hero h3,
#about-us h1,
#about-us h2,
#about-us h3 {
    color: white !important;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
    font-weight: 800 !important;
    position: relative;
    z-index: 2;
}

.about-hero p,
#about-us p {
    color: white !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4) !important;
    position: relative;
    z-index: 2;
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
}

/* ========== CONTACT PAGE SLIDER FIX ========== */
.contact-hero,
#contact-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.95), rgba(230, 126, 34, 0.95)) !important;
    padding: 5rem 2rem !important;
    margin-bottom: 3rem;
    border-radius: 0 0 50px 50px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.contact-hero::before,
#contact-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    animation: waveMove 20s ease-in-out infinite;
}

.contact-hero h1,
.contact-hero h2,
.contact-hero h3,
#contact-banner h1,
#contact-banner h2,
#contact-banner h3 {
    color: white !important;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
    font-weight: 800 !important;
    position: relative;
    z-index: 2;
}

.contact-hero p,
#contact-banner p {
    color: white !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4) !important;
    position: relative;
    z-index: 2;
    font-size: 1.1rem !important;
}

/* ========== SECTION BACKGROUNDS ========== */
.about-page section:not(.ftr-heading-o):not(#footer),
.contact-page section:not(.ftr-heading-o):not(#footer) {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 4rem 2rem !important;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

/* ========== NAVBAR FIX - EXCLUDE FROM SECTION STYLES ========== */
/* Reset section styles for navbar - let default styles apply */
.about-page .navbar,
.about-page .main-navbar,
.about-page #mynavbar-1,
.contact-page .navbar,
.contact-page .main-navbar,
.contact-page #mynavbar-1 {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    z-index: 9999 !important;
    position: sticky !important;
    top: 0 !important;
}

/* Top bar keeps default black background */
.contact-page #top-bar,
.about-page #top-bar {
    position: relative !important;
    z-index: 9998 !important;
}

/* ========== CARD ENHANCEMENTS ========== */
.about-page .card,
.contact-page .card {
    background: white !important;
    border: none !important;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.about-page .card:hover,
.contact-page .card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

/* ========== FEATURE BOXES ========== */
.feature-box,
.info-box {
    background: white !important;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
}

.feature-box:hover,
.info-box:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 40px rgba(26, 115, 232, 0.2);
}

.feature-box i,
.info-box i {
    font-size: 3rem;
    background: linear-gradient(135deg, #f39c12 0%, #f12711 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.feature-box h3,
.info-box h3 {
    color: #2c3e50 !important;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-box p,
.info-box p {
    color: #34495e !important;
    line-height: 1.6;
}

/* ========== CONTACT FORM ENHANCEMENT ========== */
.contact-form {
    background: white !important;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid rgba(243, 156, 18, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: #f39c12;
    box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.15);
    transform: translateY(-2px);
}

.contact-form .btn-submit {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border: none;
    color: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.contact-form .btn-submit:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(243, 156, 18, 0.4);
}

/* ========== CONTACT INFO BOXES ========== */
.contact-info-box {
    background: white !important;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
}

.contact-info-box:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 40px rgba(243, 156, 18, 0.2);
}

.contact-info-box i {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
}

.contact-info-box h4 {
    color: #2c3e50 !important;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-info-box p {
    color: #34495e !important;
    margin-bottom: 0;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-page section,
.contact-page section {
    animation: fadeInUp 0.8s ease-out;
}

.about-page .card,
.contact-page .card,
.feature-box,
.info-box,
.contact-info-box {
    animation: fadeInUp 0.6s ease-out;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    body.about-page,
    body.contact-page {
        background-attachment: scroll;
    }
    
    .about-hero,
    #about-us,
    .contact-hero,
    #contact-banner {
        padding: 3rem 1.5rem !important;
        border-radius: 0 0 30px 30px;
    }
    
    .about-page section,
    .contact-page section {
        padding: 2rem 1rem !important;
        border-radius: 20px;
    }
}

/* ========== BREADCRUMB FIX ========== */
.breadcrumb {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 1rem 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.breadcrumb-item a {
    color: #f39c12 !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #f12711 !important;
    transform: translateX(4px);
}

.breadcrumb-item.active {
    color: #2c3e50 !important;
}
