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

:root {
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(255, 255, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --accent: #00ff88;
    --border: rgba(255, 255, 255, 0.2);
    --border-hover: rgba(0, 255, 136, 0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image: url('main background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@font-face {
    font-family: 'AvenirNext-DemiBold';
    src: local('Avenir Next Demi Bold'), local('AvenirNext-DemiBold'),
         local('Avenir Next DemiBold'), local('Avenir-Next-DemiBold');
    font-weight: 600;
}

/* Top handle */
.top-handle {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    font-family: 'AvenirNext-DemiBold', 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #000000;
    text-decoration: none;
    z-index: 100;
    transition: opacity 0.2s ease;
}

.top-handle:hover {
    opacity: 0.7;
}

/* Invisible picture frame clickable area */
.picture-frame-link {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;  /* Adjust based on your picture frame size */
    height: 250px; /* Adjust based on your picture frame size */
    z-index: 10;
    cursor: pointer;
    /* Uncomment below to see the clickable area during testing */
    /* background: rgba(255, 0, 0, 0.3); */
}

.picture-frame-link:hover {
    /* Subtle glow effect on hover */
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

/* Social buttons */
.social-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.75rem;
    z-index: 100;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #ffffff;
    text-decoration: none;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.social-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.links-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30vh;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 30%, transparent 100%);
    padding: 1.5rem;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
}

.links-wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 2.5rem;
    justify-content: space-between;
    height: 100%;
}

.section-group {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.links-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    justify-content: flex-start;
}

.link-item {
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 0;
    flex-shrink: 0;
}

.link-item:hover {
    background: var(--card-hover);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.link-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.link-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.link-content {
    flex: 1;
    min-width: 0;
}

.link-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.link-description {
    font-size: 0.7rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}


@media (max-width: 768px) {
    .links-section {
        height: 31vh;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .links-section::-webkit-scrollbar {
        display: none;
    }
    
    .links-wrapper {
        flex-direction: column;
        gap: 1.5rem;
        height: auto;
        min-height: 100%;
    }
    
    .section-group {
        height: auto;
    }
    
    .links-grid {
        gap: 0.5rem;
    }
    
    .social-buttons {
        bottom: 1rem;
        right: 1rem;
        gap: 0.5rem;
    }
    
    .social-btn {
        width: 40px;
        height: 40px;
    }
    
    .social-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .top-handle {
        font-size: 0.9rem;
        top: 1rem;
        right: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .links-wrapper {
        gap: 2rem;
    }
}