/* ========================================================
   Usaid Asif — Portfolio
   Tokens
======================================================== */
:root{
  --bg: #08040f;
  --bg-2: #0f0824;
  --surface: #251045;      /* brand color, as requested */
  --surface-2: #331659;
  --surface-3: #40197a;
  --accent: #a855f7;       /* electric violet — CTAs, glow */
  --accent-soft: #a855f733;
  --cyan: #22d3ee;         /* dev-tag contrast accent */
  --text: #f4f1fb;
  --text-dim: #b6a9d6;
  --text-faint: #7c6fa0;
  --border: rgba(168,85,247,.22);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-lg: 0 30px 80px -20px rgba(8,4,20,.7);
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}

body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; }

code{ font-family:var(--font-mono); background:rgba(168,85,247,.12); padding:2px 6px; border-radius:5px; font-size:.85em; }

.container{ max-width:1160px; margin:0 auto; padding:0 24px; }

.skip-link{
  position:absolute; left:-999px; top:0; background:var(--accent); color:#fff;
  padding:10px 16px; z-index:999; border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; }

:focus-visible{ outline:2px solid var(--cyan); outline-offset:3px; border-radius:4px; }

.grain{
  position:fixed; inset:0; pointer-events:none; z-index:2; opacity:.035; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ========================================================
   Nav
======================================================== */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background: rgba(8,4,15,.65);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom:1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled{ border-bottom-color: var(--border); background: rgba(8,4,15,.88); }

.nav-container{
  max-width:1160px; margin:0 auto; padding:14px 24px;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}
.nav-brand{ display:flex; align-items:center; gap:10px; }
.nav-mark{
  width:38px; height:38px; border-radius:11px; display:grid; place-items:center;
  font-family:var(--font-display); font-weight:700; font-size:.9rem; color:#fff;
  background: linear-gradient(145deg, var(--accent), var(--surface));
  box-shadow: 0 6px 18px -4px var(--accent-soft);
}
.nav-brand-text{ display:flex; flex-direction:column; line-height:1.2; }
.nav-name{ font-family:var(--font-display); font-weight:600; font-size:.95rem; }
.nav-role{ font-size:.72rem; color:var(--text-faint); }

.nav-links{ display:flex; gap:20px; }
.nav-links a{ font-size:.83rem; color:var(--text-dim); transition:color .2s; position:relative; white-space:nowrap; }
.nav-links a:hover{ color:var(--text); }
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:-6px; width:0; height:1px; background:var(--accent);
  transition:width .25s;
}
.nav-links a:hover::after{ width:100%; }

.nav-cta{
  display:inline-flex; align-items:center; gap:8px; padding:9px 16px; border-radius:999px;
  background: var(--accent); color:#fff; font-size:.83rem; font-weight:600;
  box-shadow: 0 8px 22px -8px var(--accent-soft);
  transition: transform .2s, box-shadow .2s;
  white-space:nowrap;
}
.nav-cta:hover{ transform:translateY(-2px); box-shadow:0 12px 28px -6px var(--accent-soft); }

.hamburger{
  display:none; flex-direction:column; gap:5px; background:none; border:none; padding:6px;
}
.hamburger span{ width:22px; height:2px; background:var(--text); border-radius:2px; transition:.3s; }

/* Drawer (mobile) */
.drawer{
  position:fixed; top:0; right:-320px; width:300px; height:100vh; z-index:200;
  background: var(--bg-2); border-left:1px solid var(--border);
  transition:right .35s cubic-bezier(.2,.9,.2,1);
}
.drawer.open{ right:0; }
.drawer-inner{ padding:28px 26px; display:flex; flex-direction:column; gap:22px; }
.drawer-close{ align-self:flex-end; background:none; border:none; color:var(--text); font-size:1.2rem; }
.drawer-link{ font-size:1.05rem; color:var(--text-dim); font-family:var(--font-display); }
.drawer-cta{
  margin-top:12px; text-align:center; padding:12px; border-radius:12px; background:var(--accent); color:#fff; font-weight:600;
}
.drawer-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.5); opacity:0; pointer-events:none; z-index:150; transition:opacity .3s;
}
.drawer-overlay.open{ opacity:1; pointer-events:auto; }

