
/* ============================
   Portfolio & Case Studies
   Deep green + graphite + soft gold
   ============================ */

:root{
  --bg0: #060807;            /* graphite */
  --bg1: #0a1210;            /* deep green graphite */
  --panel: rgba(14, 22, 19, .72);
  --panel2: rgba(10, 16, 14, .68);

  --text: #eaf3ee;
  --muted: rgba(234,243,238,.70);

  --g1: #0f2d23;             /* deep green */
  --g2: #153a2c;             /* accent green */
  --gold: #c6a15b;
  --gold2: #f0d9a6;

  --line: rgba(198,161,91,.20);
  --line2: rgba(234,243,238,.08);

  --shadow: 0 22px 70px rgba(0,0,0,.55);
  --shadow2: 0 12px 40px rgba(0,0,0,.35);

  --radius: 18px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1000px 560px at 10% 0%, rgba(21,58,44,.28), transparent 60%),
    radial-gradient(750px 520px at 90% 10%, rgba(198,161,91,.14), transparent 65%),
    radial-gradient(650px 360px at 50% 100%, rgba(15,45,35,.18), transparent),
    linear-gradient(180deg, var(--bg0), #030403 90%);
  background-attachment: fixed;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  letter-spacing: .25px;
  overflow-x: hidden;
}

/* subtle texture */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0 1px, transparent 1px 5px);
  opacity: .10;
  mix-blend-mode: overlay;
}

/* ========== Header ========== */
.header{
  position: sticky;
  top: 0;
  z-index: 999; /* always above */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px;
  background: rgba(6, 8, 7, .45);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px) saturate(160%);
  transition: padding .28s var(--ease), background .28s var(--ease), border-color .28s var(--ease);
}

.header.scrolled{
  padding: 10px 18px;
  background: rgba(5, 7, 6, .80);
  border-color: var(--line);
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-badge{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(198,161,91,.20), rgba(21,58,44,.20));
  box-shadow: 0 10px 32px rgba(0,0,0,.35);
  transition: transform .25s var(--ease), width .25s var(--ease), height .25s var(--ease);
}

.header.scrolled .brand-badge{
  width: 32px;
  height: 32px;
  border-radius: 12px;
}

.brand-title{
  display: grid;
  line-height: 1.05;
}

.brand-title strong{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-weight: 800;
  font-size: .96rem;
  background: linear-gradient(135deg, rgba(234,243,238,.95), rgba(240,217,166,.85));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-title span{
  font-size: .86rem;
  color: rgba(234,243,238,.60);
  letter-spacing: .4px;
}

/* Nav */
.nav{
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-link{
  position: relative;
  color: rgba(234,243,238,.78);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 650;
  letter-spacing: .35px;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
  overflow: hidden;
}

.nav-link::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, transparent, rgba(240,217,166,.10), transparent);
  transform: translateX(-120%);
  transition: transform .55s var(--ease);
}

.nav-link:hover::before{ transform: translateX(120%); }
.nav-link:hover{
  color: var(--text);
  background: rgba(21,58,44,.26);
  border-color: var(--line);
  transform: translateY(-1px);
}

.nav-link.active{
  color: var(--text);
  background: linear-gradient(135deg, rgba(21,58,44,.55), rgba(198,161,91,.10));
  border-color: rgba(198,161,91,.35);
}

/* Scroll progress bar */
.scroll-progress{
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(234,243,238,.06);
  overflow: hidden;
}
.scroll-progress__bar{
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, rgba(198,161,91,.20), rgba(240,217,166,.95), rgba(198,161,91,.20));
  filter: drop-shadow(0 0 10px rgba(240,217,166,.22));
}

/* ========== Layout & Typography ========== */
.container{
  width: min(1100px, 92vw);
  margin: 28px auto 74px;
}

.page-head{ padding: 10px 0 6px; }

