/* ===== Dribbble Dissii "Portfolio Book 2020" Exact CSS ===== */
:root {
  --color-yellow: #f2b705;
  --color-yellow-dark: #d9a300;
  --color-cream: #f5efe6;
  --color-dark: #141518;
  --color-text-dark: #181715;
  --color-text-light: #f7f5f0;
  --color-text-muted: #8c8881;
  --font-title: 'Italiana', 'Cinzel Decorative', serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-display: 'Syne', sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  font-family: var(--font-sans);
  overflow-x: hidden;
  background-color: var(--color-yellow);
  color: var(--color-text-dark);
  transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dynamic Theme Switcher Classes on Body */
body.theme-hero {
  background-color: var(--color-yellow);
  color: var(--color-text-dark);
}

body.theme-about {
  background-color: var(--color-cream);
  color: var(--color-text-dark);
}

body.theme-catalog {
  background-color: var(--color-cream);
  color: var(--color-text-dark);
}

body.theme-contact {
  background-color: var(--color-cream);
  color: var(--color-text-dark);
}

/* ===== Premium Page Transition Curtain Wipe (Image 2 Transition) ===== */
.page-wipe-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background-color: #181715;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  pointer-events: none;
  transition: clip-path 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.page-wipe-panel.wipe-active {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.page-wipe-panel.wipe-out {
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
}

/* ===== Floating Falling Leaves Animation (Image 1 effect) ===== */
.leaves-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.leaf {
  position: absolute;
  opacity: 0.85;
  animation: floatLeaf 12s infinite ease-in-out;
}

.leaf-1 { top: -10%; left: 62%; animation-duration: 10s; animation-delay: 0s; }
.leaf-2 { top: -10%; left: 58%; animation-duration: 14s; animation-delay: 2s; }
.leaf-3 { top: -10%; left: 68%; animation-duration: 11s; animation-delay: 4s; }
.leaf-4 { top: -10%; left: 80%; animation-duration: 15s; animation-delay: 1s; }

@keyframes floatLeaf {
  0% {
    transform: translateY(0vh) rotate(0deg) scale(0.9);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  85% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(110vh) rotate(360deg) scale(1.1);
    opacity: 0;
  }
}

/* ===== Navigation Bar (Continuous Layout Navbar) ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(245, 239, 230, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  transform: translateY(0);
  opacity: 1;
}

.navbar.nav-hidden {
  transform: translateY(-130%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Explicit color locks to prevent mobile blue links */
.navbar,
.navbar a,
.navbar a:visited,
.navbar a:active,
.navbar button,
.social-link,
.social-link:visited,
.social-link:active,
.tab-pill {
  color: #181715 !important;
  text-decoration: none !important;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap !important;
  white-space: nowrap;
}

.nav-tab {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  outline: none;
}

.tab-pill {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: inherit;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  display: inline-block;
}

/* Active Oval Capsule Ring Border */
.nav-tab.active .tab-pill {
  border-color: currentColor;
}

.nav-center {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
}

.star-icon {
  display: inline-block;
  animation: spinStar 20s linear infinite;
}

@keyframes spinStar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-link {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

.social-link:hover {
  opacity: 0.6;
}

.resume-highlight {
  padding: 4px 12px;
  border: 1px solid currentColor;
  border-radius: 15px;
}

/* ===== Section Views Container (Continuous Flow Layout) ===== */
.section-view {
  display: block;
  width: 100%;
  position: relative;
  z-index: 10;
  overflow-x: hidden;
}

/* ===== SECTION 1: HERO ===== */
#heroSection {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px 50px 50px 50px;
  background-color: var(--color-yellow);
}

.hero-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  height: calc(100vh - 170px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.hero-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.edition-label {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: lowercase;
  opacity: 0.85;
}

.edition-num {
  font-size: 1.1rem;
  font-family: var(--font-serif);
}

/* Massive Calligraphic Center Title (Image 1 "Mahdis" -> "Amit") */
.hero-centerpiece {
  text-align: center;
  margin: auto 0;
  position: relative;
}

.main-title {
  font-family: var(--font-title);
  font-size: 8.5vw;
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -2px;
  color: var(--color-text-dark);
  text-transform: capitalize;
  user-select: none;
  white-space: nowrap;
}

.title-swash {
  font-style: italic;
  font-weight: 700;
  font-size: 10vw;
  color: #111;
  display: inline-block;
  transform: translateY(6px);
}

.hero-desc {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text-dark);
  max-width: 680px;
  margin: 18px auto 24px auto;
  line-height: 1.6;
  opacity: 0.9;
}

.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.h-badge {
  background: rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #181715;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.h-badge:hover {
  background: #181715;
  color: var(--color-yellow);
  transform: translateY(-2px);
}

.hero-bottom-text {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}

.bio-statement {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  max-width: 480px;
  line-height: 1.7;
  opacity: 0.9;
}

.scroll-prompt {
  text-align: center;
  margin-bottom: 20px;
}

.explore-catalog-btn {
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #000;
  padding: 12px 26px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}

.explore-catalog-btn:hover {
  background: #000;
  color: var(--color-yellow);
  transform: translateY(-2px);
}

/* ===== SECTION 2: ABOUT / LIFESTYLE (Image 2 Cream Theme) ===== */
#aboutSection {
  background-color: var(--color-cream);
  color: var(--color-text-dark);
}

.about-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
}

