:root {
    --primary-color: #ef4444;
    /* Red-500 */
    --primary-glow: rgba(239, 68, 68, 0.5);
    --background-dark: #09090b;
    /* Zinc-950 */
    --card-bg: rgba(24, 24, 27, 0.6);
    /* Zinc-900 with opacity */
    --text-main: #f4f4f5;
    /* Zinc-100 */
    --text-muted: #a1a1aa;
    /* Zinc-400 */
    --border-color: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--background-dark);
    /* Custom background with dark overlay */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)),
        url('assets/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.5;
}

.profile-card {
    background-color: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    /* Outer glow shadow */
    box-shadow:
        0 0 30px -5px var(--primary-glow),
        0 20px 40px -10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Subtle inner shine */
.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Header */
.profile-header {
    margin-bottom: 2rem;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
    padding: 3px;
    background-clip: content-box;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.profile-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.tagline {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* Bio */
.profile-bio {
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Projects */
.profile-projects {
    text-align: left;
    margin-bottom: 2.5rem;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem 1rem;
    background: rgba(39, 39, 42, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    margin-bottom: 0;
}

.projects-header:hover {
    background: rgba(39, 39, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.projects-header.active {
    border-radius: 10px 10px 0 0;
    border-bottom-color: transparent;
}

.profile-projects h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0;
    font-weight: 600;
}

.toggle-icon {
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: transform 0.3s ease, color 0.2s ease;
}

.projects-header:hover .toggle-icon {
    color: var(--primary-color);
}

.projects-header.active .toggle-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.projects-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(39, 39, 42, 0.2);
    border-radius: 0 0 10px 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: none;
}

.projects-list.open {
    max-height: 500px;
    padding: 0.5rem;
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(39, 39, 42, 0.5);
    /* Zinc-800 with opacity */
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.project-item:not(:last-child) {
    margin-bottom: 0.5rem;
}

.project-item:hover {
    transform: translateY(-2px);
    background: rgba(63, 63, 70, 0.6);
    /* Zinc-700 with opacity */
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.project-info h3 {
    font-size: 1rem;
    font-weight: 600;
}

.project-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-icon {
    color: var(--text-main);
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.btn-icon:hover {
    background: #dc2626;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

/* Social */
.profile-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.profile-social a {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.profile-social a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}