/* ── RESET & ROOT ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --ink:     #111010;
  --ink-2:   #3a3838;
  --ink-3:   #8a8585;
  --dust:    #f5f3ef;
  --paper:   #faf9f7;
  --white:   #ffffff;
  --accent:  #dd6f0d;          /* warm gold */
  --accent-2:#e8dfd0;          /* pale sand */
  --line:    rgba(17,16,16,.08);
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'DM Sans', sans-serif;
  --ease:    cubic-bezier(.22,1,.36,1);
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  /* cursor: none; */
  overflow-x: hidden;
}



/* Prelaoder and Scroll UP ============================== */

.pace {
  -webkit-pointer-events: none;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.pace .pace-progress {
  background: var(--accent);
  position: fixed;
  z-index: 2000;
  top: 0;
  right: 100%;
  width: 100%;
  height: 2px;
}

.pace-inactive {
  display: none;
}

@-webkit-keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.scrollup {
  width: 52px;
  height: 52px;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  display: none;
  text-indent: -9999px;
  background: url(../images/arrow-up.svg) center no-repeat var(--accent);
  background-size: 60%;
  z-index: 9999999999999;
  outline: none;
  border: none;
  color: #FFFFFF;
  border-radius: 100%;
}

.scrollup:hover {
  background: url(../images/arrow-up.svg) center no-repeat var(--ink);
  background-size: 60%;
  transition: all 0.5s ease-in;
  -webkit-transition: all 0.5s ease-in;
  -moz-transition: all 0.5s ease-in;
}

.scrollup:hover::before {
  background: #2DBFB8;
}



/* ── CUSTOM CURSOR ── */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
}
.cursor-dot {
  width: 6px; height: 6px; background: var(--ink); border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: transform .1s, background .2s;
}
.cursor-ring {
  width: 32px; height: 32px; border: 1px solid rgba(17,16,16,.3); border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: transform .18s var(--ease), width .3s var(--ease), height .3s var(--ease), border-color .3s;
  position: absolute; top: 0; left: 0;
}
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring { width: 48px; height: 48px; border-color: var(--accent); }
body:has(a:hover) .cursor-dot { background: var(--accent); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--dust); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 6vw;
  mix-blend-mode: normal;
  transition: padding .4s var(--ease), background .4s;
}
nav.compact {
  padding: 18px 6vw;
  background: rgba(250,249,247,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-name {
  font-family: var(--serif);
  font-size: 20px; font-weight: 400; letter-spacing: .5px;
  color: var(--ink); text-decoration: none;
}
.nav-name em { font-style: italic; color: var(--accent); }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
  position: relative;
  transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink); text-decoration: none; padding: 10px 22px;
  border: 1px solid var(--ink);
  transition: background .25s, color .25s;
}
.nav-cta:hover { background: var(--ink); color: var(--white); }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 0 6vw 80px;
  position: relative; overflow: hidden;
  background: var(--paper);
}

.hero-bg-text {
  position: absolute; top: 50%; left: -2vw; transform: translateY(-50%);
  font-family: var(--serif); font-size: clamp(140px, 22vw, 280px);
  font-weight: 300; color: transparent;
  -webkit-text-stroke: 1px rgba(17,16,16,.055);
  line-height: 1; pointer-events: none; user-select: none;
  white-space: nowrap;
  animation: slideIn 1.4s var(--ease) both;
}

.hero-tag {
  font-size: 11px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
  animation: fadeUp .9s var(--ease) .3s both;
}

.hero-h1 {
  font-family: var(--serif); font-size: clamp(52px, 8.5vw, 110px);
  font-weight: 300; line-height: .95; letter-spacing: -2px;
  color: var(--ink);
  animation: fadeUp .9s var(--ease) .45s both;
}
.hero-h1 em { font-style: italic; color: var(--ink-2); }

