:root {
  --bg-main: #070b24;
  --accent-1: #ff6bcb;
  --accent-2: #4d9fff;
  --accent-3: #22c55e;
  --accent-4: #fbbf24;
  --text-main: #f9fafb;
  --text-sub: #cbd5f5;
  --card-bg: rgba(15,23,42,0.9);
  --border-soft: rgba(148, 163, 184, 0.4);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.7);
}

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

body {
  font-family: "Poppins", sans-serif;
  background: radial-gradient(circle at top, #1d2248 0, #020617 40%, #000 100%);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

/* NAVBAR */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: linear-gradient(to right, rgba(15,23,42,0.96), rgba(30,64,175,0.8));
  border-bottom: 1px solid rgba(148,163,184,0.4);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-pill {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: conic-gradient(from 180deg, #22c55e, #4f46e5, #f97316, #ec4899, #22c55e);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-pill-inner {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: #e5e7eb;
}

.nav-title {
  display: flex;
  flex-direction: column;
}

.nav-title span:first-child {
  font-size: 15px;
  font-weight: 600;
}

.nav-title span:last-child {
  font-size: 11px;
  color: var(--text-sub);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 13px;
  align-items: center;
}

.nav-links a {
  position: relative;
  padding-bottom: 3px;
  color: #e5e7eb;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #fb7185, #60a5fa);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  border-radius: 999px;
  border: none;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(120deg, #f97316, #ec4899, #3b82f6);
  color: #0f172a;
  box-shadow: 0 12px 30px rgba(59,130,246,0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(59,130,246,0.75);
}

.btn-ghost {
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(148,163,184,0.6);
  color: #e5e7eb;
}

.btn-ghost:hover {
  background: rgba(30,64,175,0.8);
}

/* HERO */
.hero {
  padding: 40px 0 30px;
}

/* Hero two-column layout */
.hero-inner {
  display: grid;
  /* left text, right photo column একটু বড় */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 40px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.5);
  font-size: 11px;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.hero-pill span.badge {
  background: rgba(52,211,153,0.12);
  color: #6ee7b7;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-title span.gradient {
  background: linear-gradient(to right, #f97316, #ec4899, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  color: var(--text-sub);
  font-size: 13px;
  margin-bottom: 18px;
  max-width: 470px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.4);
  color: #e5e7eb;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 11px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-note i {
  color: #4ade80;
}

/* RIGHT COLUMN WRAPPER */
.hero-grid {
  /* আগে grid ছিল, এখন flex column – items ডান পাশে align হবে */
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;  /* সব card ডান পাশে যাবে */
}

/* PHOTO CARD */
.hero-photo-card {
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, #f97316 0, transparent 40%),
              radial-gradient(circle at top right, #22c55e 0, transparent 40%),
              radial-gradient(circle at bottom, #3b82f6 0, transparent 45%);
  padding: 4px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;

  /* column-এর ভেতরে পুরো ডান পাশে */
  width: 100%;
  max-width: 460px;   /* চাইলে এটা 480/500 করতে পারো */
}

.hero-photo-inner {
  height: 100%;
  border-radius: calc(var(--radius-xl) - 4px);
  background: rgba(15,23,42,0.98);
  border: 1px solid rgba(148,163,184,0.5);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.hero-photo-inner::before {
  content: "";
  position: absolute;
  inset: -140px;
  background:
    radial-gradient(circle at 20% 0, rgba(248,250,252,0.08) 0, transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(248,250,252,0.08) 0, transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

.hero-photo {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.7);
  position: relative;
  z-index: 1;
  height: 320px;              /* card height set */
  display: flex;
  align-items: center;        /* image perfect center */
  justify-content: center;
  background: #fff;           /* white background */
}


.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;        /* full image visible */
  object-position: center;    /* perfectly centered */
}



.photo-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15,23,42,0.88);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  border: 1px solid rgba(148,163,184,0.7);
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e5e7eb;
}

.photo-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.9);
}

.hero-stats {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.stat-pill {
  flex: 1;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.6);
  font-size: 11px;
}

.stat-pill strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

/* SIDE CARD নিচে, একই width, ডান পাশে */
.hero-side-card {
  border-radius: var(--radius-xl);
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(96,165,250,0.7);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 460px;
}

.hero-side-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(96,165,250,0.25), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-side-card h4 {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #bfdbfe;
}

.hero-side-card ul {
  list-style: none;
  font-size: 12px;
  color: var(--text-sub);
}

.hero-side-card li {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-side-card li i {
  font-size: 11px;
  color: #93c5fd;
}

/* SECTION WRAPPER */
section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 18px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-title span.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(to right, #fb7185, #38bdf8);
  box-shadow: 0 0 10px rgba(59,130,246,0.7);
}

.section-sub {
  font-size: 12px;
  color: var(--text-sub);
}

/* ABOUT & TIMELINE */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 22px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 16px 16px 14px;
  box-shadow: 0 14px 35px rgba(15,23,42,0.8);
}

/* Timeline */
.card h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.card p {
  font-size: 12px;
  color: var(--text-sub);
}

.timeline {
  margin-top: 10px;
  border-left: 2px dashed rgba(148,163,184,0.6);
  padding-left: 14px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #60a5fa;
  box-shadow: 0 0 10px rgba(59,130,246,0.8);
}

.timeline-item span {
  font-size: 11px;
  color: #9ca3af;
}

/* COMPANIES */
.company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  flex-wrap: wrap;
}

.company-card {
  background: linear-gradient(135deg, rgba(96,165,250,0.08), rgba(248,113,113,0.05));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148,163,184,0.6);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 12px 26px rgba(15,23,42,0.9);
  position: relative;
  overflow: hidden;
}

.company-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Company icon – upgraded glossy gradient style */
.company-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;

  background: linear-gradient(145deg, #f97316, #ec4899, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 14px 26px rgba(15, 23, 42, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);

  position: relative;
  overflow: hidden;
}

/* glossy highlight */
.company-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,0.32), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

/* icon styling */
.company-icon i {
  font-size: 22px;
  color: #f9fafb;
  position: relative;
}


.company-name {
  font-size: 14px;
  font-weight: 600;
}

.company-sub {
  font-size: 11px;
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.company-desc {
  font-size: 12px;
  color: var(--text-sub);
}

.company-meta {
  font-size: 11px;
  color: #9ca3af;
}

.company-actions {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.pill-link {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.8);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-link i {
  font-size: 10px;
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  background: linear-gradient(135deg, rgba(56,189,248,0.08), rgba(16,185,129,0.08));
  border-radius: var(--radius-lg);
  padding: 14px 14px 12px;
  border: 1px solid rgba(148,163,184,0.6);
  font-size: 12px;
  box-shadow: 0 12px 26px rgba(15,23,42,0.9);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  position: relative;
  overflow: hidden;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(145deg, #f97316, #ec4899, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;

  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 14px 26px rgba(15, 23, 42, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.service-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,0.32), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}
.service-icon i {
  position: relative;
  font-size: 22px;
  color: #f9fafb;
}

.service-card:hover .service-icon {
  transform: translateY(-2px);
  box-shadow:
    0 20px 40px rgba(15, 23, 42, 0.98),
    0 0 0 1px rgba(191, 219, 254, 0.7);
}

.service-card h4 {
  font-size: 13px;
  margin-bottom: 4px;
}

.service-card p {
  color: var(--text-sub);
}

/* Service hover glow */
.service-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top, rgba(59,130,246,0.28), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15,23,42,0.95);
  border-color: rgba(96,165,250,0.85);
  background: linear-gradient(135deg, rgba(56,189,248,0.14), rgba(16,185,129,0.16));
}

.service-card:hover::before {
  opacity: 1;
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  border-radius: var(--radius-lg);
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.6);
  padding: 12px 12px 10px;
  font-size: 12px;
  box-shadow: 0 12px 26px rgba(15,23,42,0.9);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.project-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a5b4fc;
}

.project-title {
  font-size: 13px;
  font-weight: 500;
}

.project-links {
  margin-top: 4px;
  display: flex;
  gap: 8px;
  font-size: 11px;
  flex-wrap: wrap;
}

/* LOGO CAROUSEL */
.logo-section {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148,163,184,0.6);
  background: radial-gradient(circle at top, rgba(96,165,250,0.14), rgba(15,23,42,0.96));
  padding: 12px 10px 10px;
  box-shadow: 0 14px 36px rgba(15,23,42,0.9);
}

