* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";
  background: #ffffff;
  color: #111;
  line-height: 1.6;
}

img {
  width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* HEADER */
.header {
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 24px;
}

.menu-toggle {
  display: inline-flex;
  width: 52px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #111;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 50vh; /* HALF PAGE */
  width: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
}

nav.active {
  transform: translateY(0);
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 22px;
  cursor: pointer;
}

nav a {
  text-decoration: none;
  color: #111;
  margin: 10px 0;
  font-size: 14px;
}

nav a:hover {
  color: #6a00ff;
  font-weight: 600;
}

nav a.active {
  color: #6a00ff;
  font-weight: 600;
}

.cv-btn {
  font-weight: 600;
}

/* HERO */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #111;
}

.hero h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #727272;
}

.hero p {
  font-size: 17px;
  color: #515151;
  max-width: 852px;
  margin: auto;
  line-height: 28px;
}

.primary-btn {
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 600;
  color: #6a00ff;
  border-radius: 8px;
  text-decoration: none;
}

.about-primary-btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #6a00ff;
  border: 1px solid #6a00ff;
  margin-top: 18px;
  border-radius: 8px;
  text-decoration: none;
  padding: 12px 16px;
}

.about-primary-btn:hover {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background-color: #111;
  margin-top: 18px;
  border-radius: 8px;
  text-decoration: none;
  padding: 12px 16px;
}

.about-buttons {
  display: flex;

  gap: 22px;
  text-align: center;
}

/* ===============================
   HERO BUBBLE
================================ */
.hero {
  position: relative;
}

.hero h1 {
  position: relative;
  display: inline-block; /* shrink-wrap so bubble sits flush after text */
}

.hero-bubble-wrapper {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  top: -30px;
  vertical-align: middle;
  position: relative;
  margin-left: 10px;
  z-index: 10;
}

.hero-bubble-trigger {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #6a00ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.hero-bubble-trigger:hover {
  background: #f3ecff;
}

.bubble-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6a00ff;
  animation: pulseDot 1.8s ease-in-out infinite;
  display: inline-block;
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.65);
  }
}

.hero-bubble-tooltip {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 14px 14px 14px 4px;
  padding: 14px 16px;
  width: 200px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px) scale(0.96);
  transform-origin: right center;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  order: -1;
  /* Position above the trigger on desktop */
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
}

.hero-bubble-wrapper:hover .hero-bubble-tooltip,
.hero-bubble-tooltip.bubble-open {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateX(0) scale(1) !important;
}

.hero-bubble-tooltip p {
  font-size: 12px;
  color: #444;
  line-height: 1.5;
  margin-bottom: 10px;
}

.hero-bubble-tooltip strong {
  color: #6a00ff;
}

.bubble-view-btn {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #fff !important;
  background: #6a00ff;
  padding: 5px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.bubble-view-btn:hover {
  background: #5500cc;
}

/* Mobile — absolute top-right corner */
@media (max-width: 767px) {
  .hero h1 {
    display: block;
  }

  .hero-bubble-wrapper {
    position: absolute;
    top: -30px;
    right: 0;
    margin-left: 0;
    vertical-align: unset;
  }

  .hero-bubble-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    width: 170px;
  }
}

/* Mobile — absolute top-right corner */
@media (max-width: 767px) {
  .hero h1 {
    display: block;
  }

  .hero-bubble-wrapper {
    position: absolute;
    top: -30px;
    right: 0;
    margin-left: 0;
    vertical-align: unset;
    z-index: 5; /* above the nav overlay */
  }

  .hero-bubble-tooltip {
    position: absolute;
    /* Opens BELOW the trigger instead of above */
    top: calc(100% + 10px);
    transform-origin: right center;
    bottom: auto;
    right: 0;
    width: 170px;
    /* Tail points UP toward the trigger */
    border-radius: 4px 14px 14px 14px;
  }
}

.hero-bubble-tooltip.bubble-open {
  transform-origin: top right;
}

/* PORTFOLIO */
/* ===============================
   PORTFOLIO
================================ */
.portfolio {
  padding: 80px 0;
}

.section-label {
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 8px;
}

.portfolio h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 60px;
}

/* ===============================
   CASE GRID
================================ */
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 52px;
}

/* ===============================
   CASE CARD
================================ */
.case-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-card img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* Hover image */
.case-card:hover img {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

/* ===============================
   CASE INFO
================================ */
.case-info h4 {
  font-size: 22px;
  font-weight: 450;
  line-height: 1.35;
  margin-bottom: 6px;
}

.case-info a {
  font-size: 16px;
  font-weight: 400;
  color: #6a00ff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.case-info a:hover {
  transform: translateX(4px);
  opacity: 0.85;
}

/* ===============================
   CASE LINK (BASE)
================================ */
.case-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #6a00ff;
  text-decoration: none;
}

