:root {
    --bg-dark: #050507;
    --nav-bg: rgba(5, 5, 7, 0.85);
    --primary: #ffffff;
    --secondary: #94a3b8;
    --accent: #7c3aed;
    --accent-glow: #8b5cf6;
    
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --container-width: 1000px;
    --section-spacing: 120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--primary);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* Backgrounds */
.bg-noise {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}
.bg-gradient-mesh {
    position: fixed;
    inset: 0;
    z-index: -3;
    background: 
        radial-gradient(circle at 15% 50%, rgba(124, 58, 237, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(56, 189, 248, 0.08), transparent 25%);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 1rem 2rem;
}

.nav-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
}
.dot { color: var(--accent-glow); }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: white; }

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    padding-top: 80px; /* Offset for navbar */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    /* margins handled by flex parent now, but keeping for safety */
    margin-left: auto; 
    margin-right: auto;
}
.hero-avatar {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.1);
}
.active-badge {
    position: absolute; bottom: 5px; right: 5px;
    width: 18px; height: 18px;
    background: #22c55e;
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
}

.greeting-pill {
    background: rgba(255,255,255,0.05);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent-glow);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--secondary);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: white;
    color: black;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255,255,255,0.15); }

.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: white;
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    color: var(--secondary);
    animation: bounce 2s infinite;
    text-decoration: none;
    font-size: 1.2rem;
}
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-10px);} 60% {transform: translateY(-5px);} }

/* Stats Bar */
.stats-bar {
    max-width: var(--container-width);
    margin: 0 auto;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    backdrop-filter: blur(10px);
}
.stat-item { text-align: center; }
.stat-value { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.3rem; }
.stat-label { font-size: 0.85rem; color: var(--secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.divider { width: 1px; height: 40px; background: rgba(255,255,255,0.1); }

/* Projects Section */
.projects-section {
    max-width: var(--container-width);
    margin: var(--section-spacing) auto;
    padding: 0 2rem;
}

.section-header { margin-bottom: 3rem; text-align: left; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.section-header p { color: var(--secondary); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, border-color 0.3s;
    display: flex;
    flex-direction: column;
}
.project-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.15);
}
.project-item.no-cursor {
    cursor: default;
    transform: none !important;
    border-color: rgba(255,255,255,0.05) !important;
}

.project-img-container {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #0b0b0d; /* Slightly lighter than pure black for contrast */
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain to fix cropping issues */
    object-position: center;
    transition: transform 0.5s ease;
}
/* If you really want to fit the whole image without cropping, use this class or change above to 'contain' */
/* .project-img { object-fit: contain; } */
.project-item:hover .project-img { transform: scale(1.03); }

.project-info { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.project-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.project-desc { 
    font-size: 0.9rem; 
    color: var(--secondary); 
    line-height: 1.5; 
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    color: var(--secondary);
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    .nav-links { display: none; } /* Could add mobile menu later if needed, keeps it clean */
    
    .stats-bar { 
        flex-direction: column; 
        gap: 1.5rem;
        text-align: center;
    }
    .divider { width: 50%; height: 1px; margin: 0 auto; }
    
    .projects-grid { grid-template-columns: 1fr; }
}
