/* =============================================
   MARAI NEESU PORTFOLIO – style.css
   ============================================= */

:root {
  --bg: #f7f7f5;
  --white: #ffffff;
  --black: #0d0d0d;
  --text: #111111;
  --muted: #6b6b6b;
  --light: #999999;
  --border: #e3e3e3;
  --radius: 14px;
  --radius-sm: 8px;
  --fn-head: 'Plus Jakarta Sans', sans-serif;
  --fn-body: 'Inter', sans-serif;
  --max: 1160px;
  --px: 2rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--fn-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
h1,h2,h3,h4,h5 { font-family: var(--fn-head); font-weight: 700; line-height: 1.15; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: var(--bg);
  display: flex; align-items: center;
  padding: 0.75rem max(var(--px), calc((100vw - var(--max)) / 2));
}

.nav-brand {
  display: flex; align-items: center; gap: 0.55rem;
  background: var(--white); border-radius: 30px;
  padding: 0.38rem 0.9rem 0.38rem 0.4rem;
  flex-shrink: 0;
}
.nav-avatar {
  width: 34px; height: 34px;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; gap: 0; }
.brand-name { font-family: var(--fn-body); font-weight: 600; font-size: 0.88rem; line-height: 1.15; }
.brand-loc  { font-size: 0.7rem; color: var(--muted); line-height: 1.2; }

/* Centered nav links */
.nav-links {
  list-style: none; display: flex; gap: 0;
  background: var(--white); border-radius: 30px;
  padding: 0.3rem;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-links a {
  display: block; padding: 0.38rem 0.9rem;
  border-radius: 30px; font-size: 0.85rem; font-weight: 500;
  font-family: var(--fn-body);
  color: var(--muted); transition: background 0.18s, color 0.18s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--black); color: #fff;
}

.nav-cta { margin-left: auto; flex-shrink: 0; }

.hamburger {
  display: none; background: none;
  border: 1.5px solid var(--border); border-radius: 30px;
  padding: 0.38rem 1rem; font-size: 0.8rem;
  font-family: var(--fn-body); font-weight: 600;
  letter-spacing: 0.04em; cursor: pointer;
}

/* =============================================
   MOBILE MENU
   ============================================= */
.mobile-menu {
  display: none; flex-direction: column; gap: 0; 
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.9rem var(--px); font-size: 1rem; font-weight: 500;
  border-bottom: 1px solid var(--border);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-pill {
  display: inline-flex; align-items: center;
  padding: 0.48rem 1.1rem; border-radius: 30px;
  font-size: 0.78rem; font-family: var(--fn-head); font-weight: 600;
  letter-spacing: 0.04em; cursor: pointer; white-space: nowrap;
  transition: all 0.18s; border: 1.5px solid transparent;
}
.btn-dark   { background: var(--black); color: #fff; border-color: var(--black); }
.btn-dark:hover { background: #2a2a2a; border-color: #2a2a2a; }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: #fff; }

/* =============================================
   SHARED SECTION LAYOUT
   ============================================= */
.section {
  max-width: var(--max); margin: 0 auto;
  padding: 4.5rem var(--px);
}
.sh   { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.st   { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 0.4rem; }
.ss   { color: var(--muted); font-size: 0.9rem; max-width: 480px; line-height: 1.6; }

.breadcrumb-bar {
  max-width: var(--max); margin: 0 auto;
  padding: 1rem var(--px); font-size: 0.8rem; color: var(--muted);
  display: flex; gap: 0.4rem; align-items: center;
}
.breadcrumb-bar a:hover { color: var(--text); }

/* =============================================
   HERO
   ============================================= */
.hero-wrap {
  max-width: var(--max); margin: 0 auto;
  padding: 3.5rem var(--px) 0;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: flex; flex-direction: column;
}
.hero-h1 {
  font-size: clamp(2.4rem, 5.2vw, 5rem); font-weight: 400; line-height: 1.08;
  letter-spacing: -0.01em; padding-bottom: 3rem;
}

/* Hero bio row */
.hero-bio {
  display: flex; align-items: flex-start; gap: 1.75rem;
  padding: 2rem 0 2.5rem;
}
.hero-portrait {
  width: 148px; height: 192px; flex-shrink: 0;
  object-fit: cover; object-position: top center;
  border-radius: 10px;
}
.hero-bio-text {
  display: flex; flex-direction: column; gap: 0.65rem;
  max-width: 300px;
}
.hc-name { font-family: var(--fn-head); font-weight: 700; font-size: 1rem; }
.hc-role { font-size: 0.85rem; color: var(--muted); margin-top: -0.25rem; }
.hc-desc { font-size: 0.84rem; color: var(--muted); line-height: 1.6; }
.hero-more-link {
  font-size: 0.78rem; font-family: var(--fn-head); font-weight: 600;
  letter-spacing: 0.05em; color: var(--black); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.2rem;
  margin-top: 0.2rem; transition: opacity 0.2s;
}
.hero-more-link:hover { opacity: 0.55; }

/* Hero contact column */
.hero-bio-contact {
  margin-left: auto; display: flex; flex-direction: column;
  gap: 0.35rem; align-self: flex-end; padding-bottom: 0.15rem;
}
.hc-lets  { font-size: 0.75rem; color: var(--muted); font-weight: 400; letter-spacing: 0.01em; }
.hc-email {
  font-family: var(--fn-head); font-weight: 700; font-size: 0.92rem;
  color: var(--black); transition: opacity 0.2s;
}
.hc-email:hover { opacity: 0.65; }
.hc-social {
  display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem;
}
.hc-social a {
  width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 700; font-family: var(--fn-head);
  transition: all 0.18s;
}
.hc-social a:hover { background: var(--black); color: #fff; border-color: var(--black); }

/* =============================================
   WORKS GRID
   ============================================= */
.works-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
.work-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.work-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.07); }
.work-img { aspect-ratio: 16/10; overflow: hidden; background: #e8e8e4; }
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.work-card:hover .work-img img { transform: scale(1.03); }
.work-body { padding: 1.25rem; }
.work-body h3 { font-size: 1rem; margin-bottom: 0.45rem; }
.work-body p  { font-size: 0.83rem; color: var(--muted); line-height: 1.55; margin-bottom: 0.75rem; }
.work-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.4rem; }
.wtag  { font-size: 0.72rem; font-weight: 600; font-family: var(--fn-head); color: var(--black); }
.wdate { font-size: 0.72rem; color: var(--muted); }

/* =============================================
   SERVICES LIST
   ============================================= */
.services-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.svc-row {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.svc-row:last-child { border-bottom: none; }
.svc-info {
  padding: 2rem 2rem; display: flex; flex-direction: column; gap: 0.65rem;
  border-right: 1px solid var(--border);
}
.svc-info h4 { font-size: 1.05rem; font-family: var(--fn-head); }
.svc-price { font-size: 0.8rem; color: var(--muted); font-style: italic; }
.svc-info p { font-size: 0.84rem; color: var(--muted); line-height: 1.6; }
.svc-btn { align-self: flex-start; margin-top: 0.25rem; }
.svc-imgs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.svc-imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.custom-cta {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem 2rem;
  margin-top: 1.25rem; flex-wrap: wrap; gap: 1.5rem;
}
.custom-cta h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.custom-cta p  { font-size: 0.84rem; color: var(--muted); }
.custom-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* =============================================
   TESTIMONIALS – HORIZONTAL SCROLL
   ============================================= */
.testi-scroller {
  overflow-x: auto; overflow-y: hidden;
  cursor: grab; -webkit-overflow-scrolling: touch;
  /* hide scrollbar */
  scrollbar-width: none;
}
.testi-scroller::-webkit-scrollbar { display: none; }

.testi-track {
  display: flex; gap: 1.25rem;
  padding: 0.25rem 0.1rem 0.5rem;
  width: max-content;
}
.testi-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem;
  width: 300px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.testi-card img {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
}
.stars { color: #f5a623; font-size: 0.78rem; letter-spacing: 0.1em; }
.testi-card p    { font-size: 0.82rem; color: var(--muted); line-height: 1.55; font-style: italic; }
.testi-card strong { font-size: 0.85rem; font-weight: 700; }
.testi-card span   { font-size: 0.73rem; color: var(--muted); }

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-intro { padding-top: 1rem; }

.about-h1 {
  font-size: clamp(1.2rem, 2.4vw, 1.75rem); font-weight: 600;
  line-height: 1.4; margin-bottom: 3rem; max-width: 880px;
}

.about-photo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start;
}
.about-photo-large { border-radius: var(--radius); overflow: hidden; }
.about-photo-large img { width: 100%; height: 100%; max-height: 600px; object-fit: cover; object-position: top; }

.about-photo-right { display: flex; flex-direction: column; gap: 1rem; }
.about-photo-top { border-radius: var(--radius); overflow: hidden; }
.about-photo-top img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-text-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  display: flex; flex-direction: column; gap: 0.8rem;
  font-size: 0.875rem; color: var(--muted); line-height: 1.65;
}
.about-photo-bottom { border-radius: var(--radius); overflow: hidden; }
.about-photo-bottom img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* Experience */
.exp-section {
  display: grid; grid-template-columns: 280px 1fr; gap: 5rem; align-items: start;
}
.exp-left h2 { margin-bottom: 1rem; }
.exp-left p  { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }
.exp-right   { display: flex; flex-direction: column; gap: 1rem; }

.exp-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.35rem;
}
.exp-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; margin-bottom: 0.6rem; flex-wrap: wrap;
}
.exp-head h4 { font-size: 0.95rem; }
.exp-meta    { display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; }
.exp-meta span { font-size: 0.73rem; color: var(--muted); text-align: right; }
.exp-card > p { font-size: 0.84rem; color: var(--muted); line-height: 1.6; }
.exp-actions  { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }

/* =============================================
   SKILLS
   ============================================= */
.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.skill-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.35rem;
  display: flex; flex-direction: column; gap: 0.85rem;
}
.skill-cat {
  font-size: 0.72rem; font-weight: 700; font-family: var(--fn-body);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-tag {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 0.22rem 0.7rem;
  font-size: 0.76rem; font-weight: 500; font-family: var(--fn-body);
  color: var(--text); line-height: 1.5;
  transition: background 0.15s, border-color 0.15s;
}
.skill-tag:hover { background: var(--black); color: #fff; border-color: var(--black); }

/* Stack */
.stack-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem;
}
.stack-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.9rem 1rem;
  display: flex; align-items: center; gap: 0.75rem;
  transition: box-shadow 0.18s;
}
.stack-item:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.06); }
.stack-item img { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; border-radius: 8px; }
.stack-item div { display: flex; flex-direction: column; gap: 0.1rem; }
.stack-item strong { font-size: 0.85rem; font-weight: 600; }
.stack-item span   { font-size: 0.72rem; color: var(--muted); }

