/* Ankur Weldtech India Custom Stylesheet */

/* ==========================================================================
   1. DESIGN SYSTEM VARIABLES & FONTS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@600;700&display=swap');

:root {
  --ast-ink: #0D0D12;
  --ast-slate: #00295d;
  --ast-indigo: #f15309;
  --ast-violet: #00295d;
  --ast-sky: #E0F2FE;
  --ast-mist: #F8F9FF;
  --ast-text: #1E1E2E;
  --ast-muted: #6B7280;
  
  --ast-font-display: 'Plus Jakarta Sans', sans-serif;
  --ast-font-body: 'Inter', sans-serif;
}

/* Base Body Styles */
body {
  font-family: var(--ast-font-body);
  color: var(--ast-text);
  background-color: #FFFFFF;
  overflow-x: hidden;
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

/* Page transitions */
body.fade-out {
  opacity: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ast-font-display);
  font-weight: 600;
  color: var(--ast-ink);
}

/* ==========================================================================
   2. SPACING & LAYOUTS
   ========================================================================== */
section {
  padding: 96px 0;
}

@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }
}

/* Custom background utility classes */
.bg-ast-ink {
  background-color: var(--ast-ink) !important;
}

.bg-ast-slate {
  background-color: var(--ast-slate) !important;
}

.bg-ast-mist {
  background-color: var(--ast-mist) !important;
}

.text-ast-indigo {
  color: var(--ast-indigo) !important;
}

.text-ast-muted {
  color: var(--ast-muted) !important;
}

/* ==========================================================================
   3. SHARED HEADER & NAVIGATION
   ========================================================================== */
.ast-navbar {
  transition: all 0.3s ease-in-out;
  padding: 20px 0;
  z-index: 1050;
  background-color: transparent;
}

/* Frosted glass header on scroll */
.ast-navbar.scrolled {
  padding: 12px 0;
  background-color: rgba(255, 255, 255, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* For dark pages if any */
.ast-navbar.scrolled.navbar-dark {
  background-color: rgba(13, 13, 18, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom Pill Nav Links */
.ast-nav-pills .nav-link {
  font-weight: 500;
  color: var(--ast-text);
  padding: 8px 18px;
  border-radius: 999px;
  transition: all 0.25s ease;
  margin: 0 10px;
  border: 1px solid transparent;
}

.ast-nav-pills .nav-link:hover {
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--ast-indigo);
}

.ast-nav-pills .nav-link.active {
  background-color: var(--ast-indigo) !important;
  color: #FFFFFF !important;
}

/* For light text in dark sections */
.navbar-dark .ast-nav-pills .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .ast-nav-pills .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.navbar-dark .ast-nav-pills .nav-link.active {
  background-color: var(--ast-indigo) !important;
  color: #FFFFFF !important;
}

/* Mobile full-screen overlay menu */
.ast-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--ast-ink);
  z-index: 1040;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ast-mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.ast-mobile-menu-links {
  list-style: none;
  padding: 0;
  text-align: center;
}

.ast-mobile-menu-links li {
  margin: 20px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.ast-mobile-overlay.active .ast-mobile-menu-links li {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered mobile links fade-in animation */
.ast-mobile-overlay.active .ast-mobile-menu-links li:nth-child(1) { transition-delay: 0.1s; }
.ast-mobile-overlay.active .ast-mobile-menu-links li:nth-child(2) { transition-delay: 0.15s; }
.ast-mobile-overlay.active .ast-mobile-menu-links li:nth-child(3) { transition-delay: 0.2s; }
.ast-mobile-overlay.active .ast-mobile-menu-links li:nth-child(4) { transition-delay: 0.25s; }
.ast-mobile-overlay.active .ast-mobile-menu-links li:nth-child(5) { transition-delay: 0.3s; }
.ast-mobile-overlay.active .ast-mobile-menu-links li:nth-child(6) { transition-delay: 0.35s; }
.ast-mobile-overlay.active .ast-mobile-menu-links li:nth-child(7) { transition-delay: 0.4s; }

.ast-mobile-menu-links .nav-link {
  font-family: var(--ast-font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.25s ease;
}

.ast-mobile-menu-links .nav-link:hover,
.ast-mobile-menu-links .nav-link.active {
  color: var(--ast-indigo);
}

/* Hamburger toggle styling */
.ast-hamburger {
  border: none;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;
  height: 32px;
}

.ast-hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--ast-ink);
  border-radius: 9px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left center;
}

.navbar-dark .ast-hamburger span {
  background-color: #FFFFFF;
}

.ast-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(2px, -1px);
  background-color: #FFFFFF;
}

.ast-hamburger.active span:nth-child(2) {
  width: 0%;
  opacity: 0;
}

.ast-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(2px, 1px);
  background-color: #FFFFFF;
}

/* ==========================================================================
   4. BUTTONS & UI COMPONENTS
   ========================================================================== */
.btn-pill {
  border-radius: 999px;
  padding: 12px 30px;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Button Glow & Scale Animations */
@media (prefers-reduced-motion: no-preference) {
  .btn-pill:hover {
    transform: scale(1.03);
  }
}

.btn-ast-primary {
  background-color: var(--ast-indigo);
  border: 1px solid var(--ast-indigo);
  color: #FFFFFF;
}

.btn-ast-primary:hover {
  background-color: var(--ast-violet);
  border-color: var(--ast-violet);
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.45);
}

.btn-ast-outline {
  background-color: transparent;
  border: 2px solid var(--ast-indigo);
  color: var(--ast-indigo);
}

.btn-ast-outline:hover {
  background-color: var(--ast-indigo);
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
}

/* Dark Mode Outline Button */
.btn-ast-outline-light {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
}

.btn-ast-outline-light:hover {
  background-color: #FFFFFF;
  color: var(--ast-ink);
  border-color: #FFFFFF;
}

/* Cards Design System */
.ast-card {
  background-color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}

.bg-ast-slate .ast-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (prefers-reduced-motion: no-preference) {
  .ast-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  }
  
  .bg-ast-slate .ast-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(79, 70, 229, 0.3);
  }
}

