/* About Page Styles */
.hero-section {
    background: var(--gradient-primary);
    padding: 5rem 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(139, 115, 85, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
    opacity: 0.4;
}

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

.hero-section h1 {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.95) !important;
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-section .btn {
    animation: fadeInUp 0.8s ease-out 0.5s both;
    position: relative;
    overflow: hidden;
}

.hero-section .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-section .btn:hover::before {
    width: 300px;
    height: 300px;
}

.team-img {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.team-img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.value-card {
    background: #fff;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-light);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.team-card {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.team-img-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.team-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.team-card:hover .team-img-container img {
    transform: scale(1.05);
}

.team-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    padding: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.team-card:hover .team-social {
    bottom: 0;
}

.team-social a {
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-answer {
    padding: 1.5rem;
    background: #fff;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.contact-info-card {
    background: #fff;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .team-img {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .team-img {
        width: 140px;
        height: 140px;
    }
    
    .value-card {
        margin-bottom: 1.5rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Delay animations for staggered effect */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* Profile Section */
.profile-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.profile-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.3) 0%, transparent 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.profile-image-wrapper:hover::before {
    opacity: 1;
}

.profile-image-wrapper img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: grayscale(20%);
}

.profile-image-wrapper:hover img {
    transform: scale(1.08) rotate(2deg);
    filter: grayscale(0%);
}

.profile-image-wrapper .bg-gradient {
    transition: all 0.5s ease;
}

.profile-image-wrapper:hover .bg-gradient {
    background: linear-gradient(to top, rgba(139, 115, 85, 0.95), transparent) !important;
}

/* Badge Animations */
.badge {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.badge:hover::before {
    left: 100%;
}

/* Stat Cards */
.stat-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.stat-card:hover::before {
    transform: scale(1);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color) !important;
}

.stat-card .stat-icon i {
    transition: all 0.4s ease;
}

.stat-card:hover .stat-icon i {
    transform: scale(1.2) rotate(10deg);
    color: var(--accent-color) !important;
}

/* Timeline */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-color), var(--accent-light));
}

.timeline-item {
    position: relative;
    opacity: 0;
    animation: slideInLeft 0.6s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.3s; }
.timeline-item:nth-child(3) { animation-delay: 0.5s; }

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

.timeline-marker {
    position: relative;
    z-index: 1;
}

.timeline-marker > div {
    transition: all 0.3s ease;
    box-shadow: 0 0 0 4px rgba(139, 115, 85, 0.1);
}

.timeline-item:hover .timeline-marker > div {
    transform: scale(1.3);
    box-shadow: 0 0 0 8px rgba(139, 115, 85, 0.2);
}

/* Education & Experience Cards */
.education-card,
.experience-card {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.education-card::after,
.experience-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 115, 85, 0.05), transparent);
    transition: left 0.6s ease;
}

.education-card:hover::after,
.experience-card:hover::after {
    left: 100%;
}

.education-card:hover,
.experience-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(139, 115, 85, 0.15);
}

.icon-wrapper {
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

.icon-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(139, 115, 85, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.education-card:hover .icon-wrapper::before,
.experience-card:hover .icon-wrapper::before {
    width: 120%;
    height: 120%;
}

.education-card:hover .icon-wrapper,
.experience-card:hover .icon-wrapper {
    transform: scale(1.15) rotate(360deg);
    background: var(--accent-color) !important;
}

.education-card:hover .icon-wrapper i,
.experience-card:hover .icon-wrapper i {
    color: #ffffff !important;
}

/* Process Cards */
.process-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.process-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.process-number {
    transition: all 0.3s ease;
}

.process-card:hover .process-number {
    transform: scale(1.15) rotate(360deg);
    background: var(--accent-color) !important;
}

/* Court Cards */
.court-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.court-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: #ffffff;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(139, 115, 85, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* Compact Sections */
.hero-section-compact {
    padding: 2rem 0 !important;
}

.hero-section-compact h1 {
    font-size: 1.75rem !important;
}

.hero-section-compact p {
    font-size: 1rem !important;
}

.cta-section-compact {
    padding: 2.5rem 0 !important;
}

.cta-section-compact h2 {
    font-size: 1.25rem !important;
}

.cta-section-compact p {
    font-size: 0.95rem !important;
}

/* Additional Responsive Styles */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 4rem 0;
    }

    .profile-image-wrapper img {
        aspect-ratio: 1 / 1 !important;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 2rem !important;
    }

    .hero-section .lead {
        font-size: 1.1rem !important;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .process-number {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.25rem !important;
    }

    .cta-section {
        padding: 3rem 0;
    }

    .cta-section h2 {
        font-size: 1.75rem !important;
    }
}
