/*
Theme Name: 2025 V2
Theme URI: https://iqramahmed.com
Author: Iqram Ahmed
Author URI: https://iqramahmed.com
Version:     2.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --color-bg-light: #f8f7f4;
  --color-bg-dark: #121212;
  --color-text-light: #1a1a1a;
  --color-text-dim-light: #d3d3d3;
  --color-card-light: #ffffff;
  --color-card-dark: #1e1e1e;
  --color-text-dark: #e0e0e0;
  --color-text-dim-dark: #4a4a4a;
  --color-yellow: #f0e048;
  --color-bg: var(--color-bg-light);
  --color-text: var(--color-text-light);
  --yellow-bg: var(--yellow);
  --yellow-text: var(--color-bg-dark);
  --color-text-dim: var(--color-text-dim-light);
  --color-card-bg: var(--color-card-light);
  --bg-yellow-section: var(--color-yellow);
  --text-yellow-section: var(--color-text-light);
  --bg-white-section: var(--color-card-light);
  --text-white-section: var(--color-text-light);
  --grid-gap: 1.8rem;
  --border-radius: 1.5rem;
  --header-height: 5rem;
  --font-size-p: clamp(1rem, 2.5vw, 1.15rem);
  --font-m: 500;
  --padding-inside: clamp(1.5rem, 4vw, 2rem);
}
body[data-theme="dark"] {
  --color-bg: var(--color-bg-dark);
  --color-text: var(--color-text-dark);
  --color-text-dim: var(--color-text-dim-dark);
  --color-card-bg: var(--color-card-dark);
  --bg-yellow-section: var(--color-card-dark);
  --text-yellow-section: var(--color-yellow);
  --bg-white-section: var(--color-yellow);
  --text-white-section: var(--color-text-light);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Jost", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: var(--font-size-p);
}
.sr-only {
  position: absolute;   /* Remove from normal flow */
  width: 1px;           /* Tiny size */
  height: 1px;
  padding: 0;
  margin: -1px;         /* Prevent layout shift */
  overflow: hidden;     /* Hide content */
  clip: rect(0, 0, 0, 0); /* Clip content area */
  white-space: nowrap;  /* Prevent wrapping */
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4,
h5 {
  font-weight: 500;
}
main {
  margin-top: var(--grid-gap);
}
h1 {
  font-size: clamp(1.3rem, 6vw, 2rem);
}
.floating-header {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 1001;
  display: flex;
  gap: 0;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 19px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
body[data-theme="dark"] .floating-header {
  opacity: 0.9;
  background-color: var(--bg-white-section);
}
.header-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
 
}
.floating-header .theme-toggle {
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  padding: 0;
  overflow: hidden;
  transform: translateX(-20px);
  transition: max-width 0.7s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.3s ease-out, transform 0.9s cubic-bezier(0.25, 1, 0.5, 1),
    margin-left 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}