/* Forms Design System */
.form-control, .form-select {
  border-radius: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #FFFFFF;
  color: var(--ast-text);
  font-family: var(--ast-font-body);
  transition: all 0.25s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--ast-indigo);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

/* ==========================================================================
   5. SPECIAL INTERACTIONS & ANIMATIONS
   ========================================================================== */

/* Scroll Reveal using IntersectionObserver */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-item {
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ANKUR Hero Glow Blobs */
.hero-relative {
  position: relative;
  overflow: hidden;
}

.ANKUR-glow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ANKUR-glow-blob {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ast-indigo) 0%, var(--ast-violet) 100%);
  filter: blur(80px);
  -webkit-filter: blur(80px);
  opacity: 0.35;
  width: 450px;
  height: 450px;
  top: -150px;
  right: -100px;
}

/* ANKUR shifting background animation for dark sections */
.ankur-bg-dark {
  background-color: var(--ast-ink);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.ankur-bg-dark::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.15) 0%, transparent 50%);
  z-index: -1;
  filter: blur(60px);
}

@media (prefers-reduced-motion: no-preference) {
  .ANKUR-glow-blob {
    animation: ANKUR-move 8s infinite alternate ease-in-out;
  }
  
  .ankur-bg-dark::before {
    animation: ANKUR-hue 12s infinite alternate linear;
  }
}

@keyframes ANKUR-move {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50px, 40px) scale(1.1);
    opacity: 0.45;
  }
  100% {
    transform: translate(20px, -30px) scale(0.95);
    opacity: 0.25;
  }
}

@keyframes ANKUR-hue {
  0% {
    filter: hue-rotate(0deg) blur(60px);
  }
  100% {
    filter: hue-rotate(90deg) blur(60px);
  }
}

/* Typography Gradient effect */
.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 20%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-indigo-violet {
  background: linear-gradient(135deg, var(--ast-indigo) 0%, var(--ast-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Typed.js cursor customization */
.typed-cursor {
  color: var(--ast-indigo);
  font-weight: 600;
}

/* Why ANKUR section alternating layouts */
.why-ANKUR-row:nth-child(even) {
  flex-direction: row-reverse;
}

/* Image overlays & shapes */
.img-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.img-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, rgba(13, 13, 18, 0.2) 100%);
  pointer-events: none;
}

/* Stats counter card */
.stat-box {
  text-align: center;
}

.stat-number {
  font-family: var(--ast-font-display);
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--ast-indigo) 0%, var(--ast-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 5px;
}

/* Values section */
.val-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background-color: rgba(79, 70, 229, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ast-indigo);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* Technology Stack Badges */
.tech-badge {
  background-color: var(--ast-mist);
  color: var(--ast-text);
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
  display: inline-block;
  margin: 6px;
  transition: all 0.2s ease;
}

.tech-badge:hover {
  background-color: var(--ast-indigo);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* Horizontal stepper process section */
.stepper-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 50px;
}

.stepper-line {
  position: absolute;
  top: 30px;
  left: 5%;
  right: 5%;
  height: 2px;
  background-color: rgba(79, 70, 229, 0.15);
  z-index: 1;
}

.stepper-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
}

