/* About Us Page - Responsive Styles with Mobile-First Approach */

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    /* Responsive: Allow cards to adapt to container */
    width: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(84, 104, 255, 0.15);
}

.service-card-image {
    /* Responsive height with aspect ratio */
    height: clamp(180px, 40vw, 200px);
    background: linear-gradient(135deg, #05c0e8, #00d4ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(32px, 8vw, 50px);
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-content {
    padding: clamp(15px, 4vw, 25px);
}

.service-card-content h3 {
    color: #0689ce;
    font-size: clamp(16px, 4vw, 20px);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card-content p {
    color: #666;
    line-height: 1.6;
    font-size: clamp(13px, 3vw, 15px);
}

.value-card {
    background: white;
    padding: clamp(12px, 3vw, 15px);
    border-radius: 10px;
    border-left: 4px solid #0689ce;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.value-icon {
    font-size: clamp(28px, 6vw, 40px);
    color: #0689ce;
    margin-bottom: 15px;
    height: auto;
}

.value-card h3 {
    color: #000;
    font-size: clamp(16px, 4vw, 20px);
    margin-bottom: 10px;
    font-weight: 600;
}

.value-card p {
    color: #666;
    line-height: 1.7;
    font-size: clamp(13px, 3vw, 15px);
}

.philosophy-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.philosophy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(84, 104, 255, 0.2);
}

.philosophy-card-image {
    /* Responsive image height */
    height: clamp(180px, 40vw, 220px);
    overflow: hidden;
    background: linear-gradient(135deg, #0689ce, #05c0e8);
}

.philosophy-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.philosophy-card-content {
    padding: clamp(15px, 4vw, 25px);
}

.philosophy-card-content h3 {
    color: #000;
    font-size: clamp(18px, 5vw, 24px);
    margin-bottom: 8px;
    font-weight: 700;
}

.philosophy-card-content p {
    color: #666;
    line-height: 1.8;
    font-size: clamp(14px, 3vw, 16px);
}

.philosophy-card:nth-child(2) .philosophy-card-image {
    background: linear-gradient(135deg, #05c0e8, #00d4ff);
}

.philosophy-card:nth-child(3) .philosophy-card-image {
    background: linear-gradient(135deg, #0689ce, #05c0e8);
}
/* Timeline Styles - Our Journey Section */
.journey-timeline {
    position: relative;
    padding: clamp(20px, 5vw, 60px) 0;
}

.timeline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: clamp(30px, 5vw, 50px);
    position: relative;
}

/* Timeline circle styling */
.timeline-item {
    text-align: center;
    position: relative;
    animation: slideUp 0.6s ease-out both;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
.timeline-item:nth-child(7) { animation-delay: 0.7s; }
.timeline-item:nth-child(8) { animation-delay: 0.8s; }

.timeline-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-weight: 700;
    font-size: clamp(16px, 3vw, 20px);
    color: white;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 3px solid white;
    transition: all 0.3s ease;
}

/* Color progression for timeline circles */
.timeline-item:nth-child(1) .timeline-circle {
    background: linear-gradient(135deg, #0689ce 0%, #0581c0 100%);
    box-shadow: 0 0 20px rgba(6, 137, 206, 0.4);
}

.timeline-item:nth-child(2) .timeline-circle {
    background: linear-gradient(135deg, #fba440 0%, #f89820 100%);
    box-shadow: 0 0 20px rgba(251, 164, 64, 0.4);
}

.timeline-item:nth-child(3) .timeline-circle {
    background: linear-gradient(135deg, #f85e3a 0%, #f53a0a 100%);
    box-shadow: 0 0 20px rgba(248, 94, 58, 0.4);
}

.timeline-item:nth-child(4) .timeline-circle {
    background: linear-gradient(135deg, #2d81c0 0%, #1f5fa0 100%);
    box-shadow: 0 0 20px rgba(45, 129, 192, 0.4);
}

/* Timeline circle hover effect */
.timeline-item:hover .timeline-circle {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Horizontal connector lines for desktop */
@media (min-width: 768px) {
    .timeline-container {
        position: relative;
    }
    
    .timeline-item:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 35px;
        left: 50%;
        right: auto;
        width: calc(200% - 20px);
        height: 3px;
        background: #0689ce;
        opacity: 0.5;
        animation: drawLine 1.2s ease-out both;
        animation-delay: 0.3s;
    }
    
    .timeline-item:nth-child(1):not(:last-child)::after {
        background: #0689ce;
        animation-delay: 0.2s;
    }
    
    .timeline-item:nth-child(2):not(:last-child)::after {
        background: #0689ce;
        animation-delay: 0.3s;
    }
    
    .timeline-item:nth-child(3):not(:last-child)::after {
        background: #0689ce;
        animation-delay: 0.4s;
    }
}

/* Mobile version - vertical timeline */
@media (max-width: 767px) {
    .timeline-container {
        display: flex;
        flex-direction: column;
        gap: clamp(40px, 8vw, 60px);
    }
    
    .timeline-item:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 3px;
        height: clamp(30px, 5vw, 50px);
        background: #0689ce;
        opacity: 0.5;
        animation: drawLineVertical 0.8s ease-out both;
    }
    
    .timeline-item:nth-child(1):not(:last-child)::after {
        background: #0689ce;
        animation-delay: 0.2s;
    }
    
    .timeline-item:nth-child(2):not(:last-child)::after {
        background: #0689ce;
        animation-delay: 0.3s;
    }
    
    .timeline-item:nth-child(3):not(:last-child)::after {
        background: #0689ce;
        animation-delay: 0.4s;
    }
    
    .timeline-item:nth-child(4):not(:last-child)::after {
        background: #0689ce;
        animation-delay: 0.5s;
    }
}

.timeline-year {
    color: white;
    font-weight: 700;
}

.timeline-title {
    color: #333;
    font-size: clamp(16px, 3vw, 18px);
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-description {
    color: #666;
    font-size: clamp(13px, 2.5vw, 15px);
    line-height: 1.6;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drawLine {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

@keyframes drawLineVertical {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: 40px;
        opacity: 1;
    }
}

/* History Carousel Styles - Swiper.js */
.history-carousel {
    position: relative;
    width: 100%;
    height: auto;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.history-slider {
    position: relative;
    height: 500px;
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.history-slider .swiper-wrapper {
    height: 100%;
    width: 100%;
}

.history-slider .swiper-slide {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.history-slider .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 137, 206, 0.4) 0%, rgba(6, 137, 206, 0.2) 100%);
    z-index: 1;
}

.history-slider .swiper-slide > div {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(20px, 5vw, 50px);
}

.history-slider h1 {
    font-size: clamp(36px, 7vw, 56px);
    font-weight: 700;
    color: white;
    margin: 0 0 15px 0;
}

.history-slider p {
    font-size: clamp(16px, 3vw, 20px);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    margin: 0;
    max-width: 600px;
}

/* Main Slider Controls */
.main-slider-controls {
    position: relative;
    width: 100%;
    z-index: 10;
    background: rgba(255, 255, 255, 0.98);
    padding: clamp(20px, 5vw, 40px);
}

.main-slider-controls > div {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.main-slider-controls h2 {
    font-size: clamp(24px, 5vw, 36px);
    margin: 0 0 10px 0;
    color: #333;
    text-align: center;
}

.main-slider-controls p {
    font-size: clamp(14px, 3vw, 16px);
    color: #666;
    margin: 0;
    text-align: center;
}

/* Years Slider */
.years-slider {
    max-width: 300px;
    flex: 1;
}

.years-slider .swiper-slide {
    flex: 0 0 auto;
    width: auto !important;
}

.years-slider .swiper-slide p {
    font-size: 16px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    margin: 0;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
}

.years-slider .swiper-slide-active p {
    color: #0689ce;
    border-color: #0689ce;
}

/* Navigation Buttons */
.main-slider-prev,
.main-slider-next {
    background: white;
    border: 2px solid #0689ce;
    color: #0689ce;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.main-slider-next {
    background: #0689ce;
    color: white;
}

.main-slider-prev:hover {
    background: #0689ce;
    color: white;
}

.main-slider-next:hover {
    background: #0581c0;
    border-color: #0581c0;
}

/* Progress Bar */
.main-slider-progress {
    height: 100%;
    background: #0689ce;
    border-radius: 2px;
    width: 25%;
    transition: width 0.3s ease;
}