/* About Us Page Styles */
/* ===== ULTIMATE WHITE SPACE FIX ===== */
/* Reset all margins and padding for the entire page */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

/* Specifically target the Nav bar and force it to the very top */
#Nav-bar {
    position: fixed;
    top: 0 !important;
    left: 0;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1000;
}

/* Remove any potential space from the header */
header {
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

/* Ensure the body starts exactly at the top */
body {
    position: relative;
    padding-top: 0 !important;
}

/* Remove any space before the first element */
body > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Nuclear option: remove any pseudo-elements that might create space */
body::before, body::after,
html::before, html::after,
header::before, header::after,
#Nav-bar::before, #Nav-bar::after {
    content: none !important;
    display: none !important;
}

/* Fix for any browser-specific margin issues */
@supports (-webkit-touch-callout: none) {
    /* Safari specific fix */
    body {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* Make sure the hero section starts right after the nav */
.about-hero {
    margin-top: 70px; /* This should match your nav bar height */
    padding-top: 0 !important;
}
/* Hero Section */
.about-hero {
    background: linear-gradient(10deg, #0A2463 50%, #1E40AF 100%);
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    margin-top: 70px;
}
.about-hero-content h1 {
    font-family: "Lobster", sans-serif;
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: #FFD166;
    padding-top: 50px;
}

.about-hero-content p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* About Content Section */
.about-content {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.about-intro h2 {
    font-family: "Lobster", sans-serif;
    color: #0A2463;
    font-size: 2.5rem;
    margin-bottom: 25px;
    position: relative;
}

.about-intro h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #0A2463, #FFD166);
    border-radius: 2px;
}

.about-intro p {
    color: #4D648D;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Mission Vision Values Section */
.mission-vision-values {
    margin: 60px 0;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mv-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.mv-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0A2463 0%, #1E40AF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 5px 15px rgba(10, 36, 99, 0.2);
}

.mv-icon i {
    font-size: 2rem;
    color: white;
}

.mv-card h3 {
    color: #0A2463;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}

.mv-card p {
    color: #4D648D;
    line-height: 1.7;
}

.values-list {
    list-style: none;
    text-align: left;
    padding: 0;
    margin: 0;
}

.values-list li {
    color: #4D648D;
    margin-bottom: 12px;
    padding-left: 5px;
    display: flex;
    align-items: center;
}

.values-list i.fa-check {
    color: #FFD166;
    margin-right: 12px;
    font-size: 1.1rem;
}

/* Company Story Section */
.company-story {
    margin: 80px 0;
    padding: 40px 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.company-story h2 {
    text-align: center;
    font-family: "Lobster", sans-serif;
    color: #0A2463;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.story-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #0A2463, #FFD166);
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-year {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0A2463 0%, #1E40AF 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 30px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.timeline-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    flex: 1;
    border-left: 4px solid #FFD166;
}

.timeline-content h4 {
    color: #0A2463;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.timeline-content p {
    color: #4D648D;
    line-height: 1.6;
    margin: 0;
}

/* Achievements Section */
.achievements {
    padding: 80px 0;
    background: linear-gradient(135deg, #0A2463 0%, #1a3a8b 100%);
    color: white;
    text-align: center;
}

.achievements h2 {
    font-family: "Lobster", sans-serif;
    font-size: 2.8rem;
    margin-bottom: 60px;
    color: white;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.achievement {
    padding: 30px 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.achievement.in-view {
    opacity: 1;
    transform: translateY(0);
}

.achievement-number {
    font-size: 3rem;
    font-weight: 700;
    color: #FFD166;
    margin-bottom: 15px;
    font-family: "Montserrat", sans-serif;
}

.achievement-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .mv-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .story-timeline::before {
        left: 20px;
    }
    
    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .about-hero {
        padding: 120px 0 80px;
    }
    
    .about-hero-content h1 {
        font-size: 2.8rem;
    }
    
    .about-hero-content p {
        font-size: 1.1rem;
    }
    
    .about-content, .achievements {
        padding: 60px 0;
    }
    
    .about-intro h2 {
        font-size: 2.2rem;
    }
    
    .achievements h2 {
        font-size: 2.3rem;
    }
    
    .achievement-number {
        font-size: 2.5rem;
    }
    
    .story-timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-year {
        margin-bottom: 15px;
        margin-right: 0;
    }
}

@media screen and (max-width: 480px) {
    .about-hero-content h1 {
        font-size: 2.3rem;
    }
    
    .mv-card {
        padding: 30px 20px;
    }
    
    .mv-icon {
        width: 70px;
        height: 70px;
    }
    
    .mv-icon i {
        font-size: 1.8rem;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .achievement-number {
        font-size: 2.2rem;
    }
    
    .achievement-text {
        font-size: 1rem;
    }
    
    .values-list li {
        font-size: 0.9rem;
    }
}


/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0A2463, #1E40AF);
    color: white;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(10, 36, 99, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    display: flex !important;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #FFD166, #FF9E4A);
    color: #0A2463;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 209, 102, 0.4);
    text-decoration: none;
}