@charset "UTF-8";

:root {
  /* Fonts */
  --default-font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heading-font: "Montserrat", sans-serif;
  --nav-font: "Montserrat", sans-serif;
  
  /* Colors */
  --background-color: #ffffff;
  --default-color: #2a2541;
  --heading-color: #1b1535;
  --accent-color: #0C3365;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  
  /* Navigation Colors */
  --nav-color: #2a2541;
  --nav-hover-color: #0C3365;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #2a2541;
  --nav-dropdown-hover-color: #0C3365;
  
  /* Smooth scroll */
  scroll-behavior: smooth;
}

/* Enhanced smooth scrolling for all browsers */
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
  overflow-x: hidden;   /* prevent any section from causing horizontal scrollbar */
}

body {
  /* scroll-behavior handled by html element only */
}

/* Color Presets */
.light-background {
  --background-color: #edebf3;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #100901;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

/* ========================================
   2. GLOBAL STYLES
======================================== */

/* Global Font Override */
*,
*::before,
*::after,
body,
html,
p, span, div, a, button,
input, textarea, select,
label, li, ul, ol, td, th,
.btn, .card, .nav, .navbar,
.dropdown, .modal, .tooltip,
.popover, .alert, .badge,
section, article, aside, footer, header {
  font-family: "Montserrat", system-ui, sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif !important;
}

/* Custom Scrollbar for All Pages */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #0C3365;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0C3365;
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #0C3365 transparent;
}

body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  margin: 0 auto;
  padding: 0;
  padding-top: 65px;
  max-width: 1920px;
  overflow-x: hidden;
}

@media (min-width: 576px) and (max-width: 991px) {
  body { padding-top: 84px; }
}

@media (min-width: 992px) {
  body { padding-top: 100px; }
}

.main {
  position: relative;
  z-index: 1;
  max-width: 1920px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* Inner-page mains — margin-top controlled by hero.css responsive rules */

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* ========================================
   3. SCROLL TOP BUTTON
======================================== */
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 9998;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/* ========================================
   4. GLOBAL SECTIONS
======================================== */
section, .section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 90px;
  overflow: clip;
}

@media (max-width: 1199px) {
  section, .section {
    scroll-margin-top: 66px;
  }
}

/* ========================================
   5. SECTION TITLES
======================================== */
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  position: relative;
}

.section-title h2:before,
.section-title h2:after {
  content: "";
  width: 50px;
  height: 2px;
  background: var(--accent-color);
  display: inline-block;
}

.section-title h2:before {
  margin: 0 15px 10px 0;
}

.section-title h2:after {
  margin: 0 0 10px 15px;
}

.section-title p {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .section-title h2 {
    font-size: 20px;
  }
  
  .section-title h2:before,
  .section-title h2:after {
    width: 20px;
  }
  
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/* Global Section Spacing */
section {
  padding: 60px 0 !important;
}

/* Hero � let hero.css control its own padding/height */
#hero-primary-section {
  padding: 0 !important;
}

/* Job openings � allow content to breathe, don't clip */
#job-openings {
  overflow: visible !important;
}

/* Hero sections - padding managed by individual hero CSS */
.job-portal-hero,
.contact-page-hero,
.about-hero,
.services-professional-hero {
  padding: 60px 0 80px !important;
}

/* Specific overrides for sections that need less padding */
.services-stats-section,
.job-categories-section,
.job-listings-section,
.job-cta-section,
.services-process-section,
.services-industries-section,
.services-testimonials-section,
.services-faq-section,
.services-grid-section,
.services-cta-section,
.about-story-section,
.about-values-section,
.about-mission-section,
.about-team-section,
.about-timeline-section,
.about-achievements-section,
.about-why-section,
.about-cta-section,
.who-we-are-section,
.contact-main-section,
.premium-newsletter-section,
.premium-companies-section,
.mas-services-tabs-section,
.job-how-it-works-section,
.job-why-section {
  padding: 60px 0 !important;
}

/* ========================================
   CURVED LINE DIVIDER
======================================== */
.curved-line-divider {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
  padding: 0;
}

.curved-line-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 768px) {
  .curved-line-divider {
    height: 100px;
    margin: 30px 0;
  }
}

@media (max-width: 576px) {
  .curved-line-divider {
    height: 70px;
    margin: 25px 0;
  }
}



/* ========================================
   SCROLL ANIMATIONS � Headings first
======================================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hidden until in-view */
.reveal-heading,
.reveal-content,
.reveal-card {
  opacity: 0;
  transform: translateY(18px);
  will-change: opacity, transform;
}

/* Headings: animate immediately, no delay */
.reveal-heading.in-view {
  animation: fadeUp 0.3s ease-out forwards;
  animation-delay: 0s;
}

/* Content: tiny delay so heading paints first */
.reveal-content.in-view {
  animation: fadeUp 0.3s ease-out forwards;
  animation-delay: 0.06s;
}

/* Cards: slightly after content */
.reveal-card.in-view {
  animation: fadeUp 0.3s ease-out forwards;
  animation-delay: 0.1s;
}

/* Fallback: if JS never fires, show everything */
.no-js .reveal-heading,
.no-js .reveal-content,
.no-js .reveal-card {
  opacity: 1 !important;
  transform: none !important;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-heading,
  .reveal-content,
  .reveal-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Smooth page transitions */
body {
  transition: opacity 0.3s ease-in-out;
}

/* Enhanced focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #0C3365;
  outline-offset: 2px;
  transition: outline-offset 0.2s ease;
}

/* Smooth color transitions for all interactive elements */
a,
button,
.btn,
.nav-link,
.stat-card-global,
.why-tab-btn,
.job-filter-btn {
  transition: color 0.2s ease,
              background-color 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.2s ease;
}


/* Remove all underlines from links globally */
a {
  text-decoration: none !important;
}

a:hover,
a:focus,
a:active,
a:visited {
  text-decoration: none !important;
}

/* Specific fix for Let's Talk section links */
.lets-talk-contact-value a,
.lets-talk-contact-value a:hover,
.lets-talk-contact-value a:focus,
.lets-talk-contact-value a:active,
.lets-talk-contact-value a:visited {
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-style: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}


/* Remove all transform hover effects from cards globally to prevent flickering */
.job-card:hover,
.stat-card-global:hover,
.global-feature-card:hover,
.testimonial-creative-card:hover,
.stat-card-testimonial:hover,
.value-card:hover,
.achievement-card:hover,
.why-feature:hover,
.mission-card:hover,
.vision-card:hover,
.timeline-item:hover,
.lets-talk-info-card:hover,
.lets-talk-form-card:hover,
.lets-talk-contact-item:hover {
  transform: none !important;
}

/* Keep only opacity and shadow transitions for smooth effects */
.job-card,
.stat-card-global,
.global-feature-card,
.testimonial-creative-card,
.stat-card-testimonial,
.value-card,
.achievement-card,
.why-feature,
.mission-card,
.vision-card,
.timeline-item,
.lets-talk-info-card,
.lets-talk-form-card,
.lets-talk-contact-item {
  transition: box-shadow 0.3s ease, border-color 0.3s ease !important;
}

/* ========================================
   TABLET SPACING FIX (768px � 1024px)
   Override Bootstrap's narrow container
   and reduce excessive side padding.
   Desktop and mobile are NOT affected.
======================================== */
@media (min-width: 768px) and (max-width: 1024px) {

  /* Widen Bootstrap container to use more screen */
  .container,
  .container-sm,
  .container-md {
    max-width: 95% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Footer wrapper */
  .footer-wrapper {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Footer bottom bar */
  .footer-bottom-content {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Hero inner wrapper side padding */
  #hero-text-content,
  .hero-text-content {
    padding-left: 4% !important;
    padding-right: 4% !important;
  }

  /* H1B banner wrapper */
  .h1b-banner-wrapper {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* ============================================================
   REMOVE ALL HOVER LIFT (translateY flicker) � index + global
   ============================================================ */

/* Header */
.header .btn-getstarted:hover {
  transform: none !important;
}

/* Hero */
#hero-primary-cta:hover,
#hero-secondary-cta:hover {
  transform: none !important;
}

/* H1B banner */
/* transform handled in h1b-visa-section.css */

/* H1B modal buttons */
.h1b-btn-primary:hover,
.h1b-btn-secondary:hover {
  transform: none !important;
}

/* Global stats */
.global-feature-card:hover {
  transform: none !important;
}

/* Why Choose Us */
.why-cta-button:hover,
.why-cta-button:active {
  transform: none !important;
}

/* Footer */
.footer-newsletter-btn:hover,
.footer-back-to-top:hover {
  transform: none !important;
}

/* Newsletter */
.newsletter-subscribe-btn:hover {
  transform: none !important;
}




/* ========================================
   CONTENT-VISIBILITY: skip rendering of
   off-screen sections until needed.
   Dramatically speeds up mobile paint.
======================================== */
.why-choose-us-section,
.global-stats-section,
.why-shavik-section,
.creative-testimonials-section,
.lets-talk-section,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

/* ========================================
   PAGE TRANSITION — smooth fade on load
======================================== */
body {
  opacity: 0;
  animation: pageFadeIn 0.35s ease-out forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  body {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* ========================================
   IMAGE LOADING — prevent layout shift
   All lazy images get a placeholder bg
======================================== */
img[loading="lazy"] {
  background: #f1f5f9;
}

/* Smooth image reveal once loaded */
img {
  transition: opacity 0.3s ease;
}
img:not([src]) {
  opacity: 0;
}

/* ========================================
   MOBILE PERFORMANCE — reduce expensive
   effects on small screens
======================================== */
@media (max-width: 768px) {
  /* Disable backdrop-filter — very expensive on mobile */
  * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Simplify box-shadows on mobile */
  .wcu-main-card,
  .testimonial-creative-card,
  .why-profile-card {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
  }

  /* Disable CSS animations that aren't critical */
  .wcu-progress-fill,
  #hero-trusted-logos-scroll-track,
  .hero-trusted-logos-track {
    animation-play-state: running;
  }

  /* Reduce animation complexity */
  .reveal-heading,
  .reveal-content,
  .reveal-card {
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
}

/* ========================================
   SMOOTH SECTION TRANSITIONS
   Sections glide in as user scrolls
======================================== */
.why-choose-us-section,
.global-stats-section,
.why-shavik-section,
.creative-testimonials-section {
  transition: opacity 0.3s ease;
}

/* ========================================
   FONT DISPLAY — prevent FOIT
======================================== */
@font-face {
  font-display: swap;
}

/* ========================================
   GPU ACCELERATION for animated elements
======================================== */
.hero-trusted-logos-track,
#scrollProgressBar,
.mobile-menu-drawer,
.cookie-banner {
  transform: translateZ(0);
  will-change: transform;
}

.cookie-banner.show {
  will-change: auto; /* release after animation */
}
