/* Modern Reset & Base Variables */
:root {
    --bg-color: #050a07; /* Darker, slightly green-tinted black */
    --text-primary: #e6fcf5;
    --text-secondary: #8ab0a2;
    --accent-color: #10b981; /* Emerald Green */
    --accent-glow: rgba(16, 185, 129, 0.4);
    --glass-bg: rgba(10, 30, 20, 0.2);
    --glass-border: rgba(52, 211, 153, 0.15);
    --hover-bg: rgba(52, 211, 153, 0.1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px 60px;
    position: relative;
    z-index: 1;
}

/* Header / Banner */
.banner-container {
    width: 100%;
    height: 250px;
    position: relative;
    border-radius: 0 0 30px 30px;
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
    margin-bottom: -50px; /* Overlap effect */
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

.profile-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: inline-block;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.profile-avatar-placeholder {
    /* If user wants an avatar later, for now just name text styling */
    display: inline-block;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
}

/* Sections */
.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title::before, .section-title::after {
    content: '';
    height: 1px;
    width: 40px;
    background: var(--glass-border);
}

/* Link Cards */
.links-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 50px;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(5, 20, 15, 0.4); /* Darker, more substantial glass */
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.link-card:hover {
    background: var(--hover-bg);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2), 0 0 20px var(--accent-glow);
}

.link-platform {
    font-weight: 600;
    font-size: 1.1rem;
}

.link-icon {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.link-card:hover .link-icon {
    opacity: 1;
}

.link-content-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Videos Section */
.videos-grid {
    display: grid;
    gap: 24px;
}

.video-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.video-player {
    aspect-ratio: 16 / 9;
    width: 100%;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 15px 20px;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 500;
}

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

.animate-entry {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 50px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Premium Polish: Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Premium Polish: Selection */
::selection {
    background: var(--accent-color);
    color: #000;
}

/* Discord Banner */
.discord-banner {
    display: flex;
    background: rgba(10, 20, 25, 0.6);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    min-height: 180px; 
}

.discord-banner:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.discord-banner-visual {
    width: 30%;
    min-width: 120px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.discord-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.discord-banner:hover .discord-img {
    transform: scale(1.05);
}

.discord-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    /* justify-content: center; Removed to allow margin-top: auto to work */
    align-items: flex-start;
}

.discord-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.discord-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.discord-btn {
    display: inline-block;
    padding: 10px 24px;
    /* Darker Green Theme: Emerald 700/800/600 mix */
    background: linear-gradient(270deg, #047857, #064e3b, #059669);
    background-size: 400% 400%;
    color: white;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(6, 78, 59, 0.4); /* Darker shadow */
    animation: gradientShift 3s ease infinite;
    transition: all 0.3s ease;
    
    /* Position bottom right */
    align-self: flex-end;
    margin-top: auto;
    
    /* Layout for icon */
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.discord-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.discord-btn:hover {
    box-shadow: 0 6px 20px rgba(6, 95, 70, 0.6);
    transform: translateY(-2px);
}

.discord-btn:hover svg {
    transform: translateX(4px);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 550px) {
    .discord-banner {
        flex-direction: column;
    }
    .discord-banner-visual {
        width: 100%;
        height: 140px;
        -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    }
    .discord-content {
        align-items: center;
        text-align: center;
    }
    .discord-btn {
        align-self: center; /* Reset to center on mobile */
        margin-top: 16px;
    }
}