.logo-note {
  font-size: 12px;
  color: var(--text-sub);
}

.logo-track-wrapper {
  overflow: hidden;
  margin-top: 10px;
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 26px;
  will-change: transform;
  transition: transform 0.6s ease-out;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-size: 12px;
}

.field input,
.field textarea {
  background: rgba(15,23,42,0.95);
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.7);
  padding: 8px 10px;
  color: #e5e7eb;
  font-family: inherit;
  font-size: 12px;
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px rgba(96,165,250,0.6);
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.form-note {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 4px;
  display: block;
}

.contact-details {
  font-size: 12px;
  color: var(--text-sub);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-details h4 {
  font-size: 14px;
  color: #e5e7eb;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-row span.label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.contact-row a {
  color: #e5e7eb;
  font-size: 12px;
}

.social-links {
  margin-top: 6px;
  display: flex;
  gap: 10px;
  font-size: 14px;
}

.social-links a {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.social-links a:hover {
  background: linear-gradient(to right, #fb7185, #60a5fa);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15,23,42,0.9);
}

/* GENERIC HOVER FOR CARDS */
.card,
.company-card,
.project-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.card:hover,
.company-card:hover,
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(15,23,42,0.95);
  border-color: rgba(129,140,248,0.9);
}

/* FOOTER */
footer {
  border-top: 1px solid rgba(148,163,184,0.5);
  padding: 14px 16px 20px;
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
  background: rgba(15,23,42,0.98);
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-inner,
  .about-grid,
  .company-grid,
  .services-grid,
  .projects-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    align-items: stretch;
  }

  .hero-photo img {
    height: 260px;
  }

  .company-grid,
  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .wrapper {
    padding: 0 14px 40px;
  }

  .nav {
    padding-inline: 12px;
  }

  .company-grid,
  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-photo img {
    height: 230px;
  }
}


/* FINAL WHITE LOGO CARD STYLE */
.logo-track .logo-item {
  min-width: 180px;
  height: 80px;
  border-radius: 14px;
  background: #ffffff !important;   /* FORCE WHITE */
  border: 1px solid rgba(15,23,42,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  box-shadow: 0 6px 18px rgba(15,23,42,0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.logo-track .logo-item img {
  max-height: 55px;
  width: auto;
  object-fit: contain;
  display: block;
  background: transparent;
}
  
.logo-track .logo-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15,23,42,0.55);
}

/* ====== Selected Projects – New Design ====== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Main card */
.project-card {
  position: relative;
  border-radius: 24px;
  background: radial-gradient(circle at top left, rgba(96,165,250,0.18), rgba(15,23,42,0.98));
  border: 1px solid rgba(148,163,184,0.5);
  padding: 18px 18px 16px 22px;
  box-shadow: 0 16px 40px rgba(15,23,42,0.9);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

/* Left color bar */
.project-card::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #f97316, #ec4899, #3b82f6);
  opacity: 0.9;
}

/* Soft glow background */
.project-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top right, rgba(59,130,246,0.22), transparent 65%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

/* Category badge (ECOMMERCE, ERP & POS, etc.) */
.project-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #bfdbfe;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.75);
  border: 1px solid rgba(191,219,254,0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* small dot inside badge */
.project-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, #fb7185, #38bdf8);
  box-shadow: 0 0 8px rgba(59,130,246,0.8);
}

/* Title & text */
.project-title {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
}

.project-card p {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 2px;
}

/* Last line (Tech: ..., 70+ clients, Running since 2020 etc.) */
.project-card p:last-child {
  margin-top: 10px;
  font-size: 12px;
  color: #9ca3af;
}

/* Hover effect */
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(15,23,42,0.96);
  border-color: rgba(129,140,248,0.95);
}

.project-card:hover::after {
  opacity: 1;
}

/* Responsive tweak (tab / mobile) */
@media (max-width: 960px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Services & Expertise – Premium Card Redesign ===== */

.service-card {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 22px;
  padding: 22px 22px 20px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* Soft subtle glowing highlight */
.service-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top right, rgba(96,165,250,0.18), transparent 55%);
  opacity: 0;
  transition: 0.3s ease;
  pointer-events: none;
}

/* Modern subtle top border/stripe */
.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #f97316, #ec4899, #3b82f6);
  opacity: 0.55;
}