.hero-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 56px;
  animation: fadeUp .9s var(--ease) .6s both;
}
.hero-desc {
  max-width: 380px; font-size: 15px; line-height: 1.75;
  color: var(--ink-3); font-weight: 300;
}
.hero-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.hero-meta span { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-3); }
.hero-meta a {
  font-family: var(--serif); font-size: 18px; font-weight: 400; font-style: italic;
  color: var(--ink); text-decoration: none; transition: color .2s;
}
.hero-meta a:hover { color: var(--accent); }

.hero-line {
  position: absolute; bottom: 0; left: 6vw; right: 6vw; height: 1px;
  background: var(--line);
}

/* scroll indicator */
.scroll-cue {
  position: absolute; right: 6vw; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  animation: fadeUp .9s var(--ease) .9s both;
}
.scroll-cue span {
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-3);
  writing-mode: vertical-lr;
}
.scroll-cue-line {
  width: 1px; height: 60px; background: var(--ink-2); position: relative; overflow: hidden;
}
.scroll-cue-line::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--accent); animation: lineScroll 1.8s ease infinite;
}
@keyframes lineScroll { 0%{top:-100%;} 100%{top:200%;} }

/* ── SECTION SHARED ── */
section { padding: 120px 6vw; }

.s-label {
  font-size: 10px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: 14px;
}
.s-h2 {
  font-family: var(--serif); font-size: clamp(36px, 5vw, 62px);
  font-weight: 300; line-height: 1.1; letter-spacing: -1px;
}
.s-h2 em { font-style: italic; }
.s-rule { width: 40px; height: 1px; background: var(--accent); margin: 28px 0; }

/* ── ABOUT ── */
#about { background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 100px;
  align-items: start; margin-top: 64px;
}
.about-left { position: sticky; top: 120px; }

.about-avatar {
  width: 100%; aspect-ratio: 3/4;
  background: var(--dust);
  position: relative; overflow: hidden;
}
.about-avatar-inner {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(200,169,110,.15) 0%, transparent 60%),
    linear-gradient(160deg, var(--dust), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
}

.about-avatar-inner img{width: 100%;}

.avatar-initials {
  font-family: var(--serif); font-size: 96px; font-weight: 300; font-style: italic;
  color: rgba(17,16,16,.15); letter-spacing: -4px;
}
.about-photo-label {
  margin-top: 16px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-3);
}

.about-text p { font-size: 16px; line-height: 1.85; color: var(--ink-2); font-weight: 300; margin-bottom: 20px; }
.about-text p:first-child { font-family: var(--serif); font-size: 22px; line-height: 1.6; color: var(--ink); }

.about-cv {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 32px;
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 500;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--ink); padding-bottom: 4px;
  transition: color .2s, border-color .2s;
}
.about-cv:hover { color: var(--accent); border-color: var(--accent); }
.about-cv svg { transition: transform .3s var(--ease); }
.about-cv:hover svg { transform: translateX(5px); }

/* skills */
.skills-grid {
  margin-top: 64px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  border: 1px solid var(--line);
}
.skill-item {
  padding: 20px 24px; border: 1px solid var(--line);
  position: relative;
}
.skill-item:hover { background: var(--dust); }
.skill-name { font-size: 12px; font-weight: 500; letter-spacing: .5px; color: var(--ink); margin-bottom: 10px; }
.skill-bar { height: 1px; background: var(--line); position: relative; }
.skill-fill {
  position: absolute; top: 0; left: 0; height: 100%; background: var(--accent);
  transition: width 1.2s var(--ease);
  width: 0;
}
.skill-pct {
  position: absolute; right: 0; top: -18px;
  font-size: 10px; letter-spacing: 1px; color: var(--ink-3);
}

/* ── EXPERIENCE ── */
#resume { background: var(--paper); }
.exp-list { margin-top: 64px; }

.exp-item {
  display: grid; grid-template-columns: 200px 1fr; gap: 60px;
  padding: 48px 0; border-top: 1px solid var(--line);
  transition: background .2s;
}
.exp-item:last-child { border-bottom: 1px solid var(--line); }

.exp-left { }
.exp-years { font-family: var(--serif); font-size: 14px; font-style: italic; color: var(--ink-3); margin-bottom: 6px; }
.exp-company {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); font-weight: 500;
}

