/* ================= RESET ================= */
*,
*::before,
*::after {
  max-width: 100%;
}


*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Helvetica, Arial, sans-serif;
}

body *:not(.nav *) h1 { font-size: 5rem; }
body *:not(.nav *) h2 { font-size: 2.5rem; }
body *:not(.nav *) h3 { font-size: 2.5rem; }
body *:not(.nav *) p, body *:not(.nav *) li { font-size: 1.1rem; line-height: 1.6; }

body{
background:white;
color:black;
overflow-x:hidden;
}

/* ===== GRID BACKGROUND ===== */


/* ===== CUSTOM CURSOR ===== */

.cursor{
width:18px;
height:18px;
border:2px solid black;
border-radius:50%;
position:fixed;
pointer-events:none;
transform:translate(-50%,-50%);
transition:transform .15s ease;
z-index:999;
}

/* ===== NAV ===== */

.nav{
position:fixed;
top:0;
width:100%;
display:flex;
justify-content:space-between;
align-items:center;
padding:20px 10%;
background:rgba(255,255,255,0.6);
backdrop-filter:blur(14px);
z-index:10000;
box-sizing:border-box;
overflow:hidden; /* 🔥 PREVENT OVERFLOW */
}

/* LOGO */
.logo{
height:60px;
width:auto;
flex-shrink:0; /* 🔥 never shrink */
}

/* NAV LINKS CONTAINER */
.nav-links{
display:flex;
flex-wrap:wrap;
gap:15px;
justify-content:flex-end;
max-width:60%; /* 🔥 LIMIT WIDTH */
}

/* LINKS */


.nav-links a{
text-decoration:none;
color:black;
font-weight:600;
position:relative;
transition:.3s ease;
white-space:nowrap;
flex:0 0 auto;
}

/* hover color */
.nav-links a:hover{
color:#dc143c;
}

.nav-links a::after{
content:"";
position:absolute;
left:0;
bottom:-6px;
width:0%;
height:2px;
background:#dc143c;
transition:.3s;
}

.nav-links a:hover::after{
width:100%;
}

.nav.scrolled{
padding:12px 60px;
background:white;
box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

/* ===== HERO ===== */

.hero{
min-height:100vh;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
text-align:center;
padding-top:120px; /* 🔥 fixes navbar overlap */
box-sizing:border-box;
}

.hero-title{
font-size:8vw;
letter-spacing:-2px;
line-height:1.1;
padding: 0 15px; /* 🔥 stop huge overflow */
}

.hero-title span{
color: #dc143c;
opacity: 1;
}

.magnetic{
margin-top:40px;
padding:16px 40px;
border:2px solid black;
background:none;
cursor:pointer;
font-size:16px;
}

/* ===== PORTFOLIO ===== */

.portfolio{
padding:120px 10%;
}

.masonry{
column-count:4;
column-gap:18px;
}

.masonry img{
width:100%;
margin-bottom:18px;
border-radius:12px;
transition:.5s;
}

.masonry img:hover{
transform:translateY(-8px) scale(1.02);
}

/* Reverse layout for second project */
.featured.reverse {
  flex-direction: row-reverse;
}

/* Make sure image and info have the same widths as first project */
.featured-image, .featured-info {
  flex: 1 1 500px; /* ensures same size and spacing */
}

.featured img {
  width: 100%;
  border-radius: 14px;
}

/* ===== SERVICES QUICK FIX ===== */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;          /* space between cards */
  padding: 120px 10%; /* section padding */
}

/* Make heading and intro paragraph span full width */
.services h2,
.services p:first-of-type {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 40px;
}

