/* --- CSS VARIABLES & UTILITIES --- */
:root {
    --primary-color: #0d47a1;
    --secondary-color: #1de9b6;
    --background-color: #f8f9fa;
    --surface-color: #ffffff;
    --text-color: #343a40;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Roboto', sans-serif;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --border-radius: 8px;
}

/* --- GLOBAL STYLES & CUSTOM SCROLLBAR --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

body::-webkit-scrollbar {
    width: 10px;
}
body::-webkit-scrollbar-track {
    background: var(--background-color);
}
body::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 20px;
    border: 2px solid var(--background-color);
}

/* --- TYPOGRAPHY & LAYOUT --- */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 2rem;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; }
p { margin-bottom: 1rem; }
a { color: var(--secondary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-color); }

/* --- NAVIGATION BAR --- */
.navbar {
    background: var(--surface-color);
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 2rem;
}
.nav-logo { font-size: 1.8rem; font-weight: 800; color: var(--primary-color); }
.nav-menu { list-style: none; display: flex; }
.nav-item { margin-left: 25px; }
.nav-link { font-weight: 600; font-family: var(--heading-font); }

/* --- ENHANCED HERO SECTION --- */
.hero-section {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.9) 0%, rgba(29, 233, 182, 0.1) 100%), 
                linear-gradient(rgba(13, 71, 161, 0.8), rgba(13, 71, 161, 0.8)), 
                url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?q=80&w=2070') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 8rem 2rem 6rem;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(29, 233, 182, 0.2) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-section h1 {
    color: #fff;
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease-out;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: backwards;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: backwards;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.9s;
    animation-fill-mode: backwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    font-family: var(--heading-font);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- ENHANCED BUTTONS --- */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--heading-font);
    transition: all 0.3s ease;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(29, 233, 182, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(29, 233, 182, 0.6);
    color: var(--primary-color);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* --- TRUST INDICATORS --- */
.trust-section {
    background: var(--surface-color);
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.trust-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.trust-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* --- ABOUT SECTION --- */
.about-preview {
    padding: 8rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .lead {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.about-highlights {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.highlight-item i {
    color: var(--secondary-color);
}

.about-image {
    position: relative;
}

.rounded-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.image-overlay {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.founder-info h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-info {
    color: var(--secondary-color);
    font-weight: 500;
}

/* --- SERVICES GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: left;
    border-top: 4px solid var(--secondary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: #fff;
}

.service-features {
    list-style: none;
    margin-top: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- WHY CHOOSE US --- */
.why-choose-us {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(13, 71, 161, 0.8) 100%);
    color: #fff;
}

.why-choose-us h2 {
    color: #fff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.benefit-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    font-family: var(--heading-font);
    margin-bottom: 1rem;
}

.benefit-card h3 {
    color: #fff;
    margin-bottom: 1rem;
}

/* --- TESTIMONIALS --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    margin-bottom: 2rem;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: var(--secondary-color);
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: serif;
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.author-info span {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

.rating {
    color: #ffd700;
}

.rating i {
    font-size: 0.9rem;
    margin-left: 2px;
}

/* --- SPECIALTIES SECTION --- */
.specialty-areas {
    background: var(--background-color);
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.specialty-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary-color);
}

.specialty-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.specialty-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    width: 50px;
    text-align: center;
}

.specialty-item span {
    font-weight: 600;
    color: var(--primary-color);
}

/* --- CTA SECTION --- */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, rgba(29, 233, 182, 0.8) 100%);
    color: var(--primary-color);
    text-align: center;
}

.cta-content h2 {
    color: var(--primary-color);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.cta-section .btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cta-section .btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* --- CONTACT PREVIEW --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    text-align: center;
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-item p {
    font-weight: 500;
    line-height: 1.5;
}

/* --- GENERAL SECTIONS & CARDS --- */
.section {
    padding: 6rem 0;
}

.section-light {
    background: var(--background-color);
}

.card {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* --- FADE-IN ANIMATION UTILITY --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- FOOTER --- */
.footer {
    background: var(--primary-color);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.footer p, .footer a {
    color: #e0e0e0;
}

.footer a:hover {
    color: var(--secondary-color);
}

.footer .nav-logo {
    color: #fff;
    margin-bottom: 1.5rem;
    display: block;
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 3rem;
    }
    
    .nav-menu { 
        display: none; 
    }
    
    .hero-section { 
        padding: 6rem 1rem 4rem; 
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-highlights {
        flex-direction: column;
        gap: 1rem;
    }
    
    .trust-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        text-align: center;
    }
    
    .trust-item {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .specialties-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .image-overlay {
        position: static;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 4rem 1rem 3rem;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .service-card,
    .benefit-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .about-preview {
        padding: 4rem 0;
    }
}

/* --- ADDITIONAL UTILITY CLASSES --- */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.fw-bold { font-weight: bold; }
.fw-600 { font-weight: 600; }

.opacity-7 { opacity: 0.7; }
.opacity-8 { opacity: 0.8; }
.opacity-9 { opacity: 0.9; }

/* --- SMOOTH SCROLL & NAVIGATION --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed navbar */
}

.nav-link {
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* --- MISSION/VISION SECTION --- */
.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.mission-item {
    background: rgba(29, 233, 182, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
}

.mission-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mission-item h4 i {
    color: var(--secondary-color);
}

.founder-details {
    margin-top: 1rem;
}

.founder-details .contact-info {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* --- PROCESS TIMELINE --- */
.process-section {
    background: var(--background-color);
}

.process-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--heading-font);
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.step-content p {
    margin: 0;
    line-height: 1.6;
}

/* --- CONTACT SECTION ENHANCEMENTS --- */
.contact-section {
    padding: 6rem 0 8rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-form-container {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(29, 233, 182, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- ENHANCED CONTACT ITEMS --- */
.contact-item {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid var(--secondary-color);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-item p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.contact-item a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* --- MOBILE RESPONSIVE ENHANCEMENTS --- */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .partners-section .founders-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .step-number {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--surface-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .process-timeline {
        gap: 1.5rem;
    }
    
    .process-step {
        padding: 1.5rem;
    }
    
    .partners-section .founders-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .partners-section .founder-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
    }
    
    .process-step {
        padding: 1rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* --- SECTION SPACING ADJUSTMENTS --- */
#home {
    scroll-margin-top: 0;
}

#about,
#services,
#testimonials,
#contact {
    scroll-margin-top: 80px;
}

/* --- ENHANCED ANIMATIONS --- */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* --- UTILITY CLASSES --- */
.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-bold { font-weight: 600; }
.fw-bolder { font-weight: 700; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* --- ACCESSIBILITY IMPROVEMENTS --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators for keyboard navigation */
.btn:focus,
.nav-link:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   PARTNERS SECTION - GRID LAYOUT FIX
   ============================================ */

.partners-section {
    background: var(--surface-color);
    padding: 8rem 0;
    position: relative;
}

.partners-section h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.partners-section .section-subtitle {
    text-align: center;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* PARTNERS GRID - FORCED DISPLAY */
.partners-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 3rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}

/* INDIVIDUAL PARTNER CARDS */
.partner-card {
    background: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border-top: 4px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* PARTNER IMAGES */
.partner-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.partner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.partner-card:hover .partner-image img {
    transform: scale(1.05);
}

/* PARTNER CONTENT */
.partner-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.partner-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 700;
}

.partner-title {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.partner-education {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-style: italic;
    background: rgba(29, 233, 182, 0.05);
    padding: 0.8rem;
    border-radius: var(--border-radius);
}

.partner-education i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* PARTNER BIO */
.partner-bio {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.partner-bio p {
    line-height: 1.7;
    margin-bottom: 1.2rem;
    text-align: justify;
    color: var(--text-color);
    font-size: 0.95rem;
}

.partner-bio p:last-child {
    margin-bottom: 0;
}

/* PARTNER CONTACT INFO */
.partner-contact {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(29, 233, 182, 0.08);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
}

.partner-contact p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.partner-contact p:last-child {
    margin-bottom: 0;
}

.partner-contact i {
    color: var(--secondary-color);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* PARTNER TAGS */
.partner-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

.partner-tags .tag {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.partner-tags .tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 233, 182, 0.4);
}

/* ============================================
   RESPONSIVE DESIGN FOR PARTNERS
   ============================================ */

/* TABLET BREAKPOINT */
@media (max-width: 1024px) {
    .partners-grid {
        gap: 2.5rem !important;
        padding: 0 1.5rem !important;
    }
    
    .partner-content {
        padding: 2rem;
    }
    
    .partner-image {
        height: 280px;
    }
}

/* MOBILE BREAKPOINT */
@media (max-width: 768px) {
    .partners-section {
        padding: 6rem 0;
    }
    
    .partners-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 0 1rem !important;
    }
    
    .partner-content {
        padding: 1.5rem;
    }
    
    .partner-content h3 {
        font-size: 1.5rem;
    }
    
    .partner-title {
        font-size: 1rem;
    }
    
    .partner-image {
        height: 250px;
    }
    
    .partner-bio p {
        text-align: left;
        font-size: 0.9rem;
    }
    
    .partner-tags {
        justify-content: flex-start;
        gap: 0.5rem;
    }
    
    .partner-tags .tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
}

/* SMALL MOBILE BREAKPOINT */
@media (max-width: 480px) {
    .partners-section {
        padding: 4rem 0;
    }
    
    .partners-grid {
        padding: 0 0.5rem !important;
        gap: 1.5rem !important;
    }
    
    .partner-content {
        padding: 1.2rem;
    }
    
    .partner-contact {
        padding: 1.2rem;
    }
    
    .partner-contact p {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        text-align: left;
    }
    
    .partner-image {
        height: 220px;
    }
}

/* ============================================
   DEBUGGING STYLES (REMOVE AFTER TESTING)
   ============================================ */

/* Uncomment these lines if grid still doesn't work */
/*
.partners-grid {
    border: 2px solid red !important;
}

.partner-card {
    border: 2px solid blue !important;
}
*/

/* ============================================
   GRID FALLBACK (IF CSS GRID NOT SUPPORTED)
   ============================================ */

@supports not (display: grid) {
    .partners-grid {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    .partner-card {
        flex: 1 1 45% !important;
        margin: 1rem !important;
    }
    
    @media (max-width: 768px) {
        .partner-card {
            flex: 1 1 100% !important;
        }
    }
}

/* ============================================
   ADDITIONAL ENHANCEMENTS
   ============================================ */

/* Add subtle animation on load */
.partners-grid.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.partners-grid.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effect for the entire partners section */
.partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(29, 233, 182, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

/* Ensure text is readable on all backgrounds */
.partner-content * {
    position: relative;
    z-index: 1;
}

/* ============================================
   ENHANCED CONTACT FORM STYLES
   ============================================ */

/* FORM LAYOUT IMPROVEMENTS */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* ALERT MESSAGES */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-weight: 500;
}

.alert i {
    font-size: 1.2rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #155724;
}

.alert-success i {
    color: #28a745;
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #721c24;
}

.alert-error i {
    color: #dc3545;
}

.alert ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.2rem;
}

.alert li {
    margin-bottom: 0.3rem;
}

/* HUMAN VERIFICATION FIELD */
.human-verification {
    background: rgba(29, 233, 182, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 2px dashed var(--secondary-color);
    margin: 2rem 0;
}

.human-verification label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.human-verification label i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.human-verification input {
    background: #fff;
    border: 2px solid var(--secondary-color) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    font-size: 1.1rem;
}

.human-verification input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(29, 233, 182, 0.2) !important;
}

.human-verification small {
    display: block;
    color: var(--text-color);
    opacity: 0.7;
    font-style: italic;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

/* HONEYPOT FIELD (HIDDEN FROM USERS) */
.honeypot {
    position: absolute;
    left: -9999px;
    visibility: hidden;
    opacity: 0;
}

/* FORM BUTTON ENHANCEMENTS */
.btn-full {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    padding: 1.2rem 2rem;
    margin: 1.5rem 0 1rem;
}

.btn-full i {
    transition: transform 0.3s ease;
}

.btn-full:hover i {
    transform: translateX(3px);
}

/* FORM NOTE */
.form-note {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(13, 71, 161, 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.form-note small {
    color: var(--primary-color);
    font-weight: 500;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.form-note i {
    color: var(--secondary-color);
}

/* FORM VALIDATION STATES */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: #f2f2f2;
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: #28a745;
}

/* LOADING STATE FOR SUBMIT BUTTON */
.btn-full:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-full.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE FORM DESIGN
   ============================================ */

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 1.5rem;
    }
    
    .human-verification {
        padding: 1.2rem;
        margin: 1.5rem 0;
    }
    
    .human-verification label {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        text-align: left;
    }
    
    .form-note small {
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
    }
    
    .alert {
        padding: 1rem;
        gap: 0.6rem;
    }
}

@media (max-width: 480px) {
    .human-verification {
        padding: 1rem;
    }
    
    .human-verification input {
        font-size: 1rem;
    }
    
    .btn-full {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Focus indicators for better keyboard navigation */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .alert-success {
        background: #d4edda;
        border-color: #28a745;
    }
    
    .alert-error {
        background: #f8d7da;
        border-color: #dc3545;
    }
    
    .human-verification {
        background: #e8f5e8;
        border-color: #28a745;
    }
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .btn-full i {
        transition: none;
    }
    
    .btn-full:hover i {
        transform: none;
    }
    
    @keyframes spin {
        0%, 100% { transform: rotate(0deg); }
    }
}

/* ============================================
   PRINT STYLES (HIDE FORM WHEN PRINTING)
   ============================================ */

@media print {
    .contact-form-container {
        display: none;
    }
}

/* ============================================
   LOGO STYLES
   ============================================ */

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.02);
}

/* LOGO IMAGE (when you have an actual logo file) */
.logo-image {
    height: 100%;
    width: 580px;
    max-width: 53%;
    object-fit: contain;
    display: block;
}

/* Hide text logo when image is present */
.logo-image + .logo-text {
    display: none;
}

/* FALLBACK TEXT LOGO WITH ICONS */
.logo-text {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Logo Icon Container */
.logo-icon {
    position: relative;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(29, 233, 182, 0.3);
}

.logo-icon i {
    color: #fff;
    font-size: 1rem;
    position: absolute;
}

.logo-icon .fa-hospital-symbol {
    top: 8px;
    left: 12px;
    font-size: 0.9rem;
}

.logo-icon .fa-globe-africa {
    bottom: 8px;
    right: 12px;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Logo Text Content */
.logo-content {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo-tagline {
    font-family: var(--body-font);
    font-weight: 500;
    font-size: 0.7rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -2px;
}

/* ============================================
   ALTERNATIVE LOGO DESIGNS
   ============================================ */

/* Option 1: Simple Medical Cross Logo */
.logo-medical-cross {
    width: 35px;
    height: 35px;
    background: var(--secondary-color);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-medical-cross::before,
.logo-medical-cross::after {
    content: '';
    position: absolute;
    background: #fff;
}

.logo-medical-cross::before {
    width: 18px;
    height: 3px;
}

.logo-medical-cross::after {
    width: 3px;
    height: 18px;
}

/* Option 2: Stethoscope + Globe Logo */
.logo-stethoscope {
    font-size: 1.8rem;
    color: var(--secondary-color);
    position: relative;
}

.logo-stethoscope::after {
    content: '🌍';
    position: absolute;
    top: -5px;
    right: -8px;
    font-size: 0.8rem;
}

/* ============================================
   LOGO HOVER ANIMATIONS
   ============================================ */

.nav-logo:hover .logo-icon {
    transform: rotate(5deg);
    box-shadow: 0 5px 20px rgba(29, 233, 182, 0.4);
}

.nav-logo:hover .logo-main {
    color: var(--secondary-color);
}

.nav-logo:hover .logo-tagline {
    color: var(--primary-color);
}

/* Pulse animation for logo icon */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-icon {
    animation: pulse 3s infinite ease-in-out;
}

/* ============================================
   RESPONSIVE LOGO DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .logo-main {
        font-size: 1.3rem;
    }
    
    .logo-tagline {
        font-size: 0.65rem;
    }
    
    .logo-icon {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 768px) {
    .nav-logo {
        flex-shrink: 0;
    }
     .logo-image {
        width: 220px;
        max-width: 60%;
    }
    .logo-text {
        gap: 0.6rem;
    }
    
    .logo-main {
        font-size: 1.2rem;
    }
    
    .logo-tagline {
        font-size: 0.6rem;
        letter-spacing: 0.8px;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .logo-icon .fa-hospital-symbol {
        font-size: 0.8rem;
        top: 7px;
        left: 11px;
    }
    
    .logo-icon .fa-globe-africa {
        font-size: 0.7rem;
        bottom: 7px;
        right: 11px;
    }
}

@media (max-width: 480px) {
    .logo-main {
        font-size: 1.1rem;
    }
    
    .logo-tagline {
        display: none; /* Hide tagline on very small screens */
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
}

/* ============================================
   LOGO FOR DIFFERENT STATES
   ============================================ */

/* Scrolled navbar logo adjustments */
.navbar.scrolled .logo-main {
    font-size: 1.3rem;
}

.navbar.scrolled .logo-icon {
    width: 36px;
    height: 36px;
}

/* Dark mode logo (if you implement dark mode) */
@media (prefers-color-scheme: dark) {
    .logo-main {
        color: #fff;
    }
    
    .logo-tagline {
        color: var(--secondary-color);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .logo-icon {
        box-shadow: none;
        border: 2px solid var(--primary-color);
    }
}

/* Print styles */
@media print {
    .nav-logo {
        transform: none !important;
    }
    
    .logo-icon {
        animation: none;
        box-shadow: none;
    }
}

/* ============================================
   LOGO LOADING STATE
   ============================================ */

.logo-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-image.loaded {
    opacity: 1;
}

/* Show text logo while image loads */
.logo-image:not(.loaded) + .logo-text {
    display: flex !important;
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Better focus indicator for logo */
.nav-logo:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .nav-logo:hover {
        transform: none;
    }
    
    .nav-logo:hover .logo-icon {
        transform: none;
    }
    
    .logo-icon {
        animation: none;
    }
}

/* Screen reader text for logo meaning */
.logo-sr-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   TERMS AND CONDITIONS PAGE STYLES
   ============================================ */

/* TERMS HERO SECTION */
.terms-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(13, 71, 161, 0.8) 100%);
    color: #fff;
    padding: 6rem 0 4rem;
    margin-top: 80px; /* Account for fixed navbar */
}

.terms-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.terms-hero h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.terms-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.5;
}

.terms-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.terms-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.terms-meta i {
    color: var(--secondary-color);
}

/* TERMS CONTENT LAYOUT */
.terms-content {
    padding: 4rem 0 6rem;
    background: var(--background-color);
}

.terms-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* SIDEBAR - TABLE OF CONTENTS */
.terms-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.toc-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.toc-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.toc-nav {
    display: flex;
    flex-direction: column;
}

.toc-link {
    padding: 0.8rem 0;
    color: var(--text-color);
    text-decoration: none;
    border-left: 3px solid transparent;
    padding-left: 1rem;
    margin-left: -1rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.4;
}

.toc-link:hover,
.toc-link.active {
    color: var(--secondary-color);
    border-left-color: var(--secondary-color);
    background: rgba(29, 233, 182, 0.05);
    padding-left: 1.5rem;
}

/* CONTACT CARD IN SIDEBAR */
.contact-card {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.contact-card h4 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.contact-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-size: 0.9rem;
}

.btn-sm {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

.contact-card .btn-outline {
    border-color: #fff;
    color: #fff;
}

.contact-card .btn-outline:hover {
    background: #fff;
    color: var(--primary-color);
}

/* MAIN CONTENT */
.terms-main {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.terms-section {
    padding: 2.5rem;
    border-bottom: 1px solid #eee;
}

.terms-section:last-child {
    border-bottom: none;
}

.terms-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.terms-section h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
}

.terms-section p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* LISTS IN TERMS */
.terms-list {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.terms-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.terms-list li:last-child {
    border-bottom: none;
}

.terms-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.8rem;
    color: var(--secondary-color);
    font-weight: bold;
    width: 1.5rem;
    text-align: center;
}

.disclaimer-list li::before {
    content: '⚠';
    color: #ff6b35;
}

/* SPECIAL NOTICE BOXES */
.important-notice,
.disclaimer-box,
.liability-box,
.agreement-box {
    margin: 2rem 0;
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid;
}

.important-notice {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
}

.important-notice i {
    color: #ffc107;
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.disclaimer-box {
    background: rgba(220, 53, 69, 0.05);
    border-left-color: #dc3545;
}

.disclaimer-box h3 {
    color: #dc3545;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.liability-box {
    background: rgba(255, 107, 53, 0.05);
    border-left-color: #ff6b35;
}

.agreement-box {
    background: rgba(29, 233, 182, 0.05);
    border-left-color: var(--secondary-color);
}

/* CONTACT DETAILS GRID */
.contact-details {
    margin: 2rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

.contact-details .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(29, 233, 182, 0.05);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--secondary-color);
}

.contact-details .contact-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
    margin-top: 0.2rem;
}

.contact-details .contact-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.3rem;
}

/* BACK TO HOME BUTTON */
.back-to-home {
    text-align: center;
    padding: 2rem;
    background: var(--background-color);
}

.back-to-home .btn {
    gap: 0.5rem;
}

/* ============================================
   RESPONSIVE DESIGN FOR TERMS PAGE
   ============================================ */

@media (max-width: 1024px) {
    .terms-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .terms-sidebar {
        position: static;
        order: -1;
    }
    
    .toc-card,
    .contact-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .terms-hero {
        padding: 4rem 0 3rem;
        margin-top: 70px;
    }
    
    .terms-hero h1 {
        font-size: 2.5rem;
    }
    
    .terms-subtitle {
        font-size: 1.1rem;
    }
    
    .terms-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .terms-content {
        padding: 3rem 0 4rem;
    }
    
    .terms-section {
        padding: 2rem 1.5rem;
    }
    
    .terms-section h2 {
        font-size: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .toc-nav {
        max-height: 300px;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .terms-hero {
        padding: 3rem 0 2rem;
    }
    
    .terms-hero h1 {
        font-size: 2rem;
    }
    
    .terms-section {
        padding: 1.5rem 1rem;
    }
    
    .important-notice,
    .disclaimer-box,
    .liability-box,
    .agreement-box {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .contact-details .contact-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .terms-list li {
        padding-left: 1.5rem;
    }
}

/* ============================================
   SMOOTH SCROLLING FOR ANCHOR LINKS
   ============================================ */

html {
    scroll-padding-top: 120px;
}

/* ============================================
   PRINT STYLES FOR TERMS PAGE
   ============================================ */

@media print {
    .terms-hero {
        background: none;
        color: var(--text-color);
        padding: 2rem 0;
        margin-top: 0;
    }
    
    .terms-sidebar,
    .back-to-home {
        display: none;
    }
    
    .terms-layout {
        grid-template-columns: 1fr;
    }
    
    .terms-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .important-notice,
    .disclaimer-box,
    .liability-box,
    .agreement-box {
        border: 1px solid #ccc;
        background: none;
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Better focus indicators */
.toc-link:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .important-notice,
    .disclaimer-box,
    .liability-box,
    .agreement-box {
        border-width: 2px;
    }
    
    .terms-list li::before {
        font-weight: 900;
    }
}

/* ============================================
   NAVIGATION MENU STYLES
   ============================================ */

/* General Navbar styling */
.navbar {
    background: #fff;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Desktop Menu Styles */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
}

.nav-item {
    height: 80px;
}

.nav-link {
    color: #333;
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0 1rem;
    height: 100%;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color); /* Use your theme's primary color */
    border-bottom: 3px solid var(--primary-color);
}


/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* This media query applies styles ONLY when the screen is 768px wide or less */
@media screen and (max-width: 768px) {
    .nav-menu {
        /* This is the key part! */
        display: flex;
        flex-direction: column; /* Stack menu items vertically */
        width: 100%;
        height: calc(100vh - 80px); /* Full height minus navbar */
        position: absolute;
        top: 80px; /* Position it right below the navbar */
        left: -100%; /* --- HIDE IT! Start with the menu off-screen to the left --- */
        opacity: 1;
        transition: all 0.5s ease; /* Smooth slide-in animation */
        background: #fdfdfd;
    }

    /* --- THIS IS THE MAGIC RULE --- */
    /* When the menu has the 'active' class, slide it into view */
    .nav-menu.active {
        left: 0; /* --- SHOW IT! Bring it back on-screen --- */
    }

    .nav-item {
        width: 100%;
        height: auto;
    }

    .nav-link {
        text-align: center;
        padding: 2rem;
        width: 100%;
        display: table;
    }
    
    .nav-link:hover,
    .nav-link.active {
        border-bottom: none; /* Remove border for mobile */
        color: var(--secondary-color);
    }

    /* --- Hamburger Menu Icon Styling --- */
    .nav-toggle {
        display: block; /* Show the hamburger icon */
        cursor: pointer;
        align-self: center; /* Center it vertically */
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background-color: #333;
    }

    /* --- Animate the hamburger icon into an 'X' --- */
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0; /* Hide the middle bar */
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg); /* Rotate the top bar */
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg); /* Rotate the bottom bar */
    }
}