/* kalevski.rs - Mobile-first production styles */
:root{--primary:#135bec;--primary-dark:#0e46b9;--bg:#fff;--bg-alt:#f8fafc;--text:#111318;--text-muted:#64748b;--border:#e2e8f0;--radius:12px;--radius-lg:16px;--shadow:0 4px 20px -2px rgba(0,0,0,.06);--shadow-hover:0 10px 25px -5px rgba(19,91,236,.15);--font:Manrope,system-ui,-apple-system,sans-serif;--header-h:72px}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;font-size:100%}
body{margin:0;font-family:var(--font);font-size:1rem;line-height:1.6;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:underline}
.skip-link{position:absolute;top:-100px;left:0;padding:.75rem 1rem;background:var(--primary);color:#fff;font-weight:600;z-index:100;transition:top .2s}
.skip-link:focus{top:0;outline:2px solid var(--primary);outline-offset:2px}
.container{width:100%;max-width:1200px;margin:0 auto;padding:0 1rem}
@media(min-width:768px){.container{padding:0 1.5rem}}
@media(min-width:1024px){.container{padding:0 2rem}}
.container-narrow{max-width:720px}
/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--border);transition:box-shadow .3s}
.site-header.scrolled{box-shadow:var(--shadow)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:var(--header-h);max-width:1200px;margin:0 auto;padding:0 1rem}
@media(min-width:768px){.header-inner{padding:0 1.5rem}}
.logo{display:flex;align-items:center;gap:.5rem;font-weight:800;font-size:1.2rem;color:var(--text);letter-spacing:-.02em}
.logo:hover{color:var(--primary);text-decoration:none}
.logo-icon{color:var(--primary);font-size:1.4rem}
.nav-list{display:none;list-style:none;margin:0;padding:0;gap:2rem;align-items:center}
@media(min-width:768px){.nav-list{display:flex}}
.nav-list a{font-size:.9375rem;font-weight:500;color:var(--text-muted)}
.nav-list a:hover{color:var(--primary);text-decoration:none}
.nav-cta{padding:.5rem 1.25rem;background:var(--primary);color:#fff!important;border-radius:8px}
.nav-cta:hover{background:var(--primary-dark);text-decoration:none}
.nav-toggle{display:flex;flex-direction:column;gap:5px;padding:8px;background:0;border:0;cursor:pointer;aria-label:Open menu}
@media(min-width:768px){.nav-toggle{display:none}}
.nav-toggle span{width:22px;height:2px;background:var(--text);border-radius:1px;transition:transform .3s}
.nav.open .nav-list{display:flex;flex-direction:column;position:absolute;top:var(--header-h);left:0;right:0;background:var(--bg);padding:1rem;border-bottom:1px solid var(--border);gap:0}
.nav.open .nav-list li{padding:.5rem 0}
/* Hero */
.hero{position:relative;padding:4rem 0 3rem;overflow:hidden}
@media(min-width:1024px){.hero{padding:6rem 0 5rem}}
.hero-bg{position:absolute;top:0;right:0;width:60%;height:100%;background:linear-gradient(to left,rgba(241,245,249,.6),transparent);pointer-events:none;z-index:0}
.hero-inner{position:relative;z-index:1;display:grid;gap:2rem;align-items:center}
@media(min-width:1024px){.hero-inner{grid-template-columns:1fr 1fr;gap:3rem}}
.hero-content{order:2}
@media(min-width:1024px){.hero-content{order:1}}
.hero-badge{display:inline-flex;align-items:center;gap:.5rem;padding:.25rem .75rem;background:rgba(19,91,236,.08);color:var(--primary);font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;border-radius:999px;margin-bottom:1rem}
.dot{width:8px;height:8px;background:var(--primary);border-radius:50%;animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}
.hero h1{font-size:2.25rem;font-weight:800;line-height:1.15;letter-spacing:-.03em;margin:0 0 1rem}
@media(min-width:1024px){.hero h1{font-size:3.5rem}}
.hero-tagline{background:linear-gradient(90deg,var(--primary),#60a5fa);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.hero-intro{font-size:1.0625rem;color:var(--text-muted);max-width:32rem;margin:0 0 1.5rem;line-height:1.65}
.hero-actions{display:flex;flex-wrap:wrap;gap:1rem}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:.75rem 1.75rem;font-weight:700;font-size:1rem;border-radius:8px;border:0;cursor:pointer;transition:transform .2s,box-shadow .2s}
.btn:hover{text-decoration:none;transform:translateY(-1px)}
.btn-primary{background:var(--primary);color:#fff;box-shadow:0 4px 14px rgba(19,91,236,.35)}
.btn-primary:hover{background:var(--primary-dark);box-shadow:0 6px 20px rgba(19,91,236,.4)}
.btn-secondary{background:var(--bg);color:var(--text);border:1px solid var(--border)}
.btn-secondary:hover{background:var(--bg-alt);text-decoration:none}
.btn-block{width:100%}
.hero-photo-wrap{order:1;display:flex;justify-content:center;position:relative}
@media(min-width:1024px){.hero-photo-wrap{order:2;justify-content:flex-end}}
.hero-photo-frame{width:280px;height:280px;border-radius:50%;overflow:hidden;border:4px solid var(--bg);box-shadow:0 25px 50px -12px rgba(0,0,0,.2);position:relative;z-index:2}
@media(min-width:1024px){.hero-photo-frame{width:380px;height:380px}}
.hero-photo-frame img{width:100%;height:100%;object-fit:cover}
.hero-card{position:absolute;bottom:-.5rem;left:-.5rem;background:var(--bg);padding:1rem;border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid var(--border);display:flex;align-items:center;gap:.75rem;z-index:3}
@media(min-width:1024px){.hero-card{bottom:1.5rem;left:-1.5rem}}
.hero-card-icon{width:40px;height:40px;background:rgba(19,91,236,.1);color:var(--primary);border-radius:8px;display:flex;align-items:center;justify-content:center;font-weight:700}
.hero-card p{margin:0;font-size:.875rem}
.hero-card strong{display:block;color:var(--text-muted);font-size:.75rem}
/* Expertise */
.expertise{background:var(--bg-alt);padding:4rem 0}
@media(min-width:768px){.expertise{padding:5rem 0}}
.section-header{text-align:center;max-width:36rem;margin:0 auto 3rem}
.section-header h2{font-size:1.875rem;font-weight:700;margin:0 0 .5rem}
.section-header p{color:var(--text-muted);margin:0}
.skills-grid{display:grid;gap:1.5rem;margin-bottom:2.5rem}
@media(min-width:768px){.skills-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.skills-grid{grid-template-columns:repeat(4,1fr)}}
.skill-card{background:var(--bg);padding:1.5rem;border-radius:var(--radius-lg);border:1px solid var(--border);box-shadow:0 1px 3px rgba(0,0,0,.04);transition:transform .3s,box-shadow .3s}
.skill-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-hover)}
.skill-icon{display:inline-flex;width:48px;height:48px;align-items:center;justify-content:center;background:rgba(19,91,236,.08);color:var(--primary);border-radius:8px;margin-bottom:1rem;font-size:1.25rem}
.skill-card h3{font-size:1.125rem;font-weight:700;margin:0 0 .5rem}
.skill-card p{font-size:.875rem;color:var(--text-muted);margin:0;line-height:1.5}
.skills-badges{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center}
.badge{padding:.35rem .75rem;background:var(--bg);border:1px solid var(--border);border-radius:999px;font-size:.8125rem;font-weight:500;color:var(--text-muted)}
/* Experience / Timeline */
.experience{padding:4rem 0}
@media(min-width:768px){.experience{padding:5rem 0}}
.experience .section-header{margin-bottom:2.5rem}
.section-accent{display:block;width:80px;height:4px;background:var(--primary);border-radius:999px;margin:.5rem auto 0}
.timeline{list-style:none;margin:0;padding:0;border-left:2px solid var(--border);margin-left:1rem;padding-left:0}
@media(min-width:768px){.timeline{margin-left:0;padding-left:0}}
.timeline-item{position:relative;padding-bottom:2rem}
.timeline-item:last-child{padding-bottom:0}
.timeline-marker{position:absolute;left:-9px;top:4px;width:16px;height:16px;border-radius:50%;border:2px solid var(--bg);background:var(--text-muted);transition:background .3s}
@media(min-width:768px){.timeline-marker{left:0}}
.timeline-item:hover .timeline-marker{background:var(--primary)}
.timeline-content{padding-left:1.5rem}
@media(min-width:768px){.timeline-content{padding-left:2rem}}
.timeline-date{display:inline-block;padding:.2rem .6rem;background:rgba(19,91,236,.08);color:var(--primary);font-size:.75rem;font-weight:700;border-radius:999px;margin-bottom:.5rem}
.timeline-content h3{font-size:1.25rem;font-weight:700;margin:0 0 .25rem}
.timeline-company{font-size:.9375rem;color:var(--text-muted);margin:0 0 .75rem}
.timeline-content ul{margin:0;padding-left:1.25rem;color:var(--text-muted);font-size:.9375rem;line-height:1.6}
/* Contact */
.contact{background:var(--bg-alt);padding:4rem 0}
.contact-card{background:var(--bg);border-radius:var(--radius-lg);box-shadow:var(--shadow);border:1px solid var(--border);overflow:hidden;padding:2rem}
@media(min-width:768px){.contact-card{padding:3rem}}
.contact-header{text-align:center;margin-bottom:2rem}
.contact-header h2{font-size:1.875rem;font-weight:700;margin:0 0 .5rem}
.contact-header p{color:var(--text-muted);margin:0}
.contact-form{display:flex;flex-direction:column;gap:1.25rem}
.form-honeypot{position:absolute;left:-9999px;opacity:0;height:0;overflow:hidden}
.form-row{display:flex;flex-direction:column;gap:.35rem}
.form-row label{font-size:.875rem;font-weight:600;color:var(--text)}
.required{color:#b91c1c}
.form-row input,.form-row textarea{width:100%;padding:.75rem 1rem;font-family:inherit;font-size:1rem;border:1px solid var(--border);border-radius:8px;background:var(--bg-alt);transition:border-color .2s,box-shadow .2s}
.form-row input:focus,.form-row textarea:focus{outline:0;border-color:var(--primary);box-shadow:0 0 0 3px rgba(19,91,236,.15)}
.form-row textarea{resize:vertical;min-height:100px}
.form-error{font-size:.8125rem;color:#b91c1c;min-height:1.25rem}
.form-row input.invalid,.form-row textarea.invalid{border-color:#b91c1c}
.form-status{margin-top:.25rem;font-size:.9375rem;min-height:1.5rem}
.form-status.success{color:#059669}
.form-status.error{color:#b91c1c}
/* Footer */
.site-footer{background:var(--bg);border-top:1px solid var(--border);padding:2.5rem 0}
.footer-inner{display:flex;flex-direction:column;align-items:center;gap:1.5rem;text-align:center}
@media(min-width:768px){.footer-inner{flex-direction:row;justify-content:space-between;text-align:left}}
.footer-brand{display:flex;align-items:center;gap:.5rem;font-weight:800;font-size:1.125rem}
.footer-meta p{margin:0;font-size:.875rem;color:var(--text-muted)}
.footer-meta a{color:var(--primary)}
.footer-social{display:flex;gap:1.5rem}
.footer-social a{font-size:.875rem;font-weight:500;color:var(--text-muted)}
.footer-social a:hover{color:var(--primary);text-decoration:none}
/* Reduced motion */
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn:hover,.skill-card:hover{transform:none}.dot{animation:none}}
