/* Shreeja Technology - Custom styles */
:root {
  --primary: #0d123a;
  --light: #fefefe;
  --primary-soft: rgba(13, 18, 58, 0.97);
  --cream: #f8f6f3;
  --cream-warm: #fcfaf8;
  --dark: #1a1a1a;
  --font-serif: 'Libre Baskerville', Georgia, serif;
  --star: #eab308;
  --check: #16a34a;
  --cross: #dc2626;
}

html {
  scroll-behavior: smooth;
}

/* WhatsApp floating button - gentle pulse movement */
@keyframes whatsapp-float {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.08) translateY(-4px); }
}
.whatsapp-float {
  animation: whatsapp-float 2s ease-in-out infinite;
}
.whatsapp-float:hover {
  animation-play-state: paused;
}

/* Anchor offset for fixed header on detail pages */
section[id], article[id] {
  scroll-margin-top: 6rem;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--primary);
}

/* Logo responsive */
.logo-img {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .logo-img {
    height: 2.75rem;
  }
}

@media (min-width: 1024px) {
  .logo-img {
    height: 3rem;
  }
}

/* Hero background pattern optional */
.hero-pattern {
  background-color: var(--primary);
  background-image: radial-gradient(ellipse at 20% 80%, rgba(254, 254, 254, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(254, 254, 254, 0.04) 0%, transparent 50%);
}

/* Section spacing */
.section-pad {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .section-pad {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* Responsive images - use for content images (not logo) */
.responsive-img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

img.responsive-img {
  display: block;
}

/* Header white theme - logo visible on light background */
.header-white .logo-img {
  height: 2.75rem;
}
@media (min-width: 768px) {
  .header-white .logo-img {
    height: 3rem;
  }
}
@media (min-width: 1024px) {
  .header-white .logo-img {
    height: 3.25rem;
  }
}

/* Desktop nav: ensure all items visible, Contact Us never clipped */
.header-white nav {
  overflow: visible;
}
#desktop-nav.header-desktop-nav {
  flex-shrink: 0;
  overflow: visible;
}
.header-desktop-nav .nav-contact-item {
  flex-shrink: 0;
  margin-left: 0.25rem;
}
.header-contact-btn {
  font-size: 0.9375rem;
}

/* Dropdown - show on hover */
.nav-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, visibility 0.2s, transform 0.2s ease;
}
.nav-group:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a:hover {
  background-color: rgba(13, 18, 58, 0.06);
}

/* Mega dropdown - multi-column, centered under menu name, square box */
.nav-dropdown-mega {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px) translateX(-50%);
  transition: opacity 0.2s ease, visibility 0.2s, transform 0.2s ease;
  left: 50%;
  min-width: 520px;
  padding: 1.5rem 1.75rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(13, 18, 58, 0.12);
  border: 1px solid rgba(13, 18, 58, 0.12);
}
.nav-group:hover .nav-dropdown-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) translateX(-50%);
}
.nav-dropdown-mega .mega-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(13, 18, 58, 0.1);
}
.nav-dropdown-mega .mega-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
}
.nav-dropdown-mega .mega-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem 1rem;
}
/* Technologies: 3 columns (Backend, Frontend, Mobile) */
.nav-dropdown-mega .mega-grid-3-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem 1.5rem;
}
.nav-dropdown-mega .mega-col a {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary);
  padding: 0.35rem 0;
  transition: color 0.2s, background-color 0.2s;
}
.nav-dropdown-mega .mega-col a:hover {
  background-color: rgba(13, 18, 58, 0.05);
  padding-left: 6px;
}

/* Service & Technology detail cards (like reference images) */
.detail-card {
  background: #fff;
  border: 1px solid rgba(13, 18, 58, 0.1);
  border-radius: 12px;
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.detail-card:hover {
  box-shadow: 0 10px 40px rgba(13, 18, 58, 0.08);
  border-color: rgba(13, 18, 58, 0.15);
}
.detail-card-icon {
  width: 56px;
  height: 56px;
  border: 2px solid rgba(13, 18, 58, 0.2);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.detail-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.detail-card-desc {
  font-size: 0.875rem;
  color: rgba(13, 18, 58, 0.75);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}
.detail-card-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(13, 18, 58, 0.8);
}
.detail-card-bullets li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
}
.detail-card-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}
.detail-cards-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .detail-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .detail-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile menu transition */
.mobile-menu {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Button hover */
.btn-primary {
  background-color: var(--primary);
  color: var(--light);
  transition: background-color 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background-color: #151a4a;
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--light);
  color: var(--light);
  transition: background-color 0.2s, color 0.2s;
}

