/* Custom Utilities */
.py-7 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.z-1 {
    z-index: 1;
}

:root {
    --primary-color: #f37649;
}

/* Gradients */
.bg-gradient-primary-to-secondary {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--primary-color) 100%);
}

.bg-gradient-dark-transparent {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

/* Card Overlays */
.card-img-overlay-bottom {
    top: auto;
    padding: 1.5rem;
}

/* Hover Effects */
.hover-translate-y {
    transition: transform 0.3s ease;
}

.hover-translate-y:hover {
    transform: translateY(-5px);
}

/* Object Fit */
.object-cover {
    object-fit: cover;
    height: 300px;
}

/* Animations */
.floating-animation {
    animation: floating 3s ease-in-out infinite;
}

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

/* Background Elements */
.transform-scale-2 {
    transform: scale(2);
}

/* Add animate.css classes */
.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate__fadeInRight {
    animation-name: fadeInRight;
}

.animate__delay-1s {
    animation-delay: 0.2s;
}

.animate__delay-2s {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Custom Button Styles */
.btn {
    transition: all 0.3s ease;
}

.btn-lg {
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Card Styles */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }
    .display-4 {
        font-size: 2.25rem;
    }
    .display-5 {
        font-size: 2rem;
    }
    .lead {
        font-size: 1.1rem;
    }
}

/* Section Spacing for Mobile */
@media (max-width: 768px) {
    .py-7 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Team Member Styles */
.team-member {
    position: relative;
    width: 100%;
    height: 100%;
}

.team-member .image-wrapper {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: #505050;
}

.team-member-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #505050;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.team-member-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.1) 1px, transparent 0),
        linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 20px 20px, 40px 40px;
    opacity: 0.2;
}

.team-member-placeholder::after {
    content: attr(data-initials);
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.team-member img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member img.loaded {
    opacity: 1;
}

.team-member img.loaded + .team-member-placeholder {
    opacity: 0;
}

.team-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.team-card .content {
    padding: 1.5rem;
}

.team-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.team-card .position {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.team-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.team-card .social-links {
    display: flex;
    gap: 0.75rem;
}

.team-card .social-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.team-card .social-link:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

/* Light Pattern Background */
.bg-pattern-light {
    position: relative;
    overflow: hidden;
}

.bg-pattern-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.05) 1px, transparent 0),
        linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 20px 20px, 40px 40px;
    opacity: 0.5;
    pointer-events: none;
}
