
#header {
  position: sticky;
  top: 0;
  z-index: 9999;
}

/* HERO SECTION */
.portfolio-hero{
  padding:90px 20px;   
  text-align:center;
  position:relative;
  overflow:hidden;
  background:radial-gradient(circle at top,#2b255a,#0f0c29);
  color:#fff;
}

/* ===== EXTRA BACKGROUND LAYER (DEPTH) ===== */
.portfolio-hero::before{
  content:'';
  position:absolute;
  width:500px;
  height:500px;
  background:radial-gradient(circle, rgba(106,44,255,0.35), transparent);
  top:-120px;
  left:-120px;
  filter:blur(100px);
}

.portfolio-hero::after{
  content:'';
  position:absolute;
  width:500px;
  height:500px;
  background:radial-gradient(circle, rgba(255,0,150,0.2), transparent);
  bottom:-120px;
  right:-120px;
  filter:blur(100px);
}


.hero-content{
  position:relative;
  z-index:2;
  max-width:1250px;   
  margin:auto;
  padding:35px 30px;
  border-radius:22px;

  background:rgba(255,255,255,0.06);
  backdrop-filter:blur(14px);

  border:1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.4),
    inset 0 1px 1px rgba(255,255,255,0.1);
}

/* ===== TITLE ===== */
.hero-content h1{
  font-size:clamp(32px,5vw,52px);  /* 🔥 thoda compact */
  font-weight:800;
  line-height:1.2;
  letter-spacing:-0.5px;
}

