/* ============================================================
   BASE RESET & GLOBAL
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-style: none;
}

html {
  width: 100vw;
  overflow-x: hidden;
  font-family: 'Source Sans Pro', sans-serif;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  padding: 0 5%;
}

li {
  list-style: none;
}

a {
  color: #a3a3a3;
  text-decoration: none;
  transition: 0.2s;
}

a:hover {
  color: rgba(0, 0, 0, 0.9);
  text-decoration: none;
}

a:visited {
  color: rgb(136, 136, 136);
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 {
  line-height: 0.8;
  font-size: 1em;
  color: #d6d6d6;
  font-weight: 400;
  text-align: center;
  letter-spacing: 2px;
}

h2,
h3 {
  display: block;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 1;
  padding-top: 1.5rem;
  transition: opacity 0.2s ease;
}

h4 {
  color: #b3b3b3;
  margin-bottom: 5%;
  letter-spacing: 3px;
  font-size: 18px;
}


/* ============================================================
   NAVIGATION
   ============================================================ */
header {
  width: 100%;
  transition: 0.2s;
  background-color: rgba(0, 0, 0, 0);
  position: sticky;
  z-index: 10;
  top: 0;
}

#nav-bar {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1001;
}

.navbar {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  z-index: 2;
  background-color: white;
  transition: 0.6s;
  scrollbar-gutter: stable both-edges;
  padding: 30px 0;
  transition: .6s;
  top: 0;
  width: 100%;
}

.navbar:hover {
  background-color: rgba(0, 0, 0, 0);
  transition: 0.3s;
}

.nav-brand {
  font-size: 2rem;
  filter: saturate(2476%) brightness(0%);
  margin: 0 30px 0 0;
}

.nav-brand img {
  display: block;
}

.nav-brand:hover {
  opacity: 0.75;
  transition: 0.3s ease;
}

.nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item h3 {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-link {
  color: #a3a3a3;
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  transition: 0.3s ease;
}

.nav-link:hover {
  color: rgba(0, 0, 0, 0.9);
}

.contact-link {
  background: #0066cc;
  color: #fff !important;
  padding: 0.5rem 1.5rem !important;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.contact-link:hover {
  background: #0052a3;
  color: #fff !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.bar {
  display: block;
  width: 30px;
  height: 3px;
  margin: 0 auto;
  background-color: #333;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-toggle::after {
  content: ' ▾';
  font-size: 0.8rem;
  margin-left: 0.25rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 0.5rem 0;
  min-width: 200px;
  list-style: none;
  margin: 0 0 0 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu li {
  padding: 0;
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgb(136, 136, 136);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
  color: #0066cc;
}

.scrolling-active {
  background-color: #262626;
}


/* ============================================================
   LAYOUT / GRID HELPERS
   ============================================================ */
.container {
  padding: 50px 9vw 0;
  margin: auto;
  height: 100%;
  display: block;
  max-width: 1550px;
}

.container p {
  padding: 65px 1vw 65px 0;
  text-align: left;
  color: #b3b3b3;
  width: 100%;
  margin: auto;
  max-width: 800px;
  letter-spacing: 3px;
  line-height: 1.5;
  font-size: 10px;
  font-weight: 400;
}

.container ul {
  color: #b3b3b3;
  list-style: none;
}

.container li {
  letter-spacing: 2px;
  margin-bottom: 2%;
}

.half-grid {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 20% 80%;
  grid-template-rows: auto;
}

.half-grid-left {
  grid-column: 1;
  justify-self: center;
  align-self: start;
  width: 100%;
}

.half-grid-right {
  grid-column: 2;
  justify-self: center;
  align-self: center;
  width: 100%;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
  grid-gap: 1vh;
  padding: 3vh 0;
}

.home-grid-center {
  display: flex;
  flex-direction: column;
  padding: 20px;
  font-size: 16px;
  color: #b3b3b3;
  text-align: left;
  align-items: center;
  justify-content: center;
}

.home-grid-center p {
  width: 100%;
  float: left;
  padding: 6px 0;
  letter-spacing: 0;
}

.home-grid-center:hover p {
  color: black;
  transition: 0.2s;
}

.home-grid-center img {
  width: 100%;
  transform: scale(1);
  transition: 0.2s;
}

.home-grid-center:hover img,
.home-grid-center:hover video,
.home-grid-center:hover svg,
.website-grid-center:hover img {
  transition: 0.2s;
  transform: scale(1.02);
}

.skill-frame {
  height: 30vh;
  width: 100%;
  overflow: hidden;
}

.skill-frame img,
.skill-frame video {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: 0.2s;
}

.website-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(385px, 1fr));
  grid-gap: 1vh;
  padding: 3vh 0;
}

.website-grid-center {
  padding: 20px;
  font-size: 12px;
  color: #b3b3b3;
  text-align: left;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.website-grid-center img {
  width: 90%;
  min-width: 203px;
  transform: scale(1);
  transition: 0.2s;
  margin: 5%;
}

.website-grid-center h3 {
  padding: 0 5%;
  margin-top: -4%;
}

.img-comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(385px, 1fr));
  grid-gap: 10%;
  padding: 3vh 0;
}