/* Icon container redesign */
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff8ec3, #7aa2ff);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(59,130,246,0.4);
  margin-bottom: 14px;
  transition: 0.25s ease;
}

.service-icon i {
  font-size: 22px;
  color: #0f172a;
}

/* Title */
.service-card h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* Description text */
.service-card p {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.6;
}

/* Hover effects */
.service-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 28px 60px rgba(0,0,0,0.65);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 14px 32px rgba(59,130,246,0.6);
}

/* ===== Companies I Founded — Left Gradient Border (Matching Selected Projects) ===== */

.company-card {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 22px;
  padding: 22px 22px 20px 26px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* LEFT VERTICAL GRADIENT BORDER */
.company-card::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: -2px;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #f97316, #ec4899, #3b82f6);
  opacity: 1;
}

/* Soft glow effect */
.company-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at left center, rgba(96,165,250,0.18), transparent 60%);
  opacity: 0;
  transition: 0.3s ease;
  pointer-events: none;
}

/* Hover = glow + lift */
.company-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(129,140,248,0.9);
  box-shadow: 0 28px 60px rgba(0,0,0,0.65);
}

.company-card:hover::after {
  opacity: 1;
}

/* Contact success popup */
.popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.popup-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 20px 24px 18px;
  max-width: 340px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.popup-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.popup-card p {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 14px;
}

/* ===== Mobile header fix ===== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {

  header {
    width: 100%;
  }

  .nav {
    max-width: 100%;
    padding: 10px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* logo + name */
  .nav-left {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* desktop menu hide */
  .nav-links {
    display: none !important;
  }


  .nav-cta {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
  }

  .nav-cta .btn {
    flex: 1 1 48%;
    font-size: 12px;
    padding: 7px 12px;
    justify-content: center;
  }


  .hero {
    padding-top: 24px;
  }
}
