:root {
  --bg: #f3f4f6;
  --ink: #111112;
  --muted: #747a84;
  --line: #565b62;
  --green: #16a04a;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
  min-height: 100dvh;
  border-top: 3px solid #2f343a;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
  background: #fff;
}

.site-header {
  display: grid;
  grid-template-columns: 230px 1fr;
  align-items: start;
  gap: 24px;
  padding: clamp(22px, 3vw, 33px) clamp(20px, 3vw, 39px) 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: "Bebas Neue", "Anton", Impact, sans-serif;
  font-size: clamp(27px, 2vw, 31px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3.4vw, 68px);
  padding-top: 18px;
}

.navbar a,
.contact-link {
  font-size: clamp(14px, 1.25vw, 23px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: clamp(2px, 0.27vw, 5px);
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- ROLLING TEXT ANIMATION CSS --- */
.rolling-text {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  height: 1.25em;
  line-height: 1.2;
}

.rolling-text span {
  position: relative;
  display: inline-block;
  line-height: 1.2;
  white-space: pre;
  transition: transform 0.38s cubic-bezier(0.76, 0, 0.24, 1);
}

.rolling-text span::after {
  content: attr(data-letter);
  position: absolute;
  left: 0;
  top: 100%;
}

.rolling-text:hover span,
.rolling-text:focus-visible span {
  transform: translateY(-100%);
}

.rolling-text:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}
/* ---------------------------------- */

.contact-link {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}

.hero {
  position: relative;
  min-height: calc(100vh - 92px);
  min-height: calc(100dvh - 92px);
  padding: clamp(42px, 6.4vw, 73px) clamp(20px, 3vw, 39px) 0;
}

.availability {
  margin-left: clamp(0px, 1.5vw, 20px);
  color: var(--muted);
  text-transform: uppercase;
}

.availability p {
  margin: 0;
  font-size: clamp(10px, 0.75vw, 13px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 5px;
}

.availability .work-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 19px;
  font-size: clamp(12px, 1vw, 17px);
}

.version-badge {
  position: absolute;
  right: 90px;
  top: 14%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.version-pills-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.version-pill {
  background: #fff;
  color: #111;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 900;
  padding: 10px 28px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0,0,0,0.05);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.version-pill:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0,0,0,0.08);
}

.version-pill:active {
  transform: translateY(2px) scale(0.92);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0,0,0,0.04);
}

.version-text {
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.work-status span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  flex: 0 0 auto;
}

.hero-title {
  position: absolute;
  left: clamp(20px, 4vw, 53px);
  right: clamp(20px, 3.6vw, 48px);
  bottom: clamp(24px, 4.8vw, 48px);
  display: block;
}

.hero-title h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: "Black Ops One", "Anton", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(54px, 12.3vw, 229px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  transform: scaleX(0.92);
  transform-origin: left bottom;
}

.hero-title h1 span {
  display: block;
  width: max-content;
  opacity: 0;
}

.hero-title h1 span:nth-child(1) {
  animation: cssTypewriter 1.2s steps(7, end) forwards;
  animation-delay: 0.2s;
}

.hero-title h1 span:nth-child(2) {
  animation: cssTypewriter 1.5s steps(9, end) forwards;
  animation-delay: 1.6s;
}

.hero-socials {
  position: absolute;
  right: clamp(84px, 10vw, 190px);
  bottom: clamp(30px, 5.8vw, 64px);
  display: flex;
  align-items: center;
  gap: clamp(10px, 1vw, 18px);
  z-index: 3;
}

.social-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(46px, 3.7vw, 64px);
  height: clamp(46px, 3.7vw, 64px);
  color: #111;
  opacity: 0;
  animation: logoPopSpin 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.social-link:nth-child(1) {
  animation-delay: 3.2s;
}

.social-link:nth-child(2) {
  animation-delay: 3.4s;
}

.social-link:nth-child(3) {
  animation-delay: 3.6s;
}