.case-link-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
}

/* ===============================
   MOBILE ICON (HIDDEN BY DEFAULT)
================================ */
.mobile-icon {
  display: none;
}

/* ===============================
   MOBILE VIEW ONLY
================================ */
@media (max-width: 767px) {
  .case-link {
    justify-content: space-between;
    width: 100%;
  }

  .mobile-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid #6a00ff;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    transition:
      background 0.3s ease,
      transform 0.3s ease;
  }

  .case-link:hover .mobile-icon {
    background: #6a00ff;
    color: #fff;
    transform: translateX(3px);
  }

  .about-buttons {
    flex-direction: column;
  }
}

/* ===============================
   DESKTOP GRID
================================ */
@media (min-width: 768px) {
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
  }

  .case-info h4 {
    font-size: 20px;
  }
}

/* ===============================
   LARGE DESKTOP
================================ */
@media (min-width: 1100px) {
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
  }
}

/* End Portfolio */

/* BUTTONS */
.dual-buttons {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.second-secondary-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 80px;
  background: #ffffff;
  color: #6a00ff;
  border: 1px solid #6a00ff;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;

  transition:
    box-shadow 0.3s ease,
    transform 0.2s ease,
    background 0.3s ease;
}

.secondary-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 80px;
  background: #6a00ff;
  color: #fff;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;

  transition:
    box-shadow 0.3s ease,
    transform 0.2s ease,
    background 0.3s ease;
}

.second-secondary-btn:hover {
  background: #2a2a2a;
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(106, 0, 255, 0.25),
    0 0 12px rgba(106, 0, 255, 0.45);
  transform: translateY(-1px);
}

.secondary-btn:hover {
  background: #2a2a2a;
  box-shadow:
    0 0 0 1px rgba(106, 0, 255, 0.25),
    0 0 12px rgba(106, 0, 255, 0.45);
  transform: translateY(-1px);
}

@keyframes softGlow {
  0% {
    box-shadow: 0 0 8px rgba(106, 0, 255, 0.35);
  }
  100% {
    box-shadow: 0 0 14px rgba(106, 0, 255, 0.55);
  }
}

.secondary-btn:hover {
  animation: softGlow 1.2s ease-in-out infinite alternate;
}

@media (max-width: 500px) {
  /* BUTTONS */
  .dual-buttons {
    gap: 0px;
  }
}

/* ===============================
RESOURCES ================================ */
.resources {
  padding: 90px 0;
  background: #fafafa;
}

.resources h2 {
  text-align: center;
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 32px;
}

/* ===============================
   RESOURCE GRID
================================ */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* ===============================
   RESOURCE CARD
================================ */
.resource-grid a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.resource-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Hover Effect */
.resource-grid a:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.14);
}

.resource-grid a:hover img {
  transform: scale(1.05);
}

/* ===============================
   DESKTOP LAYOUT
================================ */
@media (min-width: 768px) {
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* /////////////////////////////////// FIGMA POPUP ///////////////////////////////////// */
/* FIGMA POPUP */
.figma-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  z-index: 999;
}

.figma-overlay.active {
  display: block;
}

.figma-popup {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80%;
  background: #fff;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.35s ease;
}

/* Header */
.figma-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  font-weight: 600;
}

.close-popup {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* Body */
.figma-body {
  flex: 1;
}

.figma-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
.figma-footer {
  padding: 14px;
  border-top: 1px solid #eee;
  text-align: center;
}

.figma-btn {
  display: inline-block;
  padding: 12px 18px;
  background: #6a00ff;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}

/* Desktop */
@media (min-width: 768px) {
  .figma-popup {
    width: 70%;
    height: 80%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px 10px 0 0;
  }
}

/* Animation */
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
/* /////////////////////////////////// FIGMA POPUP ///////////////////////////////////// */

/* /////////////////////////////////// PDF OVERLAY ///////////////////////////////////// */
.pdf-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.pdf-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* MODAL */
.pdf-modal {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 85vh;
  background: #0f0f0f;
  border-radius: 14px;
  overflow: hidden;
}

/* IFRAME */
.pdf-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

/* CLOSE BUTTON */
.pdf-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 32px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
  .pdf-modal {
    width: 95%;
    height: 90vh;
    border-radius: 10px;
  }
}
/* /////////////////////////////////// END  PDF OVERLAY ///////////////////////////////////// */

/* FOOTER */
.footer {
  padding: 40px 0;
  text-align: center;
  font-size: 12px;
  color: #777;
}

/* DESKTOP BREAKPOINT */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  nav {
    position: static;
    transform: none;
    flex-direction: row;
    display: flex;
    justify-content: flex-end;
    height: auto;
    background: none;
    margin-left: auto;
    gap: 0;
  }

  .close-menu {
    display: none;
  }

  nav a {
    margin-left: 24px;
  }

  .hero {
    padding: 120px 0;
  }

  .hero h1 {
    font-size: 72px;
    margin: 32px;
  }

  .portfolio h2 {
    font-size: 32px;
  }

  .case-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .dual-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .resource-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

/* ===============================
   CONTACT POPUP OVERLAY
================================ */
.contact-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  z-index: 999;
}

