@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-core: #0a0510;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent-primary: #a855f7;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #0f0518;
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    overflow-x: hidden;
    position: relative;
}

/* Specific Mesh Gradient Orbs */
body::before {
    content: '';
    position: fixed;
    top: 20%;
    left: 10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(76, 29, 149, 0.4), transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: pulse 10s infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    bottom: 10%;
    right: 10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3), transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Main Grid Layout */
.grid-container {
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 3rem;
    /* Increased main gap */
    z-index: 1;
}

/* Profile Card - Glass Style */
.profile-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.img-container {
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 50%;
    padding: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
    letter-spacing: -0.5px;
}

.role {
    font-size: 0.9rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 2rem;
}

.bio {
    color: var(--text-secondary);
    /* Grey text */
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.social-bar {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: translateY(-3px);
    transform: translateY(-3px);
}

.content-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #fff;
    padding-left: 0.5rem;
    border-left: 4px solid var(--accent-primary);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Link Cards - Glass Style */
.grid-item {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 1.5rem;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    min-height: 120px;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Hover Effect */
.grid-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

/* card icon container */
.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.6rem;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    flex-shrink: 0;
    transition: 0.3s;
}

/* Specific icon colors */
.grid-item:nth-child(1) .card-icon {
    background: rgba(0, 136, 204, 0.15);
    color: #38bdf8;
}

.grid-item:nth-child(2) .card-icon {
    background: rgba(131, 58, 180, 0.15);
    color: #f472b6;
}

.grid-item:nth-child(3) .card-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.grid-item:nth-child(4) .card-icon {
    background: rgba(255, 0, 0, 0.15);
    color: #f87171;
}

.grid-item:nth-child(5) .card-icon {
    background: rgba(46, 204, 113, 0.15);
    color: #4ade80;
}

.grid-item:hover .card-icon {
    transform: scale(1.1);
}

/* Content Layout */
.card-top {
    display: contents;
}

.card-bg-icon {
    display: none;
}

.card-bottom h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.card-bottom p {
    color: #9ca3af;
    /* Grey description */
    font-size: 0.95rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
}

.arrow-icon {
    margin-left: auto;
    /* Push to right */
    color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
}

.grid-item:hover .arrow-icon {
    color: #fff;
    transform: translateX(4px);
}

/* Full Width First Item Override - REMOVED for strict 2 columns */
/* .grid-item:first-child {
    grid-column: 1 / -1;
} */

/* Footer */
.main-footer {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 2rem;
    opacity: 0.6;
}

/* Coming Soon Badge */
.badge-soon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Disabled State */
.grid-item.disabled {
    opacity: 0.6;
    pointer-events: none;
    filter: grayscale(0.5);
}

/* Responsive */
/* Responsive Optimization */
@media (max-width: 900px) {
    .grid-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    body {
        padding: 1rem;
        align-items: flex-start;
    }

    .grid-container {
        gap: 1.5rem;
    }

    .profile-card {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }

    .img-container {
        width: 120px;
        height: 120px;
    }

    .name {
        font-size: 1.75rem;
    }

    .links-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .grid-item {
        padding: 1.25rem;
        min-height: auto;
        gap: 1rem;
    }

    .card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .card-bottom h3 {
        font-size: 1.1rem;
    }

    .card-bottom p {
        font-size: 0.85rem;
    }

    .badge-soon {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.2rem 0.5rem;
        font-size: 0.6rem;
    }

    /* Modal Mobile Adjustments */
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .modal-header {
        margin-bottom: 1rem;
    }

    .sublink-item {
        padding: 0.75rem;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-content {
    background: rgba(25, 25, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.sublink-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 0.8rem;
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
}

.sublink-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: var(--accent-primary);
}

.sublink-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.sublink-text {
    font-weight: 500;
}