/* Custom Font Files - Add your font files here */


@font-face {
    font-family: 'nebulasans';
    src: url('/fonts/nebulasans-light.woff2') format('woff2'),
         url('/fonts/nebulasans-light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'nebulasans';
    src: url('/fonts/nebulasans-book.woff2') format('woff2'),
         url('/fonts/nebulasans-book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'nebulasans';
    src: url('/fonts/nebulasans-medium.woff2') format('woff2'),
         url('/fonts/nebulasans-medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'nebulasans';
    src: url('/fonts/nebulasans-semibold.woff2') format('woff2'),
         url('/fonts/nebulasans-semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'nebulasans';
    src: url('/fonts/nebulasans-bold.woff2') format('woff2'),
         url('/fonts/nebulasans-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'nebulasans';
    src: url('/fonts/nebulasans-black.woff2') format('woff2'),
         url('/fonts/nebulasans-black.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-grey: #1a1a1a;
    --medium-grey: #2a2a2a;
    --light-grey: #3a3a3a;
    --white: #ffffff;
    --coral: #ff6b6b;
    --coral-light: #ff8e8e;
    --coral-dark: #ff4757;
}

body {
    font-family: 'nebulasans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--dark-grey);
    min-height: 100vh;
    color: var(--white);
}

/* Main Content */
.main-content {
    max-width: 500px;
    min-height: 96vh;
    margin: 20px 20px;
    background-color: var(--medium-grey);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 1px solid var(--light-grey);
}

/* Header Image */
.header-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 70%;
}

/* Profile Section */
.profile-section {
    text-align: center;
    padding: 60px 30px 30px;
    position: relative;
}

/* Profile Image Container - Overlaid by half the header height */
.profile-image-container {
    position: absolute;
    top: -60px; /* Positioned to overlay the header image by half its height */
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);*/
    z-index: 10; /* Ensure it's above the header image but below any text */
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 10px solid var(--medium-grey);
    
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 10px;
    color: var(--white);
}

.profile-bio {
    color: #cccccc;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
    font-weight: 400;
}

/* Links Container */
.links-container {
    padding: 0 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Social Links */
.social-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    background-color: var(--light-grey);
    border: 1px solid #555;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background-color: #444;
    border-color: var(--coral);
}

/* Icon container for SVG or Font Awesome icons */
.social-link .icon {
    width: 25px;
    height: 25px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-link .icon img {
    width: 20px;
    height: 20px;
}

/* Make all icons white */
.social-link .icon img {
    filter: brightness(0) invert(1); /* Makes SVG white */
}

.social-link .icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-link span {
    flex: 1;
    text-align: left;
}


.social-link:hover {
    border-color: #ff0000;
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.2);
}


/* Hover Effects */
.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.social-link:hover::before {
    left: 100%;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background-color: var(--dark-grey);
    border-radius: 10px;
    color: #888;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .main-content {
        margin: 10px;
        border-radius: 15px;
    }
    
    .profile-section {
        padding: 50px 20px 20px;
    }
    
    .profile-name {
        font-size: 24px;
    }
    
    .links-container {
        padding: 0 20px 20px;
    }
    
    .social-link {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-yes, .btn-no {
        width: 100%;
    }
}

.main-content:not(.hidden) {
    animation: fadeInUp 0.6s ease-out;
}

.social-link {
    animation: fadeInUp 0.6s ease-out;
}

.social-link:nth-child(1) { animation-delay: 0.1s; }
.social-link:nth-child(2) { animation-delay: 0.2s; }
.social-link:nth-child(3) { animation-delay: 0.3s; }
.social-link:nth-child(4) { animation-delay: 0.4s; }
.social-link:nth-child(5) { animation-delay: 0.5s; }
.social-link:nth-child(6) { animation-delay: 0.6s; }
.social-link:nth-child(7) { animation-delay: 0.7s; }

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-grey);
}

::-webkit-scrollbar-thumb {
    background: var(--coral);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--coral-light);
}