.stepper-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 2px solid rgba(79, 70, 229, 0.15);
  color: var(--ast-indigo);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.stepper-item:hover .stepper-circle {
  border-color: var(--ast-indigo);
  background-color: var(--ast-indigo);
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.35);
}

.stepper-title {
  font-family: var(--ast-font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--ast-ink);
}

.stepper-desc {
  font-size: 0.85rem;
  color: var(--ast-muted);
  max-width: 140px;
  padding: 0 10px;
}

@media (max-width: 992px) {
  .stepper-container {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
    margin-left: 20px;
  }
  
  .stepper-line {
    top: 5%;
    bottom: 5%;
    left: 49px;
    width: 2px;
    height: 90%;
  }
  
  .stepper-item {
    flex-direction: row;
    text-align: left;
    gap: 20px;
  }
  
  .stepper-circle {
    margin-bottom: 0;
  }
  
  .stepper-desc {
    max-width: 100%;
    padding: 0;
  }
}

/* Portfolio grid animations */
.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  transition: height 0.5s ease-in-out;
}

.portfolio-item {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Hidden state with transitions to prevent layout shifts */
.portfolio-item.portfolio-item-hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  width: 0 !important;
  max-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden;
}

/* Portfolio Filters */
.filter-btn {
  background-color: var(--ast-mist);
  color: var(--ast-text);
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: 500;
  border-radius: 999px;
  padding: 10px 24px;
  margin: 4px;
  transition: all 0.25s ease;
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--ast-indigo);
  color: #FFFFFF;
  border-color: var(--ast-indigo);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.25);
}

/* Accordion for Careers */
.ast-accordion .accordion-item {
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 16px;
  background-color: #FFFFFF;
  transition: all 0.25s ease;
}

.ast-accordion .accordion-item:hover {
  border-color: rgba(79, 70, 229, 0.2);
}

.ast-accordion .accordion-button {
  padding: 24px;
  font-family: var(--ast-font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ast-ink);
  background-color: #FFFFFF;
  box-shadow: none;
  border: none;
}

.ast-accordion .accordion-button:not(.collapsed) {
  color: var(--ast-indigo);
  background-color: rgba(79, 70, 229, 0.02);
}

.ast-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231E1E2E'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  width: 1.25rem;
  height: 1.25rem;
  background-size: 1.25rem;
  transition: transform 0.2s ease-in-out;
}

.ast-accordion .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234F46E5'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.ast-accordion .accordion-body {
  padding: 24px;
  color: var(--ast-text);
  line-height: 1.6;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Badge tags */
.ast-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ast-badge-indigo {
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--ast-indigo);
}

.ast-badge-violet {
  background-color: rgba(124, 58, 237, 0.1);
  color: var(--ast-indigo);
}

.ast-badge-muted {
  background-color: rgba(107, 114, 128, 0.1);
  color: var(--ast-muted);
}

/* Contact map container */
.map-container {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer structure styling */
.ast-footer {
  background-color: var(--ast-ink);
  color: rgba(255, 255, 255, 0.6);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ast-footer h5 {
  color: #FFFFFF;
  font-weight: 600;
  margin-bottom: 24px;
}

.ast-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ast-footer-links li {
  margin-bottom: 12px;
}

.ast-footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.2s ease;
}

.ast-footer-links a:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.ast-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  margin-right: 12px;
  transition: all 0.25s ease;
}

.ast-social-icon:hover {
  background-color: var(--ast-indigo);
  transform: translateY(-3px);
  color: #FFFFFF;
}

.ast-footer-bottom {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

/* Logo */
.navbar-brand .logo {
    width: 220px;      /* Desktop */
    height: auto;
    max-width: 100%;
    display: block;
}

/* Tablet */
@media (max-width: 992px) {
    .navbar-brand .logo {
        width: 190px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .navbar-brand .logo {
        width: 150px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .navbar-brand .logo {
        width: 110px;
    }
}


.navbar-brand .logo {
    width: clamp(100px, 15vw, 220px);
    height: auto;
}

.bannertop{margin-top:120px;}