:root {
    --primary-color: #d4a373;
    --primary-light: #e9c496;
    --bg-dark: #0a0a0a;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.2);
    --text-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Liquid Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #0a0a0a;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatBlob 20s infinite alternate;
}

.blob:nth-child(1) {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #4a3b2a;
    animation-delay: 0s;
}

.blob:nth-child(2) {
    bottom: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: #2a1f15;
    animation-delay: -5s;
}

.blob:nth-child(3) {
    top: 40%;
    left: 40%;
    width: 300px;
    height: 300px;
    background: #d4a373;
    opacity: 0.2;
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

.container {
    width: 100%;
    max-width: 550px;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

/* Header & Liquid Logo */
.profile-header {
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
    position: relative;
}

.logo-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Liquid Border Animation */
.logo-container::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(transparent, var(--primary-color), transparent 30%);
    animation: rotateLiquid 4s linear infinite;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
}

.logo-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 163, 115, 0.1) 0%, transparent 60%);
    z-index: -1;
    filter: blur(10px);
}

@keyframes rotateLiquid {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.profile-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
    background: linear-gradient(180deg, #fff, #ccc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.profile-bio {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    opacity: 0.9;
}

/* Liquid Glass Cards */
.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.section-title {
    font-size: 0.85rem;
    color: #888;
    margin: 20px 0 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    padding-right: 10px;
}

.link-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    border-radius: 24px;
    text-decoration: none;
    color: var(--text-color);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.link-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(212, 163, 115, 0.3);
}

/* Liquid Sheen on Hover */
.link-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.5s;
}

.link-card:hover::after {
    left: 100%;
}

.icon-box {
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 14px;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-left: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.icon-box svg {
    width: 32px;
    height: 32px;
}

.icon-box path {
    fill: var(--primary-color);

}   

.link-text {
    flex-grow: 1;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: right;
    letter-spacing: 0.3px;
}

.sub-text {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-top: 4px;
    font-weight: 400;
    white-space: nowrap;
}

.arrow-icon {
    font-size: 0.9rem;
    color: #555;
    transition: 0.3s;
}

.link-card:hover .arrow-icon {
    color: var(--primary-color);
    transform: translateX(-5px);
}

/* Footer */
.footer {
    margin-top: 60px;
    text-align: center;
    font-size: 0.8rem;
    color: #555;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 40px 15px;
    }
    .profile-title {
        font-size: 1.8rem;
    }
    
    /* Contact cards mobile layout */
    .link-card.contact {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
    }
    
    .link-card.contact .icon-box {
        margin-left: 0;
        margin-bottom: 0;
    }
    
    .link-card.contact .link-text {
        text-align: right;
        margin-bottom: 0;
    }
    
    .link-card.contact .sub-text {
        width: 100%;
        text-align: right;
        margin-top: 8px;
        padding-right: 0;
    }
    
    /* Wrapper for icon and text on same line */
    .link-card.contact {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
    
    .link-card.contact .icon-box {
        order: 1;
        margin-right: 0;
        margin-left: 20px;
    }
    
    .link-card.contact .link-text {
        order: 2;
        flex: 1;
        margin-bottom: 0;
    }
    
    .link-card.contact .sub-text {
        order: 3;
        flex-basis: 100%;
        margin-top: 12px;
        font-size: 1rem;
    }
}
