/* 1. CSS CUSTOM PROPERTIES */
@font-face {
  font-family: 'Qeskile'; 
  src: url('../font/QeskileVoyage-Regular.otf') format('otf');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Breathing';
  src: url('../font/Breathing.ttf') format('truetype'); 
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Background */
  --bg:            #F5F3EC;
  --bg-alt:        #EDEAE0;

  /*  CARD */
  --surface:       #D8E8C8;   
  --surface-2:     #CCDEBB;  

  /* Text */
  --text:          #2A2A28;
  --text-muted:    #5E5A54;
  --text-subtle:   #8E8A82;

  /* Accent — Sage Green */
  --accent:        #A8C686;
  --accent-dark:   #89A868;
  --accent-light:  #C4D9AD;
  --accent-soft:   rgba(168, 198, 134, 0.15);

  /* Border & Shadow */
  --border:        rgba(42, 42, 40, 0.08);
  --border-strong: rgba(42, 42, 40, 0.16);
  --shadow-sm:     0 2px 8px  rgba(42, 42, 40, 0.06);
  --shadow-md:     0 8px 32px rgba(42, 42, 40, 0.10);
  --shadow-lg:     0 24px 64px rgba(42, 42, 40, 0.14);

  /* Shape & Motion */
  --radius:        12px;
  --radius-sm:     6px;
  --radius-lg:     24px;
  --nav-h:         70px;
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Font */
  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;
  --font-display:  'Qeskile', serif;
  --font-display-alt:  'Breathing', serif;
}

/* Dark mode */
[data-theme="dark"] {
  --bg:            #1A1B18;
  --bg-alt:        #21221E;
  --surface:       #2A3325;  
  --surface-2:     #333D2C;
  --text:          #F5F3EC;
  --text-muted:    #A6A498;
  --text-subtle:   #7C7A6E;
  --accent:        #BBD69D;
  --accent-dark:   #A8C686;
  --accent-light:  #D5E6BE;
  --accent-soft:   rgba(187, 214, 157, 0.12);
  --border:        rgba(245, 243, 236, 0.06);
  --border-strong: rgba(245, 243, 236, 0.12);
  --shadow-sm:     0 2px 8px  rgba(0,0,0,0.25);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.35);
  --shadow-lg:     0 24px 64px rgba(0,0,0,0.50);
}

/* 2. RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  animation: fadeIn 0.35s ease;
  
}

/* Sembunyikan cursor asli di seluruh halaman */
*, *::before, *::after {
  cursor: none !important;
}

/* Elemen cursor kustom */
#custom-cursor {
  width: 30px;          
  height: 30px;
  background-image: url('../img/cursor-custom.png');
  background-size: contain;
  background-repeat: no-repeat;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;  
  z-index: 99999;
  transform: translate(-50%, -50%); 
  transition: transform 0.08s ease; 
  will-change: transform, top, left;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

img    { max-width: 100%; display: block; }
a      { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul     { list-style: none; }
iframe { border: 0; }

/* 3. TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

p  { color: var(--text-muted); font-size: 1rem; }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-dark); 
  margin-bottom: 0.75rem;
}

.section-title { 
  margin-bottom: 1.5rem; 
}

.dot { color: var(--accent-dark); }

/* 4. LAYOUT */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
}

.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }

.section-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
}

.section-header.has-link {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-dark);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--accent);
  transition: color var(--transition);
  white-space: nowrap;
}
.section-link:hover { color: var(--accent); }

.hidden { display: none !important; }

/* 5. BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-body);
  border: 2px solid transparent;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-lg   { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* 6. NAVBAR*/
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(245, 243, 236, 0.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(26, 27, 24, 0.93);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: color var(--transition);
}
.nav-logo:hover { color: var(--accent-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  list-style: none;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent-dark);
  border-radius: 999px;
  transition: width var(--transition);
}
.nav-link:hover            { color: var(--text); }
.nav-link:hover::after,
.nav-link.active::after    { width: 100%; }
.nav-link.active           { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.weather-mini {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  white-space: nowrap;
}

.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.theme-toggle:hover {
  background: var(--surface-2);
  transform: rotate(20deg);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition);
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 768px) {
  .hamburger    { display: flex; }
  .weather-mini {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
}

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 899;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.30s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-link {
    display: block;
    padding: 1rem clamp(1rem, 5vw, 2rem);
    font-size: 1rem;
    color: var(--text);
    width: 100%;
  }
  .nav-link::after { display: none; }
  .nav-link.active {
    color: var(--accent-dark);
    background: var(--accent-soft);
  }
}

