/* ========================================
   INTERNAL PAGES - COMPREHENSIVE REDESIGN
   Inspired by Homepage | Professional & Dynamic
   Applied to: About, Services, Why Uganda, How It Works, Contact
   ======================================== */

/* ====================
   ENHANCED HERO SECTIONS
   ==================== */

.hero {
    position: relative;
    background: linear-gradient(135deg, #0a0814 0%, #1a1730 30%, #272147 60%, #3a316a 100%);
    padding: 180px 0 100px;
    text-align: center;
    overflow: hidden;
}

.hero::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="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(212,175,55,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.05));
}

.hero-title {
    position: relative;
    z-index: 2;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, rgba(212, 175, 55, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroTitleReveal 1s ease-out;
}

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

.hero-value-prop {
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    animation: heroTextReveal 1s ease-out 0.2s backwards;
}

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

/* ====================
   SECTION IMPROVEMENTS
   ==================== */

.section {
    position: relative;
    padding: 6rem 0;
}

.section-light {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.section-dark {
    background: linear-gradient(135deg, #272147 0%, #3a316a 50%, #4d6db8 100%);
    color: #ffffff;
}

.section-off-white {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Section decorative accent */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    opacity: 0.5;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #4d6db8);
    border-radius: 2px;
}

.section-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: inherit;
    opacity: 0.9;
}

/* ====================
   ENHANCED CARDS
   ==================== */

.feature-card,
.value-card,
.service-card {
    position: relative;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.feature-card::before,
.value-card::before,
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #d4af37, #4d6db8);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover::before,
.value-card:hover::before,
.service-card:hover::before {
    height: 100%;
}

.feature-card:hover,
.value-card:hover,
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.feature-card h3,
.value-card h3,
.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-deep-purple);
    transition: color 0.3s;
}

.feature-card:hover h3,
.value-card:hover h3,
.service-card:hover h3 {
    color: #d4af37;
}

/* ====================
   ENHANCED BUTTONS
   ==================== */

.btn {
    position: relative;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #3a316a 0%, #4d6db8 100%);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(77, 109, 184, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(77, 109, 184, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #d4af37;
    color: #d4af37;
}

.btn-secondary:hover {
    background: #d4af37;
    color: #272147;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* ====================
   IMPROVED CONTENT LAYOUTS
   ==================== */

/* Feature Image Section */
.feature-image-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 4rem 0;
}

.feature-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(77, 109, 184, 0.1));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
}

.feature-image:hover::before {
    opacity: 1;
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-image:hover img {
    transform: scale(1.05);
}

.feature-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-deep-purple);
}

.feature-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--color-text-dark);
}

.feature-content strong {
    color: var(--color-deep-purple);
    font-weight: 700;
}

/* ====================
   GRIDS - ENHANCED
   ==================== */

.features-grid,
.value-grid,
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

/* ====================
   CHALLENGE/SOLUTION BOXES
   ==================== */

.challenge-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.challenge,
.solution {
    position: relative;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.challenge::before,
.solution::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: linear-gradient(180deg, #d4af37, #4d6db8);
    border-radius: 5px;
    transition: height 0.4s;
}

.challenge:hover::before,
.solution:hover::before {
    height: 100%;
}

.challenge:hover,
.solution:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.challenge h3,
.solution h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.challenge p,
.solution p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* ====================
   CONTENT GRID
   ==================== */

.content-grid {
    max-width: 900px;
    margin: 3rem auto;
}

.content-grid p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--color-text-dark);
}

.content-grid strong {
    color: var(--color-deep-purple);
    font-weight: 700;
}

/* ====================
   CONTACT FORM - ENHANCED
   ==================== */

.contact-form-section {
    background: #ffffff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #d4af37, #4d6db8);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--color-deep-purple);
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4d6db8;
    box-shadow: 0 0 0 4px rgba(77, 109, 184, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ====================
   CONTACT INFO CARDS - ENHANCED
   ==================== */

.contact-info-card {
    position: relative;
    padding: 2.5rem;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(90deg, #d4af37, #4d6db8);
    transition: height 0.4s;
}

.contact-info-card:hover::before {
    height: 5px;
}

.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}

.contact-info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-info-card a {
    transition: color 0.3s;
}

.contact-info-card a:hover {
    color: #d4af37 !important;
}

/* ====================
   PROCESS STEPS / CTA STEPS
   ==================== */

.cta-process,
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.cta-step,
.process-step {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-step:hover,
.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.3);
}

.step-number,
.cta-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #d4af37, #4d6db8);
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    transition: all 0.4s;
}

.cta-step:hover .cta-step-number,
.process-step:hover .step-number {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.cta-step h3,
.process-step h3,
.cta-step h4,
.process-step h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ====================
   PARTNER LOGOS - IF PRESENT
   ==================== */

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.partner-logo-item {
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.partner-logo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(77, 109, 184, 0.1));
    opacity: 0;
    transition: opacity 0.4s;
}

.partner-logo-item:hover::before {
    opacity: 1;
}

.partner-logo-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.2);
}

/* ====================
   RESPONSIVE ADJUSTMENTS
   ==================== */

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .feature-image-section,
    .challenge-solution {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-value-prop {
        font-size: 1.05rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-intro {
        font-size: 1rem;
    }
    
    .feature-card,
    .value-card,
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-form-section {
        padding: 2rem 1.5rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* ====================
   ENTRANCE ANIMATIONS
   ==================== */

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

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

/* ====================
   SMOOTH SCROLLING
   ==================== */

html {
    scroll-behavior: smooth;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
