/**
 * About Us Page Design Enhancements
 * Enhanced column layouts and transition effects
 */

/* Container animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Main page content container */
.mandyju-page-content {
    position: relative;
    overflow: hidden;
}

/* About Us specific styling */
.mandyju-about-content {
    animation: fadeInUp 0.8s ease-out;
}

/* Main heading animations */
.mandyju-about-content h1 {
    font-family: var(--wp--preset--font-family--heading);
    font-size: var(--wp--preset--font-size--huge);
    color: var(--wp--preset--color--primary);
    text-align: center;
    margin-bottom: var(--wp--preset--spacing--70);
    position: relative;
    animation: slideInFromLeft 1s ease-out 0.2s both;
}

.mandyju-about-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--primary-alt));
    animation: scaleIn 0.8s ease-out 0.8s both;
}

/* Introduction paragraph styling */
.mandyju-about-intro {
    font-size: var(--wp--preset--font-size--medium);
    line-height: 1.7;
    text-align: center;
    margin-bottom: var(--wp--preset--spacing--80);
    color: var(--wp--preset--color--text-base);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.mandyju-about-intro strong {
    color: var(--wp--preset--color--primary);
    font-weight: 700;
}

/* Two-column layout for Mission and Vision */
.mandyju-mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--wp--preset--spacing--80);
    margin-bottom: var(--wp--preset--spacing--80);
}

.mandyju-mission-card,
.mandyju-vision-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    padding: var(--wp--preset--spacing--60);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--wp--preset--color--border-subtle);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.mandyju-mission-card::before,
.mandyju-vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--primary-alt));
    transform: scaleX(0);
    transition: transform 0.6s ease;
}

.mandyju-mission-card:hover::before,
.mandyju-vision-card:hover::before {
    transform: scaleX(1);
}

.mandyju-mission-card {
    animation: slideInFromLeft 0.8s ease-out 0.6s both;
}

.mandyju-vision-card {
    animation: slideInFromRight 0.8s ease-out 0.8s both;
}

.mandyju-mission-card:hover,
.mandyju-vision-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.mandyju-mission-card h2,
.mandyju-vision-card h2 {
    font-family: var(--wp--preset--font-family--heading);
    font-size: var(--wp--preset--font-size--xx-large);
    color: var(--wp--preset--color--primary-alt);
    margin-bottom: var(--wp--preset--spacing--40);
    display: flex;
    align-items: center;
    gap: var(--wp--preset--spacing--30);
}

.mandyju-mission-card h2::before,
.mandyju-vision-card h2::before {
    content: '';
    width: 40px;
    height: 40px;
    background: var(--wp--preset--color--primary);
    mask-size: 24px;
    mask-position: center;
    mask-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.mandyju-mission-card h2::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
}

.mandyju-vision-card h2::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z'/%3E%3C/svg%3E");
}

.mandyju-mission-card:hover h2::before,
.mandyju-vision-card:hover h2::before {
    transform: rotate(360deg);
}

.mandyju-mission-card p,
.mandyju-vision-card p {
    line-height: 1.7;
    color: var(--wp--preset--color--text-base);
}

/* Values section */
.mandyju-values-section {
    margin-bottom: var(--wp--preset--spacing--80);
    animation: fadeInUp 0.8s ease-out 1s both;
}

.mandyju-values-section h2 {
    font-family: var(--wp--preset--font-family--heading);
    font-size: var(--wp--preset--font-size--xxx-large);
    color: var(--wp--preset--color--primary-alt);
    text-align: center;
    margin-bottom: var(--wp--preset--spacing--60);
}

.mandyju-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--wp--preset--spacing--50);
}

.mandyju-value-item {
    background: white;
    padding: var(--wp--preset--spacing--50);
    border-radius: 8px;
    border-left: 4px solid var(--wp--preset--color--primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.mandyju-value-item:nth-child(1) { animation-delay: 1.2s; }
.mandyju-value-item:nth-child(2) { animation-delay: 1.4s; }
.mandyju-value-item:nth-child(3) { animation-delay: 1.6s; }
.mandyju-value-item:nth-child(4) { animation-delay: 1.8s; }

.mandyju-value-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-left-color: var(--wp--preset--color--primary-alt);
}

.mandyju-value-item strong {
    display: block;
    color: var(--wp--preset--color--primary);
    font-size: var(--wp--preset--font-size--medium);
    margin-bottom: var(--wp--preset--spacing--20);
    font-weight: 700;
}

/* Experience section */
.mandyju-experience-section {
    background: linear-gradient(135deg, #f8f7f4 0%, #f0ede5 100%);
    padding: var(--wp--preset--spacing--80);
    border-radius: 16px;
    margin-top: var(--wp--preset--spacing--80);
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.8s ease-out 2s both;
}

.mandyju-experience-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(193, 154, 91, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.mandyju-experience-section h2 {
    font-family: var(--wp--preset--font-family--heading);
    font-size: var(--wp--preset--font-size--xxx-large);
    color: var(--wp--preset--color--primary-alt);
    margin-bottom: var(--wp--preset--spacing--50);
    position: relative;
    z-index: 2;
}

.mandyju-experience-section p {
    font-size: var(--wp--preset--font-size--medium);
    line-height: 1.7;
    color: var(--wp--preset--color--text-base);
    position: relative;
    z-index: 2;
}

/* Responsive design */
@media (max-width: 768px) {
    .mandyju-mission-vision-grid {
        grid-template-columns: 1fr;
        gap: var(--wp--preset--spacing--60);
    }
    
    .mandyju-mission-card,
    .mandyju-vision-card {
        padding: var(--wp--preset--spacing--50);
    }
    
    .mandyju-values-grid {
        grid-template-columns: 1fr;
    }
    
    .mandyju-experience-section {
        padding: var(--wp--preset--spacing--60);
        margin-top: var(--wp--preset--spacing--60);
    }
    
    .mandyju-about-content h1 {
        font-size: var(--wp--preset--font-size--xxx-large);
    }
}

/* Smooth scrolling behavior for the page */
html {
    scroll-behavior: smooth;
}

/* Additional interactive enhancements */
.mandyju-mission-card,
.mandyju-vision-card {
    cursor: pointer;
}

.mandyju-mission-card:active,
.mandyju-vision-card:active {
    transform: translateY(-6px) scale(0.98);
}

/* Loading state */
.mandyju-about-content {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.page-loaded .mandyju-about-content {
    opacity: 1;
}

/* Focus styles for accessibility */
.mandyju-mission-card:focus-within,
.mandyju-vision-card:focus-within,
.mandyju-value-item:focus-within {
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 4px;
}

/* Enhanced hover states */
.mandyju-mission-card:hover h2,
.mandyju-vision-card:hover h2 {
    color: var(--wp--preset--color--primary);
    transition: color 0.3s ease;
}

/* Improved responsive grid for values */
@media (min-width: 769px) and (max-width: 1024px) {
    .mandyju-values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Enhanced shadow effects */
.mandyju-mission-card:hover,
.mandyju-vision-card:hover {
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(193, 154, 91, 0.1);
}

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}