.animated-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 1vh;
  padding: 3vh 0;
}

.animated-logo-grid > div {
  display: grid;
  width: 100%;
  align-self: center;
  padding: 0 10% 10%;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 1vh;
  padding: 3vh 0;
}

.video-grid {
  display: grid;
  width: 100%;
  overflow: hidden;
  z-index: -1;
  grid-template-columns: repeat(3, 30%);
  grid-template-rows: repeat(1, 1fr);
  margin: 0 5%;
  height: fit-content;
  grid-gap: 1%;
}

.video-grid > div {
  padding: 3vh;
  width: 100%;
  max-width: 100%;
  align-self: center;
  justify-self: center;
  overflow: hidden;
}

.video-grid video {
  width: 90%;
  overflow-wrap: hidden;
  display: grid;
  position: relative;
  margin: 5%;
}

.new-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  grid-gap: 60px;
  max-width: 1100px;
  width: 70%;
  margin: 10% auto 2%;
  align-self: center;
}

.new-grid video {
  width: 100%;
  max-width: 100%;
  align-self: center;
  display: flex;
  height: 100%;
}


/* ============================================================
   HERO
   ============================================================ */
.home-hero {
  display: grid;
  width: 80%;
  z-index: -1;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 250px);
  grid-column-gap: 10px;
  margin: 0 auto;
}

.home-hero-title {
  height: fit-content;
}

.home-hero video {
  object-fit: contain;
  object-position: center;
  overflow: hidden;
  justify-self: center;
  align-self: center;
  display: flex;
}

.hero-text {
  display: grid;
  justify-content: center;
  align-content: center;
  gap: 5px;
  grid-column: 2 / span 8;
  grid-row: 10 / span 1;
  grid-auto-flow: row;
  justify-self: left;
  align-self: center;
  color: #000000;
  z-index: 1;
}

.hero-text > div {
  display: grid;
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 30px 0 5vh;
  bottom: 0;
  width: 100%;
}


/* ============================================================
   ANIMATIONS — SVG Logo Classes
   ============================================================ */
.st0 {
  fill: none;
  stroke: #28ABE2;
  stroke-width: 3.019;
  stroke-linecap: round;
  stroke-miterlimit: 10;
  animation: hideshowTTSS 3s linear infinite 0.2s;
}

.st1 {
  fill: none;
  stroke: #FCED1E;
  stroke-width: 3.019;
  stroke-linecap: round;
  stroke-miterlimit: 10;
  animation: hideshowTTSS 3s linear infinite 0.1s;
}

.st2 {
  fill: none;
  stroke: #EA088B;
  stroke-width: 3.019;
  stroke-linecap: round;
  stroke-miterlimit: 10;
  animation: hideshowTTSS 3s linear infinite 0s;
}

@keyframes hideshowTTSS {
  0%   { opacity: 1; }
  20%  { opacity: 1; }
  23%  { opacity: 0; }
  40%  { opacity: 0; }
  43%  { opacity: 1; }
  100% { opacity: 1; }
}