@keyframes cssTypewriter {
  0% {
    opacity: 1;
    clip-path: inset(0 100% 0 0);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes logoPopSpin {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-45deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

.social-link svg {
  position: relative;
  width: 66%;
  height: 66%;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.social-link:hover svg,
.social-link:focus-visible svg {
  transform: translateY(-3px);
}

.social-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 12px;
}

.anchor-section {
  min-height: 1px;
}

/* ---------- LOGO TICKER ---------- */

.logo-ticker-section {
  
  width:100%;
  display:flex;
  justify-content:center;
  transform: translateY(-10px);
  position: relative;
  top: -40px;
}

.ticker-container {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  

  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    transparent 15%,
    black 30%,
    black 70%,
    transparent 85%,
    transparent 100%
  );

  mask-image: linear-gradient(
    to right,
    transparent 0%,
    transparent 15%,
    black 30%,
    black 70%,
    transparent 85%,
    transparent 100%
  );
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: tickerMarquee 20s linear infinite;
}

@keyframes tickerMarquee {
  from {
    transform: translateX(0);
  }

  to {
    /* -50% shifts by half the width. We subtract 30px (half the 60px gap) to perfectly align item 11 with item 1's starting position. */
    transform: translateX(calc(-50% - 30px));
  }
}
.ticker-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5) translateY(20px);
}

.ticker-item svg {
  width: 48px;
  height: 48px;

  filter: grayscale(100%) brightness(0);
  transition: transform 0.3s ease;
}

.ticker-item.visible {
  animation: tickerPopIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes tickerPopIn {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.ticker-item:hover svg {
  transform: scale(1.15);
}



.skills-section {
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(56px, 7vw, 96px) clamp(20px, 6.3vw, 110px) clamp(60px, 7vw, 92px);
  background: #fff;
  color: #111923;
}

.skills-inner {
  width: 100%;
  max-width: 1536px;
  margin: 0 auto;
}

.skills-section h2 {
  margin: 0 0 clamp(72px, 8vw, 108px);
  font-family: "Anton", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(92px, 11.6vw, 192px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #050607;
}

.skills-list {
  border-top: 2px solid rgba(17, 17, 18, 0.18);
}

.skill-row {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: clamp(28px, 4.5vw, 76px);
  align-items: start;
  padding: 24px 0 26px;
  border-bottom: 2px solid rgba(17, 17, 18, 0.18);
}

.skill-heading {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 54px;
}

.skill-number {
  color: rgba(17, 17, 18, 0.08);
  font-size: clamp(48px, 4.5vw, 62px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
}

.skill-heading h3 {
  margin: 0;
  font-size: clamp(19px, 1.55vw, 24px);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 12px;
  padding-top: 0;
}
.skill-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0 20px;
  border: 1px solid rgba(17, 17, 18, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.74) inset;
  color: #111923;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: default;
  position: relative;
}

.skill-tags span:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-8px) scale(1.1) rotate(-3deg);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2), 0 5px 10px rgba(0,0,0,0.1);
  z-index: 10;
  cursor: crosshair;
}

/* --- SKILL ROW ENTRANCE ANIMATION --- */
.skill-row.skill-row-hidden .skill-number { opacity: 0; transform: translateY(-30px); }
.skill-row.skill-row-hidden .skill-heading h3 { opacity: 0; transform: translateX(-30px); }
.skill-row.skill-row-hidden .skill-tags span { opacity: 0; }

