@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700&family=JetBrains+Mono:wght@300;500&display=swap');

:root {
    --bg-dark: #020203;
    --bg-card: rgba(15, 15, 20, 0.7);
    --accent-primary: #0070f3;
    --accent-secondary: #7928ca;
    --accent-cyan: #00d4ff;
    --text-main: #f5f5f7;
    --text-dim: #a1a1a6;
    --border-color: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(10, 10, 10, 0.8);
    --btn-bg: rgba(255, 255, 255, 0.05);
}

body.light-theme {
    --bg-dark: #f5f5f7;
    --bg-card: #ffffff;
    --accent-primary: #0044cc;
    --accent-secondary: #5800a0;
    --accent-cyan: #0044cc;
    --text-main: #000000;
    --text-dim: #1d1d1f;
    --border-color: rgba(0, 0, 0, 0.15);
    --nav-bg: rgba(255, 255, 255, 0.9);
    --btn-bg: rgba(0, 0, 0, 0.05);
}

body.light-theme .mesh-gradient {
    background: 
        radial-gradient(circle at 10% 10%, rgba(0, 112, 243, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(0, 212, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(245, 245, 247, 1) 0%, transparent 100%);
}

body.light-theme .topo-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 86c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm66-3c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-40-39c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm50 38c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM21 39c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm56-38c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM95 54c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM48 6c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM4 62c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM91 90c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM0 0h100v100H0V0zm1 1v98h98V1h-98z' fill='%23000000' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

body.light-theme .particle {
    background: #000000;
    opacity: 0.05;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Enhanced Mouse Cursor */
#cursor {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background 0.3s, border 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    transform: translate(-50%, -50%); /* Centering */
}

#cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 0 15px var(--accent-cyan);
    transform: translate(-50%, -50%); /* Centering */
}

.cursor-hover #cursor {
    width: 60px;
    height: 60px;
    background: rgba(0, 112, 243, 0.1);
    border-color: var(--accent-cyan);
}

/* Vibrant Blue Background Effects */
.mesh-gradient {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 10% 10%, rgba(0, 112, 243, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(0, 212, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1) 0%, transparent 100%);
    z-index: -2;
    filter: blur(80px);
}

.topo-pattern {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 86c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm66-3c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-40-39c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm50 38c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM21 39c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm56-38c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM95 54c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM48 6c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM4 62c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM91 90c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM0 0h100v100H0V0zm1 1v98h98V1h-98z' fill='%23ffffff' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

.particles {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite linear;
}

@keyframes float {
    from { transform: translateY(0) translateX(0); }
    to { transform: translateY(-100vh) translateX(20px); }
}

.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 100;
}

/* Header & Nav */
.main-header {
    position: absolute;
    top: 2rem; left: 0; width: 100%;
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; padding: 0 2rem;
}

