/* ================= RESET ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050b14;
  color: #0b1726;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

/* ================= VARIABLES ================= */

:root {
  --navy: #050b14;
  --navy-2: #08111f;
  --navy-3: #0d1828;
  --blue: #0c5fe8;
  --blue-2: #1877f2;
  --blue-glow: rgba(12, 95, 232, .35);
  --text: #eaf1ff;
  --dark-text: #0b1726;
  --muted: #677489;
  --light: #f5f7fb;
  --white: #ffffff;
  --shadow: 0 25px 60px rgba(0, 0, 0, .22);
  --radius: 22px;
}

/* ================= GLOBAL ================= */

.section {
  padding: 6rem 8%;
  background: var(--light);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.eyebrow {
  color: var(--blue-2);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 900;
  margin-bottom: .75rem;
}

h1,
h2,
h3 {
  color: #06283d;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.8rem, 4.8vw, 4.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  opacity: 0;
  transform: translateY(35px);
  filter: blur(6px);
  transition:
    opacity .8s ease,
    transform .8s ease,
    filter .8s ease;
}

h2.show {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

p {
  color: var(--muted);
  line-height: 1.75;
}

/* ================= BUTTONS ================= */

.btn {
  display: inline-block;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: .86rem;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background .25s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  color: white;
  box-shadow: 0 14px 32px rgba(12, 95, 232, .35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(12, 95, 232, .45);
}

.btn-secondary {
  background: rgba(255, 255, 255, .04);
  color: white;
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .1);
}

/* ================= HEADER ================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 1.1rem 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  transition:
    background .25s ease,
    box-shadow .25s ease;
}

.site-header.scrolled {
  background: rgba(5, 11, 20, .9);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 900;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand-text {
  font-size: .95rem;
}

.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  font-weight: 800;
  text-transform: uppercase;
  font-size: .82rem;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.5rem;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--blue-2);
  transition: width .25s ease;
}

.nav a:hover::after {
  width: 100%;
}

.header-cta {
  padding: .85rem 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  box-shadow: 0 12px 30px rgba(12, 95, 232, .35);
  font-weight: 900;
  text-transform: uppercase;
  font-size: .82rem;
}

.nav-toggle {
  display: none;
}

/* ================= HOME HERO ================= */

.hero {
  height: 830px;
  display: flex;
  align-items: center;
  padding: 0 8%;
  position: relative;
  overflow: hidden;
  background: url("../assets/images/hero.webp") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 4.8vw, 4.8rem);
  line-height: 1.05;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 640px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(234, 241, 255, .78);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ================= INTRO STRIP ================= */

.intro-strip {
  padding: 1rem 8%;
  background: var(--navy);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.intro-strip p {
  color: rgba(255, 255, 255, .72);
  font-weight: 700;
}

/* ================= ABOUT ================= */

.about-section {
  background:
    radial-gradient(circle at top right, rgba(12, 95, 232, .12), transparent 35%),
    #f5f7fb;
}

.about-layout {
  max-width: 1180px;
  margin: 0 auto;
}

.about-intro {
  max-width: 780px;
  margin-bottom: 3rem;
}

.about-intro h2 {
  max-width: 760px;
}

.about-intro p {
  max-width: 680px;
  margin-top: 1rem;
  font-size: 1.05rem;
}

.about-cards {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.5rem;
}

.about-card {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .08);
}

.dark-card {
  background:
    linear-gradient(135deg, rgba(8, 17, 31, .98), rgba(5, 11, 20, .98));
}

.dark-card h3,
.dark-card p {
  color: white;
}

.about-stat {
  background: white;
  border: 1px solid #e8eef5;
}

.about-stat strong {
  display: block;
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: .5rem;
}

.about-stat span {
  color: var(--muted);
  font-weight: 700;
}

/* ================= WORK / PROJECT CARDS ================= */

.work-section {
  background: #ffffff;
}

.featured-project {
  max-width: 1180px;
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
  padding: 2rem;
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .12);
}

.project-preview {
  display: block;
  overflow: hidden;
  border-radius: 18px;
}

.project-preview img {
  width: 100%;
  border-radius: 18px;
  display: block;
  transition: transform .4s ease;
}

.project-preview:hover img {
  transform: scale(1.04);
}

.project-type {
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: .8rem;
}

.project-details h3 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 0 0 1.25rem;
}