.ac0 { fill: #D3232D; }

.ac1 {
  fill: none;
  stroke: #D3232D;
  stroke-width: 3.35;
  stroke-linecap: round;
  stroke-miterlimit: 10;
  stroke-dasharray: 1000;
  stroke-dashoffset: 2000;
  animation: dashACGS 10s ease backwards infinite;
}

.ac2 { fill: #D3232D; animation: hideshowACGS 10s ease infinite 0s; }
.ac3 { fill: #D3232D; animation: hideshowACGS 10s ease infinite 0.1s; }
.ac4 { fill: #D3232D; animation: hideshowACGS 10s ease infinite 0.2s; }
.ac5 { fill: #D3232D; animation: hideshowACGS 10s ease infinite 0.3s; }

@keyframes dashACGS {
  to { stroke-dashoffset: 0; }
}

@keyframes hideshowACGS {
  0%   { opacity: 1; }
  5%   { opacity: 1; }
  10%  { opacity: 0; }
  30%  { opacity: 0; }
  35%  { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes nudge {
  0%   { transform: translate(-30vw, 0); }
  100% { transform: translate(0, 0); }
}

@keyframes appear {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes cd-bounce-in {
  0%   { width: 0; }
  60%  { width: 55%; }
  100% { width: 50%; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   SWIPER (single copy)
   ============================================================ */
:root {
  --swiper-theme-color: #000;
  --swiper-navigation-size: 44px;
}

.swiper {
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.swiper-container {
  margin: 0;
  position: absolute;
  overflow: hidden;
  list-style: none;
  padding: 0;
  z-index: 0;
  height: inherit;
  width: inherit;
}

.swiper-container-vertical > .swiper-wrapper {
  flex-direction: column;
}

.swiper-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  transition-property: transform;
  box-sizing: content-box;
}

.swiper-container-android .swiper-slide,
.swiper-wrapper {
  transform: translate3d(0px, 0, 0);
}

.swiper-container-multirow > .swiper-wrapper        { flex-wrap: wrap; }
.swiper-container-multirow-column > .swiper-wrapper { flex-wrap: wrap; flex-direction: column; }
.swiper-container-free-mode > .swiper-wrapper       { transition-timing-function: ease-out; margin: 0 auto; }

.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
  transition-property: transform;
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-slide-invisible-blank { visibility: hidden; }

.swiper-container-autoheight,
.swiper-container-autoheight .swiper-slide {
  height: auto;
}

.swiper-container-autoheight .swiper-wrapper {
  align-items: flex-start;
  transition-property: transform, height;
}

/* 3D */
.swiper-container-3d { perspective: 1200px; }

.swiper-container-3d .swiper-cube-shadow,
.swiper-container-3d .swiper-slide,
.swiper-container-3d .swiper-slide-shadow-bottom,
.swiper-container-3d .swiper-slide-shadow-left,
.swiper-container-3d .swiper-slide-shadow-right,
.swiper-container-3d .swiper-slide-shadow-top,
.swiper-container-3d .swiper-wrapper {
  transform-style: preserve-3d;
}

.swiper-container-3d .swiper-slide-shadow-bottom,
.swiper-container-3d .swiper-slide-shadow-left,
.swiper-container-3d .swiper-slide-shadow-right,
.swiper-container-3d .swiper-slide-shadow-top {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;    /* fixed typo: was "1f00%" */
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.swiper-container-3d .swiper-slide-shadow-left   { background-image: linear-gradient(to left,  rgba(0,0,0,.5), rgba(0,0,0,0)); }
.swiper-container-3d .swiper-slide-shadow-right  { background-image: linear-gradient(to right, rgba(0,0,0,.5), rgba(0,0,0,0)); }
.swiper-container-3d .swiper-slide-shadow-top    { background-image: linear-gradient(to top,   rgba(0,0,0,.5), rgba(0,0,0,0)); }
.swiper-container-3d .swiper-slide-shadow-bottom { background-image: linear-gradient(to bottom,rgba(0,0,0,.5), rgba(0,0,0,0)); }

/* CSS Mode */
.swiper-container-css-mode > .swiper-wrapper {
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.swiper-container-css-mode > .swiper-wrapper::-webkit-scrollbar { display: none; }
.swiper-container-css-mode > .swiper-wrapper > .swiper-slide    { scroll-snap-align: start; }
.swiper-container-horizontal.swiper-container-css-mode > .swiper-wrapper { scroll-snap-type: x mandatory; }
.swiper-container-vertical.swiper-container-css-mode > .swiper-wrapper   { scroll-snap-type: y mandatory; }

/* Navigation Arrows */
.swiper-button-next,
.swiper-button-prev {
  position: absolute;
  top: 50%;
  width: calc(var(--swiper-navigation-size) / 44 * 27);
  height: var(--swiper-navigation-size);
  margin-top: calc(-1 * var(--swiper-navigation-size) / 2);
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d3242e;
}

.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
  opacity: 0.35;
  cursor: auto;
  pointer-events: none;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-family: swiper-icons;
  font-size: var(--swiper-navigation-size);
  text-transform: none !important;
  letter-spacing: 0;
  font-variant: initial;
  line-height: 1;
}

.swiper-button-prev,
.swiper-container-rtl .swiper-button-next        { left: 10px; right: auto; }
.swiper-button-prev:after,
.swiper-container-rtl .swiper-button-next:after  { content: "prev"; }

.swiper-button-next,
.swiper-container-rtl .swiper-button-prev        { right: 10px; left: auto; }
.swiper-button-next:after,
.swiper-container-rtl .swiper-button-prev:after  { content: "next"; }

.swiper-button-next.swiper-button-white,
.swiper-button-prev.swiper-button-white { --swiper-navigation-color: #ffffff; }
.swiper-button-next.swiper-button-black,
.swiper-button-prev.swiper-button-black { --swiper-navigation-color: #000000; }
.swiper-button-lock { display: none; }

/* Pagination */
.swiper-pagination {
  position: absolute;
  text-align: center;
  transition: 0.3s opacity;
  transform: translate3d(0, 0, 0);
  z-index: 10;
}

.swiper-pagination.swiper-pagination-hidden { opacity: 0; }

.swiper-container-horizontal > .swiper-pagination-bullets,
.swiper-pagination-custom,
.swiper-pagination-fraction {
  bottom: 10%;
  left: 0;
  width: 100%;
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 100%;
  background: #000;
  opacity: 0.2;
}

button.swiper-pagination-bullet {
  border: none;
  margin: 0;
  padding: 0;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.swiper-pagination-clickable .swiper-pagination-bullet { cursor: pointer; }

.swiper-pagination-bullet-active {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.5);
}

.swiper-container-vertical > .swiper-pagination-bullets {
  right: 10px;
  top: 50%;
  transform: translate3d(0, -50%, 0);
}

.swiper-container-vertical > .swiper-pagination-bullets .swiper-pagination-bullet {
  margin: 6px 0;
  display: block;
}

.swiper-container-vertical > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
}

.swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet { margin: 0 4px; }

.swiper-container-horizontal > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.swiper-container-horizontal > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
  transition: 0.2s transform, 0.2s left;
}

.swiper-container-horizontal.swiper-container-rtl > .swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
  transition: 0.2s transform, 0.2s right;
}

/* Pagination dynamic bullets */
.swiper-pagination-bullets-dynamic { overflow: hidden; font-size: 0; }
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet               { transform: scale(0.33); position: relative; }
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active        { transform: scale(1); }
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main   { transform: scale(1); }
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev   { transform: scale(0.66); }
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev { transform: scale(0.33); }
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next   { transform: scale(0.66); }
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next { transform: scale(0.33); }

/* Progress bar pagination */
.swiper-pagination-progressbar { background: rgba(0,0,0,.25); position: absolute; }
.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
  background: var(--swiper-pagination-color, var(--swiper-theme-color));
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  transform: scale(0); transform-origin: left top;
}
.swiper-container-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill { transform-origin: right top; }

.swiper-container-horizontal > .swiper-pagination-progressbar,
.swiper-container-vertical > .swiper-pagination-progressbar.swiper-pagination-progressbar-opposite {
  width: 100%; height: 4px; left: 0; top: 0;
}
.swiper-container-horizontal > .swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,
.swiper-container-vertical > .swiper-pagination-progressbar {
  width: 4px; height: 100%; left: 0; top: 0;
}

.swiper-pagination-white  { --swiper-pagination-color: #ffffff; }
.swiper-pagination-black  { --swiper-pagination-color: #000000; }
.swiper-pagination-lock   { display: none; }

/* Scrollbar */
.swiper-scrollbar {
  border-radius: 10px;
  position: relative;
  background: rgba(0,0,0,.1);
}
.swiper-container-horizontal > .swiper-scrollbar {
  position: absolute; left: 1%; bottom: 3px; z-index: 50; height: 5px; width: 98%;
}
.swiper-container-vertical > .swiper-scrollbar {
  position: absolute; right: 3px; top: 1%; z-index: 50; width: 5px; height: 98%;
}
.swiper-scrollbar-drag {
  height: 100%; width: 100%; position: relative;
  background: rgba(0,0,0,.5); border-radius: 10px; left: 0; top: 0;
}
.swiper-scrollbar-cursor-drag { cursor: move; }
.swiper-scrollbar-lock { display: none; }

/* Zoom */
.swiper-zoom-container {
  width: 100%; height: 100%;
  display: flex; justify-content: center; align-items: center; text-align: center;
}
.swiper-zoom-container > canvas,
.swiper-zoom-container > img,
.swiper-zoom-container > svg {
  max-width: 100%; max-height: 100%; object-fit: contain;
}
.swiper-slide-zoomed { cursor: move; }

/* Preloader */
.swiper-lazy-preloader {
  width: 42px; height: 42px;
  position: absolute; left: 50%; top: 50%;
  margin-left: -21px; margin-top: -21px;
  z-index: 10; transform-origin: 50%;
  animation: swiper-preloader-spin 1s infinite linear;
  box-sizing: border-box;
  border: 4px solid var(--swiper-preloader-color, var(--swiper-theme-color));
  border-radius: 50%; border-top-color: transparent;
}
.swiper-lazy-preloader-white { --swiper-preloader-color: #fff; }
.swiper-lazy-preloader-black { --swiper-preloader-color: #000; }

@keyframes swiper-preloader-spin {
  100% { transform: rotate(360deg); }
}

.swiper-container .swiper-notification {
  position: absolute; left: 0; top: 0;
  pointer-events: none; opacity: 0; z-index: -1000;
}

/* Fade effect */
.swiper-container-fade.swiper-container-free-mode .swiper-slide { transition-timing-function: ease-out; }
.swiper-container-fade .swiper-slide                            { pointer-events: none; transition-property: opacity; }
.swiper-container-fade .swiper-slide .swiper-slide             { pointer-events: none; }
.swiper-container-fade .swiper-slide-active,
.swiper-container-fade .swiper-slide-active .swiper-slide-active { pointer-events: auto; }

/* Cube effect */
.swiper-container-cube { overflow: visible; }
.swiper-container-cube .swiper-slide {
  pointer-events: none; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  z-index: 1; visibility: hidden; transform-origin: 0 0; width: 100%; height: 100%;
}
.swiper-container-cube .swiper-slide .swiper-slide { pointer-events: none; }
.swiper-container-cube.swiper-container-rtl .swiper-slide { transform-origin: 100% 0; }
.swiper-container-cube .swiper-slide-active,
.swiper-container-cube .swiper-slide-active .swiper-slide-active { pointer-events: auto; }
.swiper-container-cube .swiper-slide-active,
.swiper-container-cube .swiper-slide-next,
.swiper-container-cube .swiper-slide-next + .swiper-slide,
.swiper-container-cube .swiper-slide-prev { pointer-events: auto; visibility: visible; }
.swiper-container-cube .swiper-slide-shadow-bottom,
.swiper-container-cube .swiper-slide-shadow-left,
.swiper-container-cube .swiper-slide-shadow-right,
.swiper-container-cube .swiper-slide-shadow-top { z-index: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.swiper-container-cube .swiper-cube-shadow {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 100%;
  background: #000; opacity: 0.6; filter: blur(50px); z-index: 0;
}

/* Flip effect */
.swiper-container-flip { overflow: visible; }
.swiper-container-flip .swiper-slide {
  pointer-events: none; -webkit-backface-visibility: hidden; backface-visibility: hidden; z-index: 1;
}
.swiper-container-flip .swiper-slide .swiper-slide { pointer-events: none; }
.swiper-container-flip .swiper-slide-active,
.swiper-container-flip .swiper-slide-active .swiper-slide-active { pointer-events: auto; }
.swiper-container-flip .swiper-slide-shadow-bottom,
.swiper-container-flip .swiper-slide-shadow-left,
.swiper-container-flip .swiper-slide-shadow-right,
.swiper-container-flip .swiper-slide-shadow-top { z-index: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }

/* Swiper slide grid content */
.swiper-slide-grid {
  display: grid;
  grid-column: 1 / span 1;
  width: 85%;
  padding-bottom: 10%;
}

.swiper-slide-grid a {
  position: relative;
  display: grid;
}

.swiper-slide-grid h3 {
  text-align: right;
  margin: 0 auto;
  padding: 0;
  width: 70%;
  font-size: 1.1em;
  color: #b3b3b3;
}

.swiper-slide-grid a > div,
.swiper-slide-grid > div {
  grid-column: 1 / span 1;
  grid-row: 1;
  align-self: center;
}

.swiper-slide-grid a > div { color: #000000; }

.right {
  text-align: right;
  color: #b3b3b3;
  font-size: 10px;
}

.swiper-slide p {
  letter-spacing: 4px;
  font-size: 12px;
  color: #b3b3b3;
  text-align: left;
  margin: 2% auto 5%;
  padding: 1% 0 0;
  width: 70%;
  line-height: 1.3;
}

.swiper-slide h4 {
  letter-spacing: 2px;
  margin: 1% auto 0;
  padding: 1% 0 0;
  width: 70%;
}


/* ============================================================
   IMAGE COMPARISON (cd-*)
   ============================================================ */
.cd-image-container {
  position: relative;
  width: 90%;
  max-width: 768px;
  margin: 0 auto;
}

.cd-image-container img {
  display: block;
  width: 100%;
}

.cd-image-label {
  position: absolute;
  bottom: 0;
  right: 0;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.25);
  padding: 0.5em;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.3s 0.7s, opacity 0.3s 0.7s;
}

.cd-image-label.is-hidden { visibility: hidden; }

.is-visible .cd-image-label {
  opacity: 1;
  transform: translateY(0);
}

.cd-resize-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  overflow: hidden;
  transform: translateZ(0);
  backface-visibility: hidden;
  border-right: solid 1px black;
}

.cd-resize-img img {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
}

.cd-resize-img .cd-image-label { right: auto; left: 0; }

.is-visible .cd-resize-img {
  width: 50%;
  animation: cd-bounce-in 0.7s;
}

.cd-handle {
  position: absolute;
  height: 44px;
  width: 44px;
  left: 50%;
  top: 50%;
  margin-left: -22px;
  margin-top: -22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.85) url("../images/cd-arrows.svg") no-repeat center center;
  cursor: move;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0);
}

.cd-handle.draggable { background-color: #445b7c; }

.is-visible .cd-handle {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition: transform 0.3s 0.7s, opacity 0s 0.7s;
}


/* ============================================================
   MODAL
   ============================================================ */
.myImg {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
}

.modal {
  display: none;
  position: fixed;
  z-index: 100;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.95);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  padding: 2vh 5vw;
  max-height: 80vh;
  overflow: hidden;
  object-fit: contain;
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #8e8e8e;
  padding: 10px 0;
  height: 150px;
}

.modal-content,
#caption {
  animation: zoom 0.6s;
}

@keyframes zoom {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #000;
  font-size: 80px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}


/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact {
  max-width: 560px;
  margin: 0 auto;
  padding: 6vh 5vw 10vh;
}

.contact__title {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 3rem;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact .field {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.3s ease;
}

.contact .field:focus-within {
  border-bottom-color: rgba(255, 255, 255, 0.9);
}

.contact label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.35;
  padding-top: 1.5rem;
  transition: opacity 0.2s ease;
}

.contact .field:focus-within label { opacity: 0.7; }

.contact input,
.contact textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: inherit;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  padding: 0.5rem 0 1.2rem;
  resize: none;
  box-sizing: border-box;
}

.contact textarea { min-height: 120px; }

.contact input::placeholder,
.contact textarea::placeholder { opacity: 0.2; }

.contact .form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  gap: 1rem;
}

.contact button[type="submit"] {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: inherit;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.contact button[type="submit"]:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 1);
  color: #000;
}

.contact button[type="submit"]:active { transform: scale(0.98); }

.contact button[type="submit"].sending {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

.contact .message {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 0.8rem 1.2rem;
  border-left: 2px solid;
  margin-bottom: 2rem;
  display: none;
}

.contact .message.visible {
  display: block;
  animation: fadeIn 0.4s ease;
}

.contact .message.success {
  border-color: rgba(255, 255, 255, 0.5);
  opacity: 0.7;
}

.contact .message.error {
  border-color: #e05555;
  color: #e05555;
}


/* ============================================================
   RESPONSIVE — tablet / mobile  ≤ 992px
   ============================================================ */
@media screen and (max-width: 992px) {
  .container p {
    padding: 65px 5vw;
  }

  .home-grid {
    grid-template-columns: auto;
    grid-template-rows: repeat(6, auto);
    grid-gap: 1vh;
  }

  .home-grid-center p {
    padding: 6px 0;
    letter-spacing: 0;
  }

  .skill-frame { height: 20vh; }

  .website-grid {
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 1vh;
    padding: 3vh 0;
  }

  .half-grid {
    grid-template-columns: 100%;
    grid-template-rows: auto;
    height: 100%;
  }

  .half-grid-right { grid-column: 1; }

  .animated-logo-grid { grid-template-columns: repeat(1, 1fr); }
  .video-grid         { grid-template-columns: repeat(1, 1fr); }
}


/* ============================================================
   RESPONSIVE — mobile  ≤ 768px
   ============================================================ */
@media (max-width: 768px) {
.hamburger {
  display: flex;
  margin-right: 2%;
  position: relative;  /* add this */
  z-index: 1002;       /* add this — must be higher than nav-menu */
}
  .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .navbar {
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0);
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 65px;
    gap: 0;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 1);
    width: 100%;
    text-align: left;
    transition: left 0.3s ease;
    height: 45vh;
    padding: 2rem 0;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    align-items: flex-start;
    z-index: 999;        /* add this */
  }

  .nav-menu.active { left: 0; }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
    margin: 0;
  }

  .nav-item h3 { padding: 0; }

  .nav-link {
    padding: 1rem 2rem;
    width: 100%;
  }

  .contact-link {
    margin: 1rem 2rem;
    display: inline-block;
    text-align: center;
  }

  /* Mobile dropdown */
  .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    border: none;
    box-shadow: none;
    background: #f9f9f9;
    margin: 0;
    padding: 0;
  }

  .dropdown.active .dropdown-menu { display: block; }

  .dropdown-menu a {
    padding: 0.75rem 2rem 0.75rem 3rem;
    font-size: 0.7rem;
  }

  h3 {
    line-height: 1;
    font-size: 1.25em;
    opacity: 1;
    color: #a3a3a3;
  }

  .hero-text {
    margin-top: 100px;
    grid-row: 8 / span 1;
  }

  .home-hero {
    grid-template-columns: repeat(1, 1fr);
    margin: 10vh auto;
    height: fit-content;
    grid-row-gap: 3%;
    max-width: 100%;
  }

  .new-grid {
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 40px;
  }

  .swiper-container-horizontal > .swiper-pagination-bullets,
  .swiper-pagination-custom,
  .swiper-pagination-fraction {
    bottom: 24%;
    left: 0;
    width: 100%;
  }

  .contact {
    padding: 4vh 6vw 8vh;
  }

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

  .modal-content { width: 100%; }
}