/*
  CORE Mobile (Modern)
  - Mobile-first, thumb-friendly
  - Dark, glass + gradient accents
  - Accessible tap targets + focus rings
*/

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

:root{
  --bg:#07070a;
  --panel:rgba(255,255,255,.06);
  --panel-2:rgba(255,255,255,.04);
  --stroke:rgba(255,255,255,.10);
  --stroke-2:rgba(255,255,255,.14);
  --text:#ffffff;
  --muted:rgba(255,255,255,.78);
  --muted-2:rgba(255,255,255,.62);

  --green:#05EA76;
  --purple:#6938EF;

  --shadow:0 18px 60px rgba(0,0,0,.55);
  --shadow-soft:0 10px 30px rgba(0,0,0,.35);

  --r-xl:26px;
  --r-lg:20px;
  --r-md:16px;

  --ring:0 0 0 4px rgba(5,234,118,.22);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
html,body{height:100%}
body{
  background:var(--bg);
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  overflow-x:hidden;
}

/* Subtle background texture */
body::before{
  content:"";
  position:fixed;
  inset:-40px;
  pointer-events:none;
  background:
    radial-gradient(1000px 420px at 20% -5%, rgba(105,56,239,.40), transparent 55%),
    radial-gradient(850px 420px at 95% 18%, rgba(5,234,118,.22), transparent 55%),
    radial-gradient(800px 380px at 55% 95%, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(to bottom, rgba(255,255,255,.03), transparent 40%);
  filter:saturate(1.1);
  z-index:-1;
}

a{color:inherit}

/* Topbar */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:calc(env(safe-area-inset-top) + 10px) 14px 12px;
  background:rgba(7,7,10,.60);
  backdrop-filter: blur(18px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none}

.icon-btn{
  appearance:none;border:0;background:transparent;color:inherit;
  width:46px;height:46px;border-radius:18px;
  display:grid;place-items:center;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(255,255,255,.10);
}
.icon-btn:active{transform:translateY(1px) scale(.99)}

.hamburger{width:18px;height:12px;position:relative;display:block}
.hamburger::before,.hamburger::after{
  content:"";position:absolute;left:0;right:0;height:2px;border-radius:2px;
  background:rgba(255,255,255,.88);
}
.hamburger::before{top:0}
.hamburger::after{bottom:0}

/* Menu */
.menu{
  position:sticky;
  top:72px;
  z-index:40;
  display:none;
  padding:10px 14px 14px;
  background:rgba(7,7,10,.74);
  backdrop-filter: blur(18px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.menu.open{display:flex;gap:10px}
.menu a{
  flex:1;
  text-align:center;
  text-decoration:none;
  padding:11px 12px;
  border-radius:18px;
  background:var(--panel-2);
  box-shadow:0 0 0 1px rgba(255,255,255,.10);
  font-weight:600;
}

/* Layout */
.page{padding:14px 14px 104px}
.section{padding:28px 0}
.section h2{font-size:1.5rem;letter-spacing:-.01em}
.section-sub{margin-top:8px;color:var(--muted-2);line-height:1.45}

/* Hero */
.hero{position:relative;padding:18px 0 18px}
.hero-inner{position:relative;z-index:1}

.hero h1{
  font-size:clamp(2.0rem, 8vw, 2.85rem);
  line-height:1.02;
  letter-spacing:-.02em;
}
.lead{margin-top:12px;color:var(--muted);line-height:1.55;font-size:1.02rem}

.hero-actions{margin-top:18px;display:flex;gap:10px}

.btn{
  appearance:none;border:0;cursor:pointer;
  padding:12px 14px;
  border-radius:18px;
  font-weight:700;
  text-decoration:none;
  display:inline-flex;align-items:center;justify-content:center;
  min-height:48px;
  flex:1;
  letter-spacing:-.01em;
}
.btn.primary{
  background:linear-gradient(135deg, rgba(5,234,118,1), rgba(105,56,239,1));
  box-shadow: 0 16px 40px rgba(5,234,118,.16), 0 18px 50px rgba(105,56,239,.14);
}
.btn.ghost{
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow:0 0 0 1px rgba(255,255,255,.12);
}
.btn.full{width:100%;flex:auto}
.btn:focus-visible{outline:none;box-shadow:var(--ring), 0 0 0 1px rgba(255,255,255,.14)}

.pill-row{margin-top:16px;display:flex;gap:10px;flex-wrap:wrap;list-style:none}
.pill-row li{
  padding:9px 11px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  box-shadow:0 0 0 1px rgba(255,255,255,.10);
  font-size:.88rem;
  color:rgba(255,255,255,.88);
}

/* hero slika */

.image-section {
    display: flex;
    justify-content: center;
    padding: 1.5rem 1.2rem;
}

.image-section img {
    width: 100%;
    max-width: 420px;
    border-radius: 28px;

    /* fade robovi */
    -webkit-mask-image: radial-gradient(
        circle at center,
        rgba(0,0,0,1) 40%,
        rgba(0,0,0,0) 100%
    );
    mask-image: radial-gradient(
        circle at center,
        rgba(0,0,0,1) 40%,
        rgba(0,0,0,0) 100%
    );

    /* rahli glow */
    filter: drop-shadow(0 0 35px rgba(0,255,160,0.25));
}

/* Steps */
.step-list{display:flex;flex-direction:column;gap:12px;margin-top:14px}
.step{
  padding:16px 14px;
  border-radius:var(--r-xl);
  background:linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow:var(--shadow), 0 0 0 1px rgba(255,255,255,.10);
}
.step-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.step-kicker{font-size:.76rem;letter-spacing:.18em;text-transform:uppercase;color:rgba(255,255,255,.82)}
.step-tag{
  font-size:.78rem;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  box-shadow:0 0 0 1px rgba(255,255,255,.10);
  color:rgba(255,255,255,.85);
  white-space:nowrap;
}
.step h3{font-size:1.08rem;margin-bottom:8px;letter-spacing:-.01em}
.step p{color:var(--muted);line-height:1.6}

/* Projects carousel */
.projects{
  margin-top:14px;
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding-bottom:8px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.projects::-webkit-scrollbar{height:6px}
.projects::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:999px}

.project{
  min-width:84vw;
  max-width:84vw;
  scroll-snap-align:start;
  text-decoration:none;
  border-radius:var(--r-xl);
  overflow:hidden;
  background:linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow:var(--shadow), 0 0 0 1px rgba(255,255,255,.10);
}
.project-media{
  height:168px;
  background-size:cover;
  background-position: top;
  position:relative;
}
.project-media::after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.35));
}
.project-body{padding:14px 14px 16px}
.project-body h3{font-size:1.1rem;margin-bottom:7px;letter-spacing:-.01em}
.project-body p{color:var(--muted);line-height:1.5}
.project-cta{display:inline-flex;gap:8px;align-items:center;margin-top:10px;font-weight:700;color:rgba(255,255,255,.92)}
.project-cta::after{content:"→";opacity:.85}

/* Contact */
.contact-card{
  margin-top:14px;
  padding:16px 14px;
  border-radius:var(--r-xl);
  background:
    radial-gradient(600px 220px at 20% 10%, rgba(105,56,239,.30), transparent 60%),
    radial-gradient(600px 220px at 95% 70%, rgba(5,234,118,.20), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow:var(--shadow), 0 0 0 1px rgba(255,255,255,.10);
}
.contact-alt{margin-top:12px;color:var(--muted)}
.contact-alt a{color:var(--green);text-decoration:none}
.contact-alt a:active{text-decoration:underline}

.footer{margin-top:18px;padding-bottom:10px;color:rgba(255,255,255,.55);text-align:center;font-size:.9rem}

/* Bottom nav (thumb dock) */
.bottomnav{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:60;
  padding:10px 14px calc(env(safe-area-inset-bottom) + 12px);
  background:rgba(7,7,10,.74);
  backdrop-filter: blur(18px);
  border-top:1px solid rgba(255,255,255,.08);
  display:flex;
  gap:10px;
}
.bottomnav a, .bottomnav-btn{
  flex:1;
  text-align:center;
  padding:12px 10px;
  border-radius:18px;
  text-decoration:none;
  background:rgba(255,255,255,.05);
  box-shadow:0 0 0 1px rgba(255,255,255,.10);
  font-weight:700;
  font-size:.92rem;
  color:rgba(255,255,255,.92);
  border:0;
}
.bottomnav a:active, .bottomnav-btn:active{transform:translateY(1px)}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *{transition:none !important;animation:none !important}
}

/* Small screens */
@media (max-width:360px){
  .project{min-width:88vw;max-width:88vw}
  .hero-actions{flex-direction:column}
  .btn{width:100%}
}