@media (max-width: 400px) {
  .nav-logo     { font-size: 1.2rem; }
  .theme-toggle { width: 32px; height: 32px; font-size: 0.9rem; }
  .hamburger    { width: 36px; height: 36px; }
}

/* 7. HERO */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 80% 15%, rgba(168,198,134,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 15% 85%, rgba(196,180,154,0.10) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
  z-index: 1;
}

.hero-eyebrow {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.hero-deco {
  position: absolute;
  right: 50px; 
  top: 50%;
  transform: translateY(-50%);
  width: clamp(300px, 40vw, 600px); 
  opacity: 0.5; 
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

@media (max-width: 768px) {
  .hero-deco {
    width: clamp(160px, 55vw, 260px);
    right: -20px;
    top: auto;
    bottom: 60px;
    transform: none;
    opacity: 0.25;
  }
}

.hero-content {
  z-index: 1;
  position: relative; 
}

/* Nama hero */
.hero-name {
  font-family: var(--font-display);
  line-height: 1.0;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.hero-name-first {
  font-size: clamp(2.6rem, 9vw, 7rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.06em;
  color: var(--text);
  line-height: 1.0;
  display: block;
}

.hero-name-second {
  font-family: var(--font-display-alt) !important;
  font-size: clamp(2rem, 8.5vw, 6.2rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--accent-dark);
  line-height: 1.0;
  display: block;
}

.hero-tagline {
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  min-height: 1.8em;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-subtle);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--text-subtle), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { transform:scaleY(1); opacity:1; }
  50%      { transform:scaleY(0.6); opacity:0.5; }
}

.typing-cursor {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--accent-dark);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* 8. ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about-img-wrap { position: relative; }

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  max-width: 360px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about.section {
  padding-bottom: 2rem;
}

.img-decoration {
  position: absolute;
  width: 60%; height: 60%;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  top: 10%; left: 10%;
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
}

.about-text p { margin-bottom: 1rem; }

.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.chip {
  padding: 0.4rem 1rem;
  background: var(--surface);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.chip:hover {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
  background: var(--accent-soft);
}

/* 9. FEATURED WORK */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.work-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.work-thumb {
  height: 220px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  background: var(--surface-2);
}

.work-thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work-thumb:hover img {
  transform: scale(1.08);
}

.work-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.4s ease;
  z-index: 0;
}

.work-thumb:hover::after {
  background: rgba(0, 0, 0, 0.15);
}

.work-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.30);
  line-height: 1;
  position: relative;
  z-index: 1;
}

.work-info    { padding: 1.5rem; }

.work-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  display: block;
  margin-bottom: 0.5rem;
}

.work-info h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.work-info p  { font-size: 0.9rem; margin-bottom: 1rem; }

.work-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-dark);
  display: inline-block;
  transition: transform var(--transition);
}
.work-link:hover { transform: translateX(4px); }

/* 10. QUOTE SECTION */
.quote-section { padding: 3rem 0; background: var(--surface); }

.quote-wrapper {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 2rem 2rem 2.5rem;
  border-left: 3px solid var(--accent-dark);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-alt);
}

#quote-text {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}
#quote-author {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
}

/* 11. CTA BANNER */
.cta-banner { background: var(--surface); }

.cta-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.cta-inner h2 { margin-bottom: 2rem; line-height: 1.3; }
.cta-inner em { color: var(--accent-dark); font-style: italic; }

/* 12. FOOTER */
.footer {
  background: var(--bg-alt);
  color: var(--text);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent-dark); }
.social-links { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  transition: all var(--transition);
}
.social-icon svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2px; fill: none; }

.social-icon:hover {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
  transform: translateY(-2px);
  background: var(--accent-soft);
}

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* 13. PAGE HEADER */
.page-header {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 3rem;
  padding-left:  clamp(1rem, 5vw, 3rem);
  padding-right: clamp(1rem, 5vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
}
.page-title    { font-size: clamp(2.4rem, 8vw, 5.5rem); font-weight: 700; margin-bottom: 1rem; position: relative; }

page-subtitle { 
  font-size: 1.1rem; 
  font-style: italic;
  color: var(--text-muted); 
  max-width: 520px; 
}

.page-title-wrap {
  position: relative;
  display: block; 
}

/* 14. GALLERY PAGE */
@keyframes leafEntrance {
  0%   { opacity: 0; transform: translateY(20px) rotate(-15deg); }
  100% { opacity: 0.5; transform: translateY(0px) rotate(0deg); }
}

.gallery-deco {
  position: absolute;
  top: 10px;
  left: 300px;      
  width: 50px;
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
  animation: leafEntrance 1s ease-out forwards, leafFloat 4s ease-in-out 1s infinite;
}

@media (max-width: 768px) {
  .gallery-deco {
    left: auto;
    right: 1rem;
    top: 0;
    width: 36px;
    opacity: 0.4;
  }
}

.filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all var(--transition);
  cursor: pointer;
}

