
:root {
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --accent-color: #38bdf8;
    --secondary-accent: #6366f1;
    --gradient: linear-gradient(135deg, var(--accent-color), var(--secondary-accent));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#loader {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    animation: fallbackHide 0.5s forwards 5s;
}

@keyframes fallbackHide {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

.loader-hidden { 
    opacity: 0 !important; 
    visibility: hidden !important; 
    animation: none !important;
}

.loader-ring {
    position: absolute; width: 80px; height: 80px; border-radius: 50%;
    border: 3px solid transparent; border-top-color: var(--accent-color);
    animation: spin 1s linear infinite;
}
.loader-ring-reverse {
    position: absolute; width: 60px; height: 60px; border-radius: 50%;
    border: 3px solid transparent; border-bottom-color: var(--secondary-accent);
    animation: spin-reverse 1.5s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 0% { transform: rotate(360deg); } 100% { transform: rotate(-360deg); } }
#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
}
header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 70px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
}
@media (min-width: 768px) { header { height: 80px; } }

.nav-link {
    position: relative;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: white; }
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--accent-color); }

#mobile-menu-panel {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #94a3b8;
    text-decoration: none;
}
.social-btn:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px);
}

.profile-frame {
    position: relative;
    z-index: 1;
    display: inline-block;
}
.profile-frame::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid var(--accent-color);
    border-radius: 1rem;
    z-index: -1;
    transition: transform 0.3s ease;
}
.profile-frame:hover::before { transform: translate(8px, 8px); }
.profile-frame img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 0.75rem;
    display: block;
}

main {
    flex-grow: 1;
    padding-top: 100px;
}

footer {
    padding: 2rem 0;
    text-align: center;
    color: #eca305;
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}