/* Style each service card */
.service {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for cards */
.service:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* Bullet points inside services */
.service ul {
  margin-top: 15px;
  padding-left: 20px;
  list-style-type: disc;
}
.service li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* RESPONSIVE FIX */
@media(max-width:900px){
  .services {
    grid-template-columns: 1fr; /* stack cards vertically */
    gap: 30px;
    padding: 80px 5%;
  }
}

.services .full-width-text {
  grid-column: 1 / -1; /* span all columns */
  text-align: center;
  margin-top: 50px;
  font-weight: bold;
}

/* ===== CONTACT ===== */

.contact{
text-align:center;
padding:140px 20px;
}


/* ===== RESPONSIVE ===== */

@media(max-width:900px){
.masonry{column-count:2;}
.hero-title{font-size:10vw;}
}

/* =========================
   WHATSAPP BUTTON
========================= */

.whatsapp-btn{
position:fixed;
bottom:30px;
right:30px;
background:#dc143c; /* YOUR RED BRAND COLOR */
color:white;
padding:14px 24px;
border-radius:50px;
text-decoration:none;
font-weight:600;
letter-spacing:.5px;
box-shadow:0 10px 30px rgba(0,0,0,0.2);
transition:all .3s ease;
z-index:9999;
}

.whatsapp-btn:hover{
transform:translateY(-6px) scale(1.05);
box-shadow:0 20px 40px rgba(0,0,0,0.3);
}

.hero-sub{
margin-top:20px;
font-size:18px;
opacity:.7;
max-width:600px;
text-align:center;
}

section:not(.portfolio){
  padding:140px 10%;
}

section{
opacity:1;
transform:none;
}

.hero::after{
content:"";
position:absolute;
width:600px;
height:600px;
background:radial-gradient(circle, rgba(220,20,60,0.15), transparent);
filter:blur(80px);
animation:floatGlow 8s ease-in-out infinite;
z-index:-1;
}

@keyframes floatGlow{
0%,100%{transform:translateY(0);}
50%{transform:translateY(-40px);}
}

.work-item{
position:relative;
overflow:hidden;
border-radius:12px;
}

.overlay{
position:absolute;
bottom:0;
left:0;
width:100%;
padding:20px;
background:linear-gradient(transparent, rgba(0,0,0,.7));
color:white;
opacity:0;
transition:.4s;
}

.work-item:hover .overlay{
opacity:1;
}



.footer{
text-align:center;
padding:60px;
opacity:.6;
}

/* ================= REVIEWS ================= */


/* auto scroll animation */

@keyframes scrollReviews{
0%{transform:translateX(0);}
100%{transform:translateX(-50%);}
}


.featured{
 display:flex;
 gap:60px;
 align-items:center;
 padding:120px 5%;
}

.featured img{
 width:100%;
 border-radius:14px;
}

.featured-info{
 max-width:500px;
}

.visit-btn{
 display:inline-block;
 margin-top:20px;
 padding:12px 25px;
 background:#ff2b2b;
 color:white;
 text-decoration:none;
 transition:.3s;
}

.visit-btn:hover{
 transform:translateY(-3px);
}

#intro{
position:fixed;
inset:0;
background:white;
display:flex;
justify-content:center;
align-items:center;
z-index:100000;
overflow:hidden;
}


@keyframes introOut{
 to{
   opacity:0;
   visibility:hidden;
 }
}

@keyframes glitch{
 0%,100%{transform:translate(0)}
 50%{transform:translate(2px,-2px)}
}

/* hide system cursor */
body{
cursor:none;
}


/* TEXT INSIDE CURSOR */
.cursor-text{
  position:fixed;
  transform:translate(-50%,-50%);
  pointer-events:none;
  font-size:10px;
  color:white;
  font-weight:bold;
  z-index:10000;
}

html{
  scroll-behavior:smooth;
}