.title{
  margin: 0 0 10px;
  font-size: clamp(2.25rem, 5vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.4px;
  background: linear-gradient(135deg, rgba(234,243,238,.95), rgba(240,217,166,.80));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle{
  margin: 0 0 14px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 750;
  letter-spacing: .35px;
  color: rgba(234,243,238,.92);
}

.lead{
  margin: 0;
  color: rgba(234,243,238,.85);
  font-size: 1.12rem;
  line-height: 1.8;
  max-width: 70ch;
}

.muted{ color: var(--muted); }
.note{ color: rgba(234,243,238,.60); font-size: .95rem; }

/* Links & Buttons */
.link{
  color: rgba(240,217,166,.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(198,161,91,.30);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.link:hover{
  color: var(--gold2);
  border-color: rgba(240,217,166,.55);
}

.cta-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn{
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 750;
  letter-spacing: .35px;
  transition: background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(600px 160px at 20% 0%, rgba(240,217,166,.18), transparent 60%);
  opacity: 0;
  transition: opacity .18s var(--ease);
}
.btn:hover::before{ opacity: 1; }

.btn:hover{
  transform: translateY(-1px); /* tiny & stable */
  box-shadow: var(--shadow2);
}

.btn-primary{
  color: var(--text);
  background: linear-gradient(135deg, rgba(21,58,44,.95), rgba(198,161,91,.18));
  border-color: rgba(198,161,91,.30);
}
.btn-primary:hover{
  border-color: rgba(240,217,166,.55);
}

.btn-ghost{
  color: rgba(234,243,238,.86);
  background: rgba(14,22,19,.52);
  border-color: rgba(198,161,91,.18);
}
.btn-ghost:hover{
  border-color: rgba(198,161,91,.35);
}

/* ========== Hero (PORTRAIT) ========== */
.hero{
  display: grid;
  grid-template-columns: 1.35fr .65fr; /* portrait right column */
  gap: 18px;
  align-items: stretch;
  margin-top: 6px;
}

.hero-text{
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-card{
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14,22,19,.82), rgba(8,12,11,.70));
  box-shadow: var(--shadow);
  contain: paint;
}

.hero-card img{
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 35%;
}



/* ========== Cards / sections ========== */
.grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.card{
  border-radius: var(--radius);
  border: 1px solid rgba(198,161,91,.18);
  background: linear-gradient(180deg, rgba(14,22,19,.78), rgba(8,12,11,.68));
  box-shadow: var(--shadow2);
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}

.card::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(520px 240px at 20% 0%, rgba(198,161,91,.08), transparent 60%);
  opacity: .75;
  pointer-events:none;
}

.card:hover{
  transform: translateY(-3px);
  border-color: rgba(198,161,91,.34);
}

.card h3{
  margin: 2px 0 10px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: .35px;
}

.list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(234,243,238,.84);
  line-height: 1.7;
}

.strip{
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(198,161,91,.18);
  background: rgba(21,58,44,.12);
}

/* ========== Two-col (tema) ========== */
.two-col{
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 16px;
  margin: 14px 0 16px;
}

.profile{
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(198,161,91,.20);
  background: rgba(12,18,16,.50);
  box-shadow: var(--shadow2);
}

.profile img{
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  filter: contrast(1.05) saturate(.95) brightness(.96);
}

.project-img{
  width: 100%;
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(198,161,91,.20);
  box-shadow: var(--shadow2);
  object-fit: cover;
  object-position: center;
}


/* ========== Table ========== */
.table-wrap{
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(198,161,91,.18);
}

.table{
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: rgba(8,12,10,.40);
}
.table th, .table td{
  padding: 14px 14px;
  border-bottom: 1px solid rgba(198,161,91,.12);
  text-align: left;
}
.table th{
  color: rgba(240,217,166,.95);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: .35px;
  background: rgba(21,58,44,.26);
}

/* ========== Form ========== */
.form{ display: grid; gap: 12px; }
.form-row{ display: grid; gap: 7px; }

label{
  color: rgba(234,243,238,.86);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 650;
  letter-spacing: .25px;
}

input, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(198,161,91,.18);
  background: rgba(6, 10, 9, .62);
  color: var(--text);
  outline: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
input:focus, textarea:focus{
  border-color: rgba(240,217,166,.55);
  box-shadow: 0 0 0 3px rgba(198,161,91,.12);
}

/* ========== Footer: mini centered + expands at bottom ========== */
.footer{
  overflow: hidden;
  background: rgba(6, 8, 7, .60);
  border-top: 1px solid rgba(198,161,91,.16);
  backdrop-filter: blur(12px) saturate(150%);
}

.footer-mini{
  text-align: center;
  padding: 14px 0 16px;
  color: rgba(234,243,238,.72);
  letter-spacing: .4px;
}

.footer-expanded{
  max-height: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: max-height .70s var(--ease), opacity .40s var(--ease), transform .40s var(--ease);
}

body.at-bottom .footer-expanded{
  max-height: 420px;
  opacity: 1;
  transform: translateY(0);
}

.footer-inner{
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 10px 0 18px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
}

.footer h4{
  margin: 0 0 8px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: .35px;
}

.footer p, .footer a{
  color: rgba(234,243,238,.65);
  font-size: .95rem;
  line-height: 1.7;
}
.footer a{ text-decoration: none; }
.footer a:hover{ color: rgba(240,217,166,.92); }


/* ============================
   End of style.css
   ============================ */