.exp-right h3 {
  font-family: var(--serif); font-size: 28px; font-weight: 400; color: var(--ink); margin-bottom: 16px;
}
.exp-right p { font-size: 14px; line-height: 1.8; color: var(--ink-3); font-weight: 300; }
.exp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.exp-tag {
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500;
  color: var(--ink-2); padding: 5px 12px; border: 1px solid var(--line);
}

/* ── PORTFOLIO ── */
#portfolio { background: var(--white); }
.port-filter {
  display: flex; gap: 4px; margin-top: 48px; flex-wrap: wrap;
}
.filter-btn {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 500;
  color: var(--ink-3); padding: 8px 20px; border: 1px solid var(--line);
  background: none; cursor: none; transition: all .2s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--ink); color: var(--white); border-color: var(--ink);
}

.port-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  margin-top: 4px;
}

.port-item {
  position: relative; overflow: hidden; aspect-ratio: 3/6;
  background: var(--dust); cursor: none;
}
.port-item:nth-child(4n+1) { grid-column: span 2; aspect-ratio: 5/6; }
.port-item:nth-child(7n+3) { grid-column: span 1; aspect-ratio: 3/4; }
.port-item:nth-child(7n+4) { grid-column: span 1; aspect-ratio: 3/4; }
.port-item:nth-child(7n+5) { grid-column: span 1; aspect-ratio: 3/4; }

.port-img-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform .6s var(--ease);
}
.port-item:hover .port-img-placeholder { transform: scale(1.04); }

.port-overlay {
  position: absolute; inset: 0; background: rgba(17,16,16,0);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px;
  transition: background .4s var(--ease);
}
.port-item:hover .port-overlay { background: rgba(17,16,16,.72); }

.port-overlay-content { transform: translateY(12px); opacity: 0; transition: all .4s var(--ease); }
.port-item:hover .port-overlay-content { transform: translateY(0); opacity: 1; }

.port-cat {
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent);
  font-weight: 500; margin-bottom: 6px;
}
.port-title { font-family: var(--serif); font-size: 22px; font-weight: 400; color: white; }
.port-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase; font-weight: 500;
  color: rgba(255,255,255,.7); text-decoration: none;
  transition: color .2s;
}
.port-link:hover { color: var(--accent); }

/* port item color palettes */
.port-item:nth-child(2) .port-img-placeholder { background: url('../images/portfolio/Hermes.png') top center no-repeat; background-size:100%; }
.port-item:nth-child(1) .port-img-placeholder { background: url('../images/portfolio/zeyora.png') top center no-repeat; background-size:100%; }
.port-item:nth-child(3) .port-img-placeholder { background: url('../images/portfolio/Nuracare.png') top center no-repeat; background-size:100%; }
.port-item:nth-child(4) .port-img-placeholder { background: url('../images/portfolio/casestudy-edge.png') top center no-repeat; background-size:100%; }
.port-item:nth-child(5) .port-img-placeholder { background: url('../images/portfolio/Web-App.png') top center no-repeat; background-size:100%; }
.port-item:nth-child(6) .port-img-placeholder { background: url('../images/portfolio/Tasty Way.png') top center no-repeat; background-size:100%; }
.port-item:nth-child(7) .port-img-placeholder { background: url('../images/portfolio/casestudy-konnect.png') top center no-repeat; background-size:100%; }
.port-item:nth-child(8) .port-img-placeholder { background: url('../images/portfolio/sf-site.png') top center no-repeat; background-size:100%; }
.port-item:nth-child(9) .port-img-placeholder { background: url('../images/portfolio/HMS.png') top center no-repeat; background-size:100%; }
.port-item:nth-child(10) .port-img-placeholder { background: url('../images/portfolio/HB.png') top center no-repeat; background-size:100%; }
.port-item:nth-child(15) .port-img-placeholder { background: url('../images/portfolio/Dataguru.png') top center no-repeat; background-size:100%; }
.port-item:nth-child(12) .port-img-placeholder { background: url('../images/portfolio/LNP.png') top center no-repeat; background-size:100%; }
.port-item:nth-child(11) .port-img-placeholder { background: url('../images/portfolio/ds.png') top center no-repeat; background-size:100%; }
.port-item:nth-child(14) .port-img-placeholder { background: url('../images/portfolio/imh.png') top center no-repeat; background-size:100%; }
.port-item:nth-child(13) .port-img-placeholder { background: url('../images/portfolio/Mortgage-DCB.png') top center no-repeat; background-size:100%; }
.port-item:nth-child(16) .port-img-placeholder { background: url('../images/portfolio/Unique-Kitchen.png') top center no-repeat; background-size:100%; }
.port-item:nth-child(17) .port-img-placeholder { background: url('../images/portfolio/Nakshatra.png') top center no-repeat; background-size:100%; }
.port-item:nth-child(18) .port-img-placeholder { background: url('../images/portfolio/Maqtro.png') top center no-repeat; background-size:100%; }

