/* =====================================================
   Pasan Portfolio Light — Main Stylesheet
   Clean · Minimal · White
   ===================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:      #FFFFFF;
  --bg2:     #F8F7F4;
  --bg3:     #F0EDE8;
  --text:    #111111;
  --muted:   #6B7280;
  --g1:      #111111;
  --g2:      #525252;
  --grad:    linear-gradient(135deg, #111111, #525252);
  --border:  rgba(0,0,0,0.08);
  --shadow:  0 4px 24px rgba(0,0,0,0.06);
  --sans:    'Poppins', system-ui, sans-serif;
  --serif:   'Cormorant Garamond', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
}

/* Subtle cursor glow for light bg */
.cursor-glow {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,0,0,0.02) 0%, transparent 65%);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: left 0.1s ease, top 0.1s ease;
}

/* =====================================================
   NAV
   ===================================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 6%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, box-shadow 0.4s;
}
#navbar.scrolled {
  border-color: var(--border);
  box-shadow: 0 1px 24px rgba(0,0,0,0.05);
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0;
}
.nav-links li { margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s;
}
.nav-links a:hover,
.nav-links .current-menu-item a { color: var(--text); }
.nav-links a:hover::after,
.nav-links .current-menu-item a::after { transform: scaleX(1); }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-grad {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px;
  border: 1px solid var(--text);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer;
}
.btn-grad:hover {
  background: transparent;
  color: var(--text);
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: all 0.2s;
}
.btn-outline:hover {
  border-color: var(--text);
  color: var(--text);
  transform: translateY(-2px);
}

/* =====================================================
   HERO
   ===================================================== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 6% 5rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Decorative corner accents */
.hero-bg-blob {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,0.018) 0%, transparent 65%);
  top: -120px; right: -120px;
  pointer-events: none;
}
.hero-bg-blob2 {
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,0.012) 0%, transparent 65%);
  bottom: -60px; left: 5%;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s forwards;
}
.hero-intro {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 0.7s 0.35s forwards;
}
.hero-name {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.93;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-top: 0.1rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s forwards;
}
.hero-role {
  font-size: clamp(1.8rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0.6rem 0 2rem;
  min-height: 1.2em;
  opacity: 0;
  animation: fadeUp 0.7s 0.65s forwards;
}
.hero-desc {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 440px;
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.8s forwards;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s 0.95s forwards;
}

/* Hero photo */
.hero-photo-wrap {
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 1s 0.7s forwards;
}
.hero-photo {
  width: 320px; height: 400px;
  background: var(--bg2);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.09);
}
.hero-photo::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.03));
  pointer-events: none;
  z-index: 1;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.8rem; padding: 1rem; text-align: center;
}
.hero-photo-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.hero-photo-placeholder p {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.6;
}
.photo-deco {
  position: absolute;
  width: 320px; height: 400px;
  border: 1px solid var(--border);
  border-radius: 20px;
  top: 12px; left: 12px;
  z-index: -1;
}

/* Stats row */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.7s 1.1s forwards;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* =====================================================
   SECTION COMMONS
   ===================================================== */
section { padding: 7rem 6%; }

.section-title-wrap { text-align: center; margin-bottom: 4.5rem; }
.section-subtitle {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.7rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-line {
  width: 40px; height: 2px;
  background: var(--text);
  opacity: 0.12;
  border-radius: 2px;
  margin: 1.2rem auto 0;
}

/* =====================================================
   ABOUT
   ===================================================== */
#about { background: var(--bg2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.about-img-box {
  width: 100%; height: 440px;
  background: var(--bg);
  border-radius: 20px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 48px rgba(0,0,0,0.06);
}
.about-img-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-img-text {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); opacity: 0.4;
}
.about-img-deco {
  position: absolute;
  width: 100%; height: 440px;
  border: 1px solid var(--border);
  border-radius: 20px;
  top: 12px; left: 12px;
  z-index: -1;
}
.about-badge {
  position: absolute;
  bottom: -18px; right: -18px;
  background: var(--text);
  color: var(--bg);
  padding: 1.2rem 1.5rem;
  border-radius: 14px;
  text-align: center;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.about-badge-num { font-size: 2rem; font-weight: 800; line-height: 1; }
.about-badge-text { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; margin-top: 0.3rem; }
.about-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.3;
  color: var(--text);
}
.about-text { font-size: 0.9rem; color: var(--muted); line-height: 1.9; margin-bottom: 1rem; font-weight: 300; }
.about-text strong { color: var(--text); font-weight: 600; }
.about-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin: 1.8rem 0 2.2rem;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.info-item { font-size: 0.85rem; }
.info-label { color: var(--muted); font-weight: 300; display: block; font-size: 0.72rem; letter-spacing: 0.06em; margin-bottom: 2px; }
.info-value { color: var(--text); font-weight: 600; }
.info-available { color: #059669; }

/* =====================================================
   SKILLS — 2-column horizontal cards
   ===================================================== */
#skills { background: var(--bg); }
.skills-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.skill-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.skill-card:hover {
  border-color: rgba(0,0,0,0.14);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
}
.skill-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: background 0.3s;
}
.skill-card:hover .skill-icon { background: var(--bg3); }
.skill-icon img { width: 28px; height: 28px; object-fit: contain; display: block; }
.skill-text { flex: 1; min-width: 0; }
.skill-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text); }
.skill-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.75; font-weight: 300; }

