/* ==========================================================================
   Exact Match Portfolio CSS — Irfan Farid Web Developer
   Palette: Forest Green (#234734), Golden Yellow (#E59E15), White (#FFFFFF)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Caveat:wght@600;700&display=swap');

:root {
  --green-primary: #234734;
  --green-dark: #193527;
  --yellow-accent: #E59E15;
  --yellow-hover: #d98a00;
  
  --bg-main: #FFFFFF;
  --bg-card: #F3F3F1;
  
  --text-dark: #18181b;
  --text-muted: #71717a;

  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-signature: 'Caveat', cursive;

  --radius-pill: 9999px;
  --radius-card: 20px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-dark);
}

body {
  background-color: var(--bg-main);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   1. NATIVE SMOOTH SCROLL REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-45px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(45px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-zoom {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-zoom.active {
  opacity: 1;
  transform: scale(1);
}

/* --------------------------------------------------------------------------
   2. HERO BADGE & TYPOGRAPHY
   -------------------------------------------------------------------------- */
.crop-badge {
  position: relative;
  display: inline-block;
  padding: 6px 16px;
  background: #ffffff;
  border: 1px solid #3f3f46;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.crop-handle {
  position: absolute;
  width: 7px;
  height: 7px;
  background-color: var(--yellow-accent);
  border: 1px solid #18181b;
}

.crop-handle-tl { top: -4px; left: -4px; }
.crop-handle-tr { top: -4px; right: -4px; }
.crop-handle-bl { bottom: -4px; left: -4px; }
.crop-handle-br { bottom: -4px; right: -4px; }

.yellow-underline {
  position: relative;
  display: inline-block;
  color: var(--yellow-accent);
}

.yellow-underline::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--yellow-accent);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   3. EXACT BUTTONS & HOVER MICRO-ANIMATIONS
   -------------------------------------------------------------------------- */
.btn-yellow-capsule-wrap {
  display: inline-flex;
  align-items: center;
  background-color: var(--yellow-accent);
  border-radius: var(--radius-pill);
  padding: 4px 6px 4px 4px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(229, 158, 21, 0.25);
  cursor: pointer;
}

.btn-yellow-capsule-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(229, 158, 21, 0.4);
}

.btn-inner-green-capsule {
  background-color: var(--green-primary);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.01em;
  transition: background-color 0.25s ease;
}

.btn-play-white-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  margin-right: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease;
}

.btn-yellow-capsule-wrap:hover .btn-play-white-circle {
  transform: scale(1.12) rotate(8deg);
}

.btn-hire-me-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background-color: #ffffff;
  border: 1.5px solid #18181b;
  border-radius: var(--radius-pill);
  color: #18181b;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-hire-me-pill:hover {
  background-color: #f4f4f5;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------------------------------------
   4. DYNAMIC HERO GRAPHICS & PORTRAIT
   -------------------------------------------------------------------------- */
.hero-yellow-shape {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 380px;
  height: 440px;
  background-color: var(--yellow-accent);
  border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%;
  z-index: 1;
  animation: pulseBlob 8s ease-in-out infinite alternate;
}

@keyframes pulseBlob {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.04) rotate(3deg); }
}

.hero-arc-line {
  position: absolute;
  top: 25%;
  left: -15px;
  width: 30px;
  height: 120px;
  border-left: 1.5px solid #18181b;
  border-radius: 50% 0 0 50%;
  z-index: 2;
}

.hire-me-badge-wrap {
  position: absolute;
  top: 10%;
  right: 2%;
  width: 100px;
  height: 100px;
  z-index: 10;
}

.spin-badge-text {
  animation: spinText 16s linear infinite;
}

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

.cursor-pointer-green {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 14px solid var(--green-primary);
  transform: rotate(-35deg);
}

.cursor-pointer-yellow {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 14px solid var(--yellow-accent);
  transform: rotate(-35deg);
}

.floating-tag-green {
  background-color: var(--green-primary);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  animation: floatSlow 4s ease-in-out infinite alternate;
}

.floating-tag-yellow {
  background-color: var(--yellow-accent);
  color: #18181b;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  animation: floatSlow 4.5s ease-in-out infinite alternate-reverse;
}

@keyframes floatSlow {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-6px); }
}

/* --------------------------------------------------------------------------
   5. ANGLED MARQUEE TICKER BANNER (MASKING BOTTOM EDGE OF ME.PNG 100% ON MOBILE & DESKTOP)
   -------------------------------------------------------------------------- */
.marquee-wrapper-angled {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  background-color: var(--yellow-accent);
  color: var(--green-primary);
  padding: 18px 0;
  border-top: 6px solid var(--green-primary);
  border-bottom: 6px solid var(--green-primary);
  transform: rotate(-1.8deg) scaleX(1.06);
  margin-top: -120px;
  z-index: 25;
  user-select: none;
}

@media (max-width: 768px) {
  .hero-yellow-shape {
    width: 290px;
    height: 330px;
    top: 0;
    left: 5%;
  }

  .hire-me-badge-wrap {
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
  }

  .marquee-wrapper-angled {
    margin-top: -130px; /* Pulls marquee banner UP over the bottom cut of me.png on Mobile! */
    padding: 14px 0;
    transform: rotate(-1.5deg) scaleX(1.08);
  }
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  animation: marqueeScroll 25s linear infinite;
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   6. SERVICES & CARDS
   -------------------------------------------------------------------------- */
.service-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 32px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.service-card:hover {
  background-color: #ffffff;
  border-color: rgba(229, 158, 21, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 18px 38px -10px rgba(0, 0, 0, 0.09);
}

.signature-font {
  font-family: var(--font-signature);
  font-size: 40px;
  color: var(--yellow-accent);
  font-weight: 700;
  line-height: 1;
}

.section-sublabel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.section-sublabel::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background-color: var(--yellow-accent);
}

/* --------------------------------------------------------------------------
   7. NATIVE CAROUSEL SLIDER ENGINE
   -------------------------------------------------------------------------- */
.native-slider-container {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.native-slider-container::-webkit-scrollbar {
  display: none;
}

.native-slider-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .native-slider-slide {
    flex: 0 0 calc(50% - 12px);
  }
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #234734;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

.slider-btn:hover {
  background: var(--yellow-accent);
  color: #234734;
  transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   8. MODALS & TOAST
   -------------------------------------------------------------------------- */
.custom-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.custom-modal-content {
  background: #ffffff;
  border-radius: 24px;
  max-width: 600px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.custom-modal-overlay.active .custom-modal-content {
  transform: scale(1);
}

#toast-notification.show {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}
