
/* ==============================
   IMRAN — SHOPIFY PORTFOLIO
   MAIN STYLESHEET
================================= */

:root {
  --bg: #f5f5f2;
  --surface: #ffffff;
  --text: #151515;
  --muted: #777773;
  --line: #d9d9d3;
  --accent: #c7f15b;
  --dark: #171717;
  --page-padding: clamp(22px, 5vw, 90px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

::selection {
  background: var(--accent);
  color: var(--dark);
}

/* NAVIGATION */

.site-header {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  padding: 20px var(--page-padding);
  border-bottom: 1px solid var(--line);
}

.logo,
.footer-logo {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1.7px;
}

.logo span {
  font-size: 13px;
  vertical-align: top;
  margin-left: 3px;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 38px;
}

.navigation a {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.25s ease;
}

.navigation a:hover {
  opacity: 0.5;
}

.navigation a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 1px;
  background: currentColor;
}

.menu-toggle {
  display: none;
}

/* HERO */

.hero {
  padding: 65px var(--page-padding) 100px;
  min-height: 780px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.hero-name {
  margin: 25px 0 15px;
  font-size: clamp(140px, 24vw, 440px);
  line-height: 0.8;
  font-weight: 900;
  letter-spacing: -0.095em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.hero-heading {
  display: flex;
  flex-direction: column;
  font-size: clamp(65px, 10vw, 160px);
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 0.82;
}

.hero-dot,
.accent {
  color: #83aa18;
}

.hero-description {
  max-width: 310px;
  padding-bottom: 12px;
}

.hero-description p {
  margin: 0 0 34px;
  font-size: 16px;
  line-height: 1.7;
  color: #565651;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: gap 0.25s ease;
}

.text-link:hover {
  gap: 28px;
}

/* COMMON SECTIONS */

.section-padding {
  padding: 110px var(--page-padding);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 65px;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.section-heading h2 {
  margin: 15px 0 0;
  font-size: clamp(50px, 7vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.075em;
  font-weight: 800;
}

/* PROJECTS */

.projects-section {
  background: var(--surface);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 60px;
}

.project-card {
  display: block;
  min-width: 0;
}

.project-image {
  position: relative;
  overflow: hidden;
  background: #e9e9e5;
  aspect-ratio: 1.35;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.75,.3,1);
}

.project-card:hover .project-image img {
  transform: scale(1.055);
}

.project-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 22px;
  transition: transform 0.3s ease,
              background 0.3s ease;
}

.project-card:hover .project-arrow {
  transform: rotate(45deg);
  background: var(--accent);
}

.project-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-top: 19px;
}

.project-info h3 {
  font-size: clamp(24px, 2.7vw, 36px);
  letter-spacing: -1.5px;
  margin: 0 0 7px;
}

.project-info p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.project-number {
  font-size: 12px;
  color: var(--muted);
}

.project-status {
  display: inline-block;
  margin-top: 13px;
  padding: 7px 10px;
  background: #f0f0e9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.all-projects-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 80px;
  padding: 23px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  transition: padding 0.25s ease;
}

.all-projects-link:hover {
  padding-left: 15px;
  padding-right: 15px;
}

/* ABOUT */

.about-section {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 35px;
  padding: 43px 0;
  border-bottom: 1px solid var(--line);
}

.about-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}

.about-content {
  max-width: 800px;
}

.about-content p {
  margin: 0;
  font-size: clamp(17px, 2vw, 26px);
  line-height: 1.6;
  letter-spacing: -0.5px;
}

.about-content .large-paragraph {
  font-size: clamp(24px, 3.1vw, 46px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -1.5px;
}

.expertise-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.expertise-list div {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
}

/* EXPERIENCE */

.experience-section {
  background: #eaeae5;
}

.experience-list {
  border-top: 1px solid #bcbcb7;
  margin-bottom: 42px;
}

.experience-item {
  display: grid;
  grid-template-columns: 65px 1fr 240px;
  align-items: center;
  gap: 20px;
  padding: 34px 0;
  border-bottom: 1px solid #bcbcb7;
  transition: padding 0.3s ease;
}

.experience-item:hover {
  padding-left: 12px;
}

.experience-item > span {
  font-size: 11px;
  color: #777773;
  letter-spacing: 0.6px;
}

.experience-item h3 {
  font-size: clamp(22px, 3.5vw, 52px);
  line-height: 1;
  letter-spacing: -0.055em;
  margin: 0;
}

.experience-item > span:last-child {
  text-align: right;
}

/* CONTACT SECTION */

.contact-section {
  background: var(--dark);
  color: white;
  padding-top: 105px;
  padding-bottom: 65px;
}

.contact-section .eyebrow {
  color: #a7a7a7;
}

.contact-heading {
  display: block;
  width: fit-content;
  margin: 60px 0 100px;
  font-size: clamp(70px, 12vw, 190px);
  line-height: 0.89;
  letter-spacing: -0.085em;
  font-weight: 900;
  transition: transform 0.25s ease;
}

.contact-heading:hover {
  transform: translateX(10px);
}

.contact-heading .accent {
  color: var(--accent);
}

.contact-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 25px;
  border-top: 1px solid #424242;
  font-size: 11px;
  letter-spacing: 1px;
}

.contact-bottom a {
  font-weight: 800;
}

/* FOOTER */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--dark);
  color: #a6a6a6;
  padding: 32px var(--page-padding);
  border-top: 1px solid #424242;
}

