/* Black Minimalist Theme - Refined & Compact */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600;700&display=swap');

:root {
    --bg-core: #050505;
    --bg-surface: #0a0a0a;
    --bg-card: #0e0e0e;
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-highlight: rgba(255, 255, 255, 0.12);
    
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html, body {
    font-family: var(--font-main);
    background-color: var(--bg-core);
    color: var(--text-primary);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-core); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* --- Layout Utils --- */
.container {
    max-width: 900px; /* Tighter container */
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 64px;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 50;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-brand {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-dot {
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255,255,255,0.4);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover { color: var(--text-primary); }

.nav-btn {
    padding: 6px 16px;
    background: #fff;
    color: #000;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-btn:hover { background: #dadada; transform: translateY(-1px); }

/* --- Splash Screen --- */
.splash-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-core);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.splash-content { text-align: center; }

.splash-img-container {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    filter: grayscale(100%);
    border: 1px solid var(--border-subtle);
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}
.splash-img-container img { width: 100%; height: 100%; object-fit: cover; }

.splash-text {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 300;
    color: var(--text-primary);
    min-height: 1.5rem;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #fff;
    margin-left: 4px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

/* --- Hero --- */
.hero {
    min-height: 65vh; /* Reduced height */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 64px;
}

/* Spotlight */
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    max-width: 600px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    padding: 5px 12px;
    border-radius: 99px;
    margin-bottom: 24px;
    background: rgba(255,255,255,0.01);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 16px 0;
    background: linear-gradient(to bottom right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 auto;
    line-height: 1.6;
}

.scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    animation: bounce 2s infinite;
    opacity: 0.5;
}

/* --- Global Section --- */
.section {
    padding: 60px 0; /* Minimal vertical padding */
    border-top: 1px solid var(--border-subtle);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.visible { opacity: 1; transform: translateY(0); }

.section-header { margin-bottom: 40px; }

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.section-line { height: 1px; width: 32px; background: var(--border-highlight); }
.section-desc { color: var(--text-secondary); font-size: 0.85rem; }

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.about-img-wrapper { border-radius: 2px; overflow: hidden; }

.about-img {
    width: 100%;
    display: block;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s ease;
    border: 1px solid var(--border-subtle);
}
.about-img:hover { filter: grayscale(0%) contrast(1); }

.about-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.about-text strong, .text-link { color: var(--text-primary); font-weight: 500; }
.text-link { text-decoration: underline; text-decoration-color: var(--text-muted); text-underline-offset: 4px; }

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 16px;
    border-radius: 2px;
}
.stat-value { display: block; font-size: 0.9rem; font-weight: 600; color: #fff; }
.stat-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }

/* --- Skills --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.skill-card:hover { border-color: var(--border-highlight); background: #121212; }

.skill-icon { font-size: 1.5rem; color: var(--text-muted); transition: 0.3s; }
.skill-card:hover .skill-icon { color: #fff; }
.skill-name { font-size: 0.75rem; color: var(--text-secondary); font-weight: 500; }

/* --- Knowledge --- */
.knowledge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.knowledge-col { display: flex; flex-direction: column; gap: 12px; }

.knowledge-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-bottom: 1px solid var(--border-subtle);
    transition: 0.3s;
}
.knowledge-item:hover { transform: translateX(4px); border-color: var(--border-highlight); }

.k-icon-box {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: #fff; border-radius: 50%;
    font-size: 0.8rem;
}

.k-info h4 { font-size: 0.9rem; color: #fff; font-weight: 500; margin-bottom: 2px; }
.k-info p { font-size: 0.75rem; color: var(--text-muted); }

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 24px 12px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-decoration: none; border-radius: 2px;
    transition: all 0.3s ease;
}
.contact-card:hover { background: #121212; border-color: var(--border-highlight); transform: translateY(-2px); }

.contact-icon { font-size: 1.4rem; color: var(--text-muted); margin-bottom: 10px; transition: 0.3s; }
.contact-card:hover .contact-icon { color: #fff; }
.contact-label { font-size: 0.75rem; color: var(--text-secondary); }

/* --- Footer --- */
.footer {
    padding: 32px;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); } 40% { transform: translate(-50%, -6px); } 60% { transform: translate(-50%, -3px); } }

/* Mobile */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { min-height: 50vh; }
    .hero-title { font-size: 2.8rem; }
    
    .about-grid, .knowledge-grid, .contact-grid { grid-template-columns: 1fr; gap: 24px; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    
    .section { padding: 48px 0; }
}