body{
 background-color:white;
 background-image:
   linear-gradient(#eee 1px, transparent 1px),
   linear-gradient(90deg,#eee 1px,transparent 1px);
 background-size:40px 40px;
 transition:background-position .2s;
}

.brands {
  text-align: center;
  padding: 120px 10%;
  background: white; /* matches your site */
}

.brands h2 {
  font-size: 42px;
  margin-bottom: 60px;
  color: black;
}


/* Responsive for mobile */
@media(max-width: 900px){

body {
  cursor: none;
}

.cursor {
  width: 18px;
  height: 18px;
  border: 2px solid #dc143c;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width .25s ease, height .25s ease, background .25s ease, border .25s ease;
}

.cursor-text {
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-size: 10px;
  color: white;
  font-weight: bold;
  z-index: 10000;
}

.masonry {
  column-count: 4;
  column-gap: 18px;
}

.work-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.work-item img {
  width: 100%;
  display: block;
  border-radius: 12px;
  transition: transform 0.5s ease;
}

.work-item:hover img {
  transform: scale(1.05) translateY(-5px);
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 0 0 12px 12px;
}

.work-item:hover .overlay {
  opacity: 1;
}

.overlay h3 {
  margin-bottom: 5px;
  font-size: 18px;
}

.overlay p {
  font-size: 14px;
  opacity: 0.8;
}

.client-work {
  text-align: center; /* center all content */
  margin-bottom: 60px;
}

.client-work h3 {
  font-size: 28px;
  color: #8B0000;
  margin-bottom: 15px;
}

.client-work p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 20px;
}



.client-images {
  display: flex;
  justify-content: center; /* center all images horizontally */
  flex-wrap: wrap;         /* allow wrapping on smaller screens */
  gap: 18px;               /* space between images */
  margin-bottom: 30px;
}

.client-images img {
  flex: 1 1 200px;         /* each image takes at least 200px */
  max-width: 200px;        /* keeps them uniform in size */
  border-radius: 14px;
  object-fit: cover;
}

@media(max-width:900px){
  .client-images img {
    flex: 1 1 45%;         /* 2 images per row on smaller screens */
    max-width: 45%;
  }
}

@media(max-width:600px){

  .hero-title{
font-size:16vw;
line-height:1.1;
padding: 0 10px;
}

.hero{
padding-top:100px;
}
  
  .client-images img {
    flex: 1 1 80%;         /* stacked on very small screens */
    max-width: 80%;
  }
}
.case-study {
  margin-bottom: 80px;
  text-align: center; /* CENTER ALL TEXT */
}

.case-study h3 {
  font-size: 28px;
  color: #8B0000;
  margin-bottom: 15px;
}

.case-study p {
  font-size: 16px;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 15px; /* center paragraphs */
  color: #333;
}

.case-study p.impact {
  font-weight: bold;
  color: #222;
}

.case-images {
  display: flex;
  justify-content: center; /* center images horizontally */
  flex-wrap: wrap;
  gap: 18px;
  margin: 20px 0 30px;
}

.case-images img {
  flex: 1 1 300px;
  max-width: 300px;
  border-radius: 14px;
  object-fit: cover;
}

@media(max-width:900px){
  .case-images {
    flex-direction: column;
    align-items: center; /* center stacked images */
  }
}

/* ============================= */
/* WEB APPS IMAGE LAYOUT UPDATE  */
/* ============================= */


/* LEFT SIDE (2 DESKTOP IMAGES STACKED) */
.case-images img:nth-child(1),
.case-images img:nth-child(2){
  display:block;
  width:420px;
  max-width:100%;
  border-radius:18px;
  box-shadow:0 20px 50px rgba(0,0,0,0.12);
  transition:transform .4s ease, box-shadow .4s ease;
}

.case-images img:nth-child(1){
  margin-bottom:30px;
}

/* Wrap first 2 into vertical stack */
.case-images{
  flex-wrap:nowrap;
}

.case-images img:nth-child(1),
.case-images img:nth-child(2){
  flex:0 0 auto;
}

/* MOBILE IMAGE RIGHT SIDE */
.case-images img:nth-child(3){
  width:230px;
  max-width:100%;
  border-radius:30px;
  box-shadow:0 20px 60px rgba(0,0,0,0.18);
  transition:transform .4s ease, box-shadow .4s ease;
}

/* Hover */
.case-images img:hover{
  transform:translateY(-8px);
  box-shadow:0 30px 70px rgba(0,0,0,0.2);
}

/* Proper stacking layout */
.case-images{
  display:grid;
  grid-template-columns:auto 250px;
  align-items:center;
  justify-content:center;
}

.case-images img:nth-child(1),
.case-images img:nth-child(2){
  grid-column:1;
}

.case-images img:nth-child(3){
  grid-column:2;
  grid-row:1 / span 2;
}

/* RESPONSIVE */
@media(max-width:1000px){
  .case-images{
    grid-template-columns:1fr;
  }

  .case-images img:nth-child(3){
    grid-column:auto;
    grid-row:auto;
    margin-top:30px;
  }

  .case-images img{
    width:85%;
    margin:0 auto 25px;
  }
}

/* ============================= */
/* LIVE PROJECT BUTTON (WEB APPS) */
/* ============================= */

.live-project-btn{
  grid-column:1;
  display:inline-block;
  margin:10px 0 25px;
  padding:16px 36px;
  background:#dc143c;
  color:white;
  text-decoration:none;
  font-weight:600;
  border-radius:12px;
  box-shadow:0 15px 40px rgba(0,0,0,0.15);
  transition:all .3s ease;
  text-align:center;
  width:fit-content;
}

.live-project-btn:hover{
  transform:translateY(-5px);
  box-shadow:0 25px 60px rgba(0,0,0,0.25);
}

/* Make sure mobile image stays on right */
.case-images img:nth-child(4){
  grid-column:2;
  grid-row:1 / span 3;
}

/* Responsive fix */
@media(max-width:1000px){
  .live-project-btn{
    margin:20px auto;
  }
/* ============================= */
/* CLEAN WEB APP LAYOUT FIX      */
/* ============================= */
@media (max-width: 600px) {
  .case-images {
    display: flex;             /* keep it flex or grid, but flex easier */
    flex-direction: column;    /* stack images vertically */
    align-items: center;       /* center them horizontally */
    gap: 25px;                 /* spacing between images */
    width: 100%;
    margin-top: 40px;
  }
}

/* LEFT SIDE STACK */
.desktop-stack{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.desktop-stack img{
  width:100%;
  max-width:650px;
  border-radius:16px;
  box-shadow:0 25px 60px rgba(0,0,0,0.12);
}

.desktop-stack img:first-child{
  margin-bottom:25px;
}

.desktop-stack img:last-child{
  margin-top:25px;
}

/* MOBILE IMAGE */
.case-images > img{
  width:100%;
  max-width:260px;
  border-radius:32px;
  box-shadow:0 25px 70px rgba(0,0,0,0.18);
}

/* BUTTON */
.live-project-btn{
  display:inline-block;
  padding:16px 36px;
  background:#dc143c;
  color:white;
  text-decoration:none;
  font-weight:600;
  border-radius:12px;
  box-shadow:0 15px 40px rgba(0,0,0,0.15);
  transition:all .3s ease;
}

.live-project-btn:hover{
  transform:translateY(-5px);
  box-shadow:0 25px 60px rgba(0,0,0,0.25);
}

/* RESPONSIVE */
@media(max-width:1000px){
  .case-images{
    grid-template-columns:1fr;
  }

  .case-images > img{
    margin-top:30px;
  }
}

.magnetic {
  position: relative;
  z-index: 10;
}

.magnetic .shake-text {
  display: inline-block;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-6px); }
  100% { transform: translateX(0); }
}

.magnetic:hover .shake-text {
  animation: shake 0.4s ease-in-out;
}

/* ===== PORTFOLIO SECTION ===== */

.portfolio{
padding:120px 6%;
max-width:1200px;
margin:auto;
text-align:center;
}

/* Title */

.portfolio h2{
font-size:42px;
margin-bottom:20px;
}

.portfolio p{
max-width:650px;
margin:auto;
line-height:1.6;
font-size:18px;
margin-bottom:80px;
}

/* ===== GRID ===== */

.masonry{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:80px;
justify-items:center;
align-items:center;
width:100%;
}

/* ===== ITEM ===== */

.work-item{
width:100%;
max-width:320px;
display:flex;
justify-content:center;
align-items:center;
}

/* ===== IMAGE ===== */

.work-item img{
width:100%;
height:auto;
object-fit:contain;
display:block;
}

/* ===== TABLET ===== */

@media (max-width:900px){

.masonry{
grid-template-columns:repeat(2,1fr);
gap:60px;
}

}

/* ===== MOBILE ===== */

@media (max-width:600px){

.portfolio{
padding:90px 7%;
}

.masonry{
grid-template-columns:1fr;
gap:50px;
}

.work-item{
max-width:260px;
}

}


/* ================= MOBILE RESPONSIVE FIX ================= */

@media (max-width: 900px){

.nav{
flex-direction:column;
align-items:flex-start;
padding:15px 8%;
}

/* NAV LINKS STACK CLEANLY */
.nav-links{
width:100%;
display:flex;
flex-wrap:wrap;
justify-content:flex-start;
gap:10px 20px; /* rows + columns */
margin-top:10px;
}

/* EACH LINK TAKES HALF WIDTH */
.nav-links a{
flex:0 0 auto;
}

/* FORCE CLEAN ROW BREAKS */
.nav-links a:nth-child(2n){
margin-right:0;
}

}

/* HERO */
.hero{
padding:0 20px;
}

.hero-title{
font-size:12vw;
line-height:1.2;
}

.hero-sub{
font-size:16px;
padding:0 10px;
}

/* PORTFOLIO GRID FIX */
.masonry{
grid-template-columns:repeat(2,1fr) !important;
gap:30px;
}

/* FEATURED SECTION */
.featured{
flex-direction:column;
gap:30px;
padding:80px 20px;
text-align:center;
}

.featured.reverse{
flex-direction:column;
}

.featured-image,
.featured-info{
flex:1 1 100%;
}

/* SERVICES */
.services{
padding:80px 20px;
gap:25px;
}



}

/* ================= SMALL PHONES ================= */

@media (max-width:600px){

/* NAV STACK (optional if needed later) */

/* HERO */
.hero-title{
font-size:14vw;
}

/* PORTFOLIO FULL STACK */
.masonry{
grid-template-columns:1fr !important;
gap:40px;
}

/* WORK ITEMS */
.work-item{
max-width:100%;
}

h2{
font-size:1.6rem !important;
}

p{
font-size:0.95rem !important;
}

/* BUTTON */
.magnetic{
padding:12px 25px;
font-size:14px;
}

/* WHATSAPP BUTTON */
.whatsapp-btn{
bottom:20px;
right:20px;
padding:12px 18px;
font-size:14px;
}

}








/* ================= MOBILE FIX: CENTER IMAGES & REMOVE HORIZONTAL SCROLL ================= */


.case-images {
  display: flex;
  flex-direction: column; /* stack all images on mobile */
  align-items: center;
  gap: 25px;
  width: 100%;
  padding: 0 5%; /* small side padding */
  box-sizing: border-box;
  overflow: hidden; /* prevent any accidental overflow */
}

.desktop-stack {
  display: flex;
  flex-direction: column; /* stack first 2 images vertically */
  align-items: center;
  gap: 15px;
  width: 100%;
  max-width: 100%;
}

.desktop-stack img,
.case-images > img:not(.desktop-stack img) {
  width: 100%;       /* images take full container width */
  max-width: 100%;   /* never overflow */
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  margin: 0 auto;    /* center images */
}

.live-project-btn {
  width: auto;            /* keep rectangular shape */
  min-width: 200px;       /* ensure decent size */
  max-width: 100%;        /* fit within container */
  padding: 16px 36px;     /* same as desktop */
  text-align: center;
  display: inline-block;
  margin: 10px auto 25px; /* center horizontally */
}

/* MOBILE RESPONSIVE BELOW 1000px */
@media (max-width: 1000px) {
  .case-images,
  .desktop-stack {
    padding-left: 5%;
    padding-right: 5%;
    flex-wrap: nowrap;
  }
}

/* EXTRA SAFETY FOR SMALL PHONES */
@media (max-width: 600px) {
  .case-images {
    padding-left: 5%;
    padding-right: 5%;
    gap: 20px;
  }

  .desktop-stack img {
    max-width: 100%;
  }

  .case-images > img:not(.desktop-stack img) {
    max-width: 100%;
  }

  .live-project-btn {
    padding: 16px 36px;
    margin: 10px auto 25px;
  }
}

  

/* ===== FINAL MOBILE OVERFLOW FIX (DO NOT TOUCH DESKTOP) ===== */
@media (max-width:600px){

  /* STOP ANY HORIZONTAL SCROLL */
  html, body{
    overflow-x:hidden;
    width:100%;
  }

  /* ===== REVIEWS FIX ===== */
  /* ===== CASE IMAGES FIX ===== */
  .case-images{
    display:flex !important;      /* override grid */
    flex-direction:column;
    align-items:center;
    width:100%;
    overflow:hidden;
  }

  .case-images img{
    width:100% !important;
    max-width:100% !important;
  }

  /* ===== NAV FIX ===== */
  .nav{
    padding:15px 20px; /* prevents % overflow */
  }

}


  @media (max-width:600px){

  h1{
    font-size:2rem;
  }

  .hero-title{
    font-size:18vw;
  }

}
