/* ==========================================
   Global Reset & Base Setup
   ========================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0b0f19;
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.5;
}

/* Custom Cursor linking to E:/styles/images/ironman.png */
body.ironman-theme {
    cursor: url("../../styles/images/ironman.png") 16 16, auto;
}

/* ==========================================
   Header & Glassmorphism Navbar
   ========================================== */
.navbar-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-logo span {
    color: #ff0000;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

/* Glowing underline indicator */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #fdfbfb, #ff0000);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ==========================================
   Main Content Layout
   ========================================== */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.back-btn {
    display: inline-block;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 24px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.back-btn:hover {
    color: #ff3b30;
    transform: translateX(-4px);
}

.hero-profile {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Image Container */
.profile-image-container {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform-style: preserve-3d;
    will-change: transform;
}

/* Image background linking to E:/styles/images/ironman.jpg */
.profile-image.ironman-bg {
    width: 100%;
    height: 100%;
    background: url("../../styles/images/ironman.jpg") center/cover no-repeat;
    transition: transform 0.5s ease;
}

.profile-image-container:hover .profile-image.ironman-bg {
    transform: scale(1.05);
}

.arc-reactor-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(0, 210, 255, 0.3) 0%, transparent 60%);
    pointer-events: none;
}

/* Typography & Badges */
.universe-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 8px;
    background-color: rgba(229, 9, 20, 0.85);
    color: #fff;
}

.character-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-top: 8px;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 50%, #ffb703 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.character-alias {
    color: #ffb703;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.character-bio {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* Stats Section */
.stats-container h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-bar {
    margin-bottom: 14px;
}

.stat-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 6px;
    font-weight: 600;
}

.progress-line {
    height: 8px;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-line span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ff4b2b, #ffb703);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 75, 43, 0.5);
}

/* Meta Data Grid */
.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
    margin-top: 2px;
}

/* Responsive Breakpoint */
@media (max-width: 900px) {
    .hero-profile {
        grid-template-columns: 1fr;
    }

    .profile-image-container {
        height: 350px;
    }

    .character-title {
        font-size: 2.2rem;
    }
}