/* =============================================
   PORTFOLIO PAGE
   ============================================= */
.port-list { display: flex; flex-direction: column; gap: 1.25rem; }

.port-item {
  display: grid; grid-template-columns: 1.1fr 1fr;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.port-item:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(0,0,0,0.07); }

.port-img { overflow: hidden; }
.port-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.port-item:hover .port-img img { transform: scale(1.03); }

.port-body {
  padding: 2rem 2rem; display: flex; flex-direction: column; gap: 0.7rem; justify-content: center;
}
.port-meta-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.3rem; }
.port-body h3  { font-size: 1.25rem; line-height: 1.2; }
.port-body p   { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* Clients */
.clients-strip {
  display: flex; flex-wrap: wrap; gap: 2rem; align-items: center;
  padding: 2rem 0;
}
.clients-strip img { height: 36px; width: auto; opacity: 0.6; filter: grayscale(1); transition: opacity 0.2s, filter 0.2s; }
.clients-strip img:hover { opacity: 1; filter: grayscale(0); }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--bg); border-top: 1px solid var(--border); }

.footer-top {
  max-width: var(--max); margin: 0 auto;
  padding: 4rem var(--px) 3rem;
  display: grid; grid-template-columns: 1fr auto; gap: 4rem; align-items: start;
}
.footer-cta small { font-size: 0.76rem; color: var(--muted); display: block; margin-bottom: 0.5rem; }
.footer-cta h2  { font-size: clamp(1.2rem,2.4vw,1.8rem); max-width: 360px; margin-bottom: 1.5rem; line-height: 1.2; }
.footer-btns    { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.footer-cols { display: flex; gap: 3rem; }
.footer-col  { display: flex; flex-direction: column; gap: 0.5rem; min-width: 90px; }
.footer-col h5 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 0.25rem; color: var(--text); }
.footer-col a  { font-size: 0.82rem; color: var(--muted); transition: color 0.18s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: var(--max); margin: 0 auto;
  padding: 1.25rem var(--px);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  font-size: 0.74rem; color: var(--muted);
}
.footer-social { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-social a { font-size: 0.74rem; color: var(--muted); transition: color 0.18s; }
.footer-social a:hover { color: var(--text); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .exp-section { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-top  { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-cols { flex-wrap: wrap; gap: 2rem; }
}

@media (max-width: 800px) {
  :root { --px: 1.5rem; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; margin-left: auto; }

  .hero-bio { flex-wrap: wrap; }
  .hero-bio-contact { margin-left: 0; }

  .works-grid { grid-template-columns: 1fr; }
  .svc-row    { grid-template-columns: 1fr; }
  .svc-info   { border-right: none; border-bottom: 1px solid var(--border); }
  .svc-imgs   { grid-template-columns: repeat(4,1fr); }

  .about-photo-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .stack-grid { grid-template-columns: 1fr 1fr; }

  .port-item  { grid-template-columns: 1fr; }
  .port-img img { aspect-ratio: 16/8; height: 220px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: 3rem var(--px); }
}

@media (max-width: 500px) {
  .skills-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .footer-cols { flex-direction: column; gap: 1.5rem; }
  .svc-imgs   { grid-template-columns: 1fr 1fr; }
  .hero-h1    { font-size: 2rem; }
  .hero-portrait { width: 120px; height: 156px; }
}
