@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root { --brand: #2fe0b4; --ink: #050b15; --panel: #0d1726; --line: rgba(159, 184, 210, .14); }
* { box-sizing: border-box; }
body { background: var(--ink); color: #f8fafc; font-family: Inter, sans-serif; overflow-x: hidden; }
body::before { background: radial-gradient(circle at 76% 10%, rgba(15, 92, 165, .19), transparent 25rem), radial-gradient(circle at 29% 44%, rgba(37, 196, 178, .045), transparent 23rem); content: ''; inset: 0; pointer-events: none; position: fixed; z-index: -1; }
body.light-mode { --ink: #f5f8fc; --panel: #fff; background: #f5f8fc; color: #102035; }
body.light-mode::before { background: radial-gradient(circle at 72% 8%, rgba(47, 224, 180, .18), transparent 23rem); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #07101d; }
::-webkit-scrollbar-thumb { background: #29384d; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

.glass-nav { background: rgba(4, 10, 20, .79); border-bottom: 1px solid rgba(156, 179, 204, .065); backdrop-filter: blur(14px); }
.nav-link { border-bottom: 1px solid transparent; color: #e5e7eb; padding: 6px 0; transition: color .2s, border-color .2s; }
.nav-link:hover, .nav-link.is-active { border-color: var(--brand); color: var(--brand); }
.theme-toggle { align-items: center; background: rgba(27, 39, 57, .7); border: 1px solid rgba(189, 205, 224, .12); border-radius: 9px; color: #e2e8f0; display: flex; height: 32px; justify-content: center; transition: .2s; width: 36px; }
.theme-toggle:hover { border-color: rgba(47, 224, 180, .7); color: var(--brand); }
.mobile-link { border-radius: 8px; color: #dce5f0; font-size: .9rem; padding: .65rem .75rem; transition: .2s; }
.mobile-link:hover { background: rgba(47,224,180,.08); color: var(--brand); }

.hero-shell { border-bottom: 1px solid rgba(159, 184, 210, .09); min-height: 618px; }
.hero-glow { background: radial-gradient(circle, rgba(20, 85, 146, .22), transparent 66%); height: 39rem; pointer-events: none; position: absolute; right: -7rem; top: -2rem; width: 42rem; }
.hero-orb { background: rgba(24, 121, 239, .32); border-radius: 50%; filter: blur(48px); height: 13rem; pointer-events: none; position: absolute; right: 9%; top: 34%; width: 13rem; }
.hero-image { display: block; filter: drop-shadow(0 24px 24px rgba(0, 0, 0, .48)); margin: auto; max-height: 488px; object-fit: contain; position: relative; width: min(100%, 600px); }
.code-badge { align-items: center; background: linear-gradient(145deg, rgba(13, 45, 56, .96), rgba(13, 102, 77, .88)); border: 1px solid rgba(65, 255, 196, .7); border-radius: 15px; box-shadow: 0 9px 25px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.11); color: var(--brand); display: flex; font-size: 29px; height: 68px; justify-content: center; position: absolute; right: 7%; top: 7%; transform: rotate(4deg); width: 78px; z-index: 2; }
.animate-float { animation: float 4.5s ease-in-out infinite; }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -9px; } }

.primary-button, .secondary-button { align-items: center; border-radius: 7px; display: inline-flex; font-size: 15px; font-weight: 600; gap: 10px; min-height: 48px; padding: 0 18px; transition: transform .2s, box-shadow .2s, background .2s; }
.primary-button { background: linear-gradient(115deg, #37e5bc, #22d9ad); box-shadow: 0 8px 20px rgba(24, 211, 166, .17); color: #041511; }
.primary-button:hover { box-shadow: 0 12px 26px rgba(24, 211, 166, .28); transform: translateY(-2px); }
.secondary-button { border: 1px solid rgba(173, 197, 224, .48); color: #f8fafc; }
.secondary-button:hover { background: rgba(255,255,255,.07); border-color: var(--brand); color: var(--brand); }
.social-button { align-items: center; border: 1px solid rgba(178, 201, 226, .2); border-radius: 999px; color: #f1f5f9; display: flex; font-size: 20px; height: 47px; justify-content: center; transition: .2s; width: 47px; }
.social-button:hover { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47, 224, 180, .08); color: var(--brand); transform: translateY(-2px); }

.section-shell { padding: 36px 0; }
.section-inner { margin: auto; max-width: 1180px; padding: 0 20px; }
.section-divider .section-inner { border-bottom: 1px solid var(--line); padding-bottom: 40px; }
.section-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 22px; }
.eyebrow { color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .05em; margin-bottom: 11px; }
.section-heading h2, .section-title { color: #f8fafc; font-size: 26px; font-weight: 750; letter-spacing: -.04em; line-height: 1.1; }
.section-link { color: var(--brand); font-size: 14px; font-weight: 500; white-space: nowrap; }
.section-link i { font-size: 12px; margin-left: 7px; transition: transform .2s; }
.section-link:hover i { transform: translateX(4px); }

.skill-card { align-items: center; background: linear-gradient(140deg, rgba(18, 30, 46, .84), rgba(12, 23, 36, .76)); border: 1px solid rgba(163, 186, 211, .16); border-radius: 8px; display: flex; flex-direction: column; height: 167px; justify-content: center; padding: 15px 12px 14px; transition: border .2s, transform .25s, box-shadow .25s; }
.skill-card:hover { border-color: rgba(47,224,180,.47); box-shadow: 0 13px 30px rgba(0,0,0,.16); transform: translateY(-3px); }
.skill-icon { font-size: 44px; height: 57px; line-height: 57px; }
.next-mark { align-items: center; border: 2px solid #f1f5f9; border-radius: 999px; display: flex; font-size: 30px; font-weight: 400; height: 55px; justify-content: center; line-height: 1; width: 55px; }
.ts-mark { align-items: center; background: #167ac6; border-radius: 4px; display: flex; font-size: 26px; font-weight: 700; height: 55px; justify-content: center; width: 55px; }
.skill-card h3 { color: #f8fafc; font-size: 14px; font-weight: 700; margin: 9px 0 13px; text-align: center; }
.skill-meter { align-items: center; display: flex; gap: 8px; width: 100%; }
.skill-meter::before { background: #203044; border-radius: 99px; content: ''; height: 4px; flex: 1; }
.skill-meter { position: relative; }
.skill-meter span { background: var(--brand); border-radius: 99px; height: 4px; left: 0; position: absolute; top: 50%; transform: translateY(-50%); transition: width 1s ease; width: 0; }
.skill-meter b { color: #71f4d4; font-size: 12px; font-weight: 600; }

.project-card { background: linear-gradient(145deg, rgba(19, 31, 47, .95), rgba(14, 25, 39, .9)); border: 1px solid rgba(163, 186, 211, .16); border-radius: 8px; overflow: hidden; transition: border .2s, transform .25s, box-shadow .25s; }
.project-card:hover { border-color: rgba(47,224,180,.42); box-shadow: 0 15px 35px rgba(0,0,0,.24); transform: translateY(-3px); }
.project-image-wrap { background: #0a1320; height: 174px; overflow: hidden; position: relative; }
.project-image { display: block; height: 100%; object-fit: cover; transition: transform .45s ease; width: 100%; }
.group:hover .project-image { transform: scale(1.04); }
.featured-badge { background: var(--brand); border-radius: 5px; color: #09251f; font-size: 12px; font-weight: 700; padding: 7px 10px; position: absolute; right: 8px; top: 8px; z-index: 1; }
.project-body { display: flex; flex-direction: column; min-height: 160px; padding: 16px 14px 13px; }
.project-body h3 { color: #f8fafc; font-size: 16px; font-weight: 700; line-height: 1.3; }
.project-body p { color: #bdcad9; font-size: 13px; line-height: 1.65; margin-top: 8px; }
.project-footer { align-items: end; display: flex; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list span { background: rgba(44, 62, 84, .55); border-radius: 5px; color: #e2e8f0; font-size: 11px; padding: 5px 7px; }
.project-footer > a { color: #9edaf0; font-size: 16px; padding: 4px 0 4px 10px; transition: color .2s, transform .2s; }
.project-footer > a:hover { color: var(--brand); transform: translate(2px, -2px); }

.stat-card, .principles-card, .contact-card { background: rgba(14, 25, 39, .7); border: 1px solid rgba(163, 186, 211, .14); border-radius: 8px; }
.stat-card { display: flex; flex-direction: column; padding: 15px; }
.stat-card b { color: var(--brand); font-size: 27px; letter-spacing: -.04em; }
.stat-card span { color: #aebdce; font-size: 12px; margin-top: 3px; }
.principles-card { padding: 26px; }
.principles-card h3 { color: #f8fafc; font-size: 17px; font-weight: 700; }
.principles-card h3 i, .principles-card li i { color: var(--brand); margin-right: 8px; }
.principles-card ul { color: #c6d2df; display: grid; font-size: 14px; gap: 17px; line-height: 1.45; margin-top: 22px; }
.contact-card { display: grid; gap: 18px; padding: 24px; }
.contact-card label { color: #b9c7d7; display: grid; font-size: 11px; font-weight: 600; gap: 7px; letter-spacing: .08em; text-transform: uppercase; }
.contact-card input, .contact-card textarea { background: rgba(3, 10, 20, .72); border: 1px solid rgba(163, 186, 211, .17); border-radius: 7px; color: #f8fafc; font: 400 14px Inter, sans-serif; letter-spacing: normal; outline: none; padding: 12px 13px; text-transform: none; transition: border .2s, box-shadow .2s; }
.contact-card textarea { resize: vertical; }
.contact-card input:focus, .contact-card textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,224,180,.1); }
.toast { align-items: center; background: var(--brand); border-radius: 8px; bottom: 22px; box-shadow: 0 15px 35px rgba(0,0,0,.25); color: #073027; display: flex; font-weight: 600; gap: 9px; opacity: 0; padding: 13px 16px; pointer-events: none; position: fixed; right: 22px; transform: translateY(20px); transition: .28s; z-index: 60; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

body.light-mode .glass-nav { background: rgba(248, 251, 255, .85); border-color: rgba(29, 49, 74, .1); }
body.light-mode .nav-link { color: #334155; }
body.light-mode .theme-toggle { background: #eaf0f7; border-color: #d4deea; color: #334155; }
body.light-mode .hero-shell { border-color: rgba(29,49,74,.12); }
body.light-mode .hero-glow { opacity: .55; }
body.light-mode .secondary-button { border-color: #8b9bb0; color: #1e293b; }
body.light-mode .social-button { border-color: #bdcad9; color: #172033; }
body.light-mode .section-heading h2, body.light-mode .section-title, body.light-mode .skill-card h3, body.light-mode .project-body h3, body.light-mode .principles-card h3 { color: #102035; }
body.light-mode .section-divider .section-inner { border-color: rgba(29,49,74,.13); }
body.light-mode .skill-card, body.light-mode .project-card, body.light-mode .stat-card, body.light-mode .principles-card, body.light-mode .contact-card { background: rgba(255,255,255,.82); border-color: rgba(29,49,74,.15); }
body.light-mode .project-body p, body.light-mode .principles-card ul { color: #526278; }
body.light-mode .tag-list span { background: #e7eef6; color: #334155; }
body.light-mode .contact-card input, body.light-mode .contact-card textarea { background: #f7faff; border-color: #cad6e4; color: #172033; }
body.light-mode footer { background: #eaf0f7; border-color: rgba(29,49,74,.12); }

@media (min-width: 640px) { .section-inner { padding-left: 32px; padding-right: 32px; } }
@media (max-width: 767px) { .hero-shell { min-height: auto; } .hero-image { max-height: 370px; } .code-badge { right: 4%; top: 3%; } .section-heading { align-items: start; gap: 16px; } .section-link { font-size: 12px; padding-top: 3px; } }
@media (max-width: 430px) { .section-heading h2, .section-title { font-size: 23px; } .section-link { display: none; } .project-image-wrap { height: 190px; } }