.filter-btn:hover  { border-color: var(--accent-dark); color: var(--accent-dark); }
.filter-btn.active { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.masonry-grid {
  columns: 3;           
  column-gap: 1.2rem;
  margin-top: 2rem;
}

.masonry-item {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 1.25rem;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  box-shadow: var(--shadow-sm);
}

.masonry-item:hover { transform: scale(1.015); box-shadow: var(--shadow-lg); }
.masonry-item.hidden { display: none; }

.masonry-img {
  width: 100%;
  height: auto;   
  display: block;
  overflow: hidden;
  background-color: #fff;
}

.masonry-img img {
  width: 100%;
  height: auto; 
  object-fit: cover;
  padding: 0;    
  display: block;
  transition: transform var(--transition);
}

.masonry-item:hover .masonry-img { transform: scale(1.04); }

.masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.masonry-item:hover .masonry-overlay { opacity: 1; }
.masonry-overlay span { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-bottom: 0.25rem; }
.masonry-overlay h3  { color: #fff; font-size: 0.95rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 2rem; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox-backdrop { position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,0.88); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.lightbox-backdrop.open { opacity: 1; pointer-events: all; }

.lightbox-content { max-width: 700px; width: 100%; z-index: 1001; }

.lightbox-img-wrap { width: 100%; height: auto; max-height: 70vh; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.25rem; background: #fff; padding: 2rem; box-sizing: border-box; }
#lightboxImgWrap img { max-width: 100%; max-height: 100%; object-fit: contain; }

.lightbox-info   { color: #fff; text-align: center; }
.lightbox-info h3{ margin-bottom: 0.4rem; font-size: 1.2rem; }
.lightbox-info p { color: rgba(255,255,255,0.65); font-size: 0.88rem; }

.lightbox-close { position: fixed; top: 1.2rem; right: 1.2rem; z-index: 1002; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.15); color: #fff; font-size: 1rem; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); transition: background var(--transition); }
.lightbox-close:hover { background: rgba(255,255,255,0.28); }

.lightbox-prev, .lightbox-next { position: fixed; top: 50%; transform: translateY(-50%); z-index: 1002; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.15); color: #fff; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); transition: background var(--transition); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }

/* 15. BLOG PAGE */

.blog-deco {
  position: absolute;
  top: 10px;
  left: -20px;
  width: 45px;
  opacity: 0.8;
  pointer-events: none;
  user-select: none;
  animation: leafFloat 4s ease-in-out infinite;
  transform-origin: center center;
}

@media (max-width: 768px) {
  .blog-deco {
    left: auto;
    right: 1rem;
    top: 0;
    width: 32px;
    opacity: 0.5;
  }
}

.article-featured { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2.5rem; transition: box-shadow var(--transition); }
.article-featured:hover { box-shadow: var(--shadow-md); }

.featured-content { display: grid; grid-template-columns: 1fr 1fr; }
.featured-text { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; gap: 0.75rem; }
.featured-title { font-size: clamp(1.1rem, 2.5vw, 1.6rem); line-height: 1.3; }
.featured-excerpt { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }
.featured-media { min-height: 280px; overflow: hidden; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.article-featured:hover .featured-media img { transform: scale(1.04); }

.category-label { display: inline-block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-dark); background: var(--accent-soft); padding: 0.2rem 0.7rem; border-radius: 999px; width: fit-content; }

.section-divider { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

.article-minimal { margin-bottom: 2rem; padding: 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: transform var(--transition), box-shadow var(--transition); }
.article-minimal:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.minimal-content { display: flex; flex-direction: column; gap: 0.6rem; }
.minimal-title   { font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.35; }
.minimal-excerpt { font-size: 0.95rem; color: var(--text-muted); }

.read-more-link { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent-dark); display: inline-block; margin-top: 0.5rem; transition: color var(--transition); }
.read-more-link:hover { color: var(--accent); }

.video-featured-wrap { margin-bottom: 2.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.video-featured-wrap .video-info h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.video-featured-wrap .video-info p  { font-size: 0.9rem; }

.video-responsive { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--radius); overflow: hidden; }
.video-responsive iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.articles-sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.75rem; }

.article-card { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-card.hidden { display: none; }

.article-thumb { height: 180px; overflow: hidden; background: var(--surface-2); }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.article-card:hover .article-thumb img { transform: scale(1.04); }

.article-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.article-meta { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-subtle); }
.article-title   { font-size: 1rem; line-height: 1.45; }
.article-excerpt { font-size: 0.88rem; color: var(--text-muted); flex: 1; }

.read-more-btn { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent-dark); display: inline-block; margin-top: auto; padding-top: 0.5rem; transition: color var(--transition); font-family: var(--font-body); background: none; border: none; cursor: pointer; }
.read-more-btn:hover { color: var(--accent); }

/* 16. CONTACT PAGE */
.contact { padding: 4rem 0 6rem; }

/* PROFILE CARD */
.contact-deco {
  position: absolute;
  top: 12px;
  left: 285px ;
  width: 100px;
  opacity: 0.8;
  pointer-events: none;
  user-select: none;
  animation: leafFloat 4s ease-in-out infinite;
  transform-origin: center center;
}

@media (max-width: 768px) {
  .contact-deco {
    left: auto;
    right: 1rem;
    top: 0;
    width: 60px;
    opacity: 0.5;
  }
}

.profile-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
}

.profile-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.profile-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--accent-soft);
  box-shadow: var(--shadow-md);
  object-position: center top; 
  transform: scale(1.5);      
}