/* GRADIENT TEXT */
.hero-content span{
  background:linear-gradient(135deg,#a18cd1,#fbc2eb);
  background-clip:text;
  -webkit-background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
}

/* SUBTEXT */
.hero-content p{
  margin-top:12px;
  font-size:16px;
  opacity:0.85;
}

/* BUTTON WRAPPER */
.hero-buttons{
  margin-top:22px;
}

/* PRIMARY BUTTON */
.btn-primary{
  padding:12px 30px;
  background:linear-gradient(135deg,#6a2cff,#8f5cff);
  color:#fff;
  border-radius:40px;
  text-decoration:none;
  margin-right:10px;
  display:inline-block;
  font-weight:500;
  transition:all 0.3s ease;
  box-shadow:0 8px 25px rgba(106,44,255,0.4);
}

.btn-primary:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 30px rgba(106,44,255,0.6);
}

/* SECONDARY BUTTON */
.btn-secondary{
  padding:12px 30px;
  border:1px solid rgba(255,255,255,0.3);
  color:#fff;
  border-radius:40px;
  text-decoration:none;
  display:inline-block;
  transition:all 0.3s ease;
}

.btn-secondary:hover{
  background:#fff;
  color:#000;
  transform:translateY(-3px);
}

/* REMOVE FLOAT (🔥 cleaner look) */
.hero-content{
  animation:none;
}

/* MOBILE */
@media(max-width:768px){
  .hero-content{
    padding:25px 18px;
  }

  .hero-buttons a{
    display:block;
    margin:10px auto;
  }

  .hero-content h1{
    font-size:30px;
  }
}

/* ===== SECTION ===== */
.portfolio-section{
  background:linear-gradient(180deg,#f7f8fc,#eef0ff);
  padding:80px 0;
}

/* ===== FILTER ===== */
.filter-buttons{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-bottom:50px;
  flex-wrap:wrap;
}

.filter-buttons button{
  padding:12px 28px;
  border-radius:50px;
  border:none;
  background:radial-gradient(circle at top,#2b255a,#0f0c29);
  color:white;
  font-size:16px;
  font-weight:500;
  cursor:pointer;
  transition:all 0.3s ease;
}

.filter-buttons button:hover{
  transform:translateY(-3px) scale(1.05);
}

/* ===== GRID ===== */
.portfolio-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:35px;
  max-width:1200px;
  margin:auto;
  padding:20px;
  align-items:stretch;   
}

.portfolio-card{
  background:#fff;
  border-radius:20px;
  overflow:hidden;
  border-left:2px solid #a03105;
  border-right:2px solid #a03105;
  border-top:4px solid #0f0c29;     
  border-bottom:4px solid #0f0c29;  
  box-shadow:0 15px 40px rgba(0,0,0,0.08);
  transition:all 0.4s ease;
  display:flex;
  flex-direction:column;
  height:100%;   
}

.portfolio-card:hover{
  transform:translateY(-10px);
  box-shadow:0 25px 60px rgba(0,0,0,0.12);
}


/* ===== IMAGE ===== */
.img-wrapper{
  background:linear-gradient(135deg,#f9f9ff,#eef1ff);
  height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:25px;
}

.img-wrapper img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  transition:0.4s;
}

.portfolio-card:hover img{
  transform:scale(1.05);
}

/* ===== CONTENT ===== */
.card-content{
  padding:24px;
  display:flex;
  flex-direction:column;
  flex:1;
}

/* TITLE */
.card-content h3{
  margin-bottom:10px;
  font-size:20px;
  font-weight:600;
  color:#111;
}

/* TEXT */
.card-content p{
  font-size:16px;
  color:#080808;
  line-height:1.7;
  flex-grow:1;   
}


.tags{
  margin:14px 0;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  min-height:80px;   
  align-content:flex-start; 
}


.tags span{
  min-width:90px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50px;
  background:#0f0477;
  color:#fff;
  font-size:13px;
  font-weight:500;
}


.card-btn{
  margin-top:auto;
  align-self:flex-start;
  padding:10px 22px;
  border-radius:25px;
  background:linear-gradient(135deg,#6a2cff,#8f5cff);
  color:#fff;
  text-decoration:none;
  font-size:14px;
  transition:0.3s;
}

.card-btn:hover{
  transform:translateY(-2px);
}

/* ===== ADVANCED ANIMATION ===== */
.portfolio-card{
  opacity:0;
  transform:translateY(60px) scale(0.95);
  animation:fadeUp 0.7s ease forwards;
}

.portfolio-card:nth-child(1){ animation-delay:0.1s; }
.portfolio-card:nth-child(2){ animation-delay:0.2s; }
.portfolio-card:nth-child(3){ animation-delay:0.3s; }

@keyframes fadeUp{
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

/* ===== HOVER MICRO ANIMATION ===== */
.portfolio-card:hover{
  transform:translateY(-10px) scale(1.02);
}

/* ===== RESPONSIVE ===== */
@media(max-width:992px){
  .portfolio-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:600px){
  .portfolio-grid{
    grid-template-columns:1fr;
  }

  .card-content p{
    font-size:14px;
  }
}

/* ===== FONT ===== */
body{
  font-family: 'Poppins', sans-serif;
}

/* SECTION */
.case-study{
  padding:120px 20px;
  background:#f8f9ff;
}

/* HEADER */
.case-header{
  text-align:center;
  max-width:750px;
  margin:auto;
}

.case-header h2{
  font-size:clamp(34px,5vw,48px);  /* 🔥 bigger */
  font-weight:700;
  margin-bottom:12px;
  line-height:1.2;
}

/* GRADIENT TEXT FIXED */
.case-header span{
  background:linear-gradient(135deg,#6a2cff,#8f5cff);
  background-clip:text;
  -webkit-background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
}

/* META */
.case-meta{
  color:#333;
  font-size:17px;   
  margin-bottom:10px;
}

/* SUBTEXT */
.case-sub{
  color:#333;
  font-size:18px;   
  line-height:1.7;
}

.case-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(260px,1fr)); /* 🔥 wider cards */
  gap:30px;
  max-width:1300px;   
  margin:70px auto 0;
}

.case-card{
  background:#fff;
  padding:26px;
  border-radius:16px;
  border:1px solid #eee;
  transition:0.3s;
  text-align:left;
  position:relative;
  overflow:hidden;
}

.case-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:4px;
}

.case-card:nth-child(1)::before{
  background:#ff6b6b;
}

.case-card:nth-child(2)::before{
  background:#00c896;
}

.case-card:nth-child(3)::before{
  background:#ffa500;
}


.case-card:hover{
  transform:translateY(-8px);
  box-shadow:0 20px 50px rgba(0,0,0,0.08);
}

.case-card h3{
  font-size:20px;   
  margin-bottom:14px;
  font-weight:600;
  font-weight: #111;
  display:flex;
  align-items:center;
  gap:8px;
}

.case-card p{
  font-size:16px;
  color:#333;
  line-height:1.7;
  word-break:break-word;   /* 🔥 fix */
}

.case-card li{
  margin-bottom:10px;
  line-height:1.7;
  font-size:16px;
  word-break:break-word;   
}


.case-card ul{
  padding-left:18px;
  margin-top:10px;
}

.case-highlight{
  background:linear-gradient(135deg,#6a2cff,#8f5cff);
  color:#fff;
  padding:30px;
  border-radius:18px;
  text-align:left;
  box-shadow:0 20px 50px rgba(106,44,255,0.25);
  transform:none;   
}
.case-highlight h3{
  font-size:22px;
  margin-bottom:14px;
}

.case-highlight ul{
  padding-left:18px;
}


.case-highlight li{
  margin-bottom:10px;
  line-height:1.7;
  font-size:17px;
}

/* BUTTON */
.case-btn{
  display:inline-block;
  margin-top:20px;
  padding:12px 28px;
  border-radius:30px;
  background:#fff;
  color:#6a2cff;
  text-decoration:none;
  font-weight:600;
  transition:0.3s;
}

.case-btn:hover{
  transform:translateY(-3px) scale(1.05);
  box-shadow:0 15px 30px rgba(0,0,0,0.2);
}

/* RESPONSIVE */
@media(max-width:992px){
  .case-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:600px){
  .case-grid{
    grid-template-columns:1fr;
  }

  .case-header h2{
    font-size:30px;
  }
}

/* CTA SECTION */
.cta{
  padding:100px 20px;
  text-align:center;
  position:relative;
  overflow:hidden;

  background:linear-gradient(135deg,#6a2cff,#8f5cff);
  color:#fff;
}

/* GLOW BACKGROUND */
.cta::before{
  content:"";
  position:absolute;
  width:400px;
  height:400px;
  background:radial-gradient(circle, rgba(255,255,255,0.2), transparent);
  top:-100px;
  left:-100px;
  filter:blur(100px);
}

.cta::after{
  content:"";
  position:absolute;
  width:400px;
  height:400px;
  background:radial-gradient(circle, rgba(255,255,255,0.15), transparent);
  bottom:-100px;
  right:-100px;
  filter:blur(100px);
}

/* CONTENT */
.cta-content{
  position:relative;
  z-index:2;
  max-width:700px;
  margin:auto;
}

/* HEADING */
.cta-content h2{
  font-size:clamp(28px,4vw,42px);
  margin-bottom:15px;
}

/* TEXT */
.cta-content p{
  font-size:15px;
  opacity:0.9;
  line-height:1.6;
}

/* BUTTONS */
.cta-buttons{
  margin-top:25px;
}

/* PRIMARY BUTTON */
.cta-primary{
  display:inline-block;
  padding:14px 32px;
  border-radius:30px;
  background:#fff;
  color:#6a2cff;
  text-decoration:none;
  font-weight:600;
  margin-right:10px;
  transition:0.3s;
}

.cta-primary:hover{
  transform:translateY(-3px);
  box-shadow:0 15px 30px rgba(0,0,0,0.2);
}

/* SECONDARY */
.cta-secondary{
  display:inline-block;
  padding:14px 32px;
  border-radius:30px;
  border:1px solid rgba(255,255,255,0.4);
  color:#fff;
  text-decoration:none;
  transition:0.3s;
}

.cta-secondary:hover{
  background:#fff;
  color:#000;
}

/* MOBILE */
@media(max-width:768px){
  .cta-buttons a{
    display:block;
    margin:10px auto;
  }
}