.floating-header.is-expanded .theme-toggle {
  width: 100px;
  max-width: 74px;
  opacity: 1;
  margin-left: 0.5rem;
  transform: scale(1);
  transform: translateX(0);
}
a.header-btn.theme-toggle {
  color: black;
}
.moon-icon {
  display: none;
}
body[data-theme="dark"] .sun-icon {
  display: none;
}
body[data-theme="dark"] .moon-icon {
  display: block;
}
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: var(--header-height) var(--grid-gap) var(--grid-gap);
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}
body.mobile-nav-active .mobile-nav {
  transform: translateY(0);
}
.mobile-nav-toggle #burger-icon {
  width: 1.5rem;
  height: 1.5rem;
}
.mobile-nav-toggle .burger-path {
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
  width: 100%;
  flex-grow: 1;
}
.nav-grid li:nth-child(3),
.nav-grid li:nth-child(6) {
  grid-column: span 2;
}
.nav-grid li a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 12vh;
  font-size: clamp(1.7rem, 5vw, 1.5rem);
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  font-weight: var(--font-m);
  color: var(--color-text);
  transition: background-color 0.3s, color 0.3s;
}
.nav-grid li a:hover {
  background-color: var(--color-text);
  color: var(--color-bg);
}
.nav-contact-info {
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-top: var(--grid-gap);
  text-align: center;
}
.nav-email {
  font-weight: var(--font-m);
}
.nav-socials {
  display: none;
}
.section-container {
  padding-left: var(--grid-gap);
  padding-right: var(--grid-gap);
  padding-bottom: var(--grid-gap);
}
.full-height {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.bento-grid {
  display: grid;
  gap: var(--grid-gap);
  width: 100%;
}
.bento-box {
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
}
.box-resume,
.box-portfolio,
.box-case-study,
.about-text-left,
.testimonial-box,
.cta-box {
  padding: clamp(1rem, 3vw, 2rem);
}
.scrolling-text-container::before,
.scrolling-text-container::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3rem;
  z-index: 2;
  pointer-events: none;
}
.scrolling-text-container::before {
  top: 0;
  background: linear-gradient(
    to bottom,
    var(--color-card-bg) 0%,
    transparent 100%
  );
}
.scrolling-text-container::after {
  bottom: 0;
  background: linear-gradient(
    to top,
    var(--color-card-bg) 0%,
    transparent 100%
  );
}
.scrolling-text {
  position: absolute;
  width: 100%;
  padding: 0 2rem;
  animation: scroll-up 20s linear infinite;
}
@keyframes scroll-up {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}
.bento-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.bento-content-overlay {
  position: absolute;
  z-index: 2;
  bottom: 0;
  width: 100%;
  height: 100%;
  padding: var(--padding-inside);
  display: flex;
  flex-direction: column;
  background: linear-gradient(to top, rgb(0 0 0 / 75%) 0%, rgb(0 0 0 / 4%) 80%);
  justify-content: flex-end;
}
.hero-image-box {
  grid-column: 1 / 2;
  height: 100%;
  overflow: hidden;
}
.hero-text-overlay {
  justify-content: flex-start;
  padding-top: 10%;
  text-align: center;
}
.hero-signature-logo {
  max-width: clamp(150px, 40vw, 250px);
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
}
.hero-lower-grid {
  grid-column: 2 / 3;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: var(--grid-gap);
}
.content-box {
  flex: 1;
  display: flex;
}
.content-box a {
  padding: var(--padding-inside);
  align-items: flex-end;
  width: 100%;
  display: flex;
}
.box-resume,
.box-portfolio,
.box-case-study {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.box-resume {
  background-color: var(--box-resume-bg);
}
.box-portfolio {
  background-color: var(--box-portfolio-bg);
}
.box-case-study {
  background-color: var(--box-case-study-bg);
}
.box-resume h2,
.box-portfolio h2,
.box-case-study h2 {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
}
.box-resume h2 span,
.box-portfolio h2 span,
.box-case-study h2 span {
  display: block;
  font-size: 0.8em;
  font-weight: 400;
  opacity: 0.8;
}
.key-achievements {
  flex-direction: column;
}
.key-point {
  display: flex;
  justify-content: center;
  font-size: clamp(1.3rem, 4vw, 1.4rem);
  flex-direction: column;
  text-align: center;
  line-height: 1.2;
  padding: clamp(1rem, 3vw, 2rem);
  background-color: var(--bg-yellow-section);
}
.key-point strong {
  font-size: clamp(2.4rem, 4vw, 2.7rem);
  color: var(--text-yellow-section);
}
.about-intro-grid {
  grid-template-columns: 1fr 2.1fr 1fr;
  min-height: 80vh;
}
.about-text-left {
  display: flex;
  align-items: center;
  container-type: size;
  min-height: 60vh;
}
.highlight-text-wrapper {
  font-weight: 600;
  line-height: 1.2;
  font-size: clamp(1.7rem, calc(1.8vw + 2.9vh), 6rem);
}
.highlight-word {
  color: var(--color-text-dim);
  transition: color 0.5s ease, color 0.5s ease;
}
.mobile-portfolio-wrapper {
  display: block;
  width: 100%;
  height: 200vh;
  position: relative;
}
.mobile-portfolio-cards {
  height: 100vh;
  width: 100%;
  display: flex;
  position: sticky;
  top: 0;
  overflow: visible;
}
.mobile-card {
  flex: 0 0 100%;
  padding: 0 5%;
  height: 100%;
  display: flex;
  align-items: center;
}
.mobile-card-inner {
  width: 100%;
  height: 80vh;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.mobile-card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bento-content-overlay h3 {
  font-size: clamp(1.5rem, 4vw, 1.6rem);
  line-height: 2.1rem;
  color: var(--color-bg-light);
}
.testimonial-box h2 {
  font-size: clamp(2.1rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
}
.testimonial-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: start;
  gap: clamp(2rem, 15vw, 15rem);
}
.testimonial-content blockquote p {
  font-size: clamp(1.2rem, 2.5vw, 1.1rem);
  line-height: 1.6;
}
.testimonial-content footer {
  font-style: normal;
}
.testimonial-content footer cite {
  font-style: normal;
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}
.testimonial-content footer span {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}
.cta-box {
  display: flex;
  justify-content: space-between;
  transition: transform 0.3s;
  background-color: var(--bg-white-section);
  color: var(--text-white-section);
}
.cta-box:hover {
  transform: scale(1.02);
}
.cta-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1.3rem;
}
.cta-box h4 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  line-height: 2.8rem;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}
.cta-action {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--padding-inside);
  background-color: var(--bg-yellow-section);
  color: var(--text-yellow-section);
}
.socials-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  align-items: start;
}
.social-box {
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, transform 0.3s;
}
.social-box svg {
  width: 70%;
  height: 50%;
  fill: var(--color-text);
  transition: fill 0.3s;
}
.social-box.codepen svg {
  fill: transparent;
  stroke: var(--color-text);
}
.social-box:hover {
  transform: scale(1.1);
}
.social-box.linkedin:hover {
  background-color: #0077b5;
}
.social-box.github:hover {
  background-color: #333;
}
.social-box.dribbble:hover {
  background-color: #ea4c89;
}
.social-box.instagram:hover {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}
.social-box.codepen:hover {
  background-color: #000;
}
.social-box:hover svg {
  fill: #ffffff;
}
.social-box.codepen {
  grid-column: span 2;
}
.social-box.codepen:hover svg {
  fill: transparent;
  stroke: #fff;
}
.hero-container {
  height: 95vh;
  display: grid;
  gap: var(--grid-gap);
}
.hero-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image img, .hero-image picture{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.sign img {
  filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.3));
  max-width: 450px;
  margin-top: 3rem;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.overlay-text {
  color: white;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 65%;
  position: relative;
}
.overlay-text h1 {
  margin-bottom: 15px;
}
.overlay-text p {
  font-size: clamp(1.2rem, 4vw, 1.3rem);
  letter-spacing: 0.5px;
  margin: 0 15%;
}
.hero-content {
  background: transparent;
}
.content-box {
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  color: var(--color-text-light);
}
.content-box:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.content-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.content-label {
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  font-weight: var(--font-m);
  letter-spacing: 2px;
  line-height: 1;
}
.content-title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}
.resume-box {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}
.portfolio-box {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}
.case-study-box {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  background: transparent;
}
.portfolio-item {
  aspect-ratio: 1 / 1;
}
.about-grid {
  display: grid;
  grid-row-gap: var(--grid-gap);
}
.about-item {
  padding: var(--padding-inside);
}
.about-item.image-block {
  padding: 0;
}
.about-item.image-block img, .about-item.image-block picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-item.text-block h1 {
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-size: clamp(1.3rem, 9vw, 4rem);
}
.about-item.text-block p {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.5;
  padding-right: 15%;
}
.about-item.text-block p + p {
  margin-top: 1.5rem;
}
.about-item.cta-block {
  background-color: var(--color-text-dim-light);
  font-weight: var(--font-m);
}
body[data-theme="dark"] .about-item.cta-block {
  background-color: #2d3748;
}
.about-item:nth-of-type(3) {
  display: none;
}
.about-item.text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.overlay-about-text {
  position: absolute;
  bottom: 0;
  padding: var(--padding-inside);
  font-size: clamp(1rem, 5vw, 1.2rem);
  color: white;
}
.overlay-about-text ul li {
  font-weight: 500;
  list-style: none;
  font-size: clamp(1.3rem, 9vw, 1.6rem);
}
.about-cta {
  background-color: var(--color-bg-dark);
  color: var(--color-bg-light);
  font-size: clamp(1.3rem, 9vw, 1.6rem);
  margin-top: 4rem;
}
.big-text-area ul {
  list-style: none;
}
.big-text-area ul li {
  margin-top: 1.7rem;
}
.case-study-row {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: 1.85fr 1fr;
}
.case-study-row.is-50-50 {
  grid-template-columns: 1fr 1fr;
}
.case-study-row .bento-box {
  padding: var(--padding-inside);
}
.case-study-row .image-block {
  padding: 0;
  line-height: 0;
}
.case-study-row .image-block img, .case-study-row .image-block picture {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.case-study-row .text-block h1 {
  line-height: 1.1;
  margin-bottom: 1rem;
}
.case-study-row .text-block .subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-style: italic;
  opacity: 0.8;
  margin-bottom: 2rem;
}
.case-study-row .text-block .tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.case-study-row .text-block .tag {
  background-color: var(--color-bg);
  padding: 0.25rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
}
.case-study-row .project-details ul {
  list-style: none;
  padding: 0px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.project-details ul li {
  display: grid;
  grid-template-columns: 100px 1fr;
  column-gap: 1rem;
}
.project-details strong {
  font-weight: 500;
}
.case-study-row h2 {
  margin-bottom: 1.3rem;
}
.case-study-row p {
  margin-top: 1rem;
}
.case-study-row h3,
.case-study-row h4 {
  margin-top: 2rem;
}
.case-study-row ul {
  margin-top: 1.5rem;
  padding-left: 20px;
}
.case-study-row li + li {
  margin-top: 0.5rem;
}
.case-study-row:first-child {
  grid-template-columns: 1fr 1fr;
}
.sticky-section .sticky-title.gsap-pin-active {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-text-dim);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.sticky-parent {
  position: relative;
}
.right-column-wrapper {
  display: grid;
  grid-template-rows: 1fr;
  gap: var(--grid-gap);
}
.year-box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: white;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 6%,
    rgba(0, 0, 0, 1) 97%
  );
  text-align: center;
  font-size: clamp(1.1rem, 2.5vw, 1.1rem);
  justify-content: center;
  padding: var(--padding-inside);
  line-height: 1.3;
}
.year-box h4 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}
.case-study-row img, .case-study-row picture {
  width: 100%;
  height: auto;
}
.case-study-row .text-block img, .case-study-row .text-block picture {
  margin-top: var(--grid-gap);
  border-radius: var(--border-radius);
}
.case-study-row blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-accent, #f5c518);
  background: var(--color-surface, #f9f9f9);
  color: var(--color-text, #333);
  font-style: italic;
  line-height: 1.6;
  border-radius: 4px;
}
.case-study-row blockquote p {margin: 0}
[data-theme="dark"] .case-study-row blockquote {
  background: var(--color-surface-dark, #1e1e1e);
  color: var(--color-text-dark, #eee);
  border-left-color: var(--color-accent, #f5c518);
}

.case-study-row blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  color: var(--color-muted, #666);
}

[data-theme="dark"] .case-study-row blockquote cite {
  color: var(--color-muted-dark, #aaa);
}
.image-onlyimg {
  border-radius: var(--border-radius);
  width: 100%;
}
.archive-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}
.bento-item {
  background: var(--color-card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.bento-item img, .bento-item picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
  border-radius: inherit;
}
.bento-item:hover img {
  transform: scale(1.05);
}
.bento-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--padding-inside);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.bento-overlay h3 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.2;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}
.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 10px;
}
.bento-tags span {
  background: rgba(255, 255, 255, 0.25);
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.bento-item.category-title {
  display: grid;
  align-items: center;
  align-content: center;
  padding: var(--padding-inside);
}
.archive-bento-grid .bento-item:nth-child(13n + 1),
.archive-bento-grid .bento-item:nth-child(13n + 2),
.archive-bento-grid .bento-item:nth-child(13n + 4),
.archive-bento-grid .bento-item:nth-child(13n + 7),
.archive-bento-grid .bento-item:nth-child(13n + 13) {
  grid-column: span 2;
  grid-row: span 2;
}
.archive-bento-grid .bento-item:nth-child(13n + 3),
.archive-bento-grid .bento-item:nth-child(13n + 8),
.archive-bento-grid .bento-item:nth-child(13n + 9),
.archive-bento-grid .bento-item:nth-child(13n + 12) {
  grid-column: span 1;
  grid-row: span 2;
}
.archive-bento-grid .bento-item:nth-child(13n + 5),
.archive-bento-grid .bento-item:nth-child(13n + 6),
.archive-bento-grid .bento-item:nth-child(13n + 10),
.archive-bento-grid .bento-item:nth-child(13n + 11) {
  grid-column: span 1;
  grid-row: span 1;
  aspect-ratio: 1 / 1;
}
.section-subtitle p {
  margin-top: 1rem;
}
.contact-bento-grid {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: repeat(2, 1fr);
}
.contact-direct-box .bento-box {
  background-color: var(--color-bg);
}
.contact-direct-box .social-box svg {
  width: auto;
  height: auto;
}
.contact-direct-box .socials-grid-container {
  margin-top: 2.5rem;
}
.contact-bento-grid .bento-box {
  padding: var(--padding-inside);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body.page-id-922 .cta-section {
  display: none;
}
.contact-title-box h2 {
  margin-top: 1.5rem;
}
.contact-title-box h4 {
  font-size: clamp(2rem, 6vw, 2.5rem);
  margin-top: 1.5rem;
}
.contact-title-box p {
  font-size: var(--font-size-p);
  opacity: 0.8;
}
.contact-form label {
  font-weight: 500;
  margin-top: 1rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.3rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-text-dim);
  background-color: var(--color-card-bg);
  color: var(--color-text);
  font-size: 1rem;
}
.contact-form button {
  margin-top: 1.5rem;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: var(--border-radius);
  transition: background 0.3s ease;
}
.contact-form button:hover {
  background: var(--color-text);
  color: var(--color-bg);
}
.contact-direct-box h3 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 6vw, 2.5rem);
}
.contact-direct-box h4 {
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 6vw, 2rem);
}
.contact-direct-box .nav-email {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.contact-direct-box .nav-socials a {
  display: block;
  opacity: 0.8;
  margin-bottom: 0.5rem;
  transition: opacity 0.3s;
}
.contact-direct-box .nav-socials a:hover {
  opacity: 1;
}
.fun-fact-box h5 {
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-style: italic;
  text-align: center;
}
.locktion-text {
  font-size: 11px;
}
.digital-clock-area {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  padding: var(--padding-inside);
  align-content: flex-end;
  color: var(--color-text-dim-light);
}
.digital-clock-widget {
  display: flex;
  font-size: clamp(1.7rem, calc(2vw + 2.9vh), 6rem);
  font-weight: 700;
  opacity: 0.5;
  line-height: 1;
}
#clock-ampm {
  font-size: 1.25rem;
  font-weight: 500;
  margin-left: 12px;
  color: #008080;
}
.clock-separator {
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}
.comparison-table th,
.comparison-table td {
  border: 1px solid #ccc;
  padding: 1rem;
  text-align: center;
}
.comparison-table th {
  font-weight: bold;
}
.survey-container {
  width: 100%;
}
.survey-container h3 {
  margin: 0;
}
.survey-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.project-details-content ul li.survey-item {
  margin: 0;
}
.project-details-content ul li.survey-item:before {
  display: none;
}
.survey-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--text-white-section);
}
.survey-item:last-child {
  border-bottom: none;
}
li.survey-item p {
  margin: 0;
}
.question-text {
  flex: 2.5;
  font-weight: 500;
  padding-right: 20px;
}
.result-area {
  flex: 3;
  display: flex;
  align-items: center;
  gap: 15px;
}
.bar-background {
  flex-grow: 1;
  background-color: var(--text-yellow-section);
  border-radius: 5px;
  height: 24px;
}
.bar {
  height: 100%;
  border-radius: 5px;
  width: 0;
  transition: width 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.result-text {
  font-weight: 600;
  min-width: 80px;
  text-align: left;
}
.low-value {
  background-color: #a4d8de;
}
.medium-value {
  background-color: #5ea9b6;
}
.high-value {
  background-color: #2e8b9a;
}
.compare-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.compare-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.compare-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}
.compare-item h3 {
  margin: 0;
  padding: 1rem 0.5rem;
  font-size: 1.25rem;
  color: #1a525c;
  border-bottom: 1px solid #e0e0e0;
  text-align: center;
}
.image-wrapper {
  padding: 0.5rem;
  background-color: #f8f9fa;
}
.compare-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
form.bento-box.text-block.passwordforms {
  display: flex;
  padding: var(--padding-inside);
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  align-items: center;
  margin: 0 auto;
}
.passwordforms input,
.passwordforms button {
  font-size: 1.5rem padding 10px;
  width: 100%;
  text-align: center;
  padding: 10px 20px;
  border-radius: var(--border-radius);
}
.nav-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap, 1.5rem);
  margin-top: 2rem;
}
.nav-row .bento-box {
  display: flex;
  text-align: center;
}
.nav-row .bento-box a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
}
.chart-grid {
  display: grid;
  grid-template-columns: 50% 20% auto;
  gap: 30px;
  margin: 2rem 0;
}
.chart-grid p {
  padding: 0;
  margin: 0;
}
.chart-row {
  display: contents;
}
.percentage-bar-container {
  width: 100%;
  height: 25px;
  background-color: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
}
.percentage-bar {
  height: 100%;
  width: 0;
  background-color: #4caf50;
  border-radius: 5px;
  will-change: width;
}
.percentage-text {
  font-weight: bold;
  margin-left: 0.5rem;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .mobile-nav {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--grid-gap);
    align-items: center;
  }
  .nav-grid {
    grid-template-columns: repeat(2, 1fr);
    height: 100%;
  }
  .nav-grid li a {
    font-size: clamp(2rem, 4vw, 3.5rem);
  }
  .nav-contact-info {
    height: 100%;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .nav-email {
    font-size: 1.5rem;
  }
  .nav-socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
  }
  .nav-socials a {
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.3s;
  }
  .nav-socials a:hover {
    opacity: 1;
  }
  .hero-image-box {
    grid-row: 1 / 4;
    height: auto;
  }
  .about-text-left {
    min-height: auto;
  }
  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    height: 80vh;
  }
  .portfolio-item {
    width: auto;
    height: auto;
    aspect-ratio: auto;
  }
  .portfolio-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }
  .portfolio-item:nth-child(4) {
    grid-column: 3 / span 2;
  }
  .swiper-pagination {
    display: none;
  }
  .mobile-portfolio-wrapper {
    display: none;
  }
  .cta-grid {
    grid-template-columns: 1fr 348px;
  }
  .cta-box {
    aspect-ratio: auto;
  }
  .social-box.codepen {
    grid-column: 2 / 4;
  }
  .hero-container {
    grid-template-columns: 3.2fr 1fr;
    grid-template-rows: 1fr;
  }
  .hero-content {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: var(--grid-gap);
    height: 100%;
  }
  .about-grid {
    grid-template-columns: 1.6fr 1fr 0.8fr;
    display: grid;
    gap: var(--grid-gap);
  }
  .about-item:nth-of-type(3) {
    display: block;
  }
  .big-text-area {
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 15%;
    grid-column: span 2;
    font-size: clamp(1.4rem, 1.0625rem + 0.0313vw, 1.5rem);
    align-items: end;
  }
  .compare-container {
    margin-bottom: 3rem;
    flex-direction: row;
  }
  .compare-item {
    flex: 1;
  }
}