.project-details p {
  max-width: 560px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.8rem;
}

.tags span {
  padding: .45rem .75rem;
  border-radius: 999px;
  background: #e8f3ff;
  color: #075fc4;
  font-weight: 800;
  font-size: .82rem;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.9rem;
  flex-wrap: wrap;
}

.project-text-link {
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  font-size: .86rem;
}

.project-text-link:hover {
  text-decoration: underline;
}

.project-grid,
.skills-grid,
.service-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.project-grid {
  grid-template-columns: repeat(3, 1fr);
}

.skills-grid,
.service-grid {
  grid-template-columns: repeat(4, 1fr);
}

.project-card,
.skills-grid article,
.service-card,
.process-grid article {
  background: white;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .08);
  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.project-card {
  overflow: hidden;
  cursor: pointer;
}

.project-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-link:hover {
  color: inherit;
}

.project-card:hover,
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .12);
}

.project-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform .4s ease;
}

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

.phone-card img {
  object-fit: contain;
  object-position: center;
  background: #050505;
}

.project-card div {
  padding: 1.5rem;
}

/* ================= SKILLS ================= */

.skills-section {
  background:
    linear-gradient(rgba(255, 255, 255, .10), rgba(255, 255, 255, .10)),
    url("../assets/images/Work.webp") center center / cover no-repeat;
}

.skills-section h2 {
  color: #ffffff;
}

.skills-grid article {
  padding: 2rem;
}

/* ================= SERVICES ================= */

.services-section {
  background: #ffffff;
}

.service-card {
  padding: 2rem;
}

.service-card img {
  width: 62px;
  height: 62px;
  margin-bottom: 1.5rem;
}

/* ================= PROCESS SECTION ================= */

.process-section {
  background: var(--light);
}

.process-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.process-grid article {
  padding: 2rem;
}

.process-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e8f3ff;
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 1rem;
}

/* ================= CONTACT ================= */

.contact {
  padding: 6rem 8%;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3rem;
  background: url("../assets/images/Contact.webp") 65% center / cover no-repeat;
}

.contact h2,
.contact p,
.contact li {
  color: white;
}

.contact-info ul {
  list-style: none;
  margin-top: 1.5rem;
}

.contact-info li {
  margin-bottom: .85rem;
}

