/* About Us Page Styles */
:root {
    /* Primary Colors */
    --primary: #9c8a5a;
    --primary-light: #b9a87d;
    --primary-dark: #7d6d48;
    
    /* Neutral Colors */
    --neutral-100: #ffffff;
    --neutral-200: #f8f9fa;
    --neutral-300: #e9ecef;
    --neutral-400: #555555;
    --neutral-500: #111111;
    
    /* Font Family */
    --font-primary: 'Rufina', serif;
    
    --primary-color: var(--primary-dark);
    --secondary-color: var(--primary);
    --accent-color: var(--primary-light);
    --light-color: var(--neutral-200);
    --dark-color: var(--neutral-500);
    --text-color: var(--neutral-400);
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-primary);
}

.about-container {
    overflow-x: hidden;
}

/* Hero Section */
.about-hero {
    position: relative;
    height: 90vh;
    width: 100%;
    background: url('../image/aboutbg.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.about-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

/* Story Section */
.about-story {
    padding: 80px 0;
    background-color: var(--neutral-200);
}

.about-story h2 {
    color: var(--primary-dark);
    font-size: 2.5rem;
    margin-bottom: 30px;
    position: relative;
}

.about-story h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

.about-story p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--neutral-400);
}

.story-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    height: 100%;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.story-image:hover img {
    transform: scale(1.05);
}

/* Mission & Values Section */
.mission-section {
    padding: 80px 0;
    background-color: white;
}

.mission-section h2 {
    text-align: center;
    color: var(--primary-dark);
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.mission-section h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

.mission-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
}

.mission-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.value-item {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 10px;
    background-color: var(--neutral-200);
    transition: var(--transition);
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease, box-shadow 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-item.animated {
    transform: translateY(0);
    opacity: 1;
}

.value-item:nth-child(1) {
    transition-delay: 0.2s;
}

.value-item:nth-child(2) {
    transition-delay: 0.4s;
}

.value-item:nth-child(3) {
    transition-delay: 0.6s;
}

.value-item .icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    transition: transform 0.3s ease;
}

.value-item .icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background-color: rgba(0, 136, 204, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
}

.value-item:hover .icon {
    transform: translateY(-10px);
}

.value-item:hover .icon::after {
    transform: translate(-50%, -50%) scale(1);
}

.value-item h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.value-item p {
    color: var(--neutral-400);
    font-size: 1rem;
    line-height: 1.6;
}

/* Fleet Section */
.fleet-section {
    padding: 80px 0;
    background-color: white;
}

.fleet-section h2 {
    text-align: center;
    color: var(--primary-dark);
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.fleet-item {
    background-color: var(--neutral-200);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.fleet-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.fleet-image {
    height: 220px;
    overflow: hidden;
}

.fleet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.fleet-item:hover .fleet-image img {
    transform: scale(1.1);
}

.fleet-item h3 {
    color: var(--primary-dark);
    padding: 20px 20px 10px;
    font-size: 1.5rem;
}

.fleet-item p {
    color: var(--neutral-400);
    padding: 0 20px 20px;
    font-size: 1rem;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background-color: var(--primary-dark);
    color: var(--neutral-100);
}

.team-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
}

.qualifications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.qualification-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease, background-color 0.3s ease;
}

.qualification-item.animated {
    transform: translateY(0);
    opacity: 1;
}

.qualification-item:nth-child(1) {
    transition-delay: 0.1s;
}

.qualification-item:nth-child(2) {
    transition-delay: 0.3s;
}

.qualification-item:nth-child(3) {
    transition-delay: 0.5s;
}

.qualification-item:nth-child(4) {
    transition-delay: 0.7s;
}

.qualification-item .icon {
    font-size: 2.5rem;
    color: white; /* Keep as white as specified in original */
    margin-bottom: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.qualification-item .icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background-color: rgba(156, 138, 90, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
}

.qualification-item:hover .icon {
    transform: translateY(-10px);
}

.qualification-item:hover .icon::after {
    transform: translate(-50%, -50%) scale(1);
}

.qualification-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.qualification-item p {
    font-size: 1rem;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--neutral-100);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn-primary {
    background-color: var(--neutral-100);
    color: white; /* Changed from var(--primary) to white */
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--neutral-100);
    transform: scale(1.05);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Animation Styles */
.always-visible {
    opacity: 1 !important; /* Force visibility with !important */
    animation: none !important; /* Disable animations that might affect visibility */
}

.animated-title, .animated-subtitle {
    animation-fill-mode: both;
}

.animated-title.visible, .animated-subtitle.visible {
    opacity: 1; /* Ensure visibility even if animation doesn't run */
}

.animated-title {
    animation: slideInDown 1.2s ease-out forwards;
    opacity: 0;
}

.animated-subtitle {
    animation: slideInUp 1.2s ease-out 0.3s forwards;
    opacity: 0;
}

.section-animate {
    position: relative;
    overflow: hidden;
}

.section-animate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    transform: translateX(-100%);
    transition: transform 0.6s ease-out;
}

.section-animate.animated::before {
    transform: translateX(0);
}

.title-animate {
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.title-animate.animated {
    transform: translateY(0);
    opacity: 1;
}

.text-animate {
    transform: translateX(-50px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.text-animate.animated {
    transform: translateX(0);
    opacity: 1;
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.image-animate {
    transform: scale(0.8);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 1s ease;
}

.image-animate.animated {
    transform: scale(1);
    opacity: 1;
}

.scale-in {
    transform: scale(0.8);
}

/* New animation classes for hero content */
.animated-visible {
    animation-fill-mode: forwards !important; /* Ensure final animation state is kept */
}

.animated-title.animated-visible {
    animation: heroTitleIn 1.5s ease-out forwards;
    opacity: 0; /* Start invisible */
}

.animated-subtitle.animated-visible {
    animation: heroSubtitleIn 1.5s ease-out 0.3s forwards;
    opacity: 0; /* Start invisible */
}

/* Ensure text is visible after animation or if animation fails */
@keyframes heroTitleIn {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes heroSubtitleIn {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Backup to ensure visibility after a time delay */
@media (min-width: 1px) {
    .animated-title, .animated-subtitle {
        animation-delay: 0s !important;
        transition: opacity 0s;
        transition-delay: 2s; /* Force visibility after 2 seconds regardless of animation */
        opacity: 1 !important;
    }
}

/* Additional Animations */
@keyframes slideInDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .about-story, .mission-section, .team-section, .cta-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .about-story h2, .mission-section h2, .team-section h2, .cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .about-hero {
        height: 50vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .qualification-item {
        padding: 20px;
    }
}
