:root {
    --bg-color: #060913;
    --card-bg: rgba(13, 21, 38, 0.65);
    --card-hover: rgba(19, 32, 58, 0.9);
    --border-color: rgba(56, 189, 248, 0.15);
    --border-hover: rgba(56, 189, 248, 0.5);
    --accent-cyan: #38bdf8;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.06), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.06), transparent 25%),
        linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
}

.container {
    max-width: 820px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

/* Profile Image Box */
.profile-box {
    flex-shrink: 0;
    width: 200px;
    height: 220px;
    border-radius: 16px;
    background: linear-gradient(145deg, #0c1426, #070b14);
    border: 1px solid var(--border-color);
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.08);
    position: relative;
    overflow: hidden;
}

.profile-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* Right Content Area */
.content {
    flex: 1;
    width: 100%;
}

.header-info {
    margin-bottom: 1.75rem;
}

.name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.handle-badge {
    display: inline-block;
    margin-top: 0.6rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 3px 10px;
    border-radius: 6px;
}

.section-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-label::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 14px;
    background-color: var(--accent-cyan);
    border-radius: 2px;
}

/* 2-Column Link Grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    transition: all 0.22s ease;
}

.link-card:hover {
    background: var(--card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(56, 189, 248, 0.12);
}

.link-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.link-left i {
    font-size: 1.05rem;
    color: var(--accent-cyan);
    width: 20px;
    text-align: center;
}

.arrow {
    color: var(--text-secondary);
    font-size: 0.8rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.link-card:hover .arrow {
    transform: translateX(3px);
    color: var(--accent-cyan);
}

/* Modal for "About Me" */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 6, 14, 0.82);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 100;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #0b1222;
    border: 1px solid var(--border-hover);
    border-radius: 14px;
    max-width: 500px;
    width: 100%;
    padding: 1.75rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.75);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.modal-header h3 {
    color: var(--accent-cyan);
    font-size: 1.15rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--text-primary);
}

.modal-body p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 0.85rem;
}

.modal-body strong {
    color: var(--text-primary);
}

/* Responsive Mobile View */
@media (max-width: 700px) {
    .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.75rem;
    }

    .profile-box {
        width: 160px;
        height: 175px;
    }

    .section-label {
        justify-content: center;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }
}