.btn-outline:hover {
  background-color: var(--light);
  color: var(--primary);
}

/* Homepage: outline button on light background */
.btn-outline-dark {
  border: 1px solid var(--dark);
  color: var(--primary);
  background: transparent;
  transition: background-color 0.2s, color 0.2s;
}
.btn-outline-dark:hover {
  background-color: var(--dark);
  color: var(--light);
}

/* Homepage: Services & Technologies – left-to-right infinite logo slider */
.logo-slider-section {
  overflow: hidden;
}
.logo-slider-wrap {
  width: 100%;
  overflow: hidden;
}
.logo-slider-track {
  display: flex;
  width: max-content;
  animation: logo-slider 35s linear infinite;
}
.logo-slider-track:hover {
  animation-play-state: paused;
}
.logo-slider-item {
  flex-shrink: 0;
  width: 200px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
}
.logo-slider-img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
/* Smaller screens: smaller logo size and less space between logos */
@media (max-width: 639px) {
  .logo-slider-item {
    width: 100px;
    height: 56px;
    padding: 0 0.75rem;
  }
  .logo-slider-img {
    max-height: 36px;
  }
}
.logo-slider-item:hover .logo-slider-img {
  filter: grayscale(0%);
  opacity: 1;
}
.logo-slider-fallback {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0.7;
}
.logo-slider-fallback.hidden {
  display: none;
}
@keyframes logo-slider {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Homepage: hero – two overlapping tilted portraits */
.hero-portraits {
  min-height: 240px;
}
.hero-portrait {
  width: 150px;
  height: 225px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(13, 18, 58, 0.12);
  background: var(--cream);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease;
}
.hero-portrait-left {
  transform: rotate(-4deg);
  margin-right: -20px;
  z-index: 1;
}
.hero-portrait-right {
  transform: rotate(4deg);
  z-index: 2;
}
.hero-portrait-left:hover {
  transform: rotate(-15deg) scale(1.08);
}
.hero-portrait-right:hover {
  transform: rotate(15deg) scale(1.08);
}
.hero-portrait a {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}
.hero-portrait-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 18, 58, 0.06);
}
.hero-portrait-placeholder.hidden {
  display: none;
}
/* Smaller screens: smaller portrait size and less space between the two */
@media (max-width: 639px) {
  .hero-portraits {
    min-height: 180px;
  }
  .hero-portrait {
    width: 140px;
    height: 210px;
    border-radius: 12px;
  }
  .hero-portrait-left {
    margin-right: -14px;
  }
}
@media (min-width: 640px) {
  .hero-portrait {
    width: 200px;
    height: 300px;
  }
  .hero-portrait-left { margin-right: -32px; }
}
@media (min-width: 1024px) {
  .hero-portrait {
    width: 240px;
    height: 360px;
  }
  .hero-portraits { min-height: 360px; }
  .hero-portrait-left { margin-right: -20px; }
}

/* Homepage: services numbered list (reference style) */
.services-list .service-link {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--primary);
  text-decoration: none;
  display: inline-block;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(13, 18, 58, 0.25);
  transition: color 0.2s, border-color 0.2s;
}
.services-list .service-link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 700;
}

