body{
    background: linear-gradient(-45deg, #3c2f2f, #2d5016, #4a4a2a, #1a3a1a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Enhanced Background Shapes */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255,255,255,0.03), rgba(255,255,255,0.06));
    animation: floatShape 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: -100px;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    top: 30%;
    right: 10%;
    animation-delay: 15s;
}

.shape-5 {
    width: 100px;
    height: 100px;
    bottom: 10%;
    right: 30%;
    animation-delay: 7s;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    25% { transform: translateY(-30px) translateX(20px) rotate(90deg); }
    50% { transform: translateY(-60px) translateX(-20px) rotate(180deg); }
    75% { transform: translateY(-30px) translateX(30px) rotate(270deg); }
}

/* Enhanced Particle System */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255,255,255,0.8), rgba(255,255,255,0.2));
    border-radius: 50%;
    animation: particleFloat 25s infinite linear;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 40%; left: 20%; animation-delay: 3s; }
.particle:nth-child(3) { top: 60%; left: 30%; animation-delay: 6s; }
.particle:nth-child(4) { top: 80%; left: 40%; animation-delay: 9s; }
.particle:nth-child(5) { top: 30%; left: 60%; animation-delay: 12s; }
.particle:nth-child(6) { top: 50%; left: 70%; animation-delay: 15s; }
.particle:nth-child(7) { top: 70%; left: 80%; animation-delay: 18s; }
.particle:nth-child(8) { top: 10%; left: 90%; animation-delay: 21s; }
.particle:nth-child(9) { top: 90%; left: 15%; animation-delay: 24s; }
.particle:nth-child(10) { top: 25%; left: 85%; animation-delay: 27s; }

@keyframes particleFloat {
    0% { 
        transform: translateY(0px) translateX(0px) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: scale(1);
    }
    90% {
        opacity: 1;
    }
    100% { 
        transform: translateY(-100vh) translateX(50px) scale(0);
        opacity: 0;
    }
}

.team-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 60px 50px 0px 50px;
}

.team-hero::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"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1.5" fill="rgba(255,255,255,0.08)"/></svg>');
    animation: float 20s infinite linear;
}

/* Enhanced Hero Decorations */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    animation: pulseGlow 4s infinite ease-in-out;
}

.deco-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.deco-2 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 15%;
    animation-delay: 1.5s;
}

.deco-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 25%;
    animation-delay: 3s;
}

@keyframes pulseGlow {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.6;
    }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

.team-hero-content {
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 2rem;
}

/* Enhanced Title */
.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.title-accent {
    font-size: 2.5rem;
    animation: bounce 2s infinite;
}