.section-badge {
  font-size: 0.75rem;
  letter-spacing: 3px;
  font-weight: 700;
  margin-bottom: 20px;
  opacity: 0.6;
}

.about-hero-title {
  font-family: var(--font-title);
  font-size: 9.5vw;
  line-height: 0.85;
  font-weight: 400;
  margin-bottom: 10px;
}

.about-edition-tag {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 50px;
  opacity: 0.7;
}

.about-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;

}

.about-text-col .lead-p {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.about-text-col .sub-p {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.8;
}

.skills-highlight-box {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sk-item {
  border-bottom: 1px solid rgba(0,0,0,0.15);
  padding-bottom: 16px;
}

.sk-item h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.sk-item p {
  font-size: 0.9rem;
  opacity: 0.75;
}

/* ===== SECTION 3: WORKS CATALOG ===== */
#workCatalogSection {
  background-color: var(--color-cream);
  color: var(--color-text-dark);
  padding-bottom: 100px;
}

.catalog-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px;
}

.catalog-header {
  margin-bottom: 60px;
  text-align: center;
}

.cat-tag {
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: #b58200;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

.cat-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--color-text-dark);
}

.catalog-grid {
  display: flex;
  flex-direction: column;
  gap: 45px;
}

.cat-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  transition: all 0.3s;
}

.cat-card:hover {
  border-color: var(--color-yellow-dark);
  box-shadow: 0 15px 35px rgba(234, 170, 0, 0.15);
  transform: translateY(-4px);
}

.cat-card-chapter {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: #b58200;
  font-weight: 700;
}

.cat-card-inner {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 40px;
  align-items: flex-start;
}

.cat-media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 270px;
  background: #f0ebe1;
  border: 1px solid rgba(0,0,0,0.06);
}

.cat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.cat-card:hover .cat-img {
  transform: scale(1.05);
}

.cat-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.cat-card:hover .cat-overlay {
  opacity: 1;
}

.cat-visit-btn {
  background: var(--color-yellow);
  color: #000;
  padding: 10px 22px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-header-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.cat-num {
  font-size: 0.85rem;
  color: #b58200;
  font-weight: 700;
}

.cat-category {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: #777;
  text-transform: uppercase;
}

.cat-project-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--color-text-dark);
  margin-bottom: 12px;
}

.cat-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #444;
  margin-bottom: 20px;
}

.cat-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.ct-pill {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #222;
  padding: 3px 12px;
  border-radius: 15px;
  font-size: 0.78rem;
  font-weight: 600;
}