.skill-row.skill-row-reveal .skill-number {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-row.skill-row-reveal .skill-heading h3 {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s;
}

.skill-row.skill-row-reveal .skill-tags span {
  animation: skillTag3DPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Staggering delays for up to 12 skills per row */
.skill-row.skill-row-reveal .skill-tags span:nth-child(1) { animation-delay: 0.10s; }
.skill-row.skill-row-reveal .skill-tags span:nth-child(2) { animation-delay: 0.15s; }
.skill-row.skill-row-reveal .skill-tags span:nth-child(3) { animation-delay: 0.20s; }
.skill-row.skill-row-reveal .skill-tags span:nth-child(4) { animation-delay: 0.25s; }
.skill-row.skill-row-reveal .skill-tags span:nth-child(5) { animation-delay: 0.30s; }
.skill-row.skill-row-reveal .skill-tags span:nth-child(6) { animation-delay: 0.35s; }
.skill-row.skill-row-reveal .skill-tags span:nth-child(7) { animation-delay: 0.40s; }
.skill-row.skill-row-reveal .skill-tags span:nth-child(8) { animation-delay: 0.45s; }
.skill-row.skill-row-reveal .skill-tags span:nth-child(9) { animation-delay: 0.50s; }
.skill-row.skill-row-reveal .skill-tags span:nth-child(10) { animation-delay: 0.55s; }
.skill-row.skill-row-reveal .skill-tags span:nth-child(11) { animation-delay: 0.60s; }
.skill-row.skill-row-reveal .skill-tags span:nth-child(12) { animation-delay: 0.65s; }

@keyframes skillTag3DPop {
  0% {
    opacity: 0;
    transform: perspective(600px) rotateX(-90deg) translateY(40px) translateZ(-40px);
  }
  100% {
    opacity: 1;
    transform: perspective(600px) rotateX(0deg) translateY(0) translateZ(0);
  }
}

.about-section {
  min-height: 100vh;
  min-height: 100dvh;
  background: #111;
  color: #fff;
  padding: clamp(58px, 7vw, 88px) clamp(20px, 9.7vw, 183px) clamp(56px, 7vw, 92px);
}

.about-inner {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

.about-section h2 {
  margin: 0 0 clamp(44px, 5vw, 68px) -45px;
  font-family: "Anton", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(76px, 8.4vw, 160px);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(360px, 760px) minmax(220px, 385px);
  align-items: start;
  gap: clamp(48px, 8vw, 185px);
  justify-content: space-between;
}

.about-icons {
  position: relative;
  width: min(100%, 385px);
  min-height: 500px;
  justify-self: end;
  margin-top: -40px;
}

.about-icon {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(42px, 3.8vw, 58px);
  height: clamp(42px, 3.8vw, 58px);
  color: #fff;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-icon svg {
  width: 58%;
  height: 58%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  animation: floatOrganic 4s ease-in-out infinite alternate;
}

.about-icon:nth-child(odd) svg {
  animation-duration: 4.5s;
  animation-delay: -1s;
}

.about-icon:nth-child(even) svg {
  animation-duration: 5s;
  animation-delay: -2.5s;
}

.about-icon:nth-child(3n) svg {
  animation-duration: 3.8s;
  animation-delay: -0.5s;
  animation-direction: alternate-reverse;
}

@keyframes floatOrganic {
  0% { transform: translateY(-8px) rotate(-4deg); }
  100% { transform: translateY(8px) rotate(4deg); }
}

.about-icon:first-child svg {
  fill: currentColor;
  stroke: none;
}
.about-icon:nth-child(1) {
  top: 10%;
  left: 5%;
}

.about-icon:nth-child(2) {
  top: 8%;
  right: 20%;
}

.about-icon:nth-child(3) {
  top: 30%;
  left: 25%;
}

.about-icon:nth-child(4) {
  top: 35%;
  right: 5%;
}

.about-icon:nth-child(5) {
  top: 55%;
  left: 5%;
}

.about-icon:nth-child(6) {
  top: 58%;
  right: 25%;
}

.about-icon:nth-child(7) {
  bottom: 20%;
  left: 35%;
}

.about-icon:nth-child(8) {
  bottom: 8%;
  left: 10%;
}

.about-icon:nth-child(9) {
  bottom: 5%;
  right: 35%;
}

.about-icon:nth-child(10) {
  bottom: 18%;
  right: 5%;
}
.about-icons:hover .about-icon:first-child {
  /* Handled by JavaScript cursor tracking */
}

.about-icons:hover .about-icon:nth-child(2) {
  /* Handled by JavaScript cursor tracking */
}

.about-icons:hover .about-icon:nth-child(3) {
  /* Handled by JavaScript cursor tracking */
}

.about-icons:hover .about-icon:nth-child(4) {
  /* Handled by JavaScript cursor tracking */
}

.about-icons:hover .about-icon:nth-child(5) {
  /* Handled by JavaScript cursor tracking */
}

.about-icons:hover .about-icon:nth-child(6) {
  /* Handled by JavaScript cursor tracking */
}

.about-icons:hover .about-icon:nth-child(7) {
  /* Handled by JavaScript cursor tracking */
}

.about-icons:hover .about-icon:nth-child(8) {
  /* Handled by JavaScript cursor tracking */
}

.about-icons:hover .about-icon:nth-child(9) {
  /* Handled by JavaScript cursor tracking */
}

.about-icons:hover .about-icon:nth-child(10) {
  /* Handled by JavaScript cursor tracking */
}

.about-content {
  max-width: 760px;
  padding-top: clamp(0px, 2.8vw, 25px);
  margin-left: -50px;
}

.about-content p {
  margin: 0 0 31px;
  color: #fff;
  font-size: clamp(20px, 1.35vw, 26px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0;
}

.about-content .muted {
  color: #8c8f95;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
}

.about-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 25px;
  border: 1px solid #555;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
  text-transform: uppercase;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.about-actions a:hover,
.about-actions a:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #111;
}

/* Responsive Queries */
@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: minmax(140px, 180px) 1fr;
    gap: 18px;
  }
  .navbar {
    justify-content: flex-end;
    gap: 18px 28px;
  }
  .hero-title {
    display: block;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px 18px;
  }
  .brand {
    grid-column: 1;
  }
  .navbar {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 14px 18px;
    padding-top: 6px;
  }
  .hero {
    min-height: calc(100vh - 126px);
    min-height: calc(100dvh - 126px);
  }
  .version-badge {
    transform: scale(0.8);
    transform-origin: top right;
  }
  .contact-link {
    margin-left: 0;
  }
  .availability {
    max-width: 52%;
  }
  .hero-title h1 {
    font-size: clamp(50px, 18vw, 132px);
    transform: scaleX(0.9);
  }

  .hero-socials {
    position: static;
    justify-content: flex-start;
    margin-top: 28px;
    padding-left: clamp(20px, 4vw, 53px);
    padding-bottom: 32px;
  }

  .skills-section h2 {
    margin-bottom: 46px;
    font-size: clamp(70px, 20vw, 118px);
  }

  .skill-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 0 24px;
  }

  .skill-heading {
    grid-template-columns: 62px 1fr;
    min-height: auto;
  }

  .skill-tags {
    gap: 10px;
  }

  .skill-tags span {
    min-height: 40px;
    padding: 0 16px;
    font-size: 13px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    justify-content: stretch;
  }

  .about-icons {
    width: 100%;
    min-height: 650px;
  }

  .about-icon:first-child {
    top: 10px;
    left: 4%;
  }

  .about-icon:nth-child(2) {
    top: 44px;
    right: 18%;
  }

  .about-icon:nth-child(3) {
    left: 35%;
    bottom: 28px;
  }

  .about-icon:nth-child(4) {
    right: 4%;
    bottom: 8px;
  }

  .about-content p {
    font-size: clamp(18px, 5vw, 23px);
  }

  .about-actions {
    gap: 14px;
    margin-top: 34px;
  }

  .about-actions a {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .ticker-item {
    font-size: clamp(12px, 1.5vw, 20px);
    padding: 8px 14px;
    border-width: 1px;
  }

  .ticker-track {
    gap: clamp(20px, 3vw, 40px);
    animation: scroll 40s linear infinite;
  }
}

@media (max-width: 430px) {
  .availability {
    max-width: 100%;
  }
  .hero-title h1 {
    font-size: clamp(48px, 17vw, 74px);
  }

  .hero-socials {
    gap: 10px;
    padding-left: 20px;
  }
}

/* --- GLASSY FLOATING NAV --- */
.glassy-nav {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%) translateX(100px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 16px 12px;
  border-radius: 40px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1), inset 0 0 0 1px rgba(255,255,255,0.3);
}