.contact-form {
  background: rgba(8, 18, 35, .35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #d8e3ec;
  border-radius: 12px;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
}

.form-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.form-popup.show {
  display: flex;
}

.form-popup-card {
  background: #fff;
  padding: 35px;
  border-radius: 18px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.form-popup-card h3 {
  margin-bottom: 10px;
  color: #06283d;
}

.form-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ================= FOOTER ================= */

.footer {
  background: var(--navy);
  color: white;
  padding: 4rem 8% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

.footer h3,
.footer h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer p,
.footer a {
  display: block;
  color: rgba(255, 255, 255, .7);
  margin-bottom: .7rem;
}

.footer a:hover {
  color: var(--blue-2);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* ==========================================
   CASE STUDY BASE
========================================== */

.case-hero {
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 140px 7% 90px;
  background: url("../assets/images/RJL-HERO.webp") center / cover no-repeat;
  color: #fff;
}

.case-hero-content {
  max-width: 850px;
}

.case-hero h1 {
  font-size: clamp(3.2rem, 7vw, 7rem);
  line-height: .95;
  margin: 12px 0 24px;
  color: #fff;
}

.case-hero p {
  max-width: 720px;
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, .86);
}

.case-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.case-stats {
  width: min(1180px, 88%);
  margin: -55px auto 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(6, 40, 61, .16);
}

.case-stats article {
  padding: 28px;
  border-right: 1px solid #e7eef5;
}

.case-stats article:last-child {
  border-right: none;
}

.case-stats span {
  display: block;
  color: #6c7a89;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  margin-bottom: 8px;
}

.case-stats strong {
  color: #06283d;
  font-size: 1rem;
}

.case-section {
  width: min(1180px, 88%);
  margin: 0 auto;
  padding: 95px 0;
}

.case-overview {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.case-overview h2,
.case-heading h2,
.case-takeaway h2,
.case-next h2 {
  color: #06283d;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
}

.case-overview p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #516170;
  margin-bottom: 18px;
}

.case-preview {
  background: #fff;
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 25px 70px rgba(6, 40, 61, .14);
}

.case-preview img,
.case-preview video {
  width: 100%;
  display: block;
  border-radius: 20px;
}

.case-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.case-gallery article {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 55px rgba(6, 40, 61, .1);
  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.case-gallery article:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(6, 40, 61, .16);
}

.case-gallery img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.case-gallery h3,
.case-gallery p {
  padding-inline: 22px;
}

.case-gallery h3 {
  margin: 22px 0 8px;
  color: #06283d;
}

.case-gallery p {
  padding-bottom: 24px;
  color: #5d6c79;
  line-height: 1.6;
}

.case-dark {
  width: 100%;
  padding-inline: 7%;
  background: #061f33;
  color: #fff;
}

.case-dark .case-heading {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.case-dark h2,
.case-dark h3 {
  color: #fff;
}

.case-dark .eyebrow {
  color: #77d9ff;
}

.case-feature-grid {
  width: min(1180px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.case-feature-grid article {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  padding: 28px;
}

.case-feature-grid p {
  color: rgba(255, 255, 255, .75);
  line-height: 1.7;
}

.device-preview {
  display: grid;
  grid-template-columns: 1.4fr .8fr .5fr;
  gap: 24px;
  align-items: end;
}

.device-preview img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 25px 70px rgba(6, 40, 61, .14);
  background: #fff;
}

/* ================= CASE PROCESS CARDS ================= */

.case-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.case-process article {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow: 0 18px 45px rgba(6, 40, 61, .09);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.case-process article:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 65px rgba(6, 40, 61, .14);
}

.process-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
  margin: 0 auto 1.5rem;
  transition: transform .3s ease;
}

.case-process article:hover .process-icon {
  transform: scale(1.08);
}

.case-process h3 {
  color: #06283d;
  margin-bottom: .35rem;
}

.case-process span {
  display: block;
  margin-bottom: 1rem;
  color: #1877f2;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.case-process p {
  color: #5d6c79;
  line-height: 1.75;
}

.case-takeaway {
  text-align: center;
  max-width: 900px;
}

.case-takeaway p {
  color: #53616d;
  line-height: 1.8;
  font-size: 1.08rem;
}

.case-next {
  text-align: center;
  padding: 100px 7%;
  background: #eaf3f8;
}

.case-next .btn {
  margin-top: 24px;
}

/* ==========================================
   RJL POOLS CASE STUDY
========================================== */

.rjl-case-page {
  background: #f6f8fb;
}

/* ==========================================
   GETFIT CASE STUDY
========================================== */

.getfit-case-page {
  background: #f6f8fb;
}

.getfit-case-page .case-hero {
  background: url("../assets/images/GetFit-HERO.webp") center / cover no-repeat;
}

.getfit-case-page .case-dark {
  background: #071f2d;
}

.getfit-case-page .case-dark .eyebrow {
  color: #77d9ff;
}

.getfit-case-page .case-next {
  background: #eaf3f8;
}

.app-video-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 25px 70px rgba(6, 40, 61, .14);
  max-width: 900px;
  margin: 0 auto;
}

.app-video-preview video {
  width: 260px;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .22);
}

.getfit-case-page .case-gallery img {
  height: 340px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 15px;
}

/* ==========================================
   INKSOUL CASE STUDY
========================================== */

.inksoul-case-page {
  background: #f6f8fb;
}

.inksoul-case-page .case-hero {
  background: url("../assets/images/InkSoul-HERO.webp") center / cover no-repeat;
}

.inksoul-case-page .case-dark {
  background: #071f2d;
}

.inksoul-case-page .case-dark .eyebrow {
  color: #77d9ff;
}

.inksoul-case-page .case-next {
  background: #eaf3f8;
}

.inksoul-case-page .app-video-preview video {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 18px;
}

/* ================= TECHNICAL FEATURES ================= */

.technical-section .case-heading p {
  max-width: 720px;
  color: #516170;
  font-size: 1.05rem;
}

.technical-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.technical-grid article {
  background: #fff;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 18px 45px rgba(6, 40, 61, .09);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.technical-grid article:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 65px rgba(6, 40, 61, .14);
}

.technical-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
  margin: 0 auto 1.5rem;
  transition: transform .3s ease;
}

.technical-grid article:hover .technical-icon {
  transform: scale(1.08);
}

.technical-grid h3 {
  color: #06283d;
  margin-bottom: 12px;
}

.technical-grid p {
  color: #5c6b78;
  line-height: 1.7;
}

.card-divider {
  width: 42px;
  height: 4px;
  margin: 16px auto 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1877f2, #0c5fe8);
}

/* ================= UNIVERSAL LIGHTBOX ================= */

.lightbox-image {
  cursor: zoom-in;
}

.case-gallery .lightbox-image {
  transition: none;
}

.case-gallery .lightbox-image:hover,
.case-gallery article:hover .lightbox-image {
  transform: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 11, 20, .92);
  backdrop-filter: blur(12px);
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  text-align: center;
  animation: lightboxZoom .25s ease;
}

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