@media (max-width: 767px) {
  :root {
    --grid-gap: 1rem;
  }
  .content-box a {
    justify-content: center;
    align-items: center;
  }
  .content-text {
    align-items: center;
  }
  .content-label {
    letter-spacing: 0;
  }
  .feat-image {
    aspect-ratio: 1 / 0.6;
  }
  .case-study-row,
  .case-study-row.is-50-50 {
    grid-template-columns: 1fr !important;
  }
  .case-study-row .text-block .tags {
    flex-wrap: wrap;
  }
  .project-details ul li {
    grid-template-columns: 80px 1fr;
    column-gap: 0;
  }
  .hero-lower-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
  }
  .hero-image-box {
    grid-column: 1 / -1;
    height: 75vh;
  }
  .box-resume {
    grid-column: 1 / 2;
  }
  .box-portfolio {
    grid-column: 2 / 3;
  }
  .box-case-study {
    grid-column: 1 / -1;
    aspect-ratio: 2 / 1;
  }
  .cta-box {
    aspect-ratio: 1 / 1;
    flex-direction: column;
    text-align: center;
  }
  .key-point {
    aspect-ratio: 1 / 0.6;
  }
  .about-intro-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .about-text-left {
    order: 1;
  }
  .about-text-right {
    order: 2;
  }
  .scrolling-text-container {
    order: 3;
  }
  .testimonial-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .bento-box.scrolling-text-container {
    height: 50vh;
  }
  .bento-box.about-text-right {
    aspect-ratio: 1/1;
  }
  .testimonial-content footer {
    text-align: center;
  }
  .cta-box .cta-action {
    margin-top: 1.5rem;
    margin-left: 0;
  }
  .social-box.codepen {
    grid-column: span 2;
  }
  .overlay-text p {
    font-size: 1.2rem;
    margin: 0;
  }
  .hero-container {
    height: auto;
    grid-template-rows: 80vh auto;
  }
  .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-gap);
    min-height: 40vh;
  }
  .case-study-box {
    grid-column: 1 / -1;
  }
  .sign img {
    margin-top: auto;
  }
  .overlay-text {
    width: 100%;
  }
  .hero-overlay {
    padding: 1.5rem;
  }
  .about-item.text-block p {
    padding-right: 0;
  }
  .beyond {
    aspect-ratio: 1/1.5;
  }
  .contact-bento-grid {
    grid-template-columns: 1fr;
  }
  .survey-container {
    padding: 15px;
  }
  .survey-item,
  .result-area {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
  }
  .question-text {
    margin-bottom: 5px;
    padding-right: 0;
    font-size: 0.88rem;
  }
  .bar-background {
    width: 100%;
  }
  .result-text {
    min-width: auto;
    background-color: var(--font-main);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
  }
  .chart-title {
    font-size: 1.8em;
  }
  .percentage-bar-container {
    height: 20px;
  }
  .archive-bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-item {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .comparison-table thead {
    display: none;
  }
  .comparison-table,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table td {
    display: block;
    width: 100%;
  }
  .comparison-table tr {
    margin-bottom: 1.5rem;
    border: 1px solid #ddd;
    padding: 1rem;
    background-color: #fafafa;
  }
  .comparison-table td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
  }
  .comparison-table td {
    text-align: left;
  }
  .nav-row {
    grid-template-columns: 1fr;
  }
  .nav-row .back-box {
    grid-column: auto;
  }
  .chart-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .chart-row .question {
    padding-right: 0;
  }
  .percentage-text {
    padding-left: 0;
    margin-bottom: 15px;
    text-align: center;
  }
  .chart-row:last-of-type .percentage-text {
    margin-bottom: 0;
  }
}