
:root {
    --sage-50: #f8faf9;
    --sage-100: #f1f4f3;
    --sage-200: #e4e9e7;
    --sage-300: #d1d9d5;
    --sage-400: #a8b8b1;
    --sage-500: #879a90;
    --sage-600: #6a7f74;
    --sage-700: #57685f;
    --sage-800: #48544d;
    --sage-900: #3e4742;
    --sage-950: #252c28;
    
    --primary: var(--sage-600);
    --primary-hover: var(--sage-700);
    --text-primary: var(--sage-900);
    --text-secondary: var(--sage-700);
    --bg-primary: var(--sage-50);
    --bg-secondary: var(--sage-100);
    --bg-tertiary: var(--sage-200);
    --shadow-color: rgba(106, 127, 116, 0.08);
    --card-bg: #ffffff;
    --quote-bg: var(--sage-100);
    --border-radius: 2rem;
    --transition-all: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --header-height: 70px;
    --skeleton-color: rgba(106, 127, 116, 0.05);
    --skeleton-animation: skeleton-loading 1.5s ease-in-out infinite;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    line-height: 1.6;
    margin-bottom: 50px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-primary);
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--sage-50) 0%, var(--sage-100) 50%, var(--sage-200) 100%);
}

.container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    position: relative;
    padding-top: 1rem;
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
    background-color: var(--sage-200);
    border: 4px solid var(--sage-300);
    box-shadow: 0 8px 32px rgba(106, 127, 116, 0.12);
}

.profile-picture:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(106, 127, 116, 0.18);
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 50%;
}

.profile-picture.loaded img {
    opacity: 1;
}

.name {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
    color: var(--sage-900);
    position: relative;
}

.username {
    font-size: 1rem;
    font-weight: 400;
    color: var(--sage-700);
}

.links-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.link-item {
    border-radius: 50px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--sage-200);
    box-shadow: 0 4px 20px rgba(106, 127, 116, 0.08);
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--sage-100) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}

.link-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(106, 127, 116, 0.15);
    border-color: var(--sage-300);
}

.link-item:hover::before {
    opacity: 1;
}

.link-icon {
    width: 44px;
    height: 44px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    z-index: 1;
    background: var(--sage-100);
    border: 1px solid var(--sage-200);
}

.link-item:hover .link-icon {
    transform: scale(1.05);
    background-color: var(--primary);
    border-color: var(--primary);
}

.link-icon i {
    font-size: 1.29rem;
    color: var(--sage-700);
    transition: all 0.3s ease;
}

.link-item:hover .link-icon i {
    color: white;
}

.link-text {
    flex-grow: 1;
    z-index: 1;
}

.link-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: var(--sage-900);
}

.link-url {
    font-size: 0.8rem;
    color: var(--sage-700);
}

.link-arrow {
    color: var(--sage-600);
    transition: all 0.3s ease;
    z-index: 1;
}

.link-item:hover .link-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-radius: 40px 40px 0 0;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--sage-200);
    box-shadow: 0 -8px 40px rgba(106, 127, 116, 0.15);
}

.bottom-sheet.active {
    transform: translateY(0);
}

.bottom-sheet-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--sage-200);
    position: relative;
}

.bottom-sheet-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--sage-900);
}

.close-sheet {
    background: none;
    border: none;
    color: var(--sage-600);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
    position: absolute;
    right: 0;
}

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



.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(62, 71, 66, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}


.special-link-item {
    display: flex !important;
    flex-direction: column;
    padding: 0 !important;
    height: auto;
    min-height: 120px;
    overflow: hidden;
    gap: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--sage-200);
}

