/* ==========================================================================
   Premium Linktree-style Theme (Light Mode & Brand Blue)
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-color: #ffffff; /* White background */
    --text-primary: #1e293b; /* Dark slate for primary text */
    --text-secondary: #64748b; /* Lighter slate for secondary text */
    --brand-blue: #0d8dea; /* Company logo color */
    
    /* Glassmorphism settings for light mode */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-hover: rgba(255, 255, 255, 0.95);
    
    /* Gradients */
    --accent-gradient: linear-gradient(135deg, #0d8dea 0%, #38bdf8 100%);
    
    /* Shadows & Transitions */
    --box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Background Blobs for Visual Interest */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: #f8fafc; /* Very subtle off-white base to make white cards pop */
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15; /* Subtler opacity for light mode */
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #0d8dea; /* Brand blue */
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: #38bdf8; /* Lighter complementary blue */
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-50px, 50px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Main Container */
.container {
    width: 100%;
    max-width: 680px;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

/* Profile Section */
.profile {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeUp 0.8s ease-out forwards;
}

.profile-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.25rem;
    border: 3px solid var(--brand-blue);
    background: #fff;
    box-shadow: 0 0 20px rgba(13, 141, 234, 0.2);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05) rotate(5deg);
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.profile-bio {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Section Titles */
.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    width: 100%;
    margin-bottom: 1.5rem;
    text-align: left;
    padding-left: 0.5rem;
    border-left: 4px solid var(--brand-blue);
    opacity: 0;
    animation: fadeUp 0.6s ease-out forwards;
    animation-delay: 0.2s;
}

/* Menu Grid */
.menu-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.menu-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease-out forwards;
    display: flex;
    align-items: center;
    padding: 0.75rem;
}

/* Stagger animation for menu items */
.menu-card:nth-child(1) { animation-delay: 0.3s; }
.menu-card:nth-child(2) { animation-delay: 0.4s; }
.menu-card:nth-child(3) { animation-delay: 0.5s; }
.menu-card:nth-child(4) { animation-delay: 0.6s; }
.menu-card:nth-child(5) { animation-delay: 0.7s; }
.menu-card:nth-child(6) { animation-delay: 0.8s; }

.menu-card:hover {
    background: var(--glass-hover);
    transform: translateY(-4px);
    border-color: rgba(13, 141, 234, 0.2);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.12), 0 0 15px rgba(13, 141, 234, 0.1);
}

.menu-card img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 1rem;
    background: #f1f5f9;
}

.menu-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.menu-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

/* Links Section */
.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease-out forwards;
    animation-delay: 1s;
}

.link-card:hover {
    background: var(--glass-hover);
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(13, 141, 234, 0.3);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.12), 0 0 15px rgba(13, 141, 234, 0.1);
}

/* Custom ShopeeFood Card Styling */
.shopee-card {
    border-color: rgba(238, 77, 45, 0.3);
}
.shopee-card .link-icon {
    background: rgba(238, 77, 45, 0.1);
    color: #EE4D2D;
}
.shopee-card .link-title {
    color: #EE4D2D;
    font-weight: 600;
}
.shopee-card:hover {
    border-color: rgba(238, 77, 45, 0.6);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.12), 0 0 15px rgba(238, 77, 45, 0.15);
}

.link-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(13, 141, 234, 0.1); /* Subtle brand blue background for icons */
    border-radius: 10px;
}

.link-title {
    font-size: 1.1rem;
    font-weight: 500;
    flex-grow: 1;
    text-align: center;
    margin-right: 56px; /* Offset to center title considering the icon width + margin */
}

/* Footer */
.footer {
    margin-top: 4rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 1.2s;
}

/* Keyframes */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 480px) {
    .container {
        padding: 2rem 1rem;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .link-title {
        font-size: 1rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .link-card:hover, .menu-card:hover {
        transform: translateY(-2px); /* Less dramatic hover on mobile */
    }
}
