/* ==========================================================================
   majxikdev.pl — Stylesheet
   Modern Dark Glassmorphism Design
   ========================================================================== */

:root {
    --bg-dark: #07090e;
    --bg-card: rgba(15, 20, 32, 0.65);
    --bg-card-hover: rgba(22, 30, 48, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(124, 58, 237, 0.5);
    
    --primary: #7C3AED;
    --primary-glow: rgba(124, 58, 237, 0.35);
    --accent-cyan: #06B6D4;
    --accent-blue: #3B82F6;
    
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --text-dim: #6B7280;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

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

/* Background Effects */
.bg-glow-top {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, rgba(6, 182, 212, 0.15) 50%, rgba(0, 0, 0, 0) 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: -2;
}

.bg-glow-bottom {
    position: absolute;
    bottom: -150px;
    right: 5%;
    width: 600px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(124, 58, 237, 0.1) 50%, rgba(0, 0, 0, 0) 70%);
    filter: blur(100px);
    pointer-events: none;
    z-index: -2;
}

.bg-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 9, 14, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: #E5E7EB;
    background: linear-gradient(135deg, #FFFFFF 20%, #9CA3AF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-contact-btn {
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.4);
    padding: 8px 18px;
    border-radius: var(--radius-md);
    color: var(--text-main) !important;
    transition: all 0.2s ease !important;
}

.nav-contact-btn:hover {
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Main Layout Wrapper */
.wrapper {
    max-width: 1140px;
    margin: 40px auto;
    padding: 0 24px;
}

/* Hero Section */
.hero-section {
    margin-bottom: 60px;
}

.hero-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent-cyan), transparent);
}

.hero-left {
    display: flex;
    align-items: center;
    gap: 36px;
}

.avatar-box {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.avatar-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: #111827;
}

.online-pulse {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    background-color: #10B981;
    border: 4px solid #0F1420;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
}

.hero-badge-wrap {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.hero-badge {
    background: rgba(234, 179, 8, 0.15);
    color: #FACC15;
    border: 1px solid rgba(250, 204, 21, 0.4);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.location-badge {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 4px 14px;
    border-radius: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.highlight {
    color: #E5E7EB;
    background: linear-gradient(135deg, #FFFFFF 20%, #9CA3AF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-bio {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 680px;
    margin-bottom: 20px;
}

.hero-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.meta-tag:hover {
    border-color: var(--primary);
    color: var(--text-main);
    background: rgba(124, 58, 237, 0.1);
}

.copy-icon {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Live Spotify Now Playing Widget in Hero */
.spotify-now-playing {
    margin-top: 18px;
    background: rgba(30, 215, 96, 0.08);
    border: 1px solid rgba(30, 215, 96, 0.35);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 480px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(30, 215, 96, 0.12);
}

.spotify-art-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.spotify-art-wrap img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.spotify-equalizer {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #1DB954;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 3px;
    box-shadow: 0 0 10px rgba(29, 185, 84, 0.8);
}

.spotify-equalizer span {
    width: 3px;
    height: 100%;
    background-color: #000;
    border-radius: 1px;
    animation: bounceEqualizer 0.8s ease-in-out infinite alternate;
}

.spotify-equalizer span:nth-child(2) {
    animation-delay: 0.2s;
}

.spotify-equalizer span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounceEqualizer {
    0% { height: 30%; }
    100% { height: 100%; }
}

.spotify-track-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.spotify-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1DB954;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.spotify-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-artist {
    font-size: 0.83rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sections Common */
.section {
    margin-bottom: 70px;
}

.section-title-box {
    margin-bottom: 32px;
}

.section-tag {
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 6px;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
}

.section-subtext {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 4px;
}

/* Projects Grid (6 Servers) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 16px 32px rgba(124, 58, 237, 0.15);
    background: var(--bg-card-hover);
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.project-img-wrapper {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--accent-cyan);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
}

/* Role Badges */
.role-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.role-pill.owner {
    background: rgba(234, 179, 8, 0.15);
    color: #FACC15;
    border: 1px solid rgba(250, 204, 21, 0.4);
}

.role-pill.developer {
    background: rgba(168, 85, 247, 0.15);
    color: #C084FC;
    border: 1px solid rgba(192, 132, 252, 0.4);
}

.role-pill.admin {
    background: rgba(239, 68, 68, 0.15);
    color: #FCA5A5;
    border: 1px solid rgba(252, 165, 165, 0.4);
}

.role-pill.designer {
    background: rgba(59, 130, 246, 0.15);
    color: #93C5FD;
    border: 1px solid rgba(147, 197, 253, 0.4);
}

.role-pill.support {
    background: rgba(16, 185, 129, 0.15);
    color: #6EE7B7;
    border: 1px solid rgba(110, 231, 183, 0.4);
}

.role-pill.partner {
    background: rgba(249, 115, 22, 0.15);
    color: #FDBA74;
    border: 1px solid rgba(253, 186, 116, 0.4);
}

.project-info {
    margin-bottom: 20px;
}

.project-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.ip-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ip-tag:hover {
    border-color: var(--accent-cyan);
    color: var(--text-main);
    background: rgba(6, 182, 212, 0.12);
}

.project-btn {
    width: 100%;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.project-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 16px var(--primary-glow);
}

/* Legacy Projects Section (Bez ikon) */
.legacy-box {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed var(--border-color);
}

.legacy-title-box {
    margin-bottom: 20px;
}

.legacy-tag {
    color: var(--text-dim);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 4px;
}

.legacy-heading {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-muted);
}

.legacy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.legacy-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.25s ease;
}

.legacy-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
    background: var(--bg-card-hover);
}

.legacy-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.legacy-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 20px;
}

/* Two Columns Layout */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 60px;
}

.section-col {
    display: flex;
    flex-direction: column;
}

/* Social List */
.social-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.social-item {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.25 ease;
}

.social-item:hover {
    transform: translateX(6px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-main);
    flex-shrink: 0;
}

.social-item.discord:hover .social-icon { color: #5865F2; background: rgba(88, 101, 242, 0.15); }
.social-item.tiktok:hover .social-icon { color: #EE1D52; background: rgba(238, 29, 82, 0.15); }
.social-item.youtube:hover .social-icon { color: #FF0000; background: rgba(255, 0, 0, 0.15); }
.social-item.instagram:hover .social-icon { color: #E1306C; background: rgba(225, 48, 108, 0.15); }
.social-item.github:hover .social-icon { color: #FFFFFF; background: rgba(255, 255, 255, 0.15); }

.social-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.social-title {
    font-weight: 700;
    font-size: 1rem;
}

.social-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-arrow {
    color: var(--text-dim);
    font-size: 0.9rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.social-item:hover .social-arrow {
    color: var(--text-main);
    transform: translate(2px, -2px);
}

/* Spotify Box */
.spotify-box {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(15, 20, 32, 0.95);
    border: 1px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow);
    backdrop-filter: blur(12px);
    color: var(--text-main);
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast i {
    color: #10B981;
    font-size: 1.2rem;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Queries */
@media (max-width: 992px) {
    .projects-grid, .legacy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-left {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-badge-wrap {
        justify-content: center;
    }
    
    .hero-meta {
        justify-content: center;
    }

    .projects-grid, .legacy-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
}
