:root {
    --bg-color: #0a0a0c;
    --card-bg: rgba(23, 23, 26, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-primary: #3b82f6;
    --accent-secondary: #a855f7;
    --glass-blur: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, .subtitle {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.background-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    z-index: -1;
}

/* Hero Section */
.hero {
    margin-bottom: 4rem;
    text-align: center;
    padding: 4rem 0;
}

.profile-info h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.hero-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.hero-link {
    color: var(--text-secondary);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.hero-link:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
}

.hero-link svg, .hero-link i {
    width: 24px !important;
    height: 24px !important;
    display: block;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1.5rem;
}

.grid-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    backdrop-filter: blur(var(--glass-blur));
    --highlight-color: var(--accent-primary);
}

.grid-item:hover {
    transform: scale(1.02);
    border-color: color-mix(in srgb, var(--highlight-color) 50%, transparent);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--highlight-color) 20%, transparent);
}

.grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(10, 10, 12, 0.95) 0%, rgba(10, 10, 12, 0.65) 50%, transparent 100%);
    z-index: 1;
}

.grid-item .content {
    position: relative;
    z-index: 2;
}

.grid-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.grid-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Bento Sizing */
.large { grid-column: span 2; grid-row: span 2; }
.wide { grid-column: span 2; }
.tall { grid-row: span 2; }

/* Tags in Modal */
.tag {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #17171a;
    padding: 3rem;
    width: 100%;
    max-width: 700px;
    border-radius: 32px;
    position: relative;
    border: 1px solid var(--card-border);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.modal.active .modal-content {
    transform: scale(1);
}

.close-button {
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.close-button:hover {
    color: var(--text-primary);
    transform: scale(1.15) rotate(90deg);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Language Switcher */
.lang-switcher {
    position: absolute;
    top: -1rem;
    right: 0;
    display: flex;
    gap: 0.25rem;
    background: rgba(23, 23, 26, 0.4);
    border: 1px solid var(--card-border);
    padding: 3px;
    border-radius: 20px;
    backdrop-filter: blur(var(--glass-blur));
    z-index: 50;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 4px 12px -2px color-mix(in srgb, var(--accent-primary) 50%, transparent);
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .lang-switcher {
        position: relative;
        top: 0;
        margin: 0 auto 2rem auto;
        width: fit-content;
    }
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .large, .wide, .tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    .grid-item {
        min-height: 250px;
    }
}

.footer {
    margin-top: 4rem;
    text-align: center;
    color: var(--text-secondary);
    padding-bottom: 2rem;
}

.heart {
    color: #ef4444;
}