/* =====================================================
   PROJECTS
   ===================================================== */
#projects { background: var(--bg2); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.project-card:hover {
  border-color: rgba(0,0,0,0.14);
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.1);
}
.project-thumb {
  height: 200px;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.project-card:hover .project-thumb img { transform: scale(1.04); }
.project-num-big {
  font-size: 5.5rem;
  font-weight: 900;
  color: rgba(0,0,0,0.04);
  letter-spacing: -0.05em;
  user-select: none;
  line-height: 1;
}
.project-body { padding: 1.6rem; }
.project-tags-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.ptag {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg2);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.project-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
  transition: color 0.2s;
}
.project-card:hover .project-name { opacity: 0.7; }
.project-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.75; font-weight: 300; }
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s, transform 0.25s;
}
.project-card:hover .project-link { opacity: 1; transform: none; }
.no-projects-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 14px;
}

/* =====================================================
   CONTACT — dark inverted for contrast
   ===================================================== */
#contact {
  background: #111111;
  text-align: center;
}
#contact .section-subtitle {
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
#contact .section-title { color: #FFFFFF; }
#contact .section-line { background: rgba(255,255,255,0.12); }
.contact-inner { max-width: 700px; margin: 0 auto; }
.contact-desc {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.4);
  margin: 1.5rem auto 2.5rem;
  max-width: 440px;
  line-height: 1.9;
  font-weight: 300;
}
.contact-email-link {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  font-style: italic;
  color: #FFFFFF;
  text-decoration: none;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 4px;
  transition: border-color 0.2s, opacity 0.2s;
  -webkit-text-fill-color: #FFFFFF;
}
.contact-email-link:hover { border-color: rgba(255,255,255,0.5); opacity: 0.75; }
.social-row { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.social-btn:hover { border-color: rgba(255,255,255,0.35); color: #fff; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1.8rem 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-footer span { font-size: 0.75rem; color: rgba(255,255,255,0.25); font-weight: 300; }
.footer-name { color: rgba(255,255,255,0.5); font-weight: 600; }

/* =====================================================
   INNER PAGES
   ===================================================== */
.inner-page { padding-top: 120px; min-height: 80vh; }
.inner-wrap { max-width: 1100px; margin: 0 auto; padding: 3rem 5%; }
.inner-wrap--narrow { max-width: 780px; }
.page-header { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.page-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; color: var(--text); }
.post-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.75rem; letter-spacing: 0.04em; }
.entry-content { font-size: 0.95rem; color: var(--muted); line-height: 1.9; }
.entry-content h1, .entry-content h2, .entry-content h3 { color: var(--text); font-weight: 700; margin: 2rem 0 0.75rem; }
.entry-content p { margin-bottom: 1.25rem; }
.entry-content a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { max-width: 100%; border-radius: 10px; margin: 1.5rem 0; border: 1px solid var(--border); }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.post-card { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; }
.post-card:hover { border-color: rgba(0,0,0,0.14); transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.07); }
.post-thumb { display: block; overflow: hidden; height: 200px; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-card-body { padding: 1.5rem; }
.post-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.post-card-title a { color: var(--text); text-decoration: none; }
.post-card-title a:hover { opacity: 0.7; }
.post-excerpt { font-size: 0.84rem; color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }
.read-more { font-size: 0.72rem; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: 0.1em; text-transform: uppercase; }
.no-posts { color: var(--muted); }
.single-thumb, .single-project-thumb { margin-bottom: 2.5rem; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.single-thumb img, .single-project-thumb img { width: 100%; height: auto; display: block; }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-decoration: none; margin-bottom: 2rem; transition: color 0.2s; }
.back-link:hover { color: var(--text); }
.project-header { margin-bottom: 2rem; }
.single-project-content { margin-top: 2rem; }
.post-navigation { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.navigation.pagination { margin-top: 2.5rem; }
.page-numbers { display: inline-block; padding: 0.5rem 0.9rem; margin: 0 0.2rem; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 0.85rem; transition: all 0.2s; }
.page-numbers:hover, .page-numbers.current { border-color: var(--text); color: var(--text); }

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .hero-inner    { grid-template-columns: 1fr; }
  .hero-photo-wrap { display: none; }
  .about-grid    { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-wrap { display: none; }
  .site-footer   { flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 700px) {
  .skills-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
  section { padding: 4.5rem 5%; }
  #navbar { padding: 1rem 5%; }
  .nav-links { gap: 1.2rem; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .about-info { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .skill-card { padding: 1.4rem; gap: 1.2rem; }
}