.port-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: clamp(18px, 2vw, 26px); font-weight: 400;
  color: rgba(17,16,16,.3); letter-spacing: -1px; font-style: italic;
  transition: opacity .4s;
}
.port-item:hover .port-label { opacity: 0; }

/* ── CONTACT ── */
#contact { background: var(--ink); }
.contact-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.contact-inner .s-label { color: var(--accent); }
.contact-inner .s-h2 { color: var(--white); }
.contact-inner .s-rule { margin: 28px auto; }
.contact-intro { font-size: 15px; line-height: 1.8; color: rgba(255,255,255,.45); margin-bottom: 56px; font-weight: 300; }

.contact-email {
  font-family: var(--serif); font-size: clamp(24px, 4vw, 44px); font-weight: 300;
  font-style: italic; color: var(--white); text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 6px;
  transition: color .2s, border-color .2s;
  display: inline-block; margin-bottom: 56px;
}
.contact-email:hover { color: var(--accent); border-color: var(--accent); }

.contact-details {
  display: flex; gap: 64px; justify-content: center; flex-wrap: wrap;
}
.contact-detail { text-align: left; }
.contact-detail .c-label {
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,.3); font-weight: 500; margin-bottom: 6px;
}
.contact-detail .c-val {
  font-size: 14px; font-weight: 300; color: rgba(255,255,255,.7);
}

.contact-form { margin-top: 72px; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-bottom: 2px; }
.form-group { position: relative; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 20px 20px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  color: white; font-family: var(--sans); font-size: 14px; font-weight: 300;
  outline: none; transition: border-color .2s, background .2s;
  resize: none;
}
.form-group textarea { height: 140px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.2); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.form-group input:focus,
.form-group textarea:focus { border-color: rgba(200,169,110,.4); background: rgba(255,255,255,.06); }

.form-submit {
  margin-top: 2px; width: 100%;
  padding: 22px; background: var(--accent); border: none;
  font-family: var(--sans); font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  font-weight: 500; color: var(--ink); cursor: none;
  transition: background .2s, letter-spacing .3s;
}
.form-submit:hover { background: #d4b87a; letter-spacing: 4px; }

/* ── FOOTER ── */
footer {
  background: var(--ink); border-top: 1px solid rgba(255,255,255,.06);
  padding: 32px 6vw; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
footer span { font-size: 12px; color: rgba(255,255,255,.25); letter-spacing: .5px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.25); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-left { position: static; display: none; }
  .skills-grid { grid-template-columns: 1fr; }
  .exp-item { grid-template-columns: 1fr; gap: 20px; }
  .port-grid { grid-template-columns: 1fr 1fr; }
  .port-item:nth-child(4n+1) { grid-column: span 1; aspect-ratio: 4/3; }
  .port-item:nth-child(7n+3) { grid-column: span 1; aspect-ratio: 4/3; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-meta { align-items: flex-start; }
}
@media (max-width: 600px) {
  section { padding: 80px 5vw; }
  .port-grid { grid-template-columns: 1fr; }
  .contact-details { gap: 32px; flex-direction: column; }
}