/* ========================================================
   Hero
======================================================== */
.hero{
  position:relative; min-height:100vh; display:flex; align-items:center;
  padding:120px 0 60px;
  overflow:hidden;
}
.hero-bg{ position:absolute; inset:0; z-index:0; }
.blob{
  position:absolute; border-radius:50%; filter:blur(90px); opacity:.55;
}
.b1{ width:520px; height:520px; background:var(--surface-3); top:-160px; right:-120px; }
.b2{ width:420px; height:420px; background:var(--accent); opacity:.28; bottom:-140px; left:-100px; }
.hero-grid{
  position:absolute; inset:0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 10%, transparent 70%);
  opacity:.4;
}

.hero-wrap{
  position:relative; z-index:1; display:grid; grid-template-columns:1.1fr .9fr; gap:50px; align-items:center;
}

.fade-up{ opacity:0; transform:translateY(22px); animation:fadeUp .7s cubic-bezier(.2,.8,.2,1) forwards; animation-delay:calc(var(--i) * .1s); }
@keyframes fadeUp{ to{ opacity:1; transform:translateY(0); } }

.avail-badge{
  display:inline-flex; align-items:center; gap:8px; padding:7px 14px; border-radius:999px;
  border:1px solid var(--border); background:rgba(168,85,247,.08); font-size:.78rem; color:var(--text-dim);
  margin-bottom:22px;
}
.dot-live{ width:7px; height:7px; border-radius:50%; background:#4ade80; box-shadow:0 0 0 3px rgba(74,222,128,.2); animation:pulse 2s infinite; }
@keyframes pulse{ 0%,100%{ opacity:1; } 50%{ opacity:.4; } }

.hero-h1{
  font-family:var(--font-display); font-weight:700; font-size:clamp(2.6rem, 5.6vw, 4.2rem);
  line-height:1.05; letter-spacing:-.02em; margin-bottom:22px;
}
.hero-em{ font-style:normal; color:var(--accent); position:relative; }

.hero-desc{ font-size:1.05rem; color:var(--text-dim); max-width:520px; margin-bottom:30px; }

.hero-btns{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:44px; }
.btn-fill{
  display:inline-flex; align-items:center; gap:9px; padding:14px 24px; border-radius:12px;
  background:var(--accent); color:#fff; font-weight:600; font-size:.92rem;
  box-shadow:0 14px 30px -10px var(--accent-soft);
  transition:transform .2s, box-shadow .2s;
}
.btn-fill:hover{ transform:translateY(-3px); box-shadow:0 18px 36px -8px var(--accent-soft); }
.btn-ghost{
  display:inline-flex; align-items:center; padding:14px 24px; border-radius:12px;
  border:1px solid var(--border); color:var(--text); font-weight:600; font-size:.92rem;
  transition:border-color .2s, background .2s;
}
.btn-ghost:hover{ border-color:var(--accent); background:rgba(168,85,247,.08); }

.hero-stats{ display:flex; align-items:center; gap:22px; flex-wrap:wrap; }
.hs{ display:flex; flex-direction:column; }
.hs strong{ font-family:var(--font-display); font-size:1.3rem; }
.hs span{ font-size:.75rem; color:var(--text-faint); }
.hs-sep{ width:1px; height:34px; background:var(--border); }

/* --- 3D tilt hero stage --- */
.hero-right{ display:flex; justify-content:center; }
.tilt-stage{
  position:relative; width:100%; max-width:400px; aspect-ratio:1/1.05;
  transform-style:preserve-3d; perspective:1200px;
}
.tilt-layer{
  position:absolute; transform-style:preserve-3d; transition:transform .15s ease-out;
  will-change:transform;
}

.card-phone{
  width:200px; height:340px; top:12%; left:8%;
}
.phone-frame{
  width:100%; height:100%; border-radius:34px; padding:10px;
  background:linear-gradient(160deg, var(--surface-2), var(--surface));
  border:1px solid var(--border); box-shadow:var(--shadow-lg);
}
.phone-notch{ width:50px; height:6px; border-radius:4px; background:rgba(255,255,255,.12); margin:0 auto 10px; }
.phone-screen{
  height:calc(100% - 22px); border-radius:22px; background:var(--bg-2); padding:16px; display:flex; flex-direction:column; gap:9px;
}
.ps-row{ display:flex; align-items:center; gap:6px; font-family:var(--font-mono); font-size:.62rem; color:var(--text-dim); margin-bottom:4px; }
.ps-dot{ width:7px; height:7px; border-radius:50%; }
.ps-dot.ok{ background:#4ade80; }
.ps-line{ height:7px; border-radius:4px; background:rgba(255,255,255,.09); }
.ps-line.w80{ width:80%; } .ps-line.w60{ width:60%; } .ps-line.w70{ width:70%; }
.ps-chip{
  margin-top:auto; font-family:var(--font-mono); font-size:.6rem; padding:8px 10px; border-radius:8px;
  background:var(--accent-soft); color:var(--cyan); border:1px solid var(--border); width:fit-content;
}

.card-chart{
  width:170px; padding:16px; border-radius:16px; top:2%; right:0;
  background:linear-gradient(160deg, var(--surface-2), var(--surface));
  border:1px solid var(--border); box-shadow:var(--shadow-lg);
  display:flex; flex-direction:column; gap:6px;
}
.cc-label{ font-size:.65rem; color:var(--text-faint); }
.cc-svg{ width:100%; height:36px; color:var(--cyan); }
.cc-num{ font-family:var(--font-display); font-weight:700; color:#4ade80; font-size:1rem; }

.card-avatar{
  bottom:6%; right:6%;
}
.avatar-ring{
  width:110px; height:110px; border-radius:50%; padding:4px;
  background:linear-gradient(145deg, var(--accent), var(--cyan));
  box-shadow:var(--shadow-lg);
  display:grid; place-items:center;
}
.avatar-img{ width:100%; height:100%; border-radius:50%; object-fit:cover; }
.avatar-initials{
  display:none; width:100%; height:100%; border-radius:50%; background:var(--bg-2);
  align-items:center; justify-content:center; font-family:var(--font-display); font-weight:700; font-size:1.6rem;
}

.chip-flutter, .chip-meta, .chip-yt{
  padding:8px 14px; border-radius:999px; font-family:var(--font-mono); font-size:.68rem;
  background:var(--bg-2); border:1px solid var(--border); box-shadow:var(--shadow-lg); color:var(--text-dim);
}
.chip-flutter{ top:0; left:0; color:var(--cyan); }
.chip-meta{ bottom:26%; left:-4%; }
.chip-yt{ top:44%; right:-6%; }

.scroll-cue{
  position:absolute; bottom:26px; left:50%; transform:translateX(-50%);
  width:26px; height:42px; border:2px solid var(--border); border-radius:20px; z-index:1;
}
.scroll-cue span{
  position:absolute; top:8px; left:50%; transform:translateX(-50%); width:4px; height:8px; border-radius:2px;
  background:var(--accent); animation:scrollcue 1.6s infinite;
}
@keyframes scrollcue{ 0%{ opacity:1; top:8px; } 100%{ opacity:0; top:22px; } }

/* ========================================================
   Section shared
======================================================== */
section{ padding:100px 0; position:relative; }
.section-head{ margin-bottom:48px; max-width:640px; }
.eyebrow{
  font-family:var(--font-mono); font-size:.75rem; color:var(--cyan); letter-spacing:.06em; display:block; margin-bottom:12px;
}
.section-head h2{
  font-family:var(--font-display); font-weight:600; font-size:clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing:-.01em;
}
.ss{ color:var(--text-dim); margin-top:12px; font-size:1rem; }

.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

/* ========================================================
   About
======================================================== */
.about-grid{ display:flex; flex-direction:column; gap:38px; }
.about-lede{ font-size:1.15rem; color:var(--text-dim); max-width:760px; }
.about-lede em{ color:var(--text); font-style:normal; font-weight:600; }
.about-cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.ac{
  padding:24px; border-radius:var(--radius); background:linear-gradient(160deg, var(--surface-2), var(--surface));
  border:1px solid var(--border);
}
.ac-num{ font-family:var(--font-display); font-weight:700; color:var(--accent); font-size:1.1rem; display:block; margin-bottom:10px; }
.ac p{ color:var(--text-dim); font-size:.93rem; }

/* ========================================================
   Stack
======================================================== */
.stack{ background:var(--bg-2); }
.stack-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.stack-item{
  display:flex; align-items:center; gap:10px; padding:16px 18px; border-radius:var(--radius-sm);
  background:var(--surface); border:1px solid var(--border); font-family:var(--font-display); font-size:.9rem; font-weight:500;
}
.si-dot{ width:7px; height:7px; border-radius:50%; background:var(--cyan); flex-shrink:0; }

/* ========================================================
   Work
======================================================== */
.work-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
.work-card{
  display:flex; flex-direction:column; gap:10px; padding:28px; border-radius:var(--radius);
  background:linear-gradient(160deg, var(--surface-2), var(--surface));
  border:1px solid var(--border); transition:border-color .25s;
}
.work-card:hover{ border-color:var(--accent); }
.wc-top{ display:flex; justify-content:space-between; font-family:var(--font-mono); font-size:.72rem; color:var(--text-faint); }
.wc-stars{ color:#facc15; }
.work-card h3{ font-family:var(--font-display); font-size:1.15rem; }
.work-card p{ color:var(--text-dim); font-size:.9rem; flex:1; }
.wc-link{ color:var(--cyan); font-size:.85rem; font-weight:600; }
.work-more{ margin-top:30px; color:var(--text-dim); }
.work-more a{ color:var(--accent); font-weight:600; }

/* ========================================================
   Websites (client web dev portfolio)
======================================================== */
.websites{ background:var(--bg-2); }
.site-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.site-card{
  display:flex; flex-direction:column; gap:8px; padding:24px; border-radius:var(--radius);
  background:linear-gradient(160deg, var(--surface-2), var(--surface));
  border:1px solid var(--border); transition:border-color .25s;
}
.site-card:hover{ border-color:var(--accent); }
.site-tag{
  align-self:flex-start; font-family:var(--font-mono); font-size:.66rem; padding:4px 10px; border-radius:999px;
  background:var(--accent-soft); color:var(--cyan); border:1px solid var(--border);
}
.site-card h3{ font-family:var(--font-display); font-size:1.08rem; margin-top:4px; }
.site-card p{ color:var(--text-dim); font-size:.87rem; flex:1; }

/* ========================================================
   Social Media Management
======================================================== */
.smm{ background:var(--bg-2); }
.smm-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.smm-card{
  padding:20px; border-radius:var(--radius-sm); background:var(--surface); border:1px solid var(--border);
  display:flex; flex-direction:column; gap:10px; transition:border-color .25s;
}
.smm-card:hover{ border-color:var(--accent); }
.smm-card h3{ font-family:var(--font-display); font-size:.92rem; }
.smm-links{ display:flex; gap:12px; flex-wrap:wrap; }
.smm-links a{ font-size:.78rem; color:var(--cyan); font-weight:600; }
.smm-links a:hover{ color:var(--accent); }

/* ========================================================
   YouTube (thumbnail grid)
======================================================== */
.yt-thumb-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-bottom:16px; }
.yt-thumb-card{
  position:relative; aspect-ratio:16/9; border-radius:16px; overflow:hidden;
  border:1px solid var(--border); box-shadow:var(--shadow-lg); background:linear-gradient(160deg, var(--surface-2), var(--surface));
  display:flex; align-items:flex-end;
}
.yt-thumb-card img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.yt-thumb-play{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:1; font-size:1.3rem; color:#fff;
  width:44px; height:44px; border-radius:50%; background:rgba(0,0,0,.45); display:flex; align-items:center; justify-content:center;
  opacity:0; transition:opacity .2s;
}
.yt-thumb-card:hover .yt-thumb-play{ opacity:1; }
.yt-thumb-title{
  position:relative; z-index:1; width:100%; padding:26px 12px 10px; font-size:.78rem; font-weight:600; color:#fff;
  background:linear-gradient(0deg, rgba(0,0,0,.75), transparent);
}
.yt-thumb-fallback .yt-thumb-title{ position:static; padding:14px 14px 16px; background:none; }
.yt-thumb-fallback .yt-thumb-play{ opacity:1; position:static; transform:none; margin:20px auto 0; }
.yt-thumb-fallback{ flex-direction:column; align-items:stretch; justify-content:center; }
.yt-hint{
  max-width:700px; margin:0 auto 28px; text-align:center; font-size:.8rem; color:var(--text-faint); line-height:1.6;
}
.yt-actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.yt-btn{ justify-content:center; }
.yt-subscribe{ background:#FF0000; box-shadow:0 14px 30px -12px rgba(255,0,0,.45); }

/* ========================================================
   Behance / Design showcase
======================================================== */
.behance{ }
.bh-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.bh-card{
  display:flex; flex-direction:column; border-radius:var(--radius); overflow:hidden;
  border:1px solid var(--border); background:var(--surface); transition:border-color .25s, transform .25s;
}
.bh-card:hover{ border-color:var(--accent); transform:translateY(-3px); }
.bh-card img{ width:100%; aspect-ratio:4/3; object-fit:cover; display:block; }
.bh-info{ padding:14px 16px; display:flex; flex-direction:column; gap:4px; }
.bh-info h3{ font-family:var(--font-display); font-size:.92rem; }
.bh-stat{ font-size:.76rem; color:var(--text-faint); }

/* ========================================================
   Reviews
======================================================== */
.reviews{ background:var(--bg-2); }
.trust-stars{ color:#facc15; font-size:1.15rem; letter-spacing:4px; margin:14px 0 6px; }
.review-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-bottom:36px; }
.review-card{
  display:flex; flex-direction:column; gap:6px; border-radius:var(--radius);
  background:linear-gradient(160deg, var(--surface-2), var(--surface));
  border:1px solid var(--border); transition:border-color .25s, transform .25s, box-shadow .25s; overflow:hidden;
  position:relative;
}
.review-card:hover{ border-color:var(--accent); transform:translateY(-5px); box-shadow:0 20px 50px -18px var(--accent-soft); }
.review-shot{ position:relative; width:100%; aspect-ratio:16/10; overflow:hidden; background:var(--bg-2); }
.review-shot img{ width:100%; height:100%; object-fit:cover; display:block; }
.review-quote{
  position:absolute; bottom:4px; right:12px; font-family:var(--font-display); font-size:2.6rem; font-weight:700;
  color:#fff; opacity:.85; line-height:1; pointer-events:none; text-shadow:0 2px 12px rgba(0,0,0,.5);
}
.review-verified{
  align-self:flex-start; margin:14px 22px 0; font-family:var(--font-mono); font-size:.63rem; letter-spacing:.03em;
  padding:4px 10px; border-radius:999px; background:rgba(74,222,128,.12); color:#4ade80; border:1px solid rgba(74,222,128,.25);
}
.review-card > .review-icon, .review-card > h3, .review-card > p{ margin-left:22px; margin-right:22px; }
.review-icon{ width:38px; height:38px; border-radius:10px; display:grid; place-items:center; background:rgba(168,85,247,.14); margin-top:14px; margin-bottom:6px; }
.review-card h3{ font-family:var(--font-display); font-size:.98rem; }
.review-card p{ color:var(--text-dim); font-size:.83rem; }
.review-cta{
  display:inline-flex; align-items:center; margin:14px 22px 20px; padding:8px 14px; border-radius:999px;
  background:var(--accent-soft); color:var(--cyan); font-size:.78rem; font-weight:600; width:fit-content;
  transition:background .2s, color .2s;
}
.review-card:hover .review-cta{ background:var(--accent); color:#fff; }

.wa-shots{ margin-top:10px; }
.wa-shots-row{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }
.wa-shot{
  width:200px; border-radius:16px; overflow:hidden; border:1px solid var(--border); box-shadow:var(--shadow-lg);
  background:var(--surface);
}
.wa-shot img{ width:100%; display:block; }


/* Lightbox Background */
.lightbox {
  display: none; 
  position: fixed;
  z-index: 9999; /* Sabse upar rahega */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 12, 0.9); /* Dark background */
  backdrop-filter: blur(8px); /* Premium glass effect */
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Lightbox active state */
.lightbox.active {
  display: flex;
  opacity: 1;
}

/* Image styling inside lightbox */
.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  object-fit: contain;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #64ffda; /* Aapka theme cyan color */
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover {
  color: #fff;
  transform: scale(1.1);
}

/* WhatsApp shots style to show it is clickable */
.wa-shot img {
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.wa-shot img:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

/* ========================================================
   Featured Posts (LinkedIn)
======================================================== */
/* Responsive layout: automatically switches columns based on card count */
.posts-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
  gap: 24px; 
  margin-bottom: 40px;
}

/* Base Link Card */
.post-card-link {
  text-decoration: none !important;
  color: inherit !important; /* Page text color hi display karega */
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
}

/* Zoom effect, slightly glowing border and lift on hover */
.post-card-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(100, 255, 218, 0.08); /* Soft cyan aura glow */
  border-color: rgba(100, 255, 218, 0.3);
}

/* Screenshot Wrapper */
.post-card-img-wrapper {
  position: relative;
  width: 100%;
  height: 280px; /* Fixed vertical area for the screenshot */
  overflow: hidden;
  background: #000;
}

/* Image fitting to make sure no weird white spaces show up */
.post-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crops the screenshot cleanly */
  object-position: top center; /* Focuses on the top header part of the post */
  transition: transform 0.5s ease;
}

.post-card-link:hover .post-card-img {
  transform: scale(1.03);
}

/* Text details styling below the screenshot inside the card */
.post-card-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.post-card-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-main, #fff);
  margin: 0;
  line-height: 1.4;
}

.post-card-info p {
  font-size: 0.88rem;
  color: var(--text-dim, #a8b2d1);
  line-height: 1.6;
  margin: 0;
  
  /* Limits descriptions to exactly 3 lines with neat '...' truncation if long */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Small tag design */
.post-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  color: #64ffda;
  background: rgba(100, 255, 218, 0.06);
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
  margin-top: auto; /* Aligns all tags at the bottom if descriptions vary in size */
}

/* Modern hover overlay over screenshot */
.post-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 8, 22, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.post-card-link:hover .post-card-overlay {
  opacity: 1;
}

.view-post-btn {
  background: #64ffda;
  color: #0a0816;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.post-card-link:hover .view-post-btn {
  transform: translateY(0);
}

/* ========================================================
   Services Section (Modern Layout Upgrade)
======================================================== */
.services { 
  background: var(--bg-2); 
  padding: 80px 0;
}

/* Default grid for desktop and tablets */
.services-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 24px; 
  margin-bottom: 48px;
}

/* Mobile responsive fix */
@media (max-width: 640px) {
  .services-grid { 
    /* auto-fit ko override karke single column forced kiya */
    grid-template-columns: 1fr; 
    gap: 20px; /* Mobile par gap thoda kam kar diya taaki screen space bache */
  }
  /* Purane code ke niche isko add karein aur exact container level level target karein */
@media screen and (max-width: 767px) {
  body .services .services-grid {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
}
}

/* Individual Card Styling */
.svc-card {
  padding: 32px 24px; 
  border-radius: var(--radius); 
  background: var(--surface); 
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%; /* All cards will stay equal height per row */
}

/* Smooth lift and subtle cyan accent color boundary on hover */
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(100, 255, 218, 0.05);
  border-color: rgba(100, 255, 218, 0.25);
}

/* Icons styling with micro-interaction */
.svc-icon { 
  font-size: 2rem; 
  margin-bottom: 18px; 
  display: inline-block;
  transition: transform 0.3s ease;
}

.svc-card:hover .svc-icon {
  transform: scale(1.15) rotate(5deg);
}

/* Headlines */
.svc-card h3 { 
  font-family: var(--font-display); 
  font-size: 1.15rem; 
  color: var(--text-main, #fff);
  margin: 0 0 12px 0; 
  line-weight: 1.4;
}

/* Paragraph Descriptions */
.svc-card p { 
  color: var(--text-dim, #a8b2d1); 
  font-size: 0.9rem; 
  line-height: 1.6;
  margin: 0;
}



/* ========================================================
   Contact
======================================================== */
.contact-cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-bottom:44px; }
.cc{
  display:flex; align-items:center; gap:14px; padding:20px; border-radius:var(--radius);
  background:var(--surface); border:1px solid var(--border); transition:border-color .25s, transform .25s;
}
.cc:hover{ border-color:var(--accent); transform:translateY(-3px); }
.cc.primary{ background:linear-gradient(160deg, var(--surface-3), var(--surface)); }
.cc-icon{ width:42px; height:42px; border-radius:12px; display:grid; place-items:center; background:rgba(168,85,247,.12); flex-shrink:0; }
.cc-text{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.cc-text strong{ font-family:var(--font-display); font-size:.95rem; }
.cc-text span{ font-size:.83rem; color:var(--text-dim); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cc-text em{ font-style:normal; font-size:.76rem; color:var(--cyan); }

.soc-sec-label{ text-align:center; color:var(--text-faint); font-size:.85rem; margin-bottom:18px; }
.soc-icons-row{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; }
.soc-icon-card{
  display:flex; align-items:center; gap:8px; padding:10px 16px; border-radius:999px;
  border:1px solid var(--border); font-size:.82rem; color:var(--text-dim); transition:.2s;
}
.soc-icon-card:hover{ border-color:var(--accent); color:var(--text); background:rgba(168,85,247,.08); }

/* ========================================================
   Footer
======================================================== */
.footer{ background:var(--bg-2); border-top:1px solid var(--border); padding:60px 0 26px; }

/* 3 columns se 4 columns me update kiya hai aur text balance rakha hai */
.footer-grid{ display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:40px; margin-bottom:40px; }

.footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.footer-mark{
  width:34px; height:34px; border-radius:9px; display:grid; place-items:center; color:#fff;
  font-family:var(--font-display); font-weight:700; font-size:.82rem;
  background:linear-gradient(145deg, var(--accent), var(--surface));
}
.footer-brand-info{ display:flex; flex-direction:column; }
.footer-brand-name{ font-family:var(--font-display); font-weight:600; }
.footer-brand-role{ font-size:.75rem; color:var(--text-faint); }
.footer-tagline{ color:var(--text-faint); font-size:.85rem; }
.footer-col h5{ font-size:.78rem; color:var(--text-faint); text-transform:uppercase; letter-spacing:.05em; margin-bottom:14px; }
.footer-col a{ display:block; color:var(--text-dim); font-size:.88rem; margin-bottom:10px; }
.footer-col a:hover{ color:var(--text); }
.footer-bottom{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; padding-top:22px; border-top:1px solid var(--border);
  font-size:.8rem; color:var(--text-faint);
}

/* Responsive design taaki mobile aur tablet par footer columns wrap ho jayein */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr); /* Tablet par 2x2 ka grid banega */
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr; /* Mobile par sab ek ke niche ek single column me */
    gap: 24px;
  }
}

/* ========================================================
   Responsive
======================================================== */
@media (max-width: 980px){
  .nav-links{ display:none; }
  .nav-cta{ display:none; }
  .hamburger{ display:flex; }
  .hero-wrap{ grid-template-columns:1fr; text-align:center; }
  .hero-desc{ margin-left:auto; margin-right:auto; }
  .hero-btns{ justify-content:center; }
  .hero-stats{ justify-content:center; }
  .hero-right{ margin-top:20px; }
  .about-cards{ grid-template-columns:1fr; }
  .stack-grid{ grid-template-columns:repeat(2,1fr); }
  .work-grid{ grid-template-columns:1fr; }
  .site-grid{ grid-template-columns:1fr 1fr; }
  .smm-grid{ grid-template-columns:1fr 1fr; }
  .yt-thumb-grid{ grid-template-columns:repeat(2,1fr); }
  .bh-grid{ grid-template-columns:repeat(2,1fr); }
  .review-grid{ grid-template-columns:1fr 1fr; }
  .posts-grid{ grid-template-columns:1fr; }
  .services-grid{ grid-template-columns:repeat(2,1fr); }
  .contact-cards{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 520px){
  .footer-grid{ grid-template-columns:1fr; }
  .tilt-stage{ max-width:300px; }
  .card-phone{ width:160px; height:270px; }
  .site-grid{ grid-template-columns:1fr; }
  .smm-grid{ grid-template-columns:1fr; }
  .review-grid{ grid-template-columns:1fr; }
}