.glassy-nav.visible {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.glassy-nav.visible .glassy-link {
  animation: iconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.glassy-nav.visible .glassy-link:nth-child(1) { animation-delay: 0.10s; }
.glassy-nav.visible .glassy-link:nth-child(2) { animation-delay: 0.18s; }
.glassy-nav.visible .glassy-link:nth-child(3) { animation-delay: 0.26s; }
.glassy-nav.visible .glassy-link:nth-child(4) { animation-delay: 0.34s; }
.glassy-nav.visible .glassy-link:nth-child(5) { animation-delay: 0.42s; }

@keyframes iconPop {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.glassy-link {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.glassy-link:hover,
.glassy-link.active {
  background: #111;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.glassy-link:hover {
  transform: scale(1.15) translateY(-2px);
}

.glassy-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glassy-link .tooltip {
  position: absolute;
  right: 100%;
  margin-right: 16px;
  background: #111;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  white-space: nowrap;
}

.glassy-link:hover .tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 960px) {
  .glassy-nav {
    top: auto;
    bottom: 24px;
    right: 50%;
    transform: translateX(50%) translateY(100px);
    flex-direction: row;
    padding: 12px 16px;
  }
  
  .glassy-nav.visible {
    transform: translateX(50%) translateY(0);
  }

  .glassy-link .tooltip {
    display: none;
  }
}

/* --- PROJECT MODAL --- */
.project-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  backdrop-filter: blur(20px);
  perspective: 1500px;
}

.project-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.project-modal-content {
  position: relative;
  width: 90vw;
  height: 90vh;
  background: #ffffff;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  padding: 80px 50px 50px;
  display: flex;
  flex-direction: column;
  transform: rotateX(25deg) translateY(120px) scale(0.85);
  opacity: 0;
  transform-origin: bottom center;
  filter: blur(15px);
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}

.project-modal-overlay.active .project-modal-content {
  transform: rotateX(0deg) translateY(0) scale(1);
  opacity: 1;
  filter: blur(0);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  left: 24px;
  background: #f0f0f0;
  border: none;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

.modal-close-btn:hover {
  background: #111;
  color: #fff;
  transform: rotate(90deg);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  height: 100%;
  overflow-y: auto;
}

.modal-main-info {
  padding-right: 20px;
}

/* Content Stagger Animation */
.modal-main-info h2,
.modal-main-info p,
.modal-sidebar {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-modal-overlay.active .modal-main-info h2 { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.project-modal-overlay.active .modal-main-info p { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.project-modal-overlay.active .modal-sidebar { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }

.modal-main-info h2 {
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(32px, 4vw, 56px);
  text-transform: uppercase;
  margin: 0 0 24px 0;
  color: #111;
  line-height: 1.1;
}

.modal-main-info p {
  font-size: 18px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 30px;
}

.modal-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-bullets li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  opacity: 0;
  transform: translateY(20px);
}

.project-modal-overlay.active .modal-bullets li {
  animation: slideUpFade 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modal-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #111;
  font-weight: 900;
  font-size: 18px;
}

.modal-note {
  font-size: 13.5px;
  color: #888;
  font-style: italic;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(20px);
}

.project-modal-overlay.active .modal-note {
  animation: slideUpFade 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modal-sidebar {
  background: #f8f9fa;
  padding: 32px;
  border-radius: 20px;
  height: max-content;
  align-self: end;
  align-self: start;
}

.modal-sidebar h3 {
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 24px 0;
  color: #111;
}

.modal-skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.modal-skills-tags span {
  background: #fff;
  border: 1px solid #e1e4e8;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
}

.project-modal-overlay.active .modal-skills-tags span {
  animation: slideUpFade 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* --- MODAL LINKS CONTAINER & ANIMATION --- */
.modal-links-container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.modal-action-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #111;
  color: #fff;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(30px) scale(0.9);
}

.modal-action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.modal-action-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
  color: #fff;
}

.modal-action-btn:hover::before {
  left: 100%;
}

.modal-action-btn svg {
  transition: transform 0.3s ease;
  margin-top: -2px;
}

.modal-action-btn:hover svg {
  transform: scale(1.2) rotate(-5deg);
}

.project-modal-overlay.active .modal-action-btn {
  animation: popInElastic 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.project-modal-overlay.active .modal-action-btn:nth-child(1) {
  animation-delay: 0.45s;
}

.project-modal-overlay.active .modal-action-btn:nth-child(2) {
  animation-delay: 0.55s;
}

.project-modal-overlay.active .modal-action-btn:nth-child(3) {
  animation-delay: 0.65s;
}

@keyframes popInElastic {
  0% { opacity: 0; transform: translateY(20px) scale(0.8); }
  60% { opacity: 1; transform: translateY(-5px) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 960px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
  .project-modal-content {
    padding: 80px 24px 24px;
  }
  .modal-links-container {
    margin-top: 12px;
  }
}

/* --- PROJECT SECTION (GRID REVEAL) --- */
.project-section {
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(56px, 7vw, 96px) clamp(20px, 6.3vw, 110px) clamp(60px, 7vw, 92px);
  background: #fff;
  color: #000;
}

.project-inner {
  width: 100%;
  max-width: 1536px;
  margin: 0 auto;
}

.project-section h2 {
  margin: 0 0 clamp(40px, 6vw, 80px);
  font-family: "Anton", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(76px, 11.6vw, 192px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #000;
}

.project-gallery {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: auto;
  padding: 40px 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  perspective: 1200px;
}

.project-card {
  width: 100%;
  background: #ffffff;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.12), 0 5px 15px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
}

.project-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15), 0 10px 20px rgba(0,0,0,0.1);
  z-index: 10;
}

/* Premium Grid Focus Blur */
.project-grid:has(.project-card:hover) .project-card:not(:hover) {
  opacity: 0.6;
  filter: blur(4px) grayscale(30%);
  transform: scale(0.95);
}

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 32px;
  position: relative;
}

/* Glass Shine Sweep Effect */
.card-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  pointer-events: none;
}

.project-card:hover .card-image::after {
  left: 150%;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover .card-image img {
  transform: scale(1.08);
}

.card-content {
  padding: 20px 10px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-content h3 {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 900;
  color: #1e1e1e;
  margin: 0 0 12px 0;
  font-family: "Inter", sans-serif;
  text-transform: none;
  letter-spacing: normal;
}

.subtitle {
  font-size: 15px;
  color: #777;
  margin-bottom: 24px;
  line-height: 1.5;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.card-btn {
  flex: 1;
  height: 48px;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: 0.3s;
  text-decoration: none;
  white-space: nowrap;
  padding: 0 12px;
}

.btn-dark {
  background: #0f0f10;
  color: #fff;
}

.btn-dark:hover {
  transform: translateY(-2px);
  background: #333;
}

.btn-light {
  background: #fff;
  color: #0f0f10;
  border: 2px solid #ededed;
}

.btn-light:hover {
  transform: translateY(-2px);
  border-color: #ccc;
}

/* --- PROJECT CARD ENTRANCE ANIMATION --- */
.project-card.card-hidden {
  opacity: 0;
  pointer-events: none;
}

.project-card.card-reveal {
  animation: cardEntrance 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes cardEntrance {
  0% {
    opacity: 0;
    transform: translateY(120px) translateZ(-100px) rotateX(25deg) rotateY(-10deg) scale(0.9);
    filter: blur(12px) brightness(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateZ(0) rotateX(0) rotateY(0) scale(1);
    filter: blur(0) brightness(1);
  }
}

@media (max-width: 1200px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* --- VIEW ALL PROJECTS SECTION --- */
.view-all-section {
  min-height: auto;
  padding: clamp(30px, 3vw, 50px) clamp(20px, 6.3vw, 110px);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-all-inner {
  width: 100%;
  max-width: 1536px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.view-all-link {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.view-all-link h2 {
  margin: 0;
  font-family: "Anton", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(48px, 7vw, 120px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #999;
  transition: all 0.3s ease;
}

.view-all-link:hover h2 {
  transform: scale(1.02);
  color: #666;
}

/* --- FOOTER SECTION --- */
.footer-section {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0a0a0a;
  color: #fff;
  padding: clamp(40px, 4vw, 60px) clamp(20px, 6.3vw, 110px);
  z-index: -1;
  width: 100%;
  visibility: hidden;
}

.footer-spacer {
  height: 500px;
  background: transparent;
  pointer-events: none;
}

.footer-inner {
  width: 100%;
  max-width: 1536px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(500px - clamp(80px, 8vw, 120px));
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: clamp(20px, 5vw, 100px);
  margin-top: clamp(20px, 4vw, 40px);
  margin-bottom: clamp(20px, 3vw, 40px);
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-connect {
  flex: 0 1 auto;
}

.footer-connect.reveal {
  /* Handled by sticky positioning */
}

.footer-contact {
  flex: 0 0 auto;
  text-align: right;
  margin-left: auto;
}

.footer-contact.reveal {
  /* Handled by sticky positioning */
}

.footer-label {
  font-size: clamp(10px, 0.8vw, 12px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #888;
  margin: 0 0 16px 0;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 30px);
}

.footer-socials a {
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  text-decoration: none;
  padding-bottom: 4px;
  position: relative;
}

.footer-socials a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #fff;
  transform-origin: bottom left;
  transition: transform 0.3s ease-out;
}

.footer-socials a:hover {
  color: #fff;
}

.footer-socials a:hover::after {
  transform: scaleX(1);
}

.footer-info {
  margin-bottom: 0;
}

.footer-info p {
  margin: 0 0 8px 0;
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 600;
}

.footer-info a {
  color: #fff;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.footer-info a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #fff;
  transform-origin: bottom left;
  transition: transform 0.3s ease-out;
}

.footer-info a:hover {
  color: #fff;
}

.footer-info a:hover::after {
  transform: scaleX(1);
}

.request-code-btn {
  display: none;
}

.footer-name {
  padding-top: clamp(10px, 2vw, 30px);
  text-align: center;
  width: 100%;
}

.footer-spacer {
  height: 400px;
  background: transparent;
  pointer-events: none;
}

.footer-name h2 {
  margin: 0;
  font-family: "Black Ops One", "Anton", Impact, sans-serif;
  font-size: clamp(78px, 14.5vw, 210px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: #fff;
  word-break: break-word;
  overflow-wrap: break-word;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 24px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: clamp(12px, 1vw, 14px);
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-separator {
  color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 760px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-contact {
    align-items: flex-start;
  }

  .footer-socials {
    gap: 16px;
    flex-direction: column;
  }

  .footer-socials a {
    font-size: 14px;
  }

  .footer-name h2 {
    font-size: clamp(64px, 24vw, 160px);
  }
}
