/* About Page Styles */

/* Hero Section */
.about-hero {
    margin-bottom: 3rem;
}

.shop-image img {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.shop-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

/* Our History Timeline */
.our-history-section {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.timeline-container {
    position: relative;
    padding: 2rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-milestone {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.milestone-year {
    flex: 0 0 120px;
    text-align: center;
    padding-top: 0.5rem;
}

.year-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    font-weight: bold;
    font-size: 1.4rem;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    position: relative;
    z-index: 3;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.timeline-milestone:hover .year-badge {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.milestone-content {
    flex: 1;
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    border-left: 5px solid var(--secondary-color);
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.milestone-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 12px;
}

.timeline-milestone:hover .milestone-content {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.timeline-milestone:hover .milestone-content::before {
    opacity: 1;
}

.milestone-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.9rem;
    font-weight: 600;
    font-size: 1.4rem;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.timeline-milestone:hover .milestone-content h3 {
    color: var(--secondary-color);
}

.milestone-content p {
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.timeline-connector {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 60px;
    width: 4px;
    background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
    z-index: 1;
    opacity: 0.7;
}

/* Feature Cards - Modern and Stylish */
.feature-card {
    display: flex;
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    border-radius: 12px;
    padding: 1.8rem;
    height: 100%;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-left: 5px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-right: 1.8rem;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

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

.feature-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.9rem;
    font-weight: 600;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-content h3 {
    color: var(--secondary-color);
}

.feature-content p {
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* Classic Cars Section */
.classic-cars-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.featured-image {
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.project-details {
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

/* Gallery Items - Enhanced with Modern Effects */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    margin-bottom: 2rem;
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform-origin: center;
}

.gallery-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(204, 0, 0, 0.1), rgba(51, 51, 51, 0.1));
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-image {
    border-radius: 12px;
    transition: all 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: saturate(0.95) brightness(0.95);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.08);
    filter: saturate(1.1) brightness(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.5), transparent);
    padding: 2.5rem 1.5rem 1.5rem;
    color: white;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform: translateY(20px);
    z-index: 2;
}

.gallery-item:hover .image-overlay {
    opacity: 1;
    transform: translateY(0);
}

.overlay-content {
    transform: translateY(10px);
    transition: transform 0.4s ease 0.1s;
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.overlay-content p {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Team Section - Enhanced */
.team-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    background-color: #f9f9f9;
}

.team-image-container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

.team-member-image {
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    border: 4px solid #f5f5f5;
    filter: saturate(0.9);
}

.team-image-container:hover .team-member-image {
    transform: scale(1.08);
    border-color: var(--secondary-color);
    filter: saturate(1.1);
}

/* Updated Team Image Overlay - Modern and Elegant */
.team-image-container .image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4), transparent);
    padding: 2rem 1.2rem 1.2rem;
    color: white;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform: translateY(10px);
}

.team-image-container:hover .image-overlay {
    opacity: 1;
    transform: translateY(0);
}

.team-image-container .overlay-content p {
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease 0.1s;
}

.image-caption {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Closing Statement - Enhanced for better visibility */
.closing-statement {
    position: relative;
    z-index: 5;
}

.closing-statement .card {
    background: linear-gradient(135deg, #ffffff, #f8f8f8);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-top: 5px solid var(--secondary-color);
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

.closing-statement .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.closing-statement .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(204, 0, 0, 0.05), rgba(51, 51, 51, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.closing-statement .card:hover::before {
    opacity: 1;
}

.closing-statement .card-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.closing-statement .button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.closing-statement .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(204, 0, 0, 0.3);
}

.closing-statement .button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.closing-statement .button:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0) translate(-50%, -50%);
        opacity: 0.5;
    }
    100% {
        transform: scale(20) translate(-50%, -50%);
        opacity: 0;
    }
}

/* Animation Styles - Modern and Elegant */
.animated-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1), 
                transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: opacity, transform;
}

.animated-element.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for multiple elements */
.columns .animated-element:nth-child(1) { transition-delay: 0.1s; }
.columns .animated-element:nth-child(2) { transition-delay: 0.2s; }
.columns .animated-element:nth-child(3) { transition-delay: 0.3s; }
.columns .column:nth-child(1) .animated-element { transition-delay: 0.1s; }
.columns .column:nth-child(2) .animated-element { transition-delay: 0.2s; }
.columns .column:nth-child(3) .animated-element { transition-delay: 0.3s; }
.columns .column:nth-child(4) .animated-element { transition-delay: 0.4s; }
.columns .column:nth-child(5) .animated-element { transition-delay: 0.5s; }
.columns .column:nth-child(6) .animated-element { transition-delay: 0.6s; }

/* Always visible elements to ensure intuitive scrolling */
.about-hero,
.why-choose-us .columns:first-child .feature-card,
.our-team-section h2,
.our-team-section > p,
.classic-cars-section h2,
.classic-cars-section > .content,
.closing-statement {
    opacity: 1 !important;
    transform: none !important;
}

/* Scroll indicator to prevent white space misleading - floating at bottom center */
.section-end-indicator {
    height: 50px;
    width: 100%;
    position: fixed;
    bottom: 20px;
    left: 0;
    z-index: 100;
    overflow: hidden;
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.section-end-indicator::after {
    content: "\f078"; /* Font Awesome chevron-down icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    bottom: 15px;
    left: 50%;
    font-size: 24px;
    color: var(--secondary-color);
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    text-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Add a subtle glow effect to make it more visible */
.section-end-indicator::before {
    content: "";
    position: absolute;
    bottom: 15px;
    left: 50%;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(204, 0, 0, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    transform: translateX(-50%);
    border-radius: 50%;
    animation: pulse 2s infinite alternate;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translateX(-50%) scale(1.2);
        opacity: 0.8;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* SEO Improvements */
.lined-title {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
}

.lined-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .feature-card {
        flex-direction: column;
    }

    .feature-icon {
        margin-right: 0;
        margin-bottom: 1rem;
        justify-content: center;
    }

    .feature-content h3, .feature-content p {
        text-align: center;
    }

    .featured-project .columns {
        flex-direction: column-reverse;
    }

    .project-details {
        margin-bottom: 1.5rem;
    }

    /* Timeline responsive adjustments */
    .timeline-milestone {
        flex-direction: column;
    }

    .milestone-year {
        flex: 0 0 auto;
        margin-bottom: 1rem;
        padding-top: 0;
    }

    .timeline-connector {
        left: 50%;
        transform: translateX(-50%);
    }

    .milestone-content {
        border-left: none;
        border-top: 5px solid var(--secondary-color);
    }

    .milestone-content h3 {
        text-align: center;
    }

    /* Responsive scroll indicator adjustments */
    .section-end-indicator {
        bottom: 15px;
    }

    .section-end-indicator::after {
        font-size: 20px;
    }

    .section-end-indicator::before {
        width: 35px;
        height: 35px;
    }
}

/* Small screen adjustments */
@media screen and (max-width: 480px) {
    .section-end-indicator {
        bottom: 10px;
    }

    .section-end-indicator::after {
        font-size: 16px;
    }

    .section-end-indicator::before {
        width: 30px;
        height: 30px;
    }
}
