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

:root {
  --bg: #0f172a; --bg-card: #1e293b; --text: #f8fafc; --text-muted: #94a3b8;
  --cyan: #06b6d4; --cyan-light: #22d3ee; --emerald: #10b981; --emerald-light: #34d399;
  --border: #334155; --danger: #ef4444;
  --font: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }

.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(15,23,42,.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.25rem; font-weight: 700; color: var(--cyan-light); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link { color: var(--text-muted); text-decoration: none; font-size: .95rem; transition: color .2s; }
.nav-link:hover { color: var(--cyan-light); }

.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding-top: 4rem; }
.hero-bg-blur { position: absolute; top: 20%; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(6,182,212,.15) 0%, transparent 70%); filter: blur(80px); pointer-events: none; }
.hero-content { position: relative; text-align: center; max-width: 800px; padding: 2rem; }
.hero-greeting { font-size: 1.125rem; color: var(--cyan-light); margin-bottom: .5rem; }
.hero-name { font-size: 4.5rem; font-weight: 700; margin-bottom: 1rem; background: linear-gradient(135deg, var(--cyan-light), var(--emerald-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-title { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.hero-desc { font-size: 1rem; color: var(--text-muted); max-width: 500px; margin: 0 auto 2rem; line-height: 1.7; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; }

.btn { padding: .625rem 1.5rem; border: none; border-radius: .5rem; font-size: .95rem; font-weight: 500; cursor: pointer; transition: all .2s; text-decoration: none; display: inline-block; font-family: inherit; }
.btn-primary { background: var(--cyan); color: #fff; }
.btn-primary:hover { background: #0891b2; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(6,182,212,.4); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--cyan); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-full { width: 100%; }
.btn-sm { padding: .4rem .9rem; font-size: .825rem; }

.projects-section { max-width: 1200px; margin: 0 auto; padding: 5rem 2rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title { font-size: 2rem; font-weight: 700; margin-bottom: .5rem; background: linear-gradient(135deg, var(--cyan-light), var(--emerald-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-subtitle { color: var(--text-muted); font-size: .95rem; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.project-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; transition: all .3s; }
.project-card:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: 0 10px 40px rgba(6,182,212,.15); }
.project-title { font-size: 1.125rem; font-weight: 600; color: var(--text); }
.project-link { display: inline-block; margin-top: .75rem; color: var(--cyan-light); text-decoration: none; font-size: .875rem; }
.project-link:hover { color: var(--cyan); }
.project-content { color: var(--text-muted); font-size: .875rem; line-height: 1.6; margin-top: .5rem; }
.project-date { color: var(--text-muted); font-size: .75rem; opacity: .6; margin-top: .75rem; }
.project-actions { display: flex; gap: .5rem; margin-top: 1rem; }
.projects-empty { text-align: center; color: var(--text-muted); padding: 3rem 1rem; }

.admin-area { margin-top: 3rem; }
.add-project-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; }
.add-project-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }

.about-section { max-width: 800px; margin: 0 auto; padding: 5rem 2rem; }
.about-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 1rem; padding: 2.5rem; text-align: center; }
.about-text { color: var(--text-muted); line-height: 1.8; margin: 1rem 0 2rem; }
.social-links { display: flex; gap: 1.5rem; justify-content: center; }
.social-link { color: var(--cyan-light); text-decoration: none; font-size: .95rem; padding: .5rem 1rem; border: 1px solid var(--border); border-radius: .5rem; transition: all .2s; }
.social-link:hover { background: rgba(6,182,212,.1); border-color: var(--cyan); }
.footer { text-align: center; padding: 2rem; color: var(--text-muted); font-size: .875rem; border-top: 1px solid var(--border); }

.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label { font-size: .825rem; font-weight: 500; color: var(--text-muted); }
.form-group input, .form-group textarea { padding: .625rem .875rem; background: var(--bg); border: 1px solid var(--border); border-radius: .5rem; color: var(--text); font-size: .95rem; font-family: inherit; transition: all .2s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6,182,212,.15); }
.form-group input::placeholder, .form-group textarea::placeholder { color: #64748b; }

.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.modal-content { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: 1rem; padding: 2rem; width: 90%; max-width: 440px; max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); animation: slideUp .3s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
.modal-close:hover { color: var(--text); }
.modal-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 1.5rem; }
.modal-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; }
.modal-actions-right { display: flex; gap: .75rem; }

.auth-modal-content { max-width: 400px; }
.auth-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; background: var(--bg); border-radius: .5rem; padding: .25rem; }
.auth-tab { flex: 1; padding: .5rem; border: none; background: none; color: var(--text-muted); font-size: .95rem; font-weight: 500; cursor: pointer; border-radius: .375rem; transition: all .2s; font-family: inherit; }
.auth-tab.active { background: var(--cyan); color: #fff; }
.auth-form { display: flex; flex-direction: column; }
.auth-form.hidden { display: none; }
.error-msg { color: var(--danger); font-size: .825rem; text-align: center; min-height: 1.2rem; margin-top: .5rem; }

.password-strength { margin-top: .4rem; font-size: .75rem; min-height: 1rem; }
.password-strength-bar { height: 3px; border-radius: 2px; margin-top: .2rem; transition: all .3s; }
.strength-weak { color: var(--danger); } .strength-medium { color: #f59e0b; } .strength-strong { color: var(--emerald); }
.bar-weak { background: var(--danger); width: 33%; } .bar-medium { background: #f59e0b; width: 66%; } .bar-strong { background: var(--emerald); width: 100%; }

.user-area { display: flex; align-items: center; gap: .75rem; }
.user-name { color: var(--text-muted); font-size: .875rem; }

.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); background: var(--bg-card); border: 1px solid var(--border); color: var(--text); padding: .75rem 1.5rem; border-radius: .5rem; font-size: .9rem; box-shadow: 0 10px 30px rgba(0,0,0,.3); z-index: 2000; animation: toastIn .3s ease; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

@keyframes fade-in-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in-up { animation: fade-in-up .6s ease-out forwards; opacity: 0; }
.delay-1 { animation-delay: .1s; } .delay-2 { animation-delay: .2s; } .delay-3 { animation-delay: .3s; } .delay-4 { animation-delay: .4s; }

@media (max-width: 768px) {
  .nav-container { padding: 1rem; } .nav-links { gap: 1rem; } .nav-link { display: none; }
  .hero-name { font-size: 2.5rem; } .hero-buttons { flex-direction: column; }
  .projects-grid { grid-template-columns: 1fr; } .modal-content { padding: 1.5rem; }
}
