﻿:root {
  color-scheme: dark;
  --bg: #08131f;
  --surface: rgba(13, 33, 58, 0.72);
  --surface-strong: rgba(14, 163, 229, 0.14);
  --surface-soft: rgba(255, 255, 255, 0.08);
  --text: #eaf8ff;
  --muted: #a6c9e5;
  --accent: #22c55e;
  --accent-strong: #0ea5e9;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, rgba(14, 165, 233, 0.16), transparent 28%),
    radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.22), transparent 20%),
    linear-gradient(180deg, #041019 0%, #071829 100%);
  color: var(--text);
}

body {
  padding: 24px 0 24px;
  overflow-x: hidden; /* prevent horizontal scrolling */
}

.page-shell {
  width: 100%;
  max-width: 1400px; /* requirement */
  margin: 0 auto;
  padding: 0 22px;
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr; /* mobile-first */
  gap: 24px; /* consistent gap between sections */
  align-items: stretch; /* keeps both columns tied to the same row height */
  width: 100%;
  column-gap: 32px; /* subtle column gap for desktop */
}

.hero-panel {
  padding: 0;
  box-shadow: none;
  border: none;
  background: transparent;
}

.profile-panel .section-card {
  padding: 18px 20px;
}

.contact-meta-card {
  padding: 18px 20px;
}

.profile-panel {
  display: grid;
  gap: 20px;
  min-width: 0;

  align-self: start;
  align-content: start;
  height: fit-content;
}

.content-panel {
  display: grid;
  gap: 20px;
  align-content: start;
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-meta-card {
  padding: 0;
}

.contact-meta a {
  color: var(--muted);
  text-decoration: none;
}

.divider {
  color: rgba(166, 201, 229, 0.6);
}

.social-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 0 10px 6px;
}

.social-link {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.glass {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(22px);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 22px;
  margin-bottom: 20px;
  position: relative; /* for absolute share button */
}

.hero-top,
.section-heading,
.hero-main {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  gap: 14px;
}

.company-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  font-weight: 800;
  font-size: 24px;
}

.category-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.brand-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.brand-icon-square {
  width: 70px;
  height: 70px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.profile-card {
  padding: 28px;
  border-radius: 32px;
  background: rgba(8, 25, 48, 0.96);
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
}

.profile-card h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.7rem);
}

.profile-title {
  margin: 0;
  color: #22c55e;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.profile-photo-wrap {
  width: 220px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  margin: 0 auto;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.contact-card {
  padding: 24px;
  display: grid;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(34, 197, 94, 0.12);
  border-radius: 28px;
}

.contact-meta-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-meta-item span {
  color: #22c55e;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.contact-meta-item a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.profile-socials {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 12px;
  margin-bottom: 20px;
}

.profile-socials .social-link {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: none;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  color: #fff;
  text-decoration: none;
  font-size: 0;
  overflow: hidden;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.profile-socials .social-link svg {
  width: 26px;
  height: 26px;
}

.profile-socials .social-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.profile-socials .social-link svg,
.profile-socials .social-link svg * {
  stroke: currentColor;
  fill: none;
}

.profile-socials .social-instagram {
  background: linear-gradient(135deg, #feda75, #d62976, #962fbf, #4f5bd5);
  border-color: transparent;
}

.profile-socials .social-linkedin {
  background: #0a66c2;
  border-color: transparent;
}

.profile-socials .social-x {
  background: #000000;
  border-color: transparent;
}

.profile-socials .social-location {
  background: #22c55e;
  border-color: transparent;
}

.profile-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.profile-actions .button {
  flex: 1 1 calc(50% - 6px);
  min-width: 160px;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 20px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.section-text {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
  max-width: 760px;
}

.hero-section {
  padding: 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
}

.hero-section .section-heading h3 {
  font-size: clamp(2.2rem, 3vw, 3rem);
}

.solutions-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.service-card {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text);
  display: grid;
  gap: 14px;
}

.service-card h4 {
  margin: 0;
  font-size: 1.05rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.7;
}

.explore-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.modern-section {
  padding: 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
}

.modern-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  align-items: start;
}

.sidebar-qr {
  display: grid;
  gap: 22px;
  justify-items: center;
  padding: 20px 0 0;
}

.qr-summary {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.qr-card {
  background: rgba(255, 255, 255, 0.04);
  border: none;
  border-radius: 28px;
  padding: 10px;
  display: grid;
  place-items: center;
  width: 180px;
  aspect-ratio: 1 / 1;
  box-shadow: none;
  overflow: hidden;
}

.qr-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  background: #fff;
}

.qr-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.modern-cards {
  display: grid;
  gap: 18px;
}

.hero-top h1,
.section-heading h3 {
  margin: 0;
  font-size: clamp(1.7rem, 2.2vw, 2.3rem);
}

.button {
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 18px;
  font-size: 0.96rem;
  font-weight: 700;
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  text-decoration: none;
}

.button:hover,
.action-button:hover,
.sticky-bar a:hover {
  transform: translateY(-1px);
}

.icon-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.primary-button {
  background: linear-gradient(135deg, #3ee7b5, #16a34a);
  color: #04111b;
}

.primary-button:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
}

.hero-main {
  margin-top: 24px;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.profile-wrap {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
  flex-shrink: 0;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  flex: 1;
  min-width: 220px;
}

.heading-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-copy h2 {
  margin: 0;
  font-size: 1.7rem;
}

.verified-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  color: #d9f99d;
  font-size: 0.9rem;
}

/* Share button floating */
.share-btn {
  position: absolute;
  top: 20px;
  right: -14px;
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
}

.hero-text {
  margin: 14px 0 0;
  line-height: 1.7;
  color: var(--muted);
}

.section-card {
  padding: 22px;
  margin-bottom: 24px;
}

.section-heading {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.section-heading .section-label {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
}

.section-heading h3 {
  margin: 0;
  color: white;
  font-size: clamp(1.25rem, 1.6vw, 1.95rem);
  line-height: 1.15;
  font-weight: 700;
}

.action-grid,
.services-grid,
.gallery-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.action-grid {
  /* Use auto-fit so buttons wrap cleanly on narrow screens */
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.action-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: background 180ms ease;
}

.action-button span {
  font-size: 1.2rem;
}

.about-copy p {
  margin: 0 0 12px;
  line-height: 1.75;
  color: var(--muted);
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-card {
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text);
  display: grid;
  gap: 12px;
  min-height: 150px;
}

.service-card h4 {
  margin: 0;
  font-size: 1.05rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.7;
}

.service-tag {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  color: #a5f3fc;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.gallery-item {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.qr-card,
.qr-card .qr-image {
  box-sizing: border-box;
}

.qr-card {
  overflow: hidden; /* ensure rounded container clips children if needed */
}

/* Ensure cards have equal spacing and don't overflow */
.section-card {
  box-sizing: border-box;
}

/* Make sure grid children can shrink without overflowing */
.profile-panel,
.content-panel,
.hero-card,
.section-card {
  min-width: 0;
}

.qr-copy p,
.qr-copy a {
  margin: 0;
  color: var(--muted);
}

.qr-copy a {
  display: inline-block;
  margin-top: 10px;
  color: #d9f99d;
  text-decoration: none;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  padding: 14px 16px;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(14, 165, 233, 0.45);
}

.sticky-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  width: min(560px, calc(100% - 36px));
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
  background: rgba(13, 33, 58, 0.95);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 24px;
  backdrop-filter: blur(10px);
}

.sticky-bar a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 180ms ease;
}

.sticky-bar a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.12);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
}