.contact-overlay.active {
  display: block;
}

/* ===============================
   CONTACT POPUP CONTAINER
================================ */
.contact-popup {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  padding: 20px 18px 24px;
  border-radius: 16px 16px 0 0;
  animation: slideUpContact 0.35s ease;
}

/* ===============================
   HEADER
================================ */
.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.contact-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #111;
}

.close-popup {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #111;
}

/* ===============================
   OPTIONS WRAPPER
================================ */
.contact-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ===============================
   CONTACT ITEM (ICON + TEXT STACK)
================================ */
.contact-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 14px;
  row-gap: 4px;
  padding: 14px 16px;
  border: 1px solid #ededed;
  border-radius: 12px;
  text-decoration: none;
  color: #111;
  transition:
    background 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

/* Icon */
.contact-item i {
  grid-row: 1 / span 2;
  font-size: 22px;
  color: #6a00ff;
}

/* Heading (Email / WhatsApp) */
.contact-item span {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

/* Subtext (WhatsApp note) */
.contact-item .contact-note {
  font-size: 12px;
  font-weight: 400;
  color: #666;
  line-height: 1.4;
  margin: 0;
}

/* Hover */
.contact-item:hover {
  background: #f7f7f7;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* ===============================
   DESKTOP CENTERED POPUP
================================ */
@media (min-width: 768px) {
  .contact-popup {
    width: 420px;
    left: 50%;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 16px;
    padding: 22px 22px 26px;
  }
}

/* ===============================
   ANIMATION
================================ */
@keyframes slideUpContact {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* about */
/* ABOUT PAGE */

.about-hero {
  padding: 20px 0px 20px 0px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}

.about-image img {
  width: 100%;
  max-width: 380px;
  border-radius: 6px;
}

.about-content h1 {
  font-size: 32px;
  margin-bottom: 16px;
}

.about-content p {
  font-size: 16px;
  color: #444;
  margin-bottom: 14px;
}

/* EXPERIENCE HEADER */
.experience-header {
  background: #ffffff;
  text-align: center;
  padding: 40px 0;
}

.experience-header h2 {
  font-size: 44px;
}

.experience-header p {
  font-size: 16px;
}

/* EXPERIENCE LIST */
.experience {
  padding: 40px 0;
}

.experience-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  margin-bottom: 60px;
}

.experience-item img {
  width: 60px;
}

.experience-item h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.experience-item ul {
  padding-left: 18px;
}

.experience-item li {
  font-size: 16px;
  color: #444;
  margin-bottom: 6px;
}

/* FREELANCE */
.freelance {
  text-align: center;
  padding: 60px 20px;
  background: #f5f5f5;
}

.freelance h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.freelance p {
  font-size: 16px;
  color: #444;
  max-width: 700px;
  margin: auto;
}

.status-badge {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 16px;
  background: #222;
  color: #fff;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;

  transition:
    box-shadow 0.3s ease,
    transform 0.2s ease,
    background 0.3s ease;
}

.status-badge:hover {
  background: #2a2a2a;
  box-shadow:
    0 0 0 1px rgba(106, 0, 255, 0.25),
    0 0 12px rgba(106, 0, 255, 0.45);
  transform: translateY(-1px);
}

@keyframes softGlow {
  0% {
    box-shadow: 0 0 8px rgba(106, 0, 255, 0.35);
  }
  100% {
    box-shadow: 0 0 14px rgba(106, 0, 255, 0.55);
  }
}

.status-badge:hover {
  animation: softGlow 1.2s ease-in-out infinite alternate;
}

/* DESKTOP */
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 420px 1fr;
  }
}