.title-accent:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.team-hero h1 {
    font-size: 3rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: slideInDown 1s ease-out;
    background: linear-gradient(45deg, #fff, #e0e0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideInUp 1s ease-out 0.3s both;
}

/* Enhanced Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    animation: slideInUp 1s ease-out 0.6s both;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255,255,255,0.15);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #67ea67;
    text-shadow: 0 0 10px rgba(103, 234, 103, 0.5);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 50px 0px 50px;
}

/* Enhanced Team Photo Frame */
.team-photo-frame {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 4rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
    background-clip: padding-box;
}

.team-photo-frame::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

/* Frame Decorations */
.frame-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.corner-deco {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(102, 126, 234, 0.3);
}

.corner-tl {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 10px;
}

.corner-tr {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
    border-top-right-radius: 10px;
}

.corner-bl {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
    border-bottom-left-radius: 10px;
}

.corner-br {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 10px;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(0%) translateY(0%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.team-photo-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.team-member:hover::before {
    left: 100%;
}

.team-member:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

.member-info h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.member-role {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.member-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Enhanced Appreciation Section */
.appreciation-section {
    background: linear-gradient(135deg, #f8f9ff, #e8f0ff);
    padding: 4rem 2rem;
    margin-top: 4rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.appreciation-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: dotMove 20s infinite linear;
}

@keyframes dotMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

.section-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.deco-line {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    animation: lineGlow 2s infinite ease-in-out;
}

.deco-heart {
    font-size: 2rem;
    animation: heartbeat 1.5s infinite ease-in-out;
}

@keyframes lineGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.appreciation-section h2 {
    font-family: 'Kapakana', sans-serif;
    color: #333;
    margin-bottom: 3rem;
    font-size: 48px;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Enhanced Appreciation Cards */
.appreciation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    position: relative;
    z-index: 2;
}

.appreciation-card {
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.appreciation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    transition: left 0.6s ease;
}

.appreciation-card:hover::before {
    left: 100%;
}

.appreciation-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: iconFloat 3s infinite ease-in-out;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.appreciation-card:nth-child(2) .card-icon { animation-delay: 0.5s; }
.appreciation-card:nth-child(3) .card-icon { animation-delay: 1s; }
.appreciation-card:nth-child(4) .card-icon { animation-delay: 1.5s; }

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.appreciation-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.appreciation-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

/* Enhanced Final Message */
.final-message {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 20px;
    position: relative;
    z-index: 2;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.message-decoration {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.deco-star {
    font-size: 1.5rem;
    animation: twinkle 1.5s infinite ease-in-out;
}

.deco-star:nth-child(2) { animation-delay: 0.3s; }
.deco-star:nth-child(3) { animation-delay: 0.6s; }

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.7;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.2);
    }
}

.highlight-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    line-height: 1.7;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.appreciation-text {
    max-width: 800px;
    margin: 0 auto;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
}

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    opacity: 0.15;
    animation: floatAround 15s infinite ease-in-out;
    font-size: 2rem;
    filter: blur(0.5px);
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 20%;
    right: 10%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

.floating-element:nth-child(4) {
    bottom: 30%;
    right: 20%;
    animation-delay: 6s;
}

.floating-element:nth-child(5) {
    top: 50%;
    left: 5%;
    animation-delay: 8s;
}

.floating-element:nth-child(6) {
    top: 70%;
    right: 5%;
    animation-delay: 10s;
}

.floating-element:nth-child(7) {
    bottom: 50%;
    left: 50%;
    animation-delay: 12s;
}

.floating-element:nth-child(8) {
    top: 30%;
    right: 30%;
    animation-delay: 14s;
}

@keyframes floatAround {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
    75% { transform: translateY(-30px) rotate(270deg); }
}

.back-button {
    position: fixed;
    top: 100px;
    left: 2rem;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.back-button:hover {
    background: rgba(102, 126, 234, 1);
    transform: translateX(-5px);
}

/* Enhanced Slideshow */
.slideshow-container {
    position: relative;
    max-width: 600px;
    margin: auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255,255,255,0.1);
}

.slide {
    display: none;
    width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.slide:hover img {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 2rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.slide:hover .slide-overlay {
    transform: translateY(0);
}

.slide-overlay h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Enhanced Fade Animation */
.fade {
    animation-name: fadeInOut;
    animation-duration: 1s;
}

@keyframes fadeInOut {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Enhanced Progress Bar */
.slide-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0,0,0,0.3);
    z-index: 10;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 3s linear;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Enhanced Dots */
.dots-container {
    text-align: center;
    margin-top: 15px;
    position: relative;
    z-index: 10;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background: linear-gradient(45deg, #bbb, #ddd);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.dot::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.dot.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

.dot.active::before {
    opacity: 1;
}

.dot:hover {
    transform: scale(1.1);
    background: linear-gradient(45deg, #667eea, #764ba2);
}

@media (max-width: 768px) {
    .team-hero h1 {
        font-size: 2rem;
    }
    
    .team-hero p {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .appreciation-cards {
        grid-template-columns: 1fr;
    }
    
    .title-decoration {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .back-button {
        top: 80px;
        left: 1rem;
        padding: 0.8rem 1.2rem;
    }
    
    .team-container {
        padding: 0 20px;
    }
    
    .appreciation-section h2 {
        font-size: 32px;
    }
}