.footer-bar span {
  display: inline-block;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.modal-content {
  z-index: 1;
  width: min(92vw, 520px);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(8, 19, 34, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.modal-content img {
  display: block;
  width: 100%;
  height: auto;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  padding: 14px 20px;
  background: rgba(34, 197, 94, 0.95);
  color: #04111b;
  border-radius: 999px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 30;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

@media (max-width: 520px) {
  .hero-top,
  .hero-main,
  .section-heading,
  .qr-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .qr-card {
    grid-template-columns: 1fr;
  }

  .action-grid,
  .services-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .sticky-bar {
    flex-direction: row;
    bottom: 14px;
    width: min(560px, calc(100% - 36px));
  }
}

@media (max-width: 380px) {
  body {
    padding: 16px 0 110px;
  }

  .page-shell {
    padding: 0 14px;
  }
}

@media (min-width: 768px) {
  .page-layout {
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch; /* both columns share the same height on desktop */
  }

  .hero-card,
  .section-card {
    padding: 28px 32px;
  }

  .hero-main {
    align-items: flex-start;
  }

  .profile-wrap {
    width: 144px;
    height: 144px;
  }

  .hero-copy h2 {
    font-size: 2rem;
  }

  .section-heading h3 {
    font-size: 1.65rem;
  }

  /* larger grids on wider screens */
  .action-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .qr-card {
    width: 260px;
    height: 260px;
    grid-template-columns: unset;
    align-items: center;
  }

  .qr-image {
    width: 100%;
    height: 100%;
  }

  /* add subtle left separator and padding to content column to avoid overlap */
  .content-panel {
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,0.02);
  }

  .profile-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    padding: 20px;
    border-radius: 18px;
    align-self: stretch;
  }

  .content-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-self: stretch;
  }

  /* Keeps the Office Address card anchored to the bottom of the left column */
  .office-card {
    margin-top: auto;
  }

  .page-layout > * {
    min-width: 0; /* ensure children don't cause overflow */
  }

  .sticky-bar,
  .floating {
    display: none;
  }
}

/* Mobile: single-column enforced below 768px */
@media (max-width: 767px) {
  .page-shell {
    padding: 0 14px;
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    column-gap: 0;
  }

  /* Hero adjustments for mobile */
  .hero-card {
    padding: 18px;
    border-radius: 20px;
  }

  .hero-top {
    align-items: center;
    gap: 12px;
  }

  /* Place share button in normal flow on mobile to avoid overlap */
  .share-btn {
    position: static;
    margin-left: auto;
    top: auto;
    right: auto;
    transform: none;
    display: inline-flex;
  }

  .hero-copy h2 {
    font-size: 1.6rem;
  }

  .profile-wrap {
    width: 96px;
    height: 96px;
  }

  .verified-badge {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .action-grid,
  .services-grid,
  .gallery-grid,
  .solutions-grid,
  .modern-grid {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .qr-card {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: center;
  }

  .qr-image {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    height: auto;
    max-height: 56vh; /* cap height to keep rest of page visible */
    object-fit: contain;
    padding: 6px;
    border-radius: 12px;
  }

  /* remove extra bottom padding to eliminate blank space below footer */
  body {
    padding-bottom: 110px;
  }

  /* add extra spacing below qr-card so following content (if any) is reachable */
  .qr-card {
    margin-bottom: 18px;
  }

  .footer-bar {
    margin-bottom: 80px;
  }
}
.office-card {
  padding: 20px;
  text-align: center;
}

.office-card h3 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 1.1rem;
}

.office-card p {
  margin: 0 0 16px;
  line-height: 1.7;
  color: var(--text);
}

.office-card a {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
}