#lightboxCaption {
  color: rgba(255, 255, 255, .82);
  margin-top: 1rem;
  font-weight: 700;
}

#lightboxCounter {
  display: block;
  color: rgba(255, 255, 255, .55);
  margin-top: .35rem;
  font-size: .85rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, .12);
  color: white;
  cursor: pointer;
  border-radius: 999px;
}

.lightbox-close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 2rem;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

@keyframes lightboxZoom {
  from {
    opacity: 0;
    transform: scale(.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
  .about-grid,
  .featured-project,
  .contact {
    grid-template-columns: 1fr;
  }

  .skills-grid,
  .service-grid,
  .project-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1000px) {
  .case-stats,
  .case-gallery,
  .case-feature-grid,
  .case-process,
  .technical-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-overview {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .device-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 1rem 6%;
  }

  .nav {
    position: absolute;
    top: 78px;
    left: 6%;
    right: 6%;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: 18px;
    background: rgba(5, 11, 20, .96);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
    border: none;
    background: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
  }

  .header-cta {
    display: none;
  }

  .hero {
    height: 720px;
    padding: 8rem 6% 4rem;
    background-position: center;
  }

  .hero-content h1 {
    font-size: clamp(2.5rem, 11vw, 3.8rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .skills-grid,
  .service-grid,
  .project-grid,
  .process-grid,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .section,
  .contact {
    padding: 4rem 6%;
  }

  .footer-bottom {
    flex-direction: column;
  }

    .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .about-card {
    width: 100%;
    padding: 2rem;
  }

  .about-card p {
    line-height: 1.7;
  }
}

@media (max-width: 650px) {
  .case-hero {
    min-height: 75vh;
    padding: 130px 6% 70px;
  }

  .case-actions {
    flex-direction: column;
  }

  .case-actions .btn {
    width: 100%;
    text-align: center;
  }

  .case-stats,
  .case-gallery,
  .case-feature-grid,
  .case-process,
  .technical-grid {
    grid-template-columns: 1fr;
  }

  .case-stats {
    margin-top: -35px;
  }

  .case-stats article {
    border-right: none;
    border-bottom: 1px solid #e7eef5;
  }

  .case-stats article:last-child {
    border-bottom: none;
  }

  .case-section {
    width: 90%;
    padding: 70px 0;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
  }
}