.nav-container {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 0.4rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.nav-tabs { display: flex; gap: 0.2rem; }

.tab-item {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-item.active {
    background: var(--text-main);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}

.header-actions {
    position: absolute;
    right: 2rem;
    display: flex;
    gap: 0.75rem;
}

.action-btn {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0.75rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.action-btn:hover { border-color: var(--accent-primary); transform: translateY(-2px); }

/* Theme Icons */
.icon-sun { display: none; }
body.light-theme .icon-moon { display: none; }
body.light-theme .icon-sun { display: block; }

/* Language Selector */
.lang-selector { position: relative; }
.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.75rem;
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 190px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 2000;
    transform-origin: top right;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-dropdown.active { display: flex; }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.lang-option {
    background: transparent;
    border: none;
    padding: 0.8rem 1rem;
    color: var(--text-main);
    text-align: left;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
    width: 100%;
}

.lang-option:hover {
    background: var(--btn-bg);
    padding-left: 1.25rem;
}

.flag { border-radius: 3px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

.lang-name { font-size: 0.85rem; font-weight: 500; color: var(--text-dim); }
.lang-option:hover .lang-name { color: var(--text-main); }

/* Content Sections */
.content-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.content-section.active {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    opacity: 1;
    transform: translateY(0);
}

/* Bento Grid */
.wrapper { max-width: 900px; margin: 0 auto; padding: 8rem 2rem 4rem; }
.hero { animation: reveal 1s forwards; }
@keyframes reveal { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.welcome-badge { 
    display: inline-block; padding: 0.5rem 1.2rem; 
    background: rgba(0, 112, 243, 0.1); 
    border: 1px solid rgba(0, 112, 243, 0.2); 
    border-radius: 100px; font-size: 0.7rem; 
    letter-spacing: 2px; color: var(--accent-cyan); margin-bottom: 1.5rem; 
}

.title-large { 
    font-size: clamp(2rem, 6vw, 4rem); 
    font-weight: 700; line-height: 1; 
    letter-spacing: -3px; 
    white-space: nowrap;
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .title-large {
    background: none;
    -webkit-text-fill-color: #000000;
    color: #000000;
}

.hero-main {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-top: 1rem;
}

.hero-img {
    width: 220px;
    height: 220px;
    border-radius: 28px;
    object-fit: cover;
    animation: reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.name-accent { font-size: clamp(1.2rem, 4vw, 2rem); margin-top: 1.5rem; color: var(--text-dim); font-weight: 500; letter-spacing: -0.5px; }
body.light-theme .name-accent { color: #1a1a1a; font-weight: 600; }

.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(180px, auto); gap: 1.5rem; }

.bento-item { 
    background: var(--bg-card); 
    backdrop-filter: blur(15px); 
    border: 1px solid var(--border-color); 
    border-radius: 28px; padding: 2.5rem; 
    position: relative; overflow: hidden; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

body.light-theme .bento-item {
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

.bento-item:hover { border-color: var(--accent-primary); transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }

.item-terminal { 
    grid-column: span 3; 
    font-family: 'JetBrains Mono', monospace; 
    font-size: 1rem; 
    color: var(--accent-primary); 
    line-height: 1.7; 
    font-weight: 500;
}
body.light-theme .item-terminal { color: #0033aa; }

.item-discord {
    grid-column: span 1;
    grid-row: span 2;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(15, 15, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    justify-content: flex-start;
}

.discord-avatar-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 1.5rem;
}

.discord-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.discord-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: #ff4747; /* DND Red */
    border-radius: 50%;
    border: 4px solid #0f0f14;
}

.discord-status.online { background: #23a55a; }
.discord-status.idle { background: #f0b232; }
.discord-status.dnd { background: #f23f43; }
.discord-status.dnd::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 10px; height: 2px;
    background: #0f0f14;
    border-radius: 1px;
}

.discord-info {
    text-align: center;
    width: 100%;
}

.discord-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    font-family: serif;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.discord-username {
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.discord-badges {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
    justify-content: center;
}

.badge {
    font-size: 0.9rem;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.1));
}

.discord-links {
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
    border-radius: 12px;
    border-left: 3px solid #5865f2;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.discord-link-item {
    font-size: 0.75rem;
    color: #00a8fc;
    text-decoration: none;
    font-weight: 600;
    word-break: break-all;
}

.discord-link-item:hover {
    text-decoration: underline;
}

.discord-title {
    font-size: 0.8rem;
    color: #fff;
    font-weight: 700;
    margin-top: 0.2rem;
}



.item-status { grid-column: span 2; }
.item-cta { 
    grid-column: span 1; 
    background: linear-gradient(135deg, #f5f5f7, #e5e5e7); 
    display: flex; align-items: center; justify-content: center; 
    color: #000000; transition: all 0.3s ease;
    text-shadow: none;
    font-weight: 700;
    font-size: 1.2rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.item-cta a, .item-cta h3 {
    color: #000000 !important;
    text-decoration: none;
}
.item-cta:hover { background: #ffffff; transform: scale(1.02); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.status-dot { 
    width: 14px; 
    height: 14px; 
    background: #ff4747; 
    border-radius: 50%; 
    box-shadow: 0 0 15px rgba(255, 71, 71, 0.4); 
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: statusPulse 2s infinite ease-in-out;
}

@keyframes statusPulse {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 71, 71, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(255, 71, 71, 0.8); }
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 71, 71, 0.4); }
}

.status-dot::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 2px;
    background: white;
    border-radius: 2px;
}

.section-title { font-size: 2.5rem; margin-bottom: 2rem; font-weight: 700; }

.social-link { 
    text-decoration: none; color: var(--text-main); 
    font-size: 1rem; padding: 1rem 2rem; border-radius: 16px; 
    background: var(--btn-bg); border: 1px solid var(--border-color); 
    transition: all 0.3s;
}
.social-link:hover { border-color: var(--accent-primary); background: rgba(0, 112, 243, 0.1); }

@media (max-width: 768px) {
    .main-header { top: 1rem; padding: 0 1rem; flex-direction: column; gap: 1rem; }
    .header-actions { position: relative; right: 0; }
    .hero-main { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .hero-img { width: 100px; height: 100px; border-radius: 20px; }
    .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
    .item-terminal { grid-column: span 2; }
    .item-discord { grid-column: span 2; grid-row: auto; }
    .item-status { grid-column: span 2; }
    .item-cta { grid-column: span 2; }
}
