:root {
    --bg-dark: #05050a;
    --card-bg: rgba(20, 20, 25, 0.6);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-light: rgba(255, 255, 255, 0.1);
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    perspective: 1200px; /* Essential for 3D effect on body */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.08), transparent 25%);
}

.ambient-glow {
    position: fixed;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: repeating-linear-gradient(transparent, transparent 2px, rgba(0,0,0,0.3) 2px, rgba(0,0,0,0.3) 4px);
    pointer-events: none;
    z-index: 9999;
    opacity: 0.2;
}

.layout {
    display: flex;
    max-width: 1250px;
    margin: 0 auto;
    padding: 4rem 2rem;
    gap: 3rem;
}

/* Sidebar - Profile Card */
.sidebar {
    width: 340px;
    flex-shrink: 0;
    position: sticky;
    top: 4rem;
    height: fit-content;
}

.profile-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px) rotateX(2deg) rotateY(-2deg);
}

.profile-img-container {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    overflow: hidden;
    margin: 0 auto 1.5rem auto;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4); /* Neon Glow */
    transform: translateZ(30px); /* Pops out in 3D */
}

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

.name {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateZ(20px);
}

.tagline {
    text-align: center;
    color: var(--accent-primary, #8b5cf6);
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transform: translateZ(15px);
}

.neon-box {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    transform: translateZ(10px);
}

.total-mrr-badge {
    font-family: var(--font-mono);
    color: #10b981;
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.total-mrr-badge .mo {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-shadow: none;
}

.bio {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.6;
    transform: translateZ(5px);
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transform: translateZ(15px);
}

.subscribe-form input {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-light);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    font-family: var(--font-sans);
    outline: none;
}

.subscribe-form input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.neon-btn {
    background: linear-gradient(45deg, #8b5cf6, #3b82f6);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    transition: all 0.2s;
}

.neon-btn:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    transform: translateZ(20px);
}

.neon-icon {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: all 0.3s;
}

.neon-icon:hover {
    color: #fff;
    text-shadow: 0 0 15px rgba(255,255,255,0.8);
    transform: scale(1.1);
}

/* Projects Grid */
.projects-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    text-decoration: none;
    color: inherit;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
}

/* The neon glowing edge effect */
.project-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--glow-color), transparent 60%);
    z-index: -1;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.project-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    border-color: rgba(255,255,255,0.2);
}

.project-card:hover::before {
    opacity: 1;
    filter: blur(5px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    transform: translateZ(20px);
}

.card-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.5));
}

.card-title {
    font-weight: 800;
    font-size: 1.2rem;
}

.card-mrr {
    font-family: var(--font-mono);
    color: var(--glow-color);
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glow-color);
    box-shadow: 0 0 10px var(--glow-color);
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    transform: translateZ(10px);
}

/* 3D Glowing Bar Chart */
.card-graph-3d {
    margin-top: auto;
    height: 100px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 4px;
    padding-top: 20px;
    transform: translateZ(30px); /* Makes the graph pop out of the card */
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

.chart-bar {
    flex: 1;
    background: var(--glow-color);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    opacity: 0.7;
    transition: height 1s ease-out, filter 0.3s;
    box-shadow: 0 -5px 15px var(--glow-color);
    position: relative;
}

/* Add a 3D top face to the bars */
.chart-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: rgba(255,255,255,0.5);
    border-radius: 4px 4px 0 0;
}

.chart-bar:hover {
    opacity: 1;
    filter: brightness(1.5);
}

@media (max-width: 968px) {
    .layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        position: static;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
