:root {
    --primary: #111111;
    --accent: #2563eb;
    --bg-main: #ffffff;
    --bg-soft: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

[data-theme="dark"] {
    --primary: #ffffff;
    --accent: #3b82f6;
    --bg-main: #0f172a;
    --bg-soft: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background: var(--bg-main); 
    color: var(--text-main);
    transition: 0.3s;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.bg-soft { background: var(--bg-soft); }

.main-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.brand { font-size: 1.5rem; font-weight: 800; }
.brand span { color: var(--accent); }
.nav-menu { display: flex; gap: 30px; }
.nav-link { font-weight: 500; color: var(--text-muted); }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-special { color: var(--accent) !important; font-weight: 700; }

.hero-section { height: 100vh; display: flex; align-items: center; position: relative; }
.hero-title { font-size: 4rem; letter-spacing: -2px; margin-bottom: 20px; }
.text-gradient { background: linear-gradient(to right, var(--accent), #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-description { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin-bottom: 40px; }

.btn { padding: 12px 30px; border-radius: var(--radius-sm); border: none; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }
.btn-primary { background: var(--primary); color: white; }
.btn-secondary { background: var(--bg-soft); border: 1px solid var(--border); }
.btn-full { width: 100%; justify-content: center; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.image-wrapper img { border-radius: var(--radius-md); width: 100%; }

.skill-tabs { margin-top: 30px; }
.tab-header { display: flex; gap: 20px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab-btn { background: none; border: none; padding: 10px 0; cursor: pointer; font-weight: 600; color: var(--text-muted); }
.tab-btn.active { color: var(--accent); border-bottom: 2px solid var(--accent); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.skill-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.timeline { border-left: 2px solid var(--border); padding-left: 20px; }
.timeline-item { margin-bottom: 30px; position: relative; }
.timeline-dot { position: absolute; left: -27px; top: 5px; width: 12px; height: 12px; background: var(--accent); border-radius: 50%; }

.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.project-card { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.project-image img { width: 100%; height: 200px; object-fit: cover; }
.project-info { padding: 20px; }

.bg-gradient { background: #111; color: white; border-radius: var(--radius-lg); margin-top: 50px; }
.support-card { padding: 60px; text-align: center; }
.donation-options { display: flex; gap: 10px; margin: 20px 0; justify-content: center; }
.donate-btn { padding: 10px 20px; background: #222; border: 1px solid #333; color: white; cursor: pointer; border-radius: 4px; }
.donate-btn.active { background: var(--accent); }
.custom-support input, .custom-support textarea { width: 100%; margin-bottom: 10px; padding: 10px; background: #222; border: 1px solid #333; color: white; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea { padding: 15px; border: 1px solid var(--border); background: var(--bg-soft); border-radius: 4px; }

[data-reveal] { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.revealed { opacity: 1; transform: translateY(0); }

.hidden { display: none; }
.preloader { position: fixed; inset: 0; background: white; z-index: 2000; display: flex; align-items: center; justify-content: center; }
.preloader.fade-out { opacity: 0; visibility: hidden; transition: 0.5s; }

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .about-grid, .project-grid, .contact-grid { grid-template-columns: 1fr; }
    .desktop-nav { display: none; }
}
