/* CSS Variables & Reset */
:root {
    /* User Provided Colors Mapped */
    --col-beige-three: #faf7f0;
    --col-sand-brown: #cda261;
    --col-sienna: #b73c1d;
    --col-dark-teal: #00334a;
    --col-marine-blue: #004865;
    --col-brown-grey-two: #8e7d6c;
    --col-light-peach-two: #fdd1bd;
    --col-pale-periwinkle: #cfddff;
    --col-white-tint: rgba(255, 255, 255, 0.7);

    /* Theme Variables */
    --bg-color: var(--col-beige-three);
    --text-main: var(--col-dark-teal);
    --text-muted: var(--col-brown-grey-two);
    --accent-primary: var(--col-sienna);
    --accent-secondary: var(--col-marine-blue);
    --gold-accent: var(--col-sand-brown);

    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.9);
    --glass-shadow: rgba(183, 60, 29, 0.08);
    /* tinted shadow */

    --font-main: 'Fedra Sans', 'Fedra Sans Std', sans-serif;
    --font-serif: 'Fedra Sans', 'Fedra Sans Std', sans-serif;

    --radius-md: 16px;
    --radius-lg: 24px;

    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 32px;

    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    /* Subtle grain/noise could be added here for texture */
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Elegant Background Gradients */
.background-glob {
    position: fixed;
    top: -20%;
    right: -20%;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, var(--col-light-peach-two) 0%, transparent 60%);
    opacity: 0.5;
    filter: blur(80px);
    z-index: -1;
    animation: drift 20s infinite alternate linear;
}

.background-glob-2 {
    position: fixed;
    bottom: -10%;
    left: -20%;
    width: 90vw;
    height: 90vw;
    background: radial-gradient(circle, var(--col-pale-periwinkle) 0%, transparent 60%);
    opacity: 0.4;
    filter: blur(90px);
    z-index: -1;
    animation: drift 25s infinite alternate-reverse linear;
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(40px, -40px);
    }
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100vh;
}

/* Glass Card Style (Light Theme) */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px var(--glass-shadow);
    transition: all 0.4s var(--ease-out-back);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 51, 74, 0.12);
    /* shadow using dark teal */
    border-color: #fff;
}

/* Unified Profile Card (Glassmorphism) */
/* Simplified Profile Header - Clean & Centered */
.simple-profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    margin-top: 10px;
}

.profile-avatar-wrapper {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    padding: 4px;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(183, 60, 29, 0.15);
    /* Warm shadow */
    margin-bottom: 10px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.bio-text {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.5;
}

/* Social Links List Container */
/* Social Links List Container */
.social-links-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    /* Reduced gap for tighter layout */
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
}

/* Universal Icon Styling - Enforce Uniform Size */
.social-icon,
.icon-box img,
.link-content img {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px;
    min-height: 42px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.icon-box {
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.link-item:hover .social-icon,
.link-item:hover .icon-box img {
    transform: scale(1.1);
}

/* Link Item Cards */
.link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    /* Slightly reduced vertical padding */
    text-decoration: none;
    color: var(--text-main);
    min-height: 70px;
    /* Reduced specific min-height */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* Subtle border */
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.link-item:hover {
    transform: translateY(-4px);
    /* Smooth lift */
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 24px rgba(183, 60, 29, 0.1);
    border-color: #fff;
}

.link-content {
    display: flex;
    align-items: center;
    gap: 18px;
    /* Slightly reduced gap */
    z-index: 2;
}

/* Glass Card Shine Effect */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: none;
    /* Controlled by hover */
    z-index: 1;
    transform: skewX(-25deg);
}

.glass-card:hover::before {
    left: 200%;
    transition: left 0.7s ease-in-out;
}

.link-text {
    font-family: 'Fedra Sans', sans-serif;
    font-weight: normal;
    /* Normal weight as requested */
    font-size: 1rem;
    /* Consistent size */
    color: var(--col-dark-teal);
    letter-spacing: 0.01em;
}

.arrow-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--col-sienna);
    transition: all 0.3s ease;
}

.link-item:hover .arrow-icon {
    background: var(--col-sienna);
    color: #fff;
    transform: translateX(4px);
}

/* Custom Brand Colors for Socials */
.link-item img[src*="linkedin"] {
    /* LinkedIn Blue #0A66C2 */
    filter: invert(31%) sepia(87%) saturate(1461%) hue-rotate(186deg) brightness(96%) contrast(101%);
}

.branding-instagram {
    color: #E1306C;
}

.branding-linkedin {
    color: #0077B5;
}

.branding-twitter {
    color: #000000;
}

.branding-youtube {
    color: #FF0000;
}

.branding-facebook {
    color: #1877F2;
}

.branding-pinterest {
    color: #BD081C;
}

.branding-whatsapp {
    color: #25D366;
}

.branding-threads {
    color: #000000;
}

.link-item .ph-arrow-up-right {
    color: var(--text-muted);
    opacity: 0.6;
    transition: transform 0.4s ease;
    font-size: 1.2rem;
}

.link-item:hover .ph-arrow-up-right {
    transform: translate(4px, -4px);
    color: var(--accent-primary);
    opacity: 1;
}

/* Footer */
.simple-footer {
    margin-top: auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding-top: 40px;
    opacity: 0.8;
}

/* Skeleton Loader */
/* Skeleton Loader */
#skeleton-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    padding-top: 42px;
    /* Matched to container padding + margin */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.5s ease-out;
}

.skeleton-shimmer {
    background: linear-gradient(90deg, #f0e6d2 25%, #e6dac5 50%, #f0e6d2 75%);
    /* Matching beige theme */
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

.skeleton-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    /* Tighter gap */
    margin-bottom: 32px;
    /* Matched to header margin */
    width: 100%;
}

.skeleton-avatar {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    margin-bottom: 4px;
    /* Slight fine tuning */
}

.skeleton-title {
    width: 260px;
    height: 28px;
    border-radius: 6px;
}

.skeleton-subtitle {
    width: 180px;
    height: 18px;
    border-radius: 4px;
}

.skeleton-list {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    /* Matched to list gap */
    padding: 0 16px;
    /* Matched to container padding */
}

.skeleton-item {
    width: 100%;
    height: 72px;
    /* Matched to link item height */
    border-radius: 16px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.9s var(--ease-out-back) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.25s;
}

.delay-3 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes gentleFloater {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .container {
        padding: 24px 16px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .bio-text {
        font-size: 0.9rem;
    }

    .quick-links-grid {
        gap: 12px;
    }

    .grid-item {
        padding: 20px 12px;
    }

    .icon-container {
        width: 48px;
        height: 48px;
    }

    .grid-item i {
        font-size: 1.5rem;
    }

    .link-item {
        padding: 14px 16px;
        min-height: 64px;
    }

    .social-icon {
        width: 28px;
        height: 28px;
    }

    .link-text {
        font-size: 0.95rem;
    }
}