/* About Us Page Custom Styles */

/* Hero About Section */
.hero-about-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23e9ecef" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.hero-about-content {
    position: relative;
    z-index: 2;
}

.hero-about-content .section-title .title {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.hero-about-content .section-title h3 {
    color: #007bff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-about-content .title-desc p {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 40px;
}

.hero-stats {
    margin-top: 40px;
}

.hero-stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.8);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.hero-stat-item:hover {
    transform: translateY(-5px);
}

.hero-stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 10px;
}

.hero-stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-about-image {
    position: relative;
    z-index: 2;
}

.image-gallery {
    position: relative;
    text-align: center;
}

.main-image {
    position: relative;
    z-index: 1;
}

.main-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Animated Images */
.animated-images {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.animated-image {
    position: absolute;
    width: 175px;
    height: 175px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.6s ease;
    opacity: 0;
}

.animated-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.animated-image:hover img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    padding: 20px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.animated-image:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: white;
}

.image-overlay p {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
    color: white;
}

/* Image Positions */
.image-left {
    top: 0%;
    left: -20px;
    animation: slideInFromLeft 1s ease-out 0.5s forwards;
}

.image-right {
    bottom: 0%;
    right: -100px;
    animation: slideInFromRight 1s ease-out 1s forwards;
}

.image-center {
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%) scale(0);
    animation: scaleInFromCenter 1s ease-out 1.5s forwards;
}

/* Animations */
@keyframes slideInFromLeft {
    0% {
        left: -200px;
        opacity: 0;
    }
    100% {
        left: 20px;
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        right: -200px;
        opacity: 0;
    }
    100% {
        right: 20px;
        opacity: 1;
    }
}

@keyframes scaleInFromCenter {
    0% {
        transform: translateX(-50%) translateY(-50%) scale(0);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) translateY(-50%) scale(1);
        opacity: 1;
    }
}

/* Hover Effects */
.animated-image:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.image-left:hover {
    left: 15px;
}

.image-right:hover {
    right: 15px;
}

.image-center:hover {
    transform: translateX(-50%) translateY(-50%) scale(1.05);
}


@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Responsive Design for Hero Section */
@media (max-width: 768px) {
    .hero-about-section {
        padding: 60px 0;
    }
    
    .hero-about-content .section-title .title {
        font-size: 36px;
    }
    
    .hero-about-content .title-desc p {
        font-size: 16px;
    }
    
    .animated-images {
        height: 300px;
    }
    
    .animated-image {
        width: 125px;
        height: 125px;
    }
    
    .image-left {
        left: 10px;
        animation: slideInFromLeft 1s ease-out 0.5s forwards;
    }
    
    .image-right {
        right: 10px;
        animation: slideInFromRight 1s ease-out 1s forwards;
    }
    
    .image-overlay h4 {
        font-size: 14px;
    }
    
    .image-overlay p {
        font-size: 11px;
    }
}

