/* =========================================================
   Sheikh Aftab Ahmed — personal site
   ========================================================= */

:root {
  --red: #CBCED3;        /* main brand background (was red) */
  --red-dark: #b9bdc4;
  --accent: #3d3d3d;     /* accents on white */
  --dark: #3d3d3d;
  --ink: #4a4a4f;
  --text: #555;
  --muted: #999;
  --light: #f7f7f7;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M12 8v8M8 12h8' stroke='%23d6d6d6' stroke-width='1.2'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

a { text-decoration: none; }

button { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }

img { max-width: 100%; }

/* 80% content container */
.container-80 {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}
.navbar > .container-80 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 2rem;
}
.section-title.light { color: var(--ink); }

/* ---------- vertical side labels ---------- */
.side-label {
  position: absolute;
  left: 42px;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 3;
}
.side-label .line { width: 1px; height: 50px; background: var(--accent); }
.side-label .text {
  writing-mode: vertical-rl;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink);
}
.side-label-right { left: auto; right: 42px; }
.side-label-light .line { background: var(--accent); }
.side-label-light .text { color: var(--ink); }

/* ---------- plus patterns ---------- */
.plus-grid {
  position: absolute;
  background-image: var(--plus);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* =========================================================
   NAV
   ========================================================= */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  padding: 1.6rem 0;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
.site-nav .navbar-brand { padding: 0; }
.site-nav .navbar-brand img {
  height: 58px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: height .35s ease;
}
.site-nav.scrolled .navbar-brand img { height: 44px; }
.site-nav .nav-link {
  color: var(--ink) !important;
  font-size: .82rem;
  font-weight: 700;
  margin-left: 2.2rem;
  padding: .35rem 0 !important;
  position: relative;
}
.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: -6px; right: -6px; bottom: -2px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .3s ease;
}
.site-nav .nav-link:hover::after,
.site-nav .nav-link.active::after { transform: scaleX(1); }

.site-nav.scrolled {
  background: rgba(40, 40, 40, .96);
  padding: .8rem 0;
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
}
.site-nav.scrolled .nav-link { color: #fff !important; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: clamp(620px, 50vw, 860px);
  background: var(--red);
  overflow: hidden;
  color: var(--ink);
}
.hero-dark {
  position: absolute;
  inset: 0 auto 0 0;
  width: 27.5%;
  background: var(--dark);
  z-index: 0;
}

.hero-side {
  position: absolute;
  left: 30px;
  top: 27%;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  z-index: 4;
  font-size: .72rem;
  font-weight: 800;
  color: #fff;
}
.counter-vertical,
.prevnext-vertical {
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 10px;
}
.counter-vertical .line { width: 1px; height: 50px; background: #fff; display: block; }
.prevnext-vertical button:hover { color: var(--red); }

.hero-photo {
  position: absolute;
  left: 4%;
  bottom: 0;
  width: 50%;
  height: 94%;
  z-index: 2;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.25));
}