.special-link-item .link-image-top {
    position: relative;
    width: 100%;
    height: 20%;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.special-link-item .top-image {
    width: 100%;
    height: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.special-link-item .link-content-bottom {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    width: 100%;
    flex-grow: 1;
    position: relative;
}

.special-link-item:hover .top-image {
    transform: scale(1.05);
}

.special-link-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(106, 127, 116, 0.15);
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .name {
        font-size: 1.5rem;
    }
    
    .link-item {
        padding: 1rem;
    }
    
    .bottom-sheet {
        padding: 1rem;
    }
    
    .detail-items-row {
        flex-direction: column;
        gap: 1rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
}

@media (min-width: 768px) {
    .bottom-sheet {
        left: 50%;
        right: auto;
        transform: translate(-50%, 100%);
        width: 500px;
        border-radius: 30px;
    }
    
    .bottom-sheet.active {
        transform: translate(-50%, 0);
    }
}

@media (max-width: 768px) {
    .gallery-item {
        width: 220px;
    }
    
    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .scroll-controls {
        align-self: flex-end;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        transform: translateY(20px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


/* Profile Card */
.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--sage-200);
    border-radius: 40px;
    box-shadow: 0 4px 20px rgba(106, 127, 116, 0.08);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--sage-300);
    box-shadow: 0 4px 20px rgba(106, 127, 116, 0.12);
}

.profile-info {
    text-align: center;
    flex: 1;
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--sage-900);
}

.profile-bio {
    font-size: 0.95rem;
    color: var(--sage-700);
    line-height: 1.5;
    font-style: italic;
}

/* More About Button */
.more-about-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--sage-100) 0%, var(--sage-200) 100%);
    border: 1px solid var(--sage-300);
    border-radius: 50px;
    color: var(--sage-700);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(106, 127, 116, 0.1);
}

.more-about-btn:hover {
    background: linear-gradient(135deg, var(--sage-600) 0%, var(--sage-700) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 127, 116, 0.2);
}

.more-about-btn i {
    transition: transform 0.3s ease;
}

.more-about-btn:hover i {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 480px) {
    .bottom-sheet {
        padding: 1rem;
    }
    
    .profile-card {
        padding: 1.5rem 1rem;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
    }
    
    .profile-name {
        font-size: 1.1rem;
    }
    
    .more-about-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
    .bottom-sheet {
        left: 50%;
        right: auto;
        transform: translate(-50%, 100%);
        width: 500px;
        border-radius: 30px;
    }
    
    .bottom-sheet.active {
        transform: translate(-50%, 0);
    }
}

/* Profile Actions Section */
.profile-actions {
    display: flex;
    justify-content: space-around;
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--sage-200);
    position: relative;
}

.profile-actions p {
    font-size: 12px;
    color: var(--sage-700);
    text-align: center;
    margin-top: 20px;
    line-height: 1.5;
}

.profile-actions a {
    color: var(--sage-600);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.profile-actions a:hover {
    color: var(--sage-800);
    border-bottom-color: var(--sage-600);
}

/* Action Links */
.action-link {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--sage-200);
    color: var(--sage-700);
}

.action-link:hover {
    color: white;
    background: linear-gradient(135deg, var(--sage-600) 0%, var(--sage-700) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 127, 116, 0.2);
}

.action-link i {
    transition: transform 0.3s ease;
}

.action-link:hover i {
    transform: scale(1.1);
}

/* License Link */
.license-link {
    background: linear-gradient(135deg, var(--sage-100) 0%, var(--sage-200) 100%);
}

/* Donate Link */
.donate-link {
    background: linear-gradient(135deg, var(--sage-100) 0%, var(--sage-200) 100%);
}

/* Terms and License Notice */
.terms-notice {
    font-size: 12px;
    color: var(--sage-700);
    text-align: center;
    margin-top: 20px;
    line-height: 1.5;
    padding: 0 1rem;
}

.terms-notice a {
    color: var(--sage-600);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.terms-notice a:hover {
    color: var(--sage-800);
    border-bottom-color: var(--sage-600);
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .profile-actions {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .action-link {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .profile-actions p {
        font-size: 11px;
        padding: 0 0.5rem;
    }
}

@media (min-width: 768px) {
    .profile-actions {
        justify-content: center;
        gap: 2rem;
    }
}