.footer-logo {
  color: white;
  font-size: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.footer-links a {
  font-size: 12px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.site-footer > span {
  font-size: 10px;
  letter-spacing: 0.4px;
}

/* ACCESSIBILITY */

a:focus-visible,
button:focus-visible {
  outline: 3px solid #81a800;
  outline-offset: 5px;
}

/* TABLET */

@media (max-width: 1024px) {
  .hero {
    min-height: 700px;
  }

  .hero-name {
    font-size: 23vw;
  }

  .hero-bottom {
    align-items: flex-start;
  }

  .hero-heading {
    font-size: 10vw;
  }

  .experience-item {
    grid-template-columns: 40px 1fr 160px;
  }
}

/* MOBILE */

@media (max-width: 767px) {
  :root {
    --page-padding: 22px;
  }

  .site-header {
    min-height: 74px;
  }

  .logo {
    font-size: 23px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 102;
  }

  .menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text);
    transition: transform 0.25s ease;
  }

  .menu-toggle.is-open span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle.is-open span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 20px var(--page-padding) 35px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(0,0,0,0.05);
  }

  .navigation.is-open {
    display: flex;
  }

  .navigation a {
    padding: 15px 0;
    font-size: 22px;
    font-weight: 700;
  }

  .navigation a.active::after {
    bottom: 9px;
  }

  .hero {
    min-height: 620px;
    padding-top: 35px;
    padding-bottom: 75px;
  }

  .hero-top {
    flex-direction: column;
    gap: 9px;
    font-size: 9px;
  }

  .hero-name {
    font-size: 25vw;
    letter-spacing: -0.09em;
    margin: 45px 0;
  }

  .hero-bottom {
    flex-direction: column;
    gap: 45px;
  }

  .hero-heading {
    font-size: clamp(70px, 14vw, 110px);
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-description p {
    font-size: 15px;
    margin-bottom: 22px;
  }

  .section-padding {
    padding: 75px var(--page-padding);
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 40px;
  }

  .section-heading h2 {
    font-size: clamp(48px, 12vw, 76px);
  }

  .projects-grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .project-info h3 {
    font-size: 26px;
  }

  .all-projects-link {
    margin-top: 50px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 30px 0;
  }

  .about-content .large-paragraph {
    font-size: 27px;
  }

  .about-content p {
    font-size: 17px;
  }

  .expertise-list {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .experience-item {
    grid-template-columns: 30px 1fr;
    gap: 12px;
    padding: 27px 0;
  }

  .experience-item h3 {
    font-size: 27px;
  }

  .experience-item > span:last-child {
    grid-column: 2;
    text-align: left;
  }

  .contact-heading {
    font-size: clamp(55px, 13vw, 95px);
    margin: 60px 0 85px;
  }

  .contact-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* REFERENCE DESIGN — DARK MINIMAL HOMEPAGE */

.site-header {
  background: #111111;
  color: #ffffff;
  border-bottom: none;
  min-height: 62px;
}

.site-header .logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.site-header .navigation {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  gap: 25px;
}

.site-header .navigation a {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}

.site-header .navigation a.active::after {
  display: none;
}

.hero {
  background: #111111;
  color: #ffffff;
  min-height: calc(100vh - 62px);
  padding: 0 24px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.hero-top,
.hero-description {
  display: none;
}

.hero-name {
  margin: 0;
  color: #ffffff;
  font-size: clamp(80px, 10vw, 180px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.06em;
  white-space: normal;
}

.hero-bottom {
  display: block;
}

.hero-heading {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 5px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.hero-heading > span:first-child {
  color: #9bcb37;
}

.hero-heading > span:last-child {
  color: #ffffff;
}

.hero-dot {
  display: none;
}

@media (max-width: 767px) {
  .site-header .navigation {
    position: absolute;
    left: 0;
    transform: none;
    background: #111111;
    color: #ffffff;
  }

  .site-header .menu-toggle span {
    background: #ffffff;
  }

  .hero {
    min-height: calc(100svh - 74px);
    padding: 0 20px 60px;
  }

  .hero-name {
    font-size: clamp(65px, 17vw, 120px);
  }

  .hero-heading {
    font-size: 14px;
  }
}

/* ========================================
   RECENT PROJECTS — REFERENCE STYLE
======================================== */

.projects-section {
  background: #111111;
  color: #ffffff;
  padding: 75px 40px 100px;
}

.projects-section .section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.projects-section .eyebrow {
  display: none;
}

.projects-section .section-heading h2 {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  color: #ffffff;
}

.projects-section .section-heading h2 .accent {
  display: none;
}

.projects-section .section-heading .text-link {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  border-bottom: 1px solid #ffffff;
  padding-bottom: 4px;
  gap: 0;
  white-space: nowrap;
}

.projects-section .section-heading .text-link span {
  display: none;
}

/* Three equal columns */

.projects-section .projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 55px 20px;
}

/* White project image panels */

.projects-section .project-image {
  position: relative;
  aspect-ratio: 1.93 / 1;
  overflow: hidden;
  background: #f7f7f7;
  border-radius: 0;
}

.projects-section .project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.projects-section .project-card:hover img {
  transform: scale(1.03);
}

/* Remove circular arrow */

.projects-section .project-arrow {
  display: none;
}

/* Project names and descriptions */

.projects-section .project-info {
  display: block;
  padding-top: 17px;
}

.projects-section .project-info h3 {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.projects-section .project-info p {
  margin: 0;
  color: #a4a4a4;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.projects-section .project-number {
  display: none;
}

.projects-section .project-status {
  color: #a4a4a4;
  background: transparent;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
}

.projects-section .all-projects-link {
  display: none;
}

/* Tablet */

@media (max-width: 1024px) {
  .projects-section {
    padding: 65px 25px 85px;
  }

  .projects-section .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */

@media (max-width: 767px) {
  .projects-section {
    padding: 60px 20px 75px;
  }

  .projects-section .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .projects-section .section-heading h2 {
    font-size: 34px;
  }

  .projects-section .projects-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .projects-section .project-info h3 {
    font-size: 16px;
  }

  .projects-section .project-info p {
    font-size: 15px;
  }
}

/* =====================================
   REFERENCE HERO — SPACING & SCROLL
===================================== */

/* Blur and move hero text during scroll */
@keyframes portfolioHeroBlur {
  0% {
    filter: blur(0px);
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    filter: blur(13px);
    opacity: 0.65;
    transform: translateY(-55px);
  }
}

/* Scroll-linked animation for Chrome */
@supports (animation-timeline: scroll()) {
  .hero-name,
  .hero-heading {
    animation-name: portfolioHeroBlur;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: scroll(root block);
    animation-range: 0px 480px;
    will-change: filter, opacity, transform;
  }
}

/* MOBILE — COMPACT HERO */
@media (max-width: 767px) {

  .hero {
    height: 72svh;
    min-height: 520px;
    max-height: 700px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .hero-name {
    max-width: 310px;
    margin: 0;
    font-size: clamp(58px, 15vw, 76px);
    line-height: 0.97;
    letter-spacing: -0.055em;
    text-align: center;
    white-space: normal;
    overflow-wrap: normal;
  }

  .hero-bottom {
    margin: 0;
    padding: 0;
  }

  .hero-heading {
    font-size: 15px;
    line-height: 1.2;
    margin-top: 5px;
  }

  /* Bring Recent Projects closer */
  .projects-section {
    padding-top: 40px;
  }

  .projects-section .section-heading {
    margin-bottom: 20px;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-name,
  .hero-heading {
    animation: none !important;
    filter: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* MOBILE DESIGN REFINEMENT */

@media (max-width: 767px) {

  /* Navigation matches reference */
  .site-header {
    padding: 18px 20px;
  }

  .site-header .logo {
    font-size: 15px;
    letter-spacing: -0.4px;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 54px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .menu-toggle span {
    display: none;
  }

  .menu-toggle::after {
    content: "MENU";
    color: #fff;
    font-size: 16px;
    font-weight: 500;
  }

  .menu-toggle.is-open::after {
    content: "CLOSE";
  }

  /* Stack IMRAN ALI over two lines */
  .hero-name {
    width: 245px;
    max-width: 80vw;
    margin: 0 auto;
    font-size: clamp(58px, 16vw, 72px);
    font-weight: 600;
    line-height: 0.99;
    letter-spacing: -0.055em;
    white-space: normal;
    text-align: center;
    text-wrap: balance;
  }

  .hero-heading {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.025em;
  }

  /* Clean up Recent Projects */
  .projects-section {
    padding: 35px 20px 75px;
  }

  .projects-section .section-heading {
    margin-bottom: 22px;
  }

  .projects-section .section-heading .text-link {
    display: none;
  }

  .projects-section .section-heading h2 {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.05em;
  }
}

/* FULL-SCREEN MOBILE NAVIGATION */

@media (max-width: 767px) {

  .site-header .navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 90px 22px 35px;
    background: #111111;
    border: none;
    z-index: 101;
    overflow-y: auto;
  }

  .site-header .navigation.is-open {
    display: flex;
  }

  .site-header .logo {
    position: relative;
    z-index: 103;
  }

  .site-header .menu-toggle {
    position: relative;
    z-index: 104;
  }

  .site-header .navigation a {
    padding: 20px 0;
    font-size: 16px;
    color: #ffffff;
  }
}
