
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}
:root{
  --text:#1d1d1f;
  --muted:#6e6e73;
  --accent:#6366f1;
  --bg-color:#f5f5f7;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --transition: 0.8s var(--ease);
}
html, body { overflow-x: hidden; width: 100%; position: relative; scroll-behavior:smooth; }
body{font-family:'Inter',sans-serif;color:var(--text);-webkit-font-smoothing:antialiased;background:var(--bg-color);}

/* ── BG BLUR ANIMATION ── */
.bg-scene{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none;}
.bg-scene::before{
  content:'';position:absolute;inset:0;
  background:
    radial-gradient(circle at 10% 10%, #eff6ff 0%, transparent 50%),
    radial-gradient(circle at 90% 5%,  #f5f3ff 0%, transparent 50%),
    radial-gradient(circle at 50% 100%,#f0f9ff 0%, transparent 50%);
  background-color:var(--bg-color);
}
.parallax-layer {
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
}
.blob{position:absolute;border-radius:50%;filter:blur(140px);opacity:.65;}
.blob-1{width:800px;height:800px;background:#e0e7ff;top:10%;left:25%;animation:float 20s ease-in-out infinite;}
.blob-2{width:700px;height:700px;background:#ede9fe;top:30%;right:15%;animation:float 25s ease-in-out infinite reverse;}
.blob-3{width:900px;height:900px;background:#dbeafe;top:60%;left:15%;animation:float 22s ease-in-out infinite;}
.blob-4{width:600px;height:600px;background:#f3e8ff;bottom:10%;right:25%;animation:float 18s ease-in-out infinite reverse;}
@keyframes float{0%,100%{transform:translateY(0) scale(1);}50%{transform:translateY(-40px) scale(1.05);}}

@keyframes fadeInBlur {
  from { opacity: 0; filter: blur(20px); transform: translateY(50px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
/* ── NAV (Consistent with index.php) ── */
nav{
  position:fixed;top:0;left:0;z-index:200;
  width:100%; height:80px;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 2rem;
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(0,0,0,0.04);
  transition: background 0.5s ease, box-shadow 0.5s ease;
}
.logo { display: flex; align-items: center; }
.logo img{ height:44px; transition: filter 0.4s ease, transform 0.3s var(--ease); }
.logo:hover img{ transform: scale(1.04); }
.nav-links{ display:flex; gap:2.5rem; list-style:none; }
.nav-links a{ color:#374151; text-decoration:none; font-size:14px; font-weight:500; transition:color 0.3s ease; }
.nav-links a:hover{ color:#111; }
.nav-cta{
  background: #111827; color:#fff; border:1px solid #111827; padding:0.6rem 1.3rem; border-radius:40px;
  font-family:inherit; font-size:13px; font-weight:600; cursor:pointer;
  transition:all 0.3s ease; text-decoration:none; white-space:nowrap;
}
.nav-cta:hover{ background:#374151; border-color:#374151; }
.menu-toggle{ display: none; background: none; border: none; cursor: pointer; color: var(--text); padding: 8px; z-index: 210; }
.menu-toggle i{ width: 28px; height: 28px; }

/* ── PORTFOLIO HERO ── */
.portfolio-hero { padding: 130px 8vw 40px; text-align: center; }
.hero-badge{
  display:inline-flex; align-items:center; gap:.5rem;
  background:rgba(255,255,255,0.7); border:1px solid rgba(0,0,0,0.05);
  color:var(--muted); padding:.5rem 1.2rem; border-radius:40px;
  font-size:.68rem; font-weight:500; letter-spacing:.08em; text-transform:uppercase;
  margin-bottom:1.5rem; animation: fadeInBlur 1s var(--ease) both;
}
.portfolio-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 300;
  line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 2rem;
  animation: fadeInBlur 1s var(--ease) both 0.2s;
}
.portfolio-hero h1 em{
  font-style:normal; font-weight:400;
  background: linear-gradient(135deg, #1d1d1f, #6366f1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.portfolio-hero p{
  font-size: 1.15rem; color: var(--muted); max-width: 600px; margin: 0 auto; line-height: 1.6; font-weight: 300;
  animation: fadeInBlur 1.2s var(--ease) both 0.3s;
}
.project-count {
  margin-top: 3rem; font-size: 0.85rem; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  animation: fadeInBlur 1.2s var(--ease) both 0.45s;
}
.project-count span {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--text); color: #fff; width: 28px; height: 28px; border-radius: 50%; font-weight: 600; font-size: 0.75rem;
}

/* ── FILTER ── */
.filter-container{
  position:sticky; top:90px; z-index:150; display:flex; justify-content:center; gap:0.8rem; 
  padding:1.5rem 8vw; flex-wrap:wrap; background: transparent;
  margin-bottom: 4rem;
}
.filter-btn{
  background:rgba(255,255,255,0.95); border:1px solid rgba(0,0,0,0.06);
  color:var(--muted); padding:0.8rem 1.6rem; border-radius:40px;
  font-size:.8rem; font-weight:500; cursor:pointer; transition:all 0.4s var(--ease);
  box-shadow: 0 4px 10px rgba(0,0,0,0.01);
}
.filter-btn:hover{ color:var(--text); transform:translateY(-2px); box-shadow:0 10px 20px rgba(0,0,0,0.04); }
.filter-btn.active{ background:var(--text); color:#fff; border-color:var(--text); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }

/* ── MASONRY GRID ── */
.portfolio-grid{
  position:relative; z-index:1; padding:0 6vw 120px;
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2.5rem;
}
@media (min-width: 768px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 3.5rem; } }

/* ── CARDS (Clean Image) ── */
.p-card{
  position: relative; overflow: hidden; background: transparent;
  transition: all 0.6s var(--ease); cursor: pointer;
  display: block; width: 100%; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.p-card:hover{ filter: brightness(1.05); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.p-image{ 
  width:100%; height: auto; position:relative; overflow:hidden; border-radius: 12px;
  background: linear-gradient(90deg, #f0f0f5 0%, #e0e0e5 50%, #f0f0f5 100%);
  background-size: 200% 100%; animation: skeletonPulse 1.5s infinite;
}
@keyframes skeletonPulse { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.p-image img{ width:100%; height:auto; object-fit:contain; display:block; transition: transform 0.6s var(--ease); transform: scale(1.035); }
.p-card:hover .p-image img{ transform: scale(1.06); }

.p-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.7);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.4s var(--ease);
  color: #fff; text-align: center; padding: 2rem;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.p-card:hover .p-overlay { opacity: 1; }
.p-overlay h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: 0.5rem; transform: translateY(20px); transition: 0.4s var(--ease); }
.p-overlay span { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; transform: translateY(20px); transition: 0.4s var(--ease); transition-delay: 0.05s;}
.p-card:hover .p-overlay h3, .p-card:hover .p-overlay span { transform: translateY(0); }

/* ── MODAL ── */
.portfolio-modal {
  position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
  padding: 4vw; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.portfolio-modal.active { opacity: 1; pointer-events: auto; }
.portfolio-modal-content {
  position: relative; max-width: 90vw; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center;
  transform: scale(0.95); transition: transform 0.4s ease;
}
.portfolio-modal.active .portfolio-modal-content { transform: scale(1); }
.portfolio-modal img {
  max-width: 100%; max-height: calc(90vh - 80px); object-fit: contain; display: block; border-radius: 8px;
  clip-path: inset(2% round 8px);
}
.portfolio-modal-close {
  position: absolute; top: -50px; right: -20px; color: #fff; background: none; border: none;
  font-size: 2rem; cursor: pointer; padding: 10px; opacity: 0.6; transition: 0.3s;
}
.portfolio-modal-close:hover { opacity: 1; transform: scale(1.1); }
.modal-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1);
  color: #fff; padding: 15px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease); backdrop-filter: blur(5px);
  z-index: 10;
}
.modal-nav-btn:hover { background: rgba(255,255,255,0.2); transform: translateY(-50%) scale(1.1); }
.modal-nav-btn.prev { left: -70px; }
.modal-nav-btn.next { right: -70px; }

.modal-caption {
  position: relative; margin-top: 20px; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  color: #fff; padding: 0 10px; flex-shrink: 0;
}
.modal-caption h3 { font-size: 1.2rem; font-weight: 500; margin: 0; }
.modal-cta {
  background: var(--accent); color: #fff; padding: 0.6rem 1.2rem; border-radius: 30px;
  font-size: 0.85rem; font-weight: 500; text-decoration: none; transition: 0.3s;
}
.modal-cta:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(99,102,241,0.4); }

@media (max-width: 768px) {
  .portfolio-modal-content { max-height: 85vh; }
  .portfolio-modal img { max-height: calc(85vh - 100px); }
  .portfolio-modal-close { top: -45px; right: 0; }
  .modal-nav-btn { padding: 10px; }
  .modal-nav-btn.prev { left: -10px; }
  .modal-nav-btn.next { right: -10px; }
  .modal-caption { margin-top: 15px; flex-direction: column; gap: 15px; text-align: center; }
}

.simple-link {
  display: inline-block; padding: 10px 20px; font-size: 1.1rem;
  color: var(--text); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--text); padding-bottom: 2px;
  transition: opacity 0.3s var(--ease);
}
.simple-link:hover { opacity: 0.6; }

/* ── ANIMATIONS ── */
.p-card.hidden { display: none !important; }
.p-card.visible { animation: revealCard 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards; }
@keyframes revealCard {
  from { opacity: 0; transform: translateY(60px); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ── CTA SECTION ── */
.portfolio-cta {
  background: linear-gradient(145deg, #0a0a0c 0%, #1a1a1e 100%);
  padding: 100px 4vw; text-align: center; color: #fff;
  position: relative; overflow: hidden; margin: 0 auto 100px;
  max-width: 1100px; border-radius: 48px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 30px 80px rgba(0,0,0,0.1);
}
.portfolio-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.portfolio-cta h2 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.04em; margin-bottom: 2rem; position: relative; z-index: 1;}
.portfolio-cta p { font-size: 1.15rem; color: rgba(255,255,255,0.6); max-width: 600px; margin: 0 auto 3rem; font-weight: 300; position: relative; z-index: 1;}
.portfolio-cta .btn {
  background: rgba(255, 255, 255, 0.95); color: #000; padding: 1.2rem 3.5rem; border-radius: 40px;
  font-weight: 500; font-size: 1rem; text-decoration: none; display: inline-block;
  transition: all 0.4s var(--ease); position: relative; z-index: 1;
}
.portfolio-cta .btn:hover { background: var(--accent); color: #fff; transform: translateY(-5px); box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4); }


/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  nav{ height: 80px; padding: 0 2rem; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); }
  .logo img{ height: 44px; }
  .nav-cta{ display: none; } 
  .menu-toggle{ display: block; }
  .nav-links{
    position: fixed; top: 80px; left: 0; width: 100%; height: 0;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); flex-direction: column; gap: 0;
    overflow: hidden; transition: 0.5s var(--ease);
    border-bottom: 0 solid rgba(0,0,0,0.05);
    padding: 0;
  }
  .nav-links.active{ height: auto; padding: 2rem 0; border-bottom-width: 1px; }
  .nav-links li{ width: 100%; text-align: center; opacity: 0; transition: 0.3s; }
  .nav-links.active li{ opacity: 1; margin: 1.2rem 0; }
  .nav-links a{ font-size: 1.1rem; color: var(--text); font-weight: 500; }
}

@media (max-width: 768px) {
  .portfolio-hero { padding: 160px 5vw 60px; }
  .portfolio-hero h1 { font-size: 2.5rem; text-wrap: balance; }
  .filter-container { padding: 1rem 5vw; gap: 0.5rem; overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; scrollbar-width: none; background: transparent; }
  .filter-container::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; padding: 0.6rem 1.2rem; font-size: 0.75rem; }
  .portfolio-grid { padding: 0 5vw 80px; gap: 1.5rem; }
  .p-card { border-radius: 0; }
  .portfolio-cta { padding: 80px 5vw; border-radius: 32px; margin: 0 5vw 60px; }
  .portfolio-cta h2 { font-size: 2rem; }
  
  nav{ height: 70px; padding: 0 1.5rem; background: rgba(255, 255, 255, 0.85); }
  .logo img{ height: 40px; }
  .nav-links{ top: 70px; }
  
  .minimal-footer{ padding: 3rem 8vw; }
  .f-logo{ text-align: left; margin-bottom: 2rem; }
  .f-links{ 
    flex-direction: column; gap: 0; width: 100%; border-bottom: none; 
    border-top: 1px solid rgba(255,255,255,0.1); padding: 0;
  }
  .f-links li{ width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 1rem 0; list-style: none; }
  .f-links a{ display: block; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
  .f-bottom{ flex-direction: column; align-items: flex-start; gap: 1rem; padding-top: 1.5rem; }
  .f-copyright{ font-size: 0.75rem; color: rgba(255,255,255,0.3); }
  .whatsapp-float{ width: 50px; height: 50px; bottom: 40px; right: 20px; }
}

/* ── FOOTER STYLE & WHATSAPP ── */
.minimal-footer{
  padding:3.5rem 8vw;
  background: #000;
  color: #fff;
  position: relative; z-index: 10;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.f-container{ max-width:1200px; margin:0 auto; }
.f-logo{ margin-bottom:2rem; }
.f-logo img{ height: 32px; opacity: 0.9; }
.f-links{ display: flex; gap: 2.5rem; list-style: none; padding-bottom: 1.8rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.f-links a{ color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem; transition: 0.3s; font-weight: 400; }
.f-links a:hover{ color: #fff; }
.f-bottom{ padding-top: 1.8rem; display: flex; justify-content: space-between; align-items: center; }
.f-copyright{ font-size: 0.8rem; color: rgba(255,255,255,0.6); font-weight: 400; }

.whatsapp-float{
  position: fixed; bottom: 50px; right: 30px; z-index: 999;
  background: #25d366; color: #fff;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.4s var(--ease); text-decoration: none;
  animation: pulse 2s infinite;
}
.whatsapp-float:hover{ transform: scale(1.1) translateY(-5px); box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5); }
@keyframes pulse{ 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); } 70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