/* Hero Section Improvements */
.page-title-heading .subtitle {
    color: #ffffff;
    font-size: 18px;
    margin-top: 15px;
    opacity: 0.9;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

.ttm-counter-box {
    text-align: center;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.ttm-counter-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.ttm-counter-box-icon {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 20px;
}

.ttm-counter-box-number {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.ttm-counter-suffix {
    font-size: 36px;
    color: #007bff;
}

.ttm-counter-box-title {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Timeline Section */
.timeline-section {
    padding: 80px 0;
    background: #ffffff;
    overflow: hidden;
}

.ttm-timeline-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.ttm-timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #007bff, #0056b3);
    transform: translateX(-50%);
    z-index: 1;
}

.ttm-timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    z-index: 2;
}

.ttm-timeline-item:nth-child(odd) {
    flex-direction: row;
}

.ttm-timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.ttm-timeline-year {
    background: #007bff;
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 18px;
    position: relative;
    z-index: 3;
    min-width: 100px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ttm-timeline-year:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

.ttm-timeline-item:nth-child(odd) .ttm-timeline-year {
    margin-right: 30px;
}

.ttm-timeline-item:nth-child(even) .ttm-timeline-year {
    margin-left: 30px;
}

.ttm-timeline-content {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex: 1;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ttm-timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.ttm-timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
}

.ttm-timeline-item:nth-child(odd) .ttm-timeline-content::before {
    left: -30px;
    border-right-color: #f8f9fa;
    transform: translateY(-50%);
}

.ttm-timeline-item:nth-child(even) .ttm-timeline-content::before {
    right: -30px;
    border-left-color: #f8f9fa;
    transform: translateY(-50%);
}

.ttm-timeline-content h4 {
    color: #666;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

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

/* Values Section */
.values-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.values-section .section-title h3,
.values-section .section-title .title {
    color: white;
}

.ttm-feature-box {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease, background 0.3s ease;
    margin-bottom: 30px;
}

.ttm-feature-box:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.2);
}

.ttm-feature-box-icon {
    font-size: 48px;
    color: #ffffff;
    margin-bottom: 25px;
}

.ttm-feature-box-content h4 {
    color: white;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.ttm-feature-box-content p {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design - Multiple Breakpoints */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .ttm-timeline-wrapper {
        max-width: 1000px;
    }
    
    .ttm-timeline-content {
        padding: 40px;
    }
    
    .ttm-timeline-content h4 {
        font-size: 28px;
    }
    
    .ttm-timeline-content p {
        font-size: 18px;
    }
}

/* Desktop (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .ttm-timeline-wrapper {
        max-width: 900px;
    }
    
    .ttm-timeline-content {
        padding: 35px;
    }
    
    .ttm-timeline-content h4 {
        font-size: 26px;
    }
    
    .ttm-timeline-content p {
        font-size: 17px;
    }
}

/* Tablet Landscape (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .timeline-section {
        padding: 70px 0;
    }
    
    .ttm-timeline-wrapper {
        max-width: 100%;
        padding: 0 30px;
    }
    
    .ttm-timeline-wrapper::before {
        left: 30px;
        width: 3px;
    }
    
    .ttm-timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 60px;
        margin-bottom: 45px;
    }
    
    .ttm-timeline-year {
        position: absolute;
        left: -60px;
        margin: 0 !important;
        padding: 12px 18px;
        font-size: 17px;
        min-width: 90px;
    }
    
    .ttm-timeline-content {
        padding: 25px;
        margin-left: 0;
        width: 100%;
    }
    
    .ttm-timeline-content::before {
        left: -15px !important;
        right: auto !important;
        border-right-color: #f8f9fa !important;
        border-left-color: transparent !important;
        border-width: 12px;
    }
    
    .ttm-timeline-content h4 {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .ttm-timeline-content p {
        font-size: 15px;
        line-height: 1.6;
    }
}

/* Tablet Portrait (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .timeline-section {
        padding: 60px 0;
    }
    
    .ttm-timeline-wrapper {
        max-width: 100%;
        padding: 0 25px;
    }
    
    .ttm-timeline-wrapper::before {
        left: 25px;
        width: 3px;
    }
    
    .ttm-timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 55px;
        margin-bottom: 40px;
    }
    
    .ttm-timeline-year {
        position: absolute;
        left: -55px;
        margin: 0 !important;
        padding: 10px 16px;
        font-size: 16px;
        min-width: 85px;
    }
    
    .ttm-timeline-content {
        padding: 22px;
        margin-left: 0;
        width: 100%;
    }
    
    .ttm-timeline-content::before {
        left: -15px !important;
        right: auto !important;
        border-right-color: #f8f9fa !important;
        border-left-color: transparent !important;
        border-width: 10px;
    }
    
    .ttm-timeline-content h4 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .ttm-timeline-content p {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* Mobile Large (481px - 575px) */
@media (max-width: 575px) and (min-width: 481px) {
    .timeline-section {
        padding: 50px 0;
    }
    
    .ttm-timeline-wrapper {
        padding: 0 20px;
        margin-left: 10px;
    }
    
    .ttm-timeline-wrapper::before {
        left: 20px;
        width: 2px;
    }
    
    .ttm-timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 45px;
        margin-bottom: 35px;
    }
    
    .ttm-timeline-year {
        position: absolute;
        left: -45px;
        margin: 0 !important;
        padding: 8px 14px;
        font-size: 15px;
        min-width: 75px;
    }
    
    .ttm-timeline-content {
        padding: 18px;
        margin-left: 0;
        width: 100%;
    }
    
    .ttm-timeline-content::before {
        left: -12px !important;
        right: auto !important;
        border-right-color: #f8f9fa !important;
        border-left-color: transparent !important;
        border-width: 8px;
    }
    
    .ttm-timeline-content h4 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .ttm-timeline-content p {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    .timeline-section {
        padding: 40px 0;
    }
    
    .ttm-timeline-wrapper {
        padding: 0 15px;
        margin-left: 15px;
    }
    
    .ttm-timeline-wrapper::before {
        left: 15px;
        width: 2px;
    }
    
    .ttm-timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 35px;
        margin-bottom: 30px;
    }
    
    .ttm-timeline-year {
        position: absolute;
        left: -35px;
        margin: 0 !important;
        padding: 6px 12px;
        font-size: 14px;
        min-width: 65px;
    }
    
    .ttm-timeline-content {
        padding: 15px;
        margin-left: 0;
        width: 100%;
    }
    
    .ttm-timeline-content::before {
        left: -10px !important;
        right: auto !important;
        border-right-color: #f8f9fa !important;
        border-left-color: transparent !important;
        border-width: 6px;
    }
    
    .ttm-timeline-content h4 {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .ttm-timeline-content p {
        font-size: 12px;
        line-height: 1.3;
    }
}

/* Extra Small Mobile (320px and below) */
@media (max-width: 320px) {
    .timeline-section {
        padding: 30px 0;
    }
    
    .ttm-timeline-wrapper {
        padding: 0 10px;
        margin-left: 20px;
    }
    
    .ttm-timeline-wrapper::before {
        left: 10px;
        width: 1px;
    }
    
    .ttm-timeline-item {
        padding-left: 25px;
        margin-bottom: 25px;
    }
    
    .ttm-timeline-year {
        left: -25px;
        padding: 4px 8px;
        font-size: 12px;
        min-width: 50px;
    }
    
    .ttm-timeline-content {
        padding: 12px;
    }
    
    .ttm-timeline-content::before {
        left: -8px !important;
        border-width: 4px;
    }
    
    .ttm-timeline-content h4 {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .ttm-timeline-content p {
        font-size: 11px;
        line-height: 1.2;
    }
}

/* Common responsive styles for other sections */
@media (max-width: 768px) {
    .ttm-counter-box {
        margin-bottom: 20px;
    }
    
    .stats-section,
    .values-section {
        padding: 60px 0;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-150px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(150px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Counter Animation */
.ttm-counter {
    display: inline-block;
}

/* Hover Effects */
.ttm-counter-box:hover .ttm-counter-box-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.ttm-feature-box:hover .ttm-feature-box-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}
