:root {
    --primary: #8a2be2;
    --secondary: #ff007f;
    --tertiary: #00ffcc;
    --bg-dark: #0f0f13;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ambient background animations */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 50%, rgba(138, 43, 226, 0.2), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(255, 0, 127, 0.15), transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(0, 255, 204, 0.1), transparent 50%);
    animation: breathe 15s infinite alternate ease-in-out;
}

@keyframes breathe {
    0% {
        transform: scale(1);
        filter: hue-rotate(0deg);
    }

    100% {
        transform: scale(1.1);
        filter: hue-rotate(15deg);
    }
}

/* Header */
header {
    margin-top: 4rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #ffb3ff, var(--tertiary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Tabs Navbar */
.tabs {
    display: flex;
    gap: 1rem;
    background: var(--glass-bg);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.8rem 2.5rem;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.3);
    transform: scale(1.05);
}

/* Main Container */
main {
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    flex: 1;
    position: relative;
    padding-bottom: 4rem;
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Tab 1: Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-card:hover::before {
    left: 200%;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    background: linear-gradient(135deg, #333, #111);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.project-info h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.project-info p {
    font-size: 1rem;
    color: #b0b0c0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.github-project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--tertiary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.github-project-link:hover {
    color: #fff;
    transform: translateX(4px);
}

/* Tab 2: Contributors */
.contributors-view {
    display: flex;
    justify-content: center;
    gap: 6rem;
    margin-top: 5rem;
    flex-wrap: wrap;
}

.contributor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contributor-item:hover {
    transform: scale(1.1);
}

.contributor-photo-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--tertiary));
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.contributor-item:hover .contributor-photo-wrapper {
    box-shadow: 0 15px 40px rgba(255, 0, 127, 0.4);
    transform: translateY(-5px);
}

.contributor-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-dark);
    display: block;
}

.contributor-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Contributor Detail View */
.contributor-detail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 15, 19, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.contributor-detail.active {
    opacity: 1;
    pointer-events: all;
}

.detail-content {
    background: rgba(20, 20, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 4rem 3rem;
    text-align: center;
    max-width: 600px;
    width: 90%;
    transform: scale(0.9) translateY(30px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.contributor-detail.active .detail-content {
    transform: scale(1) translateY(0);
}

.detail-photo-wrapper {
    position: relative;
    margin: 0 auto 2.5rem;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 30px rgba(255, 0, 127, 0.3);
}

.detail-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #1a1a24;
}

.detail-name {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #ffb3ff, var(--tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.detail-bio {
    color: #c0c0d0;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.detail-github {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.detail-github:hover {
    color: #fff;
    transform: translateY(-2px);
}

.btn-back {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn-back:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(255, 0, 127, 0.3));
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Cookie Disclaimer */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(200%);
    width: 90%;
    max-width: 800px;
    background: rgba(15, 15, 19, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
}

.cookie-text {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.5;
}

.cookie-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 0, 127, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .tabs {
        margin-bottom: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contributors-view {
        gap: 3rem;
        flex-direction: column;
        align-items: center;
    }

    header {
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }

    .detail-content {
        padding: 3rem 1.5rem;
    }

    .detail-name {
        font-size: 2.2rem;
    }
}
