/* ============================================================
   Com.Sol Pvt Ltd — Main Stylesheet
   Mobile-first, Navy + Electric Blue theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:        #0a0f1e;
  --navy-2:      #111827;
  --navy-3:      #1a2236;
  --blue:        #2563eb;
  --blue-bright: #3b82f6;
  --blue-glow:   #60a5fa;
  --white:       #f8fafc;
  --grey:        #94a3b8;
  --grey-light:  #cbd5e1;
  --card-bg:     #141c2e;
  --border:      rgba(59,130,246,0.18);

  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 32px rgba(37,99,235,0.12);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Noise texture overlay ─────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 7vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 600; }
p  { color: var(--grey-light); font-size: 1rem; }

.accent { color: var(--blue-bright); }
.section-label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 0.75rem;
  display: block;
}

/* ── Layout helpers ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
section { padding: 5rem 0; position: relative; z-index: 1; }

/* ── Scroll animation base ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  background: rgba(10,15,30,0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.navbar.scrolled {
  background: rgba(10,15,30,0.95);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--blue-bright); }
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey-light);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--blue-bright);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy-2);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}
.nav-drawer a:hover { color: var(--blue-bright); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37,99,235,0.18) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 90% 80%, rgba(59,130,246,0.08) 0%, transparent 60%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--blue-glow);
  margin-bottom: 1.5rem;
  animation: fadeDown 0.6s ease both;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-bright);
  animation: pulse 2s ease infinite;
}
.hero h1 {
  animation: fadeUp 0.7s ease 0.15s both;
  margin-bottom: 1.25rem;
}
.hero p {
  font-size: 1.1rem;
  max-width: 540px;
  animation: fadeUp 0.7s ease 0.3s both;
  margin-bottom: 2rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.45s both;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 0 24px rgba(37,99,235,0.4);
}
.btn-primary:hover {
  background: var(--blue-bright);
  box-shadow: 0 0 36px rgba(59,130,246,0.5);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--blue-bright);
  color: var(--blue-bright);
  transform: translateY(-2px);
}

/* Stats bar */
.stats-bar {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.7s ease 0.6s both;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--grey);
  margin-top: 0.2rem;
}

/* ── Section titles ─────────────────────────────────────────── */
.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-title h2 { margin-bottom: 0.75rem; }
.section-title p  { max-width: 520px; margin-inline: auto; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-glow));
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  border-color: rgba(59,130,246,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(59,130,246,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}
.card h3 { margin-bottom: 0.5rem; }

/* ── Grid layouts ───────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--navy-2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.footer-brand .nav-logo { font-size: 1.1rem; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.88rem; max-width: 280px; }
.footer-links h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.footer-links ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  font-size: 0.88rem;
  color: var(--grey);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--blue-bright); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--grey);
  text-align: center;
}

/* ── Page hero (inner pages) ────────────────────────────────── */
.page-hero {
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(37,99,235,0.14) 0%, transparent 70%);
}
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p  { max-width: 560px; font-size: 1.05rem; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:none; } }
@keyframes fadeDown { from { opacity:0; transform:translateY(-12px);} to { opacity:1; transform:none; } }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.6); }
  50%      { box-shadow: 0 0 0 5px rgba(59,130,246,0); }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .hamburger { display: none !important; }
  .nav-links  { display: flex !important; }
}
@media (max-width: 899px) {
  .hamburger { display: flex; }
  .nav-links  { display: none; }
}

/* ── Contact Modal ───────────────────────────────────────── */
#contact-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
#contact-modal.open {
  display: flex;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 18, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-box {
  position: relative;
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  animation: fadeUp 0.3s ease both;
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1.1rem;
  background: none;
  border: none;
  color: var(--grey);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--white); }
.modal-email-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(37,99,235,0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.modal-email-label {
  font-size: 0.78rem;
  color: var(--grey);
  width: 100%;
}
.modal-email-addr {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--blue-glow);
  flex: 1;
  word-break: break-all;
}
.modal-copy-btn {
  background: rgba(37,99,235,0.15);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: 6px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-family: var(--font-head);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.modal-copy-btn:hover {
  background: rgba(37,99,235,0.3);
  border-color: var(--blue-bright);
}
.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.modal-office {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ── Salary banner ───────────────────────────────────────── */
.salary-banner {
  background: linear-gradient(135deg, rgba(37,99,235,0.18), rgba(59,130,246,0.08));
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 3.5rem;
}
.salary-item .salary-value {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.salary-item .salary-label {
  font-size: 0.82rem;
  color: var(--grey);
}
.salary-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}
@media (max-width: 500px) {
  .salary-divider { display: none; }
}

/* ── Address card ────────────────────────────────────────── */
.address-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.address-line {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--grey-light);
}
.address-line span:first-child {
  font-size: 1.1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* Branch network section */
.branch-region {
  margin-bottom: 2.25rem;
}

.branch-region-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.branch-region-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.65rem;
}

.branch-card {
  background: var(--card-bg, rgba(255,255,255,0.04));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: var(--white);
}

.nav-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

footer .nav-logo img {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: block;
}