.hero-name {
  position: absolute;
  left: 4%;
  top: 19%;
  margin: 0;
  font-size: clamp(3rem, 7.6vw, 8.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
  color: rgba(255, 255, 255, .5);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: absolute;
  left: 57%;
  top: 53%;
  width: 33%;
  max-width: 480px;
  z-index: 3;
}
.hero-slides { position: relative; min-height: 190px; }
.hero-slide {
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.hero-slide.is-active {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.hero-slide h2 {
  font-size: clamp(1.2rem, 1.65vw, 1.7rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.35;
  margin-bottom: 1.3rem;
}
.hero-slide p {
  font-size: .85rem;
  line-height: 1.65;
  margin-bottom: 1.6rem;
}
.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 800;
}
.learn-more .line { width: 20px; height: 1px; background: var(--ink); transition: width .3s ease; }
.learn-more:hover { color: var(--ink); }
.learn-more:hover .line { width: 44px; }

.hero-mobile-controls { margin-top: 1.2rem; font-size: .8rem; font-weight: 800; }

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  position: relative;
  padding: 90px 0 40px;
}
.about .side-label { top: 110px; }

.about-text { position: relative; z-index: 2; }
.about-text p {
  font-size: .9rem;
  line-height: 1.75;
  max-width: 330px;
  margin-bottom: 1.4rem;
}

.about-visual { position: relative; min-height: 680px; }

.photo-card {
  position: absolute;
  top: -120px;
  left: 43%;
  width: 360px;
  height: 640px;
  background: #fff;
  box-shadow: 0 25px 60px rgba(0,0,0,.12);
  z-index: 2;
  overflow: hidden;
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 30%;
  transition: transform 1.2s ease;
}
.photo-card:hover img { transform: scale(1.04); }

.follow-box {
  position: absolute;
  top: -120px;
  left: calc(43% - 270px);
  width: 270px;
  z-index: 3;
}
.follow-bar {
  background: #111;
  white-space: nowrap;
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.follow-icons {
  margin-left: auto;
  width: 44px;
  background: var(--red);
  display: flex;
  flex-direction: column;
}
.follow-icons a {
  color: var(--ink);
  height: 44px;
  display: grid;
  place-items: center;
  transition: background .25s;
}
.follow-icons a:hover { background: var(--red-dark); }

.signature {
  position: absolute;
  top: 540px;               /* just below the photo card */
  left: calc(43% - 10px);
  width: 380px;
  height: auto;
  max-width: none;
  opacity: .9;
  transform: rotate(-6deg);
  z-index: 3;
  pointer-events: none;
}

.plus-grid-card-right { top: -40px; left: calc(43% + 380px); width: 72px; height: 520px; }
.plus-grid-card-bottom { top: 545px; left: calc(43% - 216px); width: 192px; height: 72px; }

/* =========================================================
   APPROACH
   ========================================================= */
.approach {
  position: relative;
  padding-top: 60px;
  overflow: hidden;
}
.approach .side-label { top: 230px; }
.plus-grid-left { top: 60px; left: 0; width: 120px; height: 312px; }
.plus-grid-right { top: 60px; right: 20px; width: 96px; height: 144px; }

.approach-photo {
  position: relative;
  height: 820px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%),
                      linear-gradient(to bottom, transparent 0, #000 10%);
          mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%),
                      linear-gradient(to bottom, transparent 0, #000 10%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
.approach-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

.approach-text { position: relative; z-index: 2; padding-bottom: 60px; }

.big-quote {
  position: relative;
  font-size: clamp(2rem, 2.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.55;
  text-transform: uppercase;
  color: var(--ink);
  padding-left: 44px;
  margin: 0 0 5rem;
}
.big-quote .quote-mark {
  position: absolute;
  left: 0;
  top: -.35em;
  font-size: 1.6em;
  line-height: 1;
  color: var(--ink);
}

.approach-body { max-width: 350px; margin-left: 20%; }
.approach-body p { font-size: .9rem; line-height: 1.75; }

/* =========================================================
   EXPERTISE (red slider)
   ========================================================= */
.expertise {
  position: relative;
  background: var(--red);
  color: var(--ink);
  padding: 50px 0;
}
.expertise .side-label { top: 120px; }

.expertise-inner {
  display: flex;
  align-items: stretch;
  gap: 5%;
}
.expertise-text {
  flex: 0 0 28%;
  margin-left: 10.5%;
  padding: 40px 0 20px;
  display: flex;
  flex-direction: column;
}
.exp-slides { position: relative; flex: 1; min-height: 280px; }
.exp-slide {
  position: absolute;
  inset: 0 0 auto 0;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.exp-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.exp-head { display: flex; align-items: center; gap: 20px; margin-bottom: 1.6rem; }
.exp-head i { font-size: 3rem; line-height: 1; flex-shrink: 0; }
.exp-head h4 { font-size: clamp(1.6rem, 2.2vw, 2.2rem); font-weight: 800; line-height: 1.2; margin: 0; }
.exp-slide p { font-size: .85rem; line-height: 1.7; max-width: 300px; }

.exp-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  font-weight: 800;
  max-width: 300px;
  margin-top: 2rem;
}
.counter-horizontal { display: flex; align-items: center; gap: 14px; }
.counter-horizontal .line { width: 56px; height: 1px; background: var(--ink); }
.prevnext { display: flex; gap: 6px; }
.prevnext button:hover,
.hero-mobile-controls button:hover { text-decoration: underline; }

.expertise-media {
  position: relative;
  flex: 1;
  min-height: 500px;
  overflow: hidden;
}
.expertise-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  transition: transform 6s ease;
}
.expertise-media.zoom img { transform: scale(1.06); }

.play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 1.6rem;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 12px rgba(0,0,0,.35);
  transition: box-shadow .3s ease, transform .3s ease;
}
.play-btn:hover { box-shadow: 0 0 0 18px rgba(0,0,0,.3); transform: translate(-50%, -50%) scale(1.05); }
.play-btn.playing { animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 12px rgba(0,0,0,.35); }
  50%      { box-shadow: 0 0 0 22px rgba(0,0,0,.12); }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { font-size: .8rem; }
.footer-top { padding: 40px 60px; }
.footer-top .question { color: #666; }
.footer-top .question strong { color: #333; }
.footer-top .question a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.footer-top .question a:hover { text-decoration: underline; }
.footer-nav {
  display: flex;
  gap: 4.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav a { color: #222; font-weight: 700; }
.footer-nav a:hover { color: #888; }

.footer-bottom { background: var(--light); padding: 34px 60px; }
.footer-bottom p { color: #888; font-size: .72rem; }
.footer-logo img { height: 42px; width: auto; }
.footer-social { display: flex; gap: 22px; }
.footer-social a { color: #222; font-size: 1.05rem; }
.footer-social a:hover { color: #888; }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-slide, .exp-slide { transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1399.98px) {
  .photo-card { width: 320px; height: 580px; }
  .plus-grid-card-right { left: calc(43% + 340px); }
  .plus-grid-card-bottom { top: 485px; }
  .signature { top: 480px; width: 340px; }
  .about-visual { min-height: 600px; }
}

@media (max-width: 1199.98px) {
  .photo-card { left: 38%; width: 290px; height: 520px; }
  .follow-box { left: calc(38% - 270px); width: 270px; }
  .plus-grid-card-right { left: calc(38% + 305px); }
  .plus-grid-card-bottom { top: 425px; left: calc(38% - 216px); width: 192px; }
  .signature { top: 420px; left: calc(38% - 10px); width: 310px; }
  .about-visual { min-height: 540px; }
  .approach-photo { height: 700px; }
  .approach-body { margin-left: 10%; }
}

@media (max-width: 991.98px) {
  .site-nav { background: rgba(40,40,40,.96); padding: .8rem 0; }
  .container-80 { width: 100%; padding-left: 16px; padding-right: 16px; }
  .site-nav .navbar-brand { margin-right: auto; }
  .site-nav .navbar-toggler { margin-left: auto; }
  .site-nav .nav-link { margin-left: 0; display: inline-block; color: #fff !important; }
  .site-nav .navbar-collapse { padding-top: .8rem; }

  .hero { height: auto; padding-top: 80px; }
  .hero-dark { display: none; }
  .hero { background: var(--dark); }
  .hero-photo {
    position: relative;
    left: 0;
    width: 100%;
    height: 440px;
    margin-top: 70px;
  }
  .hero-name {
    left: 16px;
    right: 16px;
    top: 90px;
    font-size: 12vw;
    white-space: normal;
    text-align: center;
  }
  .hero-content {
    position: relative;
    left: 0; top: 0;
    width: auto;
    max-width: none;
    background: var(--red);
    padding: 40px 16px 60px;
  }

  .about { padding: 60px 0 40px; }
  .about-text p { max-width: none; }
  .about-visual { min-height: 0; padding-top: 30px; display: flex; flex-direction: column; align-items: center; }
  .photo-card { position: relative; top: 0; left: 0; width: min(100%, 380px); height: 520px; }
  .follow-box { position: relative; top: 0; left: 0; width: min(100%, 380px); display: flex; }
  .follow-bar { flex: 1; }
  .follow-icons { flex-direction: row; width: auto; }
  .follow-icons a { width: 44px; }
  .signature { position: relative; top: 0; left: 0; width: min(90%, 340px); margin: 18px 0 0; order: 3; }
  .follow-box { order: 1; }
  .photo-card { order: 2; }
  .plus-grid-card-right, .plus-grid-card-bottom { display: none; }

  .approach { padding-top: 30px; }
  .approach-photo-col { order: 2; }
  .approach-photo { height: 560px; }
  .approach-text { padding: 20px 16px 30px; }
  .big-quote { margin-bottom: 2.5rem; }
  .approach-body { margin-left: 0; max-width: none; }

  .expertise { padding: 0; }
  .expertise-inner { flex-direction: column; gap: 0; }
  .expertise-text { margin: 0; padding: 50px 16px 40px; }
  .exp-slide p, .exp-controls { max-width: none; }
  .expertise-media { min-height: 360px; }

  .footer-top, .footer-bottom { padding-left: 16px; padding-right: 16px; }
  .footer-top { text-align: center; }
  .footer-nav { gap: 1.6rem; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 575.98px) {
  .hero-photo { height: 380px; }
  .photo-card { height: 440px; }
  .approach-photo { height: 460px; }
  .exp-slides { min-height: 280px; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  position: relative;
  padding: 0 0 110px;
}
.contact .side-label { top: 150px; }

.contact-form-col { padding: 110px 60px 0 0; }
.contact-lead {
  font-size: .9rem;
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 2.6rem;
}

.contact-form .form-label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: .2rem;
}
.contact-form .form-control,
.contact-form .form-select {
  border: 0;
  border-bottom: 1px solid #cfcfcf;
  border-radius: 0;
  padding: .55rem 0;
  font-size: .9rem;
  color: var(--ink);
  background-color: transparent;
  box-shadow: none;
  transition: border-color .3s ease;
}
.contact-form .form-select { background-position: right 0 center; padding-right: 1.5rem; }
.contact-form .form-control:focus,
.contact-form .form-select:focus { border-bottom-color: var(--dark); box-shadow: none; }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form .was-validated .form-control:invalid,
.contact-form .form-control.is-invalid { background-image: none; }
.contact-form .invalid-feedback { font-size: .72rem; }

.btn-send {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: #111;
  color: #fff;
  padding: 16px 28px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background .3s ease;
}
.btn-send .line { width: 22px; height: 1px; background: #fff; transition: width .3s ease; }
.btn-send:hover { background: var(--dark); }
.btn-send:hover .line { width: 40px; }
.btn-send:disabled { opacity: .6; cursor: wait; }
.form-status { font-size: .82rem; font-weight: 700; color: var(--ink); }

.contact-panel-col { position: relative; padding-top: 110px; }
.contact-panel {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  max-width: 500px;
  background: var(--dark);
  color: #fff;
  padding: 60px 54px 56px;
  box-shadow: 0 25px 60px rgba(0,0,0,.18);
  overflow: hidden;
}
.contact-logo {
  width: 60px;
  filter: brightness(0) invert(1);
  margin-bottom: 2rem;
}
.contact-quote {
  position: relative;
  font-size: clamp(1.45rem, 1.9vw, 1.9rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.35;
  padding-left: 34px;
  margin-bottom:  2.6rem;
}
.contact-quote .quote-mark {
  position: absolute;
  left: 0;
  top: -.15em;
  font-size: 1.8em;
  line-height: 1;
  color: var(--red);
}
.contact-social { display: flex; gap: 10px; }
.contact-social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--ink);
  transition: background .25s ease;
}
.contact-social a:hover { background: #fff; }
.contact-signature {
  position: absolute;
  right: -20px;
  bottom: 24px;
  width: 270px;
  max-width: none;
  filter: brightness(0) invert(1);
  opacity: .12;
  transform: rotate(-6deg);
  pointer-events: none;
}
.plus-grid-contact { right: -40px; bottom: -40px; width: 168px; height: 120px; z-index: 1; }

@media (max-width: 991.98px) {
  .contact { padding: 0 0 60px; }
  .contact-form-col { padding: 60px 0 50px; }
  .contact-panel-col { padding-top: 0; }
  .contact-panel { margin: 0; max-width: none; padding: 44px 28px; }
  .plus-grid-contact { display: none; }
}
