/* ==================== Global Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --dark-bg: #0f0f1e;
    --card-bg: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
    --border-color: #2d2d44;
    --success-color: #00b894;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== Particle Background ==================== */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
}

/* ==================== Container ==================== */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ==================== Profile Card ==================== */
.profile-card {
    background: var(--card-bg);
    border-radius: 25px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Profile Header ==================== */
.profile-header {
    background: var(--gradient-1);
    padding: 50px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
}

.avatar-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    border-top-color: transparent;
    border-right-color: transparent;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-title {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 10px;
    opacity: 0.9;
}

.profile-bio {
    font-size: 0.95rem;
    opacity: 0.8;
}

.profile-bio i {
    margin: 0 5px;
}

/* ==================== Social Links ==================== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

/* ==================== Navigation Tabs ==================== */
.tabs {
    display: flex;
    justify-content: space-around;
    background: var(--card-bg);
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 20px 15px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.tab-btn i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.tab-btn:hover {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    background: rgba(108, 92, 231, 0.15);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
}

/* ==================== Tab Contents ==================== */
.tab-contents {
    padding: 40px 30px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-primary);
}

.section-title i {
    color: var(--primary-color);
}

/* ==================== About Section ==================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.2);
}

.info-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.info-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.info-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.bio-section {
    margin-top: 30px;
    padding: 30px;
    background: rgba(253, 121, 168, 0.1);
    border-radius: 15px;
    border-left: 4px solid var(--accent-color);
}

.bio-section h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bio-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==================== Skills Section ==================== */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category h3 i {
    color: var(--primary-color);
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.skill-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-1);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 25px rgba(108, 92, 231, 0.2);
}

.skill-card:hover::before {
    transform: scaleY(1);
}

.skill-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.skill-info {
    flex: 1;
}

.skill-info h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 10px;
    transition: width 1s ease;
    width: 0;
}

.skill-card:hover .skill-progress {
    width: var(--progress) !important;
}

.skill-percent {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ==================== Projects Section ==================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--gradient-1);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 5px 12px;
    background: rgba(108, 92, 231, 0.2);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* ==================== Gaming Section ==================== */
.gaming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.game-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
}

.game-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.game-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.game-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.game-stats i {
    margin-right: 5px;
}

/* ==================== Gear Section ==================== */
.gear-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.gear-category h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.gear-category h3 i {
    color: var(--primary-color);
}

.gear-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gear-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.gear-item:hover {
    transform: translateX(10px);
    background: rgba(108, 92, 231, 0.1);
}

.gear-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
}

.gear-details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.gear-details p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==================== Footer ==================== */
.footer {
    text-align: center;
    padding: 30px;
    margin-top: 40px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer i {
    color: var(--accent-color);
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .container {
        padding: 20px 10px;
    }

    .profile-header {
        padding: 40px 20px;
    }

    .profile-name {
        font-size: 2rem;
    }

    .tab-btn {
        font-size: 0.85rem;
        padding: 15px 10px;
    }

    .tab-btn i {
        font-size: 1.2rem;
    }

    .tab-contents {
        padding: 25px 15px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .info-grid,
    .skill-items,
    .projects-grid,
    .gaming-grid,
    .gear-list {
        grid-template-columns: 1fr;
    }

    .skill-card,
    .gear-item {
        flex-direction: column;
        text-align: center;
    }

    .project-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .profile-name {
        font-size: 1.6rem;
    }

    .profile-title {
        font-size: 1rem;
    }

    .avatar {
        width: 120px;
        height: 120px;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }
}

/* ==================== Smooth Scrolling ==================== */
html {
    scroll-behavior: smooth;
}

/* ==================== Custom Scrollbar ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ==================== Loading Animation ==================== */
.skill-progress[data-progress] {
    animation: fillBar 1.5s ease forwards;
}

@keyframes fillBar {
    from { width: 0; }
    to { width: var(--progress); }
}

/* ==================== Admin Login Button ==================== */
.admin-login-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
    z-index: 999;
    text-decoration: none;
    border: 3px solid rgba(255, 255, 255, 0.2);
    animation: pulseAdmin 3s ease-in-out infinite;
}

.admin-login-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.7);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    border-color: rgba(255, 255, 255, 0.4);
}

.admin-login-btn i {
    animation: none;
    transition: transform 0.3s ease;
}

.admin-login-btn:hover i {
    transform: rotate(20deg);
}

@keyframes pulseAdmin {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
    }
    50% {
        box-shadow: 0 4px 30px rgba(102, 126, 234, 0.8);
    }
}

.admin-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.admin-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid rgba(0, 0, 0, 0.9);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.admin-login-btn:hover .admin-tooltip {
    opacity: 1;
}

@media (max-width: 768px) {
    .admin-login-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        font-size: 1.1rem;
    }
    
    .admin-tooltip {
        display: none;
    }
}