/* Our Services: list replaced by image */
.services-list-image-wrap {
  max-width: 100%;
}
.services-list-image {
  width: 100%;
  max-width: 475px;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Homepage: value section – light background, logo-aligned */
.value-section-light {
  background-color: var(--cream);
  background-image: linear-gradient(rgba(248, 246, 243, 0.82), rgba(248, 246, 243, 0.82)), url('../images/what-we-offer-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Homepage: who we are – light section, logo-aligned (comparison with divider) */
.who-we-are {
  background-color: var(--cream-warm);
  background-image: url('../images/who-we-are-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top: 1px solid rgba(13, 18, 58, 0.08);
  border-bottom: 1px solid rgba(13, 18, 58, 0.08);
}
/* Text colors tuned for light blue/teal gradient background */
.who-we-are > div > p:first-of-type {
  color: rgba(13, 18, 58, 0.7);
}
.who-we-are h2 {
  color: #0d123a;
}
.who-we-are > div > p.mb-12 {
  color: rgba(13, 18, 58, 0.82);
}
.who-we-are .compare-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 2rem;
  align-items: start;
  max-width: 56rem;
  margin: 0 auto;
  text-align: left;
}
.who-we-are .compare-divider {
  background: rgba(13, 18, 58, 0.22);
  min-height: 250px;
}
@media (max-width: 767px) {
  .who-we-are .compare-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .who-we-are .compare-grid .compare-heading {
    text-align: center;
  }
  .who-we-are .compare-list li {
    justify-content: center;
  }
  .who-we-are .compare-divider {
    display: none;
  }
}
.who-we-are .compare-heading {
  color: #0d123a;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
@media (min-width: 1280px) {
  .who-we-are .compare-heading {
    font-size: 1.125rem;
  }
}
.who-we-are .compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.who-we-are .compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  color: rgba(13, 18, 58, 0.9);
  line-height: 1.5;
}
.who-we-are .compare-icon-check {
  color: #15803d;
  flex-shrink: 0;
  margin-top: 0.2em;
}
.who-we-are .compare-icon-cross {
  color: #b91c1c;
  flex-shrink: 0;
  margin-top: 0.2em;
}

/* Homepage: testimonials – reference style, light colors */
.testimonials-section {
  background-color: var(--cream-warm);
}
.testimonials-section .section-label {
  color: rgba(13, 18, 58, 0.55);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.testimonial-card {
  background: var(--light);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(13, 18, 58, 0.06);
  transition: box-shadow 0.2s ease;
}
.testimonial-card:hover {
  box-shadow: 0 12px 32px rgba(13, 18, 58, 0.08);
}
.testimonial-card .stars {
  color: var(--star);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}
.testimonial-card .quote {
  font-size: 0.9375rem;
  color: rgba(13, 18, 58, 0.82);
  line-height: 1.6;
  text-align: left;
}
.testimonial-card .testimonial-name {
  font-size: 0.8125rem;
  color: rgba(13, 18, 58, 0.6);
  font-weight: 600;
  text-align: right;
  margin-top: 1rem;
  margin-bottom: 0;
}
.testimonial-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}
@media (min-width: 640px) {
  .testimonial-stat-number { font-size: 2.5rem; }
}
.testimonial-stat-label {
  font-size: 0.875rem;
  color: rgba(13, 18, 58, 0.75);
  margin-top: 0.25rem;
}

/* Homepage: contact – light section, form card with shadow */

.contact-form-card {
  background: var(--light);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(13, 18, 58, 0.1);
  padding: 2rem;
}
.contact-section .btn-submit {
  background-color: var(--primary);
  color: var(--light);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  width: 100%;
  transition: background-color 0.2s, opacity 0.2s;
}
.contact-section .btn-submit:hover {
  background-color: #0f1647;
}
.contact-section .social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(13, 18, 58, 0.8);
  transition: color 0.2s;
}
.contact-section .social-link:hover {
  color: var(--primary);
}

/* Homepage: CTA SaaS – floating stat cards, Stripe/Vercel-style */
.cta-saas {
  position: relative;
}
.cta-stat-card {
  transform: translateY(0);
  will-change: transform;
}
.cta-stat-card:hover {
  transform: translateY(-4px);
}
@media (min-width: 1024px) {
  .cta-stat-card:nth-child(1) { margin-left: 0; }
  .cta-stat-card:nth-child(2) { margin-left: 1rem; }
  .cta-stat-card:nth-child(3) { margin-left: 2rem; }
}
.cta-saas-btn {
  will-change: transform;
}

/* Footer - white theme, logo dark on light */
.footer-white {
  background-color: var(--light);
  color: var(--primary);
  border-top: 1px solid rgba(13, 18, 58, 0.1);
}
.footer-logo {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
  /* no filter on white footer - logo stays primary/dark */
}
@media (min-width: 768px) {
  .footer-logo {
    height: 2.75rem;
  }
}

/* Footer layout - <640px: company full width + 2 cols (Services, Technologies), Connect hidden; 640–1023px: company + 3 cols; 1024px+: 4 cols */
.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (max-width: 639px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    justify-items: center;
  }
}
.footer-links-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.footer-white .footer-links a {
  color: rgba(13, 18, 58, 0.75);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-white .footer-links a:hover {
  color: var(--primary);
}
.footer-tagline {
  color: rgba(13, 18, 58, 0.8);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  max-width: 100%;
  line-height: 1.5;
}
.footer-contact-item {
  color: rgba(13, 18, 58, 0.8);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}
.footer-contact-item a {
  color: var(--primary);
  transition: color 0.2s;
}
.footer-contact-item a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.footer-bottom {
  color: rgba(13, 18, 58, 0.65);
  font-size: 0.875rem;
}
.footer-white .footer-bottom a {
  color: rgba(13, 18, 58, 0.65);
  transition: color 0.2s;
}
.footer-white .footer-bottom a:hover {
  color: var(--primary);
}
