:root {
    --primary-color: #3a4eff; 
    --secondary-color: #0a1428;
    --accent-color: #00d4ff; 
    --accent-color-alt: #c8aa6e;
    --text-color: #f0f0f0;
    --background-color: #080d14;
    --card-bg: #111824;
    --card-hover: #1e293b;
    --border-color: #2a3246;
    --glow-primary: 0 0 10px rgba(58, 78, 255, 0.6);
    --glow-accent: 0 0 20px rgba(0, 212, 255, 0.8); 
    --neon-shadow: 0 0 15px rgba(0, 212, 255, 0.6), 0 0 30px rgba(0, 212, 255, 0.3); 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: transparent;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    background-color: rgba(10, 16, 23, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 212, 255, 0.2); 
    border: 1px solid rgba(0, 212, 255, 0.15); 
}

/* Profile Header */
.profile-header {
    position: relative;
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 212, 255, 0.2); 
    background-color: rgba(10, 20, 40, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(42, 50, 70, 0.7);
    transition: all 0.3s ease;
}

.profile-header:hover {
    box-shadow: 0 12px 30px rgba(58, 78, 255, 0.15), 0 0 20px rgba(0, 212, 255, 0.4); 
    border-color: var(--accent-color);
}

.profile-banner {
    height: 240px;
    background: linear-gradient(135deg, #0a1428 0%, #1e2a45 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.banner-logo {
    height: 140px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(58, 78, 255, 0.8));
    animation: pulse 3s infinite alternate ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(58, 78, 255, 0.6)); }
    100% { transform: scale(1.05); filter: drop-shadow(0 0 20px rgba(58, 78, 255, 0.9)); }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(10, 20, 40, 0.9));
}

.profile-info {
    padding: 20px;
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
}

.profile-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    margin-top: -65px;
    position: relative;
    z-index: 2;
    background-color: var(--card-bg);
    box-shadow: var(--glow-primary);
    transition: all 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(58, 78, 255, 0.8);
    border-width: 5px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details {
    margin-left: 20px;
    flex: 1;
}

.profile-details h1 {
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(58, 78, 255, 0.4), 0 0 20px rgba(0, 212, 255, 0.3); 
    font-weight: 800;
    letter-spacing: 0.5px;
}

.bio {
    font-size: 16px;
    color: #ddd;
    margin-bottom: 18px;
    max-width: 80%;
    line-height: 1.5;
}

.profile-stats {
    display: flex;
    gap: 30px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat span:first-child {
    font-size: 22px;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: var(--glow-accent);
}

.stat span:last-child {
    font-size: 14px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
    padding: 0 15px;
}

.tab-btn {
    padding: 15px 28px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tab-btn:hover {
    color: var(--accent-color); 
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5); 
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color); 
    box-shadow: var(--neon-shadow); 
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Games Grid */
.games-grid, .followers-grid, .likes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.game-card, .follower-card, .like-card {
    background-color: rgba(17, 24, 36, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-card:hover, .follower-card:hover, .like-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 255, 0.4); 
    background-color: var(--card-hover);
    border-color: var(--accent-color); 
}

.game-card::before {
    content: 'Play Now';
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 20px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-card:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.game-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.5s ease;
    border-bottom: 2px solid rgba(42, 50, 70, 0.5);
}

.game-card:hover .game-img {
    filter: brightness(1.2);
    transform: scale(1.03);
}

.game-info, .follower-info, .like-info {
    padding: 15px;
}

.game-info h3, .follower-info h3, .like-info h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.6); 
    font-weight: 700;
    letter-spacing: 0.5px;
}

.game-info p, .follower-info p, .like-info p {
    font-size: 15px;
    color: #ccc;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.game-stats, .project-stats {
    display: flex;
    gap: 15px;
    color: #aaa;
    font-size: 14px;
    margin-top: 10px;
    align-items: center;
}

.game-stats span, .project-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 12px;
    background-color: rgba(42, 50, 70, 0.4);
}

.game-stats span i, .project-stats span i {
    color: var(--primary-color);
}

.game-card:hover .game-stats span, .like-card:hover .game-stats span {
    background-color: rgba(42, 50, 70, 0.7);
}

.likes-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(58, 78, 255, 0.9);
    color: white;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.follower-card {
    display: flex;
    align-items: center;
    padding: 15px;
}

.follower-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.follower-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.follower-info {
    flex: 1;
    padding: 0;
}

.follower-info a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.follower-info a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.follower-card:hover .follower-avatar {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(58, 78, 255, 0.4);
}

.section-title {
    margin: 20px 0 15px 0;
    color: var(--primary-color);
    font-size: 22px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.section-separator {
    height: 1px;
    background-color: var(--border-color);
    margin: 30px 0;
    width: 100%;
}

.project-status {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 10px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    border-bottom: 4px solid var(--accent-color);
    animation: spin 1s linear infinite;
    margin: 40px auto;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5); 
}

@keyframes spin {
    0% { 
        transform: rotate(0deg);
        box-shadow: var(--neon-shadow); 
    }
    100% { 
        transform: rotate(360deg);
    }
}

h2 {
    color: var(--accent-color); 
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5); 
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background-color: var(--accent-color); 
    box-shadow: var(--neon-shadow); 
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: var(--background-color);
    background-image: url('cool_background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.gradient-orb {
    position: absolute;
    width: 70vw;
    height: 70vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(58, 78, 255, 0.2) 0%, rgba(10, 20, 40, 0) 70%);
    top: -20vw;
    right: -10vw;
    filter: blur(60px);
    opacity: 0.7;
    animation: float 25s infinite alternate ease-in-out;
}

.gradient-orb.secondary {
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.35) 0%, rgba(10, 20, 40, 0) 70%); 
    top: 40vh;
    left: -20vw;
    animation: float 30s infinite alternate-reverse ease-in-out;
}

.gradient-orb.tertiary {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(200, 170, 110, 0.15) 0%, rgba(10, 20, 40, 0) 70%);
    bottom: -10vh;
    right: 10vw;
    animation: float 22s infinite alternate ease-in-out;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.08) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(0, 212, 255, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.7; 
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(5%, 5%) rotate(5deg);
    }
    100% {
        transform: translate(-5%, -2%) rotate(-5deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .profile-info {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin-top: -40px;
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }
    
    .profile-details {
        margin-left: 0;
    }
    
    .bio {
        max-width: 100%;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        justify-content: center;
    }
    
    .tab-btn {
        padding: 10px 20px;
    }
    
    .games-grid, .followers-grid, .likes-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .profile-banner {
        height: 150px;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        margin-top: -30px;
    }
    
    .profile-details h1 {
        font-size: 22px;
    }
    
    .bio {
        font-size: 14px;
    }
    
    .stat span:first-child {
        font-size: 18px;
    }
    
    .games-grid, .followers-grid, .likes-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-logo {
        height: 80px;
    }
}