/* ===== Memon Infotech — Shared Stylesheet ===== */

:root {
  --navy-900: #0a0f1e;
  --navy-800: #0f172a;
  --navy-700: #1e293b;
  --navy-600: #334155;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #14b8a6;
  --accent-dark: #0d9488;

  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;

  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 25px 60px rgba(15, 23, 42, 0.15);

  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--navy-800);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.navbar .logo img{
  width: 160px;
  display: block;
  object-fit: contain;
}

.footer .logo img{
  width: 160px;
  display: block;
  object-fit: contain;
}

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

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

p {
  color: var(--slate-500);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-tight {
  padding: 64px 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
}

.section-subtitle {
  max-width: 620px;
  font-size: 1.05rem;
  color: var(--slate-500);
  margin-bottom: 48px;
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white) !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
  transition: .3s ease !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--slate-200);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--white);
  color: var(--navy-900);
}

.btn-light:hover {
  background: var(--slate-100);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--slate-100);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-900);
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-700);
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.18), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(20, 184, 166, 0.15), transparent 45%),
    var(--navy-900);
  color: var(--white);
  padding: 120px 0 100px;
  overflow: hidden;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin-bottom: 22px;
  max-width: 760px;
}

.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--slate-300);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(8px);
  transition: transform var(--transition), border-color var(--transition);
}

.hero-card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 184, 166, 0.5);
}

.hero-card:nth-child(2) { margin-top: 28px; }
.hero-card:nth-child(4) { margin-top: 28px; }

.hero-card .hc-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.hero-card .hc-label {
  font-size: 0.85rem;
  color: var(--slate-400);
}

.hero-card .hc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-size: 1.2rem;
}

/* ===== Page header (inner pages) ===== */
.page-header {
  background: radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.18), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(37, 99, 235, 0.18), transparent 50%),
    var(--navy-900);
  color: var(--white);
  padding: 96px 0 72px;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  margin-bottom: 14px;
}

.page-header p {
  color: var(--slate-300);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

.breadcrumb {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--slate-400);
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius);
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stat .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.stat .label {
  font-size: 0.9rem;
  color: var(--slate-500);
  margin-top: 4px;
}

/* ===== Services / Cards ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(20, 184, 166, 0.12));
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
}

/* ===== About / Story ===== */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.story-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--navy-700), var(--primary));
  position: relative;
}

.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.values-list {
  list-style: none;
  margin-top: 24px;
}

.values-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--slate-100);
}

.values-list li:last-child {
  border-bottom: none;
}

.values-list .check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.values-list h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.values-list p {
  font-size: 0.9rem;
}

/* ===== Team ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-member {
  text-align: center;
}

.team-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--slate-100), var(--slate-200));
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.team-member:hover .team-avatar img {
  transform: scale(1.05);
}

.team-member h4 {
  font-size: 1.1rem;
}

.team-member .role {
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 2px;
}

/* ===== Portfolio ===== */
.portfolio-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 9px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--slate-200);
  background: var(--white);
  color: var(--navy-700);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project:hover img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 15, 30, 0.92) 0%, rgba(10, 15, 30, 0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

.project:hover .project-overlay {
  opacity: 1;
}

.project-overlay .tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.project-overlay h3 {
  color: var(--white);
  font-size: 1.25rem;
}

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--accent-dark));
  border-radius: 22px;
  padding: 64px 48px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 14px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 28px;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-info-card h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.contact-info-card > p {
  color: var(--slate-300);
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-item .ci-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.contact-item .ci-label {
  font-size: 0.8rem;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.contact-item .ci-value {
  color: var(--white);
  font-weight: 500;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-700);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--navy-800);
  background: var(--slate-50);
  transition: border-color var(--transition), background var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--slate-400);
  margin-top: 14px;
}

.map-embed {
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--slate-100);
}

.map-embed iframe {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
}

/* ===== Footer ===== */
.footer {
  background: var(--navy-900);
  color: var(--slate-400);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer .logo {
  color: var(--white);
  margin-bottom: 18px;
}

.footer-about p {
  color: var(--slate-400);
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-col h5 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--slate-400);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ===== Team profile cards (home) ===== */
.team-profiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.team-profile {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.team-profile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.team-profile-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-100), var(--slate-200));
}

.team-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.team-profile:hover .team-profile-photo img {
  transform: scale(1.05);
}

.team-profile-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.team-profile-body h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.team-profile-body .tp-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
}

.team-profile-body .tp-desc {
  font-size: 0.94rem;
  margin-bottom: 20px;
}

.team-profile-body .btn {
  align-self: flex-start;
}

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.testimonial .quote-mark {
  font-size: 3rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.15;
  position: absolute;
  top: 18px;
  right: 24px;
  font-family: Georgia, serif;
}

.testimonial .t-text {
  font-size: 0.98rem;
  color: var(--navy-700);
  line-height: 1.7;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.testimonial .t-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial .t-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--slate-100);
}

.testimonial .t-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial .t-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-900);
}

.testimonial .t-title {
  font-size: 0.85rem;
  color: var(--slate-500);
}

.testimonial .t-stars {
  color: var(--warning);
  font-size: 0.9rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid,
  .story-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3,
  .team-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .team-profiles {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 64px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .grid-3,
  .grid-2,
  .team-grid,
  .portfolio-grid,
  .stats,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 40px 24px;
  }

  .contact-info-card,
  .contact-form {
    padding: 28px;
  }
}