.profile-name {
  font-family: var(--font-display-alt);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.profile-row {
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

.profile-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 120px;
}

.profile-value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.profile-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .profile-row {
    flex-direction: column;
    gap: 0.1rem;
  }
  .profile-label { min-width: unset; }
}

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; text-align: center; }

.contact-item { padding: 2.5rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); }
.contact-item:hover { transform: translateY(-5px); border-color: var(--accent-dark); box-shadow: var(--shadow-md); }

.contact-icon { width: 52px; height: 52px; background: var(--accent-dark); color: #fff; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto 1.5rem; }
.contact-icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; }

.contact-item h3 { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 0.5rem; }
.contact-item p  { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }

.contact-link, .contact-value { font-weight: 600; color: var(--accent-dark); font-size: 0.95rem; word-break: break-word; }
.contact-link:hover { text-decoration: underline; }

.contact-socials { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.contact-socials a { font-size: 0.9rem; font-weight: 600; color: var(--accent-dark); }
.contact-socials a:hover { text-decoration: underline; }

/* 17. SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.10s; }
.delay-2 { transition-delay: 0.20s; }
.delay-3 { transition-delay: 0.30s; }

/* 18. RESPONSIVE TABLET (≤ 900px) */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-img-placeholder { max-width: 260px; aspect-ratio: 1; margin: 0 auto; }
  .about-chips { justify-content: center; }
  .featured-content { grid-template-columns: 1fr; }
  .featured-media   { min-height: 220px; }
  .featured-text    { padding: 1.75rem; }
  .masonry-grid     { column-count: 2; }
  .contact-grid     { grid-template-columns: 1fr 1fr; }
}

/* 19. RESPONSIVE MOBILE (≤ 640px) */
@media (max-width: 640px) {
  .hero-name-first  { font-size: clamp(2rem, 11vw, 3rem); letter-spacing: 0.03em; }
  .hero-name-second { font-size: clamp(2.4rem, 12.5vw, 3.6rem); }
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .masonry-grid     { column-count: 3; column-gap: 0.5rem; }
  .masonry-item     { margin-bottom: 0.5rem; border-radius: var(--radius-sm); }
  .masonry-overlay  { padding: 0.5rem; }
  .masonry-overlay span { font-size: 0.45rem; letter-spacing: 0.08em; }
  .masonry-overlay h3   { font-size: 0.6rem; }
  .work-grid,
  .articles-sub-grid { grid-template-columns: 1fr; }
  .contact-grid     { grid-template-columns: 1fr; }
  .footer-inner     { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .lightbox-prev    { left: 0.4rem; }
  .lightbox-next    { right: 0.4rem; }
  .featured-media   { display: none; }
  .featured-text    { padding: 1.5rem; }
  .quote-wrapper    { border-left: none; border-top: 3px solid var(--accent-dark); border-radius: var(--radius); padding: 1.5rem; }
  .section-header.has-link { flex-direction: column; align-items: flex-start; }
}

/* 20. LARGE SCREEN (≥ 1400px) */
@media (min-width: 1400px) {
  .masonry-grid { column-count: 4; }
}