:root{
  --bg:#f6f8fb;
  --accent:#0b63f6;
  --text:#0f1720;
  --muted:#68707a;
  --card:#ffffff;
  --radius:16px;
  --shadow: 0 10px 30px rgba(11,19,40,0.06);
  --glass: rgba(255,255,255,0.85);
}

[data-theme="dark"]{
  --bg:#071025;
  --accent:#2ea3ff;
  --text:#e8f0ff;
  --muted:#9fb7d6;
  --card:#071828;
  --glass: rgba(255,255,255,0.03);
  --shadow: 0 10px 30px rgba(0,0,0,0.6);
}

*{box-sizing:border-box;margin:0;padding:0;font-family:Inter, system-ui, Arial, sans-serif}
body{background:var(--bg);color:var(--text);line-height:1.5;-webkit-font-smoothing:antialiased}
.container{max-width:1000px;margin:0 auto;padding:24px}

/* Header */
.site-header{position:sticky;top:0;background:transparent;backdrop-filter:blur(6px);z-index:40;padding:12px 0}
.nav-inner{display:flex;align-items:center;gap:16px;justify-content:space-between}
.brand{font-weight:700;font-size:20px;background:linear-gradient(90deg,var(--card),var(--glass));padding:12px;border-radius:12px;box-shadow:var(--shadow)}
.nav-links{display:flex;gap:12px}
.nav-links a{color:var(--muted);text-decoration:none;padding:8px;border-radius:8px}
.nav-links a:hover{color:var(--text)}

/* Unified button styles */
.btn {
  display: inline-block;
  font-weight: 600;
  padding: 0.6rem 1.05rem;
  border-radius: 12px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: 0 6px 18px rgba(12, 40, 80, 0.06);
}

.btn.primary {
  background: linear-gradient(90deg,#0b63ff,#0066cc);
  color: #fff;
  text-decoration: none; /* remove underline */
}

.btn.flat {
  background: #f3f6fb;
  color: #05386B;
  border: 1px solid rgba(5,56,107,0.06);
}

.btn:active { transform: translateY(1px); }

/* Hero */
.hero{padding:40px 0;border-radius:18px;background:var(--card);box-shadow:var(--shadow);margin:20px 0;overflow:hidden}
.hero-inner{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.hero-left{flex:1;min-width:260px}
.hero-right{flex:1;display:flex;justify-content:center;min-width:260px}
.hero-title{font-size:34px;margin-bottom:12px}
.lead{color:var(--muted);margin-bottom:18px}

/* Hero image */
#hero-img{width:100%;max-width:640px;border-radius:16px;box-shadow:0 12px 30px rgba(11,19,40,0.06);display:block;object-fit:cover;height:240px}

/* Cards & Sections */
.section{padding:40px 0}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;margin-top:18px}
.card{background:var(--card);padding:20px;border-radius:14px;box-shadow:var(--shadow);min-height:120px}
.card .icon{font-size:28px;margin-bottom:8px}

/* Portfolio */
.portfolio-grid{display:grid;gap:20px;grid-template-columns:1fr}
.portfolio-card{background:var(--card);border-radius:16px;padding:16px;box-shadow:var(--shadow);text-align:center}
.portfolio-card img{width:100%;height:160px;object-fit:cover;border-radius:12px;display:block;margin-bottom:12px}

/* Contact form */
.contact-form{display:flex;flex-direction:column;gap:12px;max-width:700px}
.contact-form input,.contact-form textarea{padding:16px;border-radius:12px;border:1px solid rgba(0,0,0,0.06);font-size:16px;background:transparent}
.contact-form textarea{min-height:140px;resize:vertical}
.contact-form button{width:180px}

/* Footer */
.footer{padding:30px 0;color:var(--muted);text-align:center}

/* WhatsApp floating button */
.whatsapp{position:fixed;right:18px;bottom:18px;background:linear-gradient(180deg,#21c36f,#06b677);color:white;width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 12px 30px rgba(6,139,100,0.18);z-index:80;text-decoration:none;font-size:20px}

/* Toast */
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:26px;background:#0b6f3a;color:white;padding:12px 18px;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.2);z-index:90}

/* Reveal animations */
.reveal{opacity:0;transform:translateY(18px);transition:all 600ms cubic-bezier(.2,.9,.3,1)}
.reveal.in-view{opacity:1;transform:translateY(0)}

/* responsive */
@media (max-width:720px){
  .hero-title{font-size:28px}
  #hero-img{height:200px}
}

/* small tweaks */
a:focus, button:focus, input:focus, textarea:focus{outline:3px solid rgba(11,99,246,0.12);outline-offset:4px}
/* ===== NAVBAR (Improved Contrast + Clean) ===== */

.site-nav {
  position: sticky;
  top: 12px;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(10, 20, 40, 0.06);
  margin: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.site-nav.scrolled {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(10, 20, 40, 0.12);
}

.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  max-width: 1100px;
  margin: 0 auto;
}

/* brand title */
.brand {
  font-weight: 800;
  font-size: 20px;
  color: #05386B;
}

/* nav links */
.nav-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #05386B;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background: rgba(5, 56, 107, 0.08);
  color: #03263b;
}

.nav-link.active {
  background: #05386B;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(5, 56, 107, 0.2);
}

/* dark mode support */
body.dark-mode .site-nav {
  background: rgba(10, 20, 40, 0.85);
}

body.dark-mode .brand {
  color: #ffffff;
}

body.dark-mode .nav-link {
  color: #d8e0ea;
}

body.dark-mode .nav-link.active {
  background: #0a64ff;
}

/* hamburger - mobile */
.nav-toggle {
  display:none;
  background:transparent;
  border:0;
  gap:6px;
  padding:8px;
}
.nav-toggle .bar{
  display:block; width:22px; height:3px; background:var(--accent); border-radius:3px;
  margin:4px 0;
  transition: transform .18s ease;
}

/* small screens: collapse links into vertical panel */
@media (max-width: 760px){
  .nav-toggle { display:block; }
  .nav-links {
    position: absolute;
    right: 12px;
    top: 64px;
    background: rgba(255,255,255,0.98);
    border-radius: 12px;
    padding:10px;
    flex-direction:column;
    min-width:170px;
    box-shadow:0 10px 30px rgba(10,20,40,0.08);
    display:none; /* toggled via JS */
  }
  .nav-links.show { display:flex; }
  .nav-link { width:100%; padding:12px; }
}

/* smooth scrolling */
html { scroll-behavior: smooth; }

/* micro-interaction for .btn small */
.btn.small { padding:8px 12px; border-radius:9px; }
.btn.small:hover { transform: translateY(-3px); box-shadow:0 8px 20px rgba(0,80,200,0.08); }
/* PORTFOLIO GRID */
.portfolio-grid{
  display:grid;
  grid-template-columns:repeat(1,1fr);
  gap:20px;
  margin-top:20px;
}

/* responsive columns */
@media(min-width:760px){
  .portfolio-grid{ grid-template-columns:repeat(2,1fr); }
}
@media(min-width:1100px){
  .portfolio-grid{ grid-template-columns:repeat(3,1fr); }
}

/* card */
.work-card{
  background:var(--card,#fff);
  border-radius:14px;
  padding:12px;
  box-shadow:0 8px 20px rgba(22,34,60,0.06);
  text-align:center;
  overflow:hidden;
}

/* image */
.work-card img{
  width:100%;
  height:180px;
  object-fit:cover;
  border-radius:10px;
  display:block;
  margin-bottom:12px;
}

/* title */
.work-card h3{
  font-size:1.15rem;
  margin:8px 0 0;
  color:var(--text,#0f1720);
}

/* reveal animation (initial hidden) */
.reveal{
  opacity:0;
  transform:translateY(20px);
  transition:opacity .6s ease, transform .6s ease;
}
.reveal.revealed{
  opacity:1;
  transform:translateY(0);
}
.work-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 40px rgba(22,34,60,0.12);
  transition:transform .25s ease, box-shadow .25s ease;
}
/* ===== Contact success modal & toast ===== */
.modal{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2,6,23,0.45);
  z-index: 12000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.modal[aria-hidden="false"]{
  opacity: 1;
  pointer-events: auto;
}

.modal-panel{
  background: var(--card);
  color: var(--text);
  padding: 22px;
  border-radius: 14px;
  width: 92%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(2,6,23,0.28);
  transform: translateY(8px);
  transition: transform .22s cubic-bezier(.2,.9,.3,1);
}
.modal[aria-hidden="false"] .modal-panel{ transform: translateY(0); }

.modal-close{
  position: absolute;
  right: 14px;
  top: 10px;
  background: transparent;
  border: 0;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
}

/* toast */
.toast{
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  bottom: 22px;
  background: rgba(16,185,129,0.98);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(2,6,23,0.18);
  z-index: 13000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .22s ease;
}
.toast.show{
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* small responsive modal tweaks */
@media (max-width:420px){
  .modal-panel{ padding:16px; border-radius:12px; }
  .modal-close{ top:8px; right:10px; }
}
/* ------------------------------
   PREMIUM PORTFOLIO STYLING
------------------------------ */

.portfolio-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-card {
    background: linear-gradient(145deg, #ffffff, #f3f6ff);
    border-radius: 22px;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    overflow: hidden;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}

.portfolio-card img {
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
    margin-bottom: 1rem;
    transition: 0.35s ease-in-out;
}

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

.portfolio-card h4 {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 0.5rem;
    color: #222;
}

/* Mobile spacing fix */
@media (max-width: 768px) {
    .portfolio-card {
        padding: 0.8rem;
    }
    .portfolio-card h4 {
        font-size: 1.1rem;
    }
}
/* Portfolio grid + cards */
.portfolio-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr; /* mobile default: single column */
  margin-top: 1.4rem;
}

/* larger screens */
@media (min-width: 700px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-card {
  background: var(--card-bg, #fff);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 8px 24px rgba(15,25,40,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* link fills the card */
.portfolio-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* image styling */
.portfolio-card img {
  display: block;
  width: 100%;
  height: 200px;         /* card thumbnail height */
  object-fit: cover;     /* image fills area, keeps aspect */
}

/* title area */
.portfolio-card h4 {
  margin: 1.1rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
}

/* smaller screens: smaller image height */
@media (max-width: 420px) {
  .portfolio-card img { height: 160px; }
}
/* Portfolio grid + cards */
.portfolio-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
  margin-top: 1.4rem;
}

/* responsive columns */
@media (min-width: 700px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Card */
.portfolio-card {
  background: var(--card-bg, #fff);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15,25,40,0.06);
  overflow: hidden;
}

/* Make link fill card and remove default link style */
.portfolio-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

/* Thumbnail */
.portfolio-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.brand-title {
  font-weight: 800;
  font-size: 1.25rem;
  /* remove gradient for dark-mode readability */
  color: #05386B;
}

/* For dark mode */
body.dark-mode .brand-title { color: #fff; }
/* smaller phones */
@media (max-width: 420px) {
  .portfolio-card img { height: 160px; }
}

/* optional: hover lift */
.portfolio-card:hover {
  transform: translateY(-6px);
  transition: transform .18s ease-out;
}
/* ---------- Portfolio grid ---------- */
.portfolio-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr; /* single column on mobile */
}

/* Portfolio card */
.portfolio-card {
  background: var(--card-bg, #fff);
  border-radius: 18px;
  padding: 0;
  box-shadow: var(--card-shadow, 0 8px 24px rgba(10,30,60,0.06));
  overflow: hidden;
}

/* image inside card */
.portfolio-card img {
  display: block;
  width: 100%;
  height: 220px;       /* fixed visual height */
  object-fit: cover;   /* crop center */
  object-position: center;
  border-radius: 12px;
  transition: transform .35s ease;
}

/* caption */
.portfolio-card h4 {
  margin: 18px 22px 22px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
}

/* hover/tap effect */
.portfolio-card:hover img,
.portfolio-card:focus-within img {
  transform: scale(1.03);
}

/* grid for larger screens */
@media (min-width: 720px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .portfolio-card img {
    height: 220px;
  }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8,12,20,0.7);
  z-index: 9999;
  padding: 30px;
  box-sizing: border-box;
}
.lightbox[aria-hidden="false"] { display:flex; }

.lightbox img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.lb-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255,255,255,0.9);
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
}
.lightbox p { color: #fff; margin-top:12px; text-align:center; font-weight:600; }

/* small screens tweak so vertical images still look good */
@media (max-width:420px) {
  .portfolio-card img { height:180px; }
}
/* -------- Lightbox (with arrows) -------- */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8,12,20,0.75);
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
  gap: 16px;
}
.lightbox[aria-hidden="false"] { display:flex; }

.lb-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  box-sizing: border-box;
}

/* image */
.lightbox img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* caption */
.lightbox p { color: #fff; margin: 12px 0 0; text-align: center; font-weight:600; }

/* close button */
.lb-close {
  position: absolute;
  top: -10px;
  right: -8px;
  background: rgba(255,255,255,0.95);
  border: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* nav arrows on sides */
.lb-nav {
  background: rgba(255,255,255,0.95);
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  align-self: center;
}
.lb-prev { margin-right: 6px; }
.lb-next { margin-left: 6px; }

/* hide arrows on small screens but keep them tappable */
@media (max-width: 520px) {
  .lb-prev, .lb-next {
    padding: 10px;
    font-size: 18px;
  }
  .lb-prev { margin-right: 8px; }
  .lb-next { margin-left: 8px; }
}

/* make sure body doesn't jump when lightbox opens */
body.lb-open { overflow: hidden; }
/* HIRE / CTA styles */
#hire { padding: 3rem 1rem; }
#hire h2 { font-size: 2rem; margin-bottom: .25rem; }
#hire .lead { color: var(--muted); margin-bottom: 1.25rem; }

.pricing-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media(min-width: 720px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.price-card {
  background: var(--card-bg, #fff);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
  text-align: center;
}
.price-card h3 {
  font-size: 1.05rem;
  color: #093a61; /* stronger */
  margin-bottom: 6px;
}
.price { font-weight:700; font-size:1.2rem; }

.hire-btn { width: 100%; }

/* Modal */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.35); z-index: 1000; padding: 1rem; }
.modal[aria-hidden="false"] { display: flex; }
.modal-panel { background: var(--bg); max-width: 540px; width: 100%; border-radius: 12px; padding: 1.25rem; box-shadow: var(--elevate); position: relative; }
.modal-close { position: absolute; right: 10px; top: 8px; background: transparent; border: none; font-size: 1.6rem; cursor: pointer; }
.form input, .form textarea { width: 100%; padding: .9rem; margin-bottom: .6rem; border-radius: 8px; border: 1px solid #e6e9ef; }
.modal-actions { display:flex; gap:.5rem; justify-content:flex-end; margin-top:.5rem; }
.sr-only { display:block; } /* small labels kept visible for mobile accessibility */
/* ---------- Hire CTA: full width button ---------- */
.pricing-grid .price-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn.hire-btn {
  display: block;
  width: 100%;
  padding: 14px 18px;
  font-weight: 700;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(35,75,255,0.12);
  transform: translateZ(0);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
  background: linear-gradient(90deg,#2f7df7,#1762ff); /* bright blue gradient */
  color: white;
  border: none;
  cursor: pointer;
}

.btn.hire-btn:active { transform: translateY(1px); }
.btn.hire-btn:hover {
  box-shadow: 0 14px 36px rgba(23,98,255,0.18);
  transform: translateY(-2px);
}

/* Smaller devices keep the same look but slightly larger padding */
@media (max-width: 480px) {
  .btn.hire-btn {
    padding: 16px 18px;
    font-size: 16px;
    border-radius: 12px;
  }
}

/* Modal polish: central panel, smooth fade */
.modal.is-open { display:block; }
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(14, 22, 36, 0.5);
  z-index: 1200;
  padding: 20px;
  transition: opacity .18s ease;
}
.modal-panel {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 30px 60px rgba(8,20,40,0.18);
}

/* Title + plan text */
#hireTitle { margin: 0 0 8px 0; font-size: 20px; }
#selectedPlanText { color: #333; margin-bottom: 12px; }

/* WhatsApp fallback button inside modal */
#whatsappBtn {
  display:inline-block;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, #25D366, #1EBE4C);
  color: white;
  font-weight: 700;
  text-decoration: none;
}

/* Modal actions row */
.modal-actions {
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top: 10px;
}
.modal-actions .btn { min-width:120px; }
/* ----- UPI payment area ----- */
.payment-area { margin-top: 18px; }
.upi-row { display:flex; gap:10px; align-items:center; margin-bottom:8px; }
.upi-btn { background:linear-gradient(90deg,#10b981,#06b36b); color:#fff; padding:12px 18px; border-radius:12px; box-shadow:0 6px 18px rgba(6,123,67,0.15); border:0; cursor:pointer; font-weight:600; }
.upi-qr-btn { background:#fff; color:#0b6b4a; border:1px solid #e6e6e6; padding:10px 14px; border-radius:10px; cursor:pointer; }

.upi-id { font-size:14px; color:#223; margin:6px 0 0; }

/* QR modal */
.qr-modal { position:fixed; inset:0; display:none; align-items:center; justify-content:center; background:rgba(0,0,0,0.45); z-index:1200; }
.qr-modal[aria-hidden="false"] { display:flex; }
.qr-panel { background:#fff; border-radius:14px; padding:18px; width:320px; max-width:92%; text-align:center; box-shadow:0 30px 80px rgba(15,23,42,0.35); }
.qr-panel img { width:220px; height:220px; object-fit:contain; margin:10px auto; border-radius:8px; }
.qr-close { background:transparent; border:0; font-size:20px; float:right; cursor:pointer; color:#333; }
.qr-note { font-size:13px; color:#666; margin-top:8px; }
/* ---------- Portfolio responsive grid & image styles ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;                 /* spacing between cards */
  align-items: start;
  max-width: 1200px;        /* optional: limit overall width */
  margin: 0 auto;           /* center the grid */
  padding: 0 16px;          /* small side padding on mobile */
}

.portfolio-card {
  background: transparent;  /* keep it same if you don't want card bg */
  overflow: hidden;         /* prevent image overflow when we crop */
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Make portfolio images scale and crop nicely */
.portfolio-card img,
.portfolio-link img,
.portfolio-grid img {
  width: 100%;              /* fill the column width */
  height: 220px;           /* fixed visual height for cards */
  object-fit: cover;        /* crop to fit nicely without distortion */
  display: block;
  border-radius: 8px;       /* rounded corners (optional) */
}

/* If you want the big hero-like image to remain large, target it separately */
/* Example: #hero-img or img#hero-img { height: auto; width: 100%; object-fit: cover; } */

/* Adjustments for very small screens */
@media (max-width: 420px) {
  .portfolio-card img,
  .portfolio-link img,
  .portfolio-grid img {
    height: 180px;          /* smaller height on small phones */
  }
  .portfolio-grid {
    gap: 14px;
    grid-template-columns: 1fr;
    padding: 0 12px;
  }
}

/* Optional: title and desc under thumbnail */
.portfolio-card h4 {
  margin: 6px 0 0;
  font-size: 1rem;
}
.portfolio-card .small-desc {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: #666;
}
/* ===== portfolio grid responsive + fixed image crop ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
}

/* card wrapper */
.portfolio-card {
  background: transparent;
  overflow: hidden;
  border-radius: 8px;
}

/* link that contains image — make it a block so image fills card */
.portfolio-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* make images fill card area and crop with object-fit */
.portfolio-link img,
.portfolio-card img {
  display: block;
  width: 100%;
  height: 220px;          /* mobile height */
  max-height: 320px;
  object-fit: cover;      /* crops nicely without stretching */
  border-radius: 8px;
}

/* caption spacing */
.portfolio-card h4 {
  margin: 10px 0 6px;
  font-size: 1.05rem;
}
.portfolio-card .small-desc {
  margin: 0 0 14px;
  color: #666;
  font-size: 0.9rem;
}

/* larger screens: taller images and 3-column layout */
@media(min-width: 900px) {
  .portfolio-link img,
  .portfolio-card img {
    height: 280px;
    max-height: 320px;
  }
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
body.dark-mode {
  background:#0f1724;
  color:#d7e1ef;
}
body.dark-mode .site-nav { background:#071428; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px; /* space between cards */
  align-items: start;
}

.portfolio-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(12,40,80,0.06);
}

.portfolio-card .small-desc {
  margin-top: 10px; /* spacing under image */
  color: #66788a;
  font-size: 0.95rem;
}
#contact form {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(6,25,50,0.08);
  background: #f7fbff;
  font-size: 0.95rem;
  resize: vertical;
}

#contact textarea { min-height: 120px; }

#contact .modal-actions,
#contact .form-actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

#contact button[type="submit"] {
  min-width: 140px;
}
.whatsapp-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px 14px;
  background:#25D366;
  color:#fff;
  border-radius:40px;
  box-shadow: 0 12px 30px rgba(39,174,96,0.18);
  text-decoration:none;
  font-weight:600;
}
.whatsapp-fab img{ width:20px; height:20px; display:block; }
.contact-section {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}

.form-group {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    padding: 14px 16px;
    width: 100%;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #4A8BF5;
    box-shadow: 0 0 0 3px rgba(74,139,245,0.2);
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
}
/* CHAT BUTTON (fixed bottom-right) */
.chat-btn{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg,#00C853,#00E676); /* green gradient */
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transform: translateZ(0);
}

/* small white chat bubble icon circle */
.chat-btn .chat-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:50%;
  background: rgba(255,255,255,0.12);
  flex: 0 0 36px;
}

/* label text */
.chat-btn .chat-label{
  font-size:15px;
  line-height:1;
  padding-right:6px;
}

/* reduce size on small screens and hide label */
@media (max-width:600px){
  .chat-btn{
    right:14px;
    bottom:14px;
    padding:8px 10px;
    gap:8px;
  }
  .chat-btn .chat-icon{ width:34px; height:34px; }
  /* hide label to save space */
  .chat-btn .chat-label{ display:none; }
}

/* give footer extra space so content doesn't get covered */
.site-footer, footer {
  padding-bottom: 110px; /* adjust if needed */
}

/* optional: add hover */
.chat-btn:hover{ transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.18); }
/* ===== Floating chat button (keep only one .chat-btn in HTML) ===== */
.chat-btn{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg,#00C853,#00E676); /* green gradient */
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transform: translateZ(0);
}

/* chat icon circle */
.chat-btn .chat-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:50%;
  background: rgba(255,255,255,0.12);
  flex: 0 0 36px;
}

/* label */
.chat-btn .chat-label{
  font-size:15px;
  line-height:1;
  padding-right:6px;
}

/* small screens: hide label to save space */
@media (max-width:600px){
  .chat-btn{
    right:14px;
    bottom:14px;
    padding:8px 10px;
    gap:8px;
  }
  .chat-btn .chat-icon{ width:34px; height:34px; }
  .chat-btn .chat-label{ display:none; } /* only icon on small screens */
}

/* keep footer content visible: add extra bottom space */
footer.footer, .site-footer, .footer {
  padding-bottom: 120px; /* increase if needed */
}

/* optional hover */
.chat-btn:hover{ transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.18); }