.cat-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cat-link {
  color: #b58200;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.cat-modal-btn {
  background: transparent;
  border: 1px solid #181715;
  color: #181715;
  padding: 6px 16px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-modal-btn:hover {
  background: #181715;
  color: #ffffff;
}

/* ===== SECTION 4: CONTACT / HELLO ===== */
#contactSection.active {
  background-color: var(--color-cream);
  color: var(--color-text-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.contact-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 40px;
}

.contact-badge {
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: #b58200;
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}

.contact-hero-title {
  font-family: var(--font-title);
  font-size: 9.5vw;
  line-height: 0.85;
  font-weight: 400;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.contact-edition-tag {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #b58200;
  display: block;
  margin-bottom: 30px;
}

.contact-lead {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.5;
  color: #333;
  max-width: 680px;
  margin: 0 auto 40px auto;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.c-btn {
  background: #ffffff;
  border: 1px solid #181715;
  color: #181715;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.c-btn.primary {
  background: var(--color-yellow);
  color: #000;
  border-color: var(--color-yellow);
  font-weight: 700;
}

.c-btn:hover {
  transform: translateY(-3px);
  background: #181715;
  color: #ffffff;
  border-color: #181715;
}

/* Modal Popup - Theme Matched (Cream Theme) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24, 23, 21, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  color: var(--color-text-dark);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #555;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #181715;
  color: #ffffff;
  transform: rotate(90deg);
}

/* ===== Mobile & Tablet Responsive CSS ===== */
@media (max-width: 900px) {
  .navbar {
    padding: 12px 14px;
    flex-wrap: nowrap !important;
    justify-content: space-between;
    gap: 6px;
    background: rgba(245, 239, 230, 0.96) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav-left {
    justify-content: flex-start;
    gap: 4px;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 65%;
  }

  .nav-left::-webkit-scrollbar {
    display: none;
  }

  .nav-center {
    display: none !important;
  }

  .nav-right {
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: nowrap !important;
  }

  .main-title {
    font-size: clamp(2.6rem, 8vw, 6rem);
    white-space: normal;
    word-break: keep-all;
    line-height: 1.05;
  }

  .title-swash {
    font-size: clamp(3rem, 9.5vw, 7rem);
  }

  .cat-card-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cat-media {
    height: 220px;
  }

  .about-content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .modal-card {
    padding: 28px 20px;
    max-height: 90vh;
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 10px 10px;
    gap: 4px;
  }

  .nav-left {
    gap: 2px;
    max-width: 68%;
  }

  .nav-tab {
    padding: 1px;
  }

  .tab-pill {
    font-size: 0.65rem;
    padding: 4px 6px;
    letter-spacing: 0.5px;
  }

  .social-link {
    font-size: 0.68rem;
    letter-spacing: 0.5px;
  }

  .resume-highlight {
    padding: 3px 8px;
  }

  #heroSection {
    padding: 90px 14px 30px 14px;
  }

  #aboutSection, #workCatalogSection, #contactSection {
    padding-top: 80px;
    scroll-margin-top: 60px;
  }

  .catalog-wrapper {
    padding: 20px 14px;
  }

  .catalog-header {
    margin-bottom: 28px;
    text-align: center;
  }

  .cat-tag {
    font-size: 0.68rem;
    letter-spacing: 2px;
    margin-bottom: 6px;
  }

  .cat-title {
    font-size: clamp(1.5rem, 6.5vw, 2.1rem);
    line-height: 1.25;
    word-break: break-word;
  }

  .main-title {
    font-size: clamp(2.2rem, 9.5vw, 4.5rem);
    line-height: 1.1;
  }

  .title-swash {
    font-size: clamp(2.6rem, 11vw, 5.5rem);
  }

  .explore-catalog-btn {
    font-size: 0.72rem;
    padding: 10px 18px;
    width: 90%;
    justify-content: center;
  }

  .about-hero-title, .contact-hero-title {
    font-size: clamp(2.4rem, 12vw, 5rem);
  }

  .cat-card {
    padding: 24px 16px;
  }

  .cat-card-chapter {
    position: static;
    margin-bottom: 12px;
  }

  .cat-project-title {
    font-size: 1.7rem;
  }

  .contact-wrapper {
    padding: 40px 16px;
  }

  .contact-lead {
    font-size: 1.2rem;
  }

  .contact-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .c-btn {
    width: 100%;
    justify-content: center;
  }

  .modal-card {
    padding: 24px 16px;
    border-radius: 16px;
  }
}
