/* Reset CSS và thiết lập cơ bản */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Background tối với gradient hiện đại */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, 
        #0f0f23 0%, 
        #1a1a2e 25%, 
        #16213e 50%, 
        #0f3460 75%, 
        #1e3a8a 100%
    );
    background-size: 400% 400%;
    animation: gradientFlow 25s ease infinite;
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

/* Hiệu ứng background động */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    33% { background-position: 100% 0%; }
    66% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

/* Particle effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(147, 51, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 10%, rgba(236, 72, 153, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { 
        opacity: 0.7;
        transform: translateY(0px) rotate(0deg);
    }
    50% { 
        opacity: 1;
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Container chính với layout grid */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 80px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Header với design mới */
.header {
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(59, 130, 246, 0.6), 
        rgba(147, 51, 234, 0.6),
        transparent
    );
}

.header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    animation: headerGlow 8s linear infinite;
}

@keyframes headerGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.group-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #e0e7ff 25%, 
        #c7d2fe 50%, 
        #a5b4fc 75%, 
        #8b5cf6 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 6s ease-in-out infinite;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    line-height: 0.9;
    position: relative;
    z-index: 2;
}

@keyframes textShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.group-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 2;
}

.group-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 2;
}

/* Main content với layout grid mới */
.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 100px;
    width: 100%;
}

/* Members section với layout horizontal */
.members-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 80px;
    width: 100%;
}

/* Member card với thiết kế mới */
.member-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 36px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform-style: preserve-3d;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.8), 
        rgba(147, 51, 234, 0.8),
        rgba(236, 72, 153, 0.8)
    );
    border-radius: 36px 36px 0 0;
}

.member-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.02) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: cardGlow 10s linear infinite;
}

@keyframes cardGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.member-card:hover {
    transform: translateY(-20px) rotateX(5deg);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.member-card:hover::after {
    opacity: 1;
}

/* Member image với effects mới */
.member-image-container {
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.member-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 0 rgba(59, 130, 246, 0);
    position: relative;
    z-index: 2;
}

.member-card:hover .member-image {
    border-color: rgba(59, 130, 246, 0.6);
    transform: scale(1.08);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 8px rgba(59, 130, 246, 0.1);
}

.member-status {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.4);
    animation: statusPulse 3s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 3px 12px rgba(16, 185, 129, 0.4);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 3px 20px rgba(16, 185, 129, 0.6);
    }
}

.member-status i {
    display: none;
}

/* Member info với typography mới */
.member-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.member-role {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.member-info {
    margin-bottom: 40px;
}

.member-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    text-align: center;
    letter-spacing: -0.01em;
}

/* Skills với design mới */
.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

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

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.skill-tag:hover::before {
    left: 100%;
}

/* Portfolio button với design mới */
.portfolio-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    letter-spacing: -0.01em;
    box-shadow: 
        0 8px 32px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

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

.portfolio-btn:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    transform: translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.portfolio-btn:hover::before {
    left: 100%;
}

.portfolio-btn:active {
    transform: translateY(-1px);
}

/* Projects section với layout mới */
.projects-section {
    width: 100%;
    text-decoration: none;
    color: inherit;
    display: block;
}

.projects-header {
    text-align: center;
    margin-bottom: 80px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.projects-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(236, 72, 153, 0.8), 
        rgba(147, 51, 234, 0.8),
        rgba(59, 130, 246, 0.8)
    );
    border-radius: 32px 32px 0 0;
}

.projects-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #e0e7ff 25%, 
        #c7d2fe 50%, 
        #a5b4fc 75%, 
        #8b5cf6 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 6s ease-in-out infinite;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.projects-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.projects-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Project card với design hoàn toàn mới */
.project-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 36px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    max-width: 900px;
    width: 100%;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform-style: preserve-3d;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(16, 185, 129, 0.8), 
        rgba(34, 197, 94, 0.8),
        rgba(132, 204, 22, 0.8)
    );
    border-radius: 36px 36px 0 0;
    z-index: 2;
}

.project-card:hover {
    transform: translateY(-15px) rotateX(2deg);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.project-image-container {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s ease;
    filter: brightness(0.8) contrast(1.1);
}

.project-card:hover .project-image {
    transform: scale(1.05);
    filter: brightness(0.9) contrast(1.2);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.8), 
        rgba(147, 51, 234, 0.6)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s ease;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay i {
    font-size: 4rem;
    color: #ffffff;
    animation: iconFloat 3s ease-in-out infinite;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

@keyframes iconFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
        opacity: 0.9; 
    }
    50% { 
        transform: translateY(-10px) scale(1.05); 
        opacity: 1; 
    }
}

.project-content {
    padding: 50px 40px;
    text-align: left;
}

.project-name {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.project-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.tech-tag {
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 600;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid;
    transition: all 0.4s ease;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

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

.tech-tag.nextjs {
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.tech-tag.sanity {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
}

.tech-tag.typescript {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.4);
}

.tech-tag.responsive {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.4);
}

.tech-tag.api {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.4);
}

.tech-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.tech-tag:hover::before {
    left: 100%;
}

.project-contributors {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.contributor {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    letter-spacing: -0.01em;
}

.contributor:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Footer với design mới */
.footer {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.6), 
        rgba(147, 51, 234, 0.6),
        rgba(236, 72, 153, 0.6)
    );
    border-radius: 0 0 32px 32px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 40px 16px;
        gap: 60px;
    }
    
    .header {
        padding: 60px 40px;
    }
    
    .members-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .member-card {
        padding: 50px 32px;
    }
    
    .project-content {
        padding: 40px 32px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 30px 12px;
        gap: 50px;
    }
    
    .header {
        padding: 50px 30px;
    }
    
    .members-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .member-card {
        padding: 40px 24px;
    }
    
    .member-image {
        width: 150px;
        height: 150px;
    }
    
    .projects-header {
        padding: 40px 30px;
        margin-bottom: 60px;
    }
    
    .project-image-container {
        height: 280px;
    }
    
    .project-content {
        padding: 35px 24px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 40px 20px;
    }
    
    .member-card {
        padding: 30px 20px;
    }
    
    .member-image {
        width: 130px;
        height: 130px;
    }
    
    .portfolio-btn {
        padding: 16px 30px;
        font-size: 1rem;
    }
    
    .projects-header {
        padding: 30px 20px;
    }
    
    .project-image-container {
        height: 220px;
    }
    
    .project-content {
        padding: 30px 20px;
    }
    
    .tech-tag,
    .contributor {
        font-size: 0.9rem;
        padding: 8px 14px;
    }
    
    .footer {
        padding: 30px 20px;
    }
} 