/* =========================================
   RESET
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  
  max-width: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f3f4f6;
  color: #111827;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/*html, body {
  overflow-x: hidden;
}


/* =========================================
   PAGE CONTAINER
========================================= */

.page-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}


/* =========================================
   SECTION SPACING
========================================= */

.portfolio-section,
.about-section,
.cta-section {
  margin-top: 90px;
}

.about-section {
  display: flex;
  align-items: center;
}


/* =========================================
   SECTION TITLES
========================================= */

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 4vw, 32px);
  font-weight: 700;
  margin-bottom: 34px;
  letter-spacing: -1px;
}


/* =========================================
   HERO
========================================= */

.homepage-hero {
  background: linear-gradient(
    135deg,
    #dff4ff 0%,
    #cdeeff 100%
  );

  border-radius: 32px;

  padding: clamp(28px, 5vw, 60px);

  box-shadow:
    0 15px 45px rgba(0, 0, 0, 0.05);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero-left {
  min-width: 0;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.15;
  font-size: clamp(44px, 7vw, 92px);
  letter-spacing: -1.5px;

  background: linear-gradient(
    180deg,
    #27b8ff 0%,
    #0082c5 100%
  );

  background-clip: text;
  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

  margin-bottom: 18px;
}

.job-role {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 35px;
  font-weight: 600;
  color: #055b87;
  margin-top: 0.5rem;
}

.summary {
  max-width: 600px;
  margin: 8px 0 28px;
  color: #000;
  max-width: 46ch;
  text-align: justify;
}

.summary strong {
  color: #0a67a3;
  font-weight: 700;
}


/* =========================================
   HERO IMAGE
========================================= */

.hero-image-main {
  border-radius: 28px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* =========================================
   PORTFOLIO
========================================= */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.portfolio-card {
  background: #ffffff;

  border-radius: 24px;

  overflow: hidden;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.08);
}

.portfolio-card:hover {
  transform: translateY(-8px);

  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.12);
}

.card-image {
  height: 260px;
  background: #0aa8ed;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 24px;
}

.card-content h3 {
  font-size: 1.45rem;
  line-height: 1.2;
  margin-bottom: 14px;
  font-weight: 700;
}

.card-content p {
  color: #4b5563;
  line-height: 1.4;
  text-align: left;
}

/* =========================================
   COMING SOON CARD
========================================= */

.portfolio-card.coming-soon {
  position: relative;

  opacity: 0.72;

  background:
    linear-gradient(
      145deg,
      #f3f4f6 0%,
      #e5e7eb 100%
    );

  border: 2px dashed #c7ced8;

  filter: grayscale(18%);

  transform: scale(0.98);
}


/* subtle hover */
.portfolio-card.coming-soon:hover {
  opacity: 0.9;

  transform: translateY(-4px) scale(0.99);

  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.08);
}


/* image area */
.portfolio-card.coming-soon .card-image {
  background:
    linear-gradient(
      135deg,
      #d1d5db 0%,
      #e5e7eb 100%
    );

  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-card.coming-soon .card-image img {
  filter: blur(3px) grayscale(25%);
  transform: scale(1.03);

  transition:
    filter 0.35s ease,
    transform 0.35s ease;
}

.portfolio-card.coming-soon:hover .card-image img {
  filter: blur(2.0px) grayscale(10%);
  transform: scale(1.05);
}


/* optional placeholder text inside image */
.portfolio-card.coming-soon .card-image::before {
  /*content: "COMING SOON";*/

  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 3px;

  color: #6b7280;
}


/* content styling */
.portfolio-card.coming-soon .card-content h3 {
  color: #6b7280;
}

.portfolio-card.coming-soon .card-content p {
  color: #9ca3af;
}


/* optional badge */
.portfolio-card.coming-soon::after {
  content: "UPCOMING";

  position: absolute;
  top: 18px;
  right: 18px;

  padding: 6px 12px;

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;

  color: #FFF;
  background: rgba(0, 0, 20, 0.85);

  border-radius: 999px;

  backdrop-filter: blur(4px);
}


/* =========================================
   ABOUT
========================================= */

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-text p {
  color: #374151;
  line-height: 1.9;
  margin-bottom: 18px;
}

.about-button-wrap {
  flex-shrink: 0;

  display: flex;
  align-items: center; /* vertical centering */
  justify-content: center;
}

.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 90px;
  height: 54px;

  padding: 0 28px;

  border: 2px solid #16c2ff;
  border-radius: 16px;

  text-decoration: none;

  color: #111827;
  font-weight: 600;
  font-size: 1rem;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.outline-btn:hover {
  background: #16c2ff;
  color: white;
  transform: translateY(-3px);
}


/* =========================================
   CTA SECTION
========================================= */

.cta-section {
  background: linear-gradient(
    135deg,
    #7ed6ff 0%,
    #5ac6f7 100%
  );

  border-radius: 30px;

  padding: 55px 30px;

  text-align: center;

  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.08);
}

.cta-section h3 {
  font-size: clamp(24px, 3vw, 38px);
  margin-bottom: 30px;
  font-weight: 700;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 210px;
  height: 62px;

  border-radius: 16px;

  text-decoration: none;
  font-weight: 600;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.primary-btn {
  background: #0057ff;
  color: white;

  box-shadow:
    0 10px 25px rgba(0, 87, 255, 0.35);
}

.primary-btn:hover {
  transform: translateY(-4px);
}

.secondary-btn {
  border: 2px solid #0077ff;
  color: #0057ff;
  background: transparent;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-4px);
}


/* =========================================
   TABLET / IPAD PRO
   ASYMMETRIC 60 / 40 SPLIT
========================================= */

@media (max-width: 1024px) {

  .homepage-hero {
    padding: 44px 40px;
  }

  .hero-content {

    /* switch back from stacked flex */
    display: grid;

    grid-template-columns: 60% 40%;

    grid-template-areas:
      "left image";

    align-items: center;

    gap: 36px;
  }

  /* restore normal layout behavior */
  .hero-left {
    display: block;
    grid-area: left;
    min-width: 0;
  }

  /* =========================
     TITLE
  ========================= */

  .hero-title {

    font-size: clamp(56px, 7vw, 74px);

    line-height: 0.94;

    letter-spacing: -2px;

    margin-bottom: 14px;
  }

  /* =========================
     ROLE
  ========================= */

  .job-role {

    display: inline-block;

    font-size: 2rem;

    margin-bottom: 28px;
  }

  /* =========================
     SUMMARY
  ========================= */

  .summary {

    max-width: 100%;

    font-size: 1.15rem;

    line-height: 1.95;

    margin: 0;

    margin-right: 15px;

    text-align: justify;
  }

  /* =========================
     IMAGE
  ========================= */

  .hero-image-main {

    grid-area: image;

    width: 100%;

    max-width: 320px;

    justify-self: end;

    margin-right: clamp(12px, 3vw, 36px);

    margin-left: 48px;

    border-radius: 24px;

    overflow: hidden;

    box-shadow:
      0 16px 40px rgba(0, 0, 0, 0.12);
  }

  .hero-image-main img {

    width: 100%;

    height: auto;

    display: block;

    object-fit: cover;
  }

  /* =========================
     OTHER SECTIONS
  ========================= */

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {

    /* stack vertically instead */
    flex-direction: column;

    align-items: flex-start;

    gap: 28px;
  }

  .about-text {
    width: 100%;
    max-width: 100%;
  }

  .about-text p {

    font-size: 1.25rem;

    line-height: 1.9;
  }

  .about-button-wrap {

    width: 100%;

    display: flex;

    justify-content: flex-start;
  }

}





/* =========================================
   MOBILE
   SWITCH TO VERTICAL STACK
========================================= */

@media (max-width: 768px) {

  .page-container {
    padding: 24px 18px 60px;
  }

  .homepage-hero {
    border-radius: 24px;
    padding: 32px 24px;
  }

  .hero-content {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 0;
  }

  /* enable re-ordering again */
  .hero-left {
    display: contents;
  }

  .hero-title {
    order: 1;

    font-size: clamp(44px, 11vw, 58px);

    line-height: 0.98;

    letter-spacing: -2px;

    margin-bottom: 14px;
  }

  .job-role {
    order: 2;

    font-size: 1.45rem;

    margin-bottom: 28px;
  }

  .hero-image-main {
    order: 3;

    width: 100%;

    max-width: 300px;

    margin: 0 auto 32px;

    justify-self: center;
  }

  .summary {
    order: 4;

    font-size: 1.25rem;

    line-height: 1.7;

    max-width: 100%;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .card-image {
    height: 240px;
  }

  .section-title {
    margin-bottom: 24px;
  }

  .outline-btn,
  .primary-btn,
  .secondary-btn {
    min-width: 130px;
    height: 50px;
    font-size: 0.95rem;
  }

  .cta-buttons {
    width: 100%;
  
    display: flex;
    flex-direction: row;
  
    justify-content: center;
    align-items: center;
  
    gap: 16px;
  
    flex-wrap: nowrap;
  }

  .about-section {
    margin-top: 70px;
  }

  .about-content {
    gap: 24px;
  }

  .about-text p {
    font-size: 1.15rem;
    line-height: 1.85;
  }

  .about-button-wrap {
    width: 100%;
  }

  .outline-btn {
    width: 100%;
    max-width: 70px;
    height: 48px;
    font-size: 1rem;
  }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

  .hero-title {
    font-size: clamp(40px, 12vw, 52px);
  }

  .job-role {
    font-size: 1.2rem;
  }

  .card-content h3 {
    font-size: 1.4rem;
  }

  .outline-btn {
    padding: 0 8px;
  }

}