/* ================================
   GLOBAL RESET
   ================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

/* Auto-hide header for specific pages */
body.auto-hide-header header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.5s ease;
  transform: translateY(0);
  opacity: 1;
}

/* Auto-hide header - Higher specificity */
body.auto-hide-header header.header-hidden {
  transform: translateY(-100%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


body.auto-hide-header.scrolled .services-hero,
body.auto-hide-header.scrolled .hero-section {
  padding-top: 6rem;
  transition: padding-top 0.4s ease;
}

/* ================================
   HEADER
   ================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: transparent;
  backdrop-filter: none;
  z-index: 1000;
  border-bottom: none;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #ffffff;
  transition: color 0.3s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo:hover {
  color: #64FFDA;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}



.menu-btn {
  background: transparent;
  border: none;
  color: #b8860b;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
  margin-top: 8px;
  /* Upar se neeche push karega */
}

.hamburger-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 35px;
}

.hamburger-lines .line {
  width: 100%;
  height: 4px;
  background-color: #b8860b;
  /* transition: all 0.3s ease;*/
}

.menu-btn:hover .line {
  background-color: #64FFDA;
}

.menu-btn:hover .menu-label {
  color: #64FFDA;
}


/* ================================
   HERO SECTION
   ================================ */
/* ================================
   HERO SECTION
   ================================ */
.hero {
  height: 100vh;
  width: 100%;
  display: flex;
  overflow: hidden;
  position: relative;
  padding: 0;
  margin: 0;
}

.hero-left {
  width: 50%;
  min-height: 100vh;
  background: #708090;
  clip-path: polygon(0 0, 90% 0, 75% 100%, 0 100%);
  -webkit-clip-path: polygon(0 0, 90% 0, 75% 100%, 0 100%);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  overflow: hidden; /* Important for clip-path */
}

/* Common slide styling */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: slideZoom 15s infinite; /* 15s = 5s per image */
}

/* Individual image paths */
.slide-1 {
  background-image: url('../imges/img1.jpeg');
  animation-delay: 0s;
}

.slide-2 {
  background-image: url('../imges/img2.jpeg');
  animation-delay: 5s; /* Start after 5 seconds */
}

.slide-3 {
  background-image: url('../imges/img3.jpeg');
  animation-delay: 10s; /* Start after 10 seconds */
}

/* Zoom + Fade Animation */
@keyframes slideZoom {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  6.66% {
    opacity: 1;
    transform: scale(1);
  }
  33.33% {
    opacity: 1;
    transform: scale(1.10); /* Zoom in effect */
  }
  40% {
    opacity: 0;
    transform: scale(1.10);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}


.hero-right {
  width: 70%;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0f1d 0%, #1a1a2e 50%, #252545 100%);
  color: white;
  margin-left: -15%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 220px;
  padding-right: 5rem;
  position: relative;
  overflow: hidden;
  z-index: 0;
}



.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  margin-left: 60px;
}


.hero-content h1 {
  font-size: 5rem;
  font-weight: 600;
  letter-spacing: 0.089em;
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
  color: #CCD6F6;
  max-width: 400px;
}

.hero-content:hover h1 {
  color: #64FFDA;
  text-shadow: 0 0 15px rgba(100, 255, 218, 0.8);
}

.tagline {
  display: block;
  font-size: 1.5rem;
  font-weight: 300;
  color: #64FFDA;
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
  margin-left: 5.5rem;
}



/* ================================
   PULSE STYLES
   ================================ */
.pulse-path {
  stroke: #64FFDA;
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 15px rgba(100, 255, 218, 1)) drop-shadow(0 0 25px rgba(100, 255, 218, 0.8));
  opacity: 0;
}

.pulse-point {
  fill: #64FFDA;
  filter: drop-shadow(0 0 10px rgba(100, 255, 218, 1)) drop-shadow(0 0 18px rgba(100, 255, 218, 0.8));
  opacity: 0;
}

.node-clickable {
   pointer-events: all !important;
  transition: fill 0.2s ease;
}

.node-clickable:hover {
  fill: rgba(100, 255, 218, 0.2) !important;
}

/* Both SVGs - Direct positioning */
.pcb-pattern,
.pulse-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  shape-rendering: geometricPrecision;
  /* Better accuracy */
}

.pcb-pattern {
  opacity: 0.7;
  z-index: 0;
}

.pulse-layer {
  z-index: 1;
  pointer-events: none;
}

/* User-triggered pulse (Orange/Yellow) */
.pulse-path-user {
  stroke: #FF3131;
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 15px rgba(255, 184, 77, 1)) 
          drop-shadow(0 0 25px rgba(255, 184, 77, 0.8));
  opacity: 0;
}

.pulse-point-user {
  fill: #FF3131;
  filter: drop-shadow(0 0 10px rgba(255, 184, 77, 1)) 
          drop-shadow(0 0 18px rgba(255, 184, 77, 0.8));
  opacity: 0;
}




/* ================================
   DISCLAIMER OVERLAY
   ================================ */
.disclaimer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 1;
  visibility: visible;
  transition: all 0.4s ease;
}

.disclaimer-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Disclaimer Modal */
.disclaimer-modal {
  width: 100%;
  max-width: 800px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  padding: 3rem;
  animation: modalSlideUp 0.5s ease;
  position: relative;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-title {
  font-size: 2rem;
  font-weight: 600;
  color: #1a73e8;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.modal-text {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 1rem;
  line-height: 1.8;
}

.modal-text p {
  color: #333333;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  text-align: justify;
}

.modal-text p1 {
  color: #333333;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  text-align: justify;
}

.modal-text::-webkit-scrollbar {
  width: 6px;
}

.modal-text::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.modal-text::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.modal-text::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Checkbox Container */
.checkbox-container {
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: relative;
  height: 20px;
  width: 20px;
  border: 2px solid #1a73e8;
  border-radius: 3px;
  margin-right: 0.75rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.checkbox-label:hover .checkmark {
  border-color: #1557b0;
}

.checkbox-label input:checked~.checkmark {
  background-color: #1a73e8;
  border-color: #1a73e8;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input:checked~.checkmark:after {
  display: block;
}

.checkbox-text {
  font-size: 0.95rem;
  color: #1a1a1a;
  font-weight: 500;
}


/* Warning Message */
.warning-message {
  font-size: 0.85rem;
  color: navy;
  margin: 0;
  padding: 0.5rem 0;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Proceed Button */
/* Proceed Button - Remove disabled attribute handling */
.proceed-btn {
  padding: 1rem 2.5rem;
  background: transparent;
  color: navy;
  border: 2px solid navy;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  margin-top: 0.5rem;
  opacity: 0.5;
}

.proceed-btn.enabled {
  opacity: 1;
}

.proceed-btn.enabled:hover {
  background: navy;
  color: #ffffff;
  border-color: navy;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 128, 0.3);
}






/* ================================
   ANIMATIONS
   ================================ */

/* Menu Item Slide In */
@keyframes slideInMenu {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-overlay.active .menu-nav a {
  animation: slideInMenu 0.6s ease-out forwards;
}

.menu-overlay.active .menu-nav a[data-index="1"] {
  animation-delay: 0.1s;
}

.menu-overlay.active .menu-nav a[data-index="2"] {
  animation-delay: 0.15s;
}

.menu-overlay.active .menu-nav a[data-index="3"] {
  animation-delay: 0.2s;
}

.menu-overlay.active .menu-nav a[data-index="4"] {
  animation-delay: 0.25s;
}

.menu-overlay.active .menu-nav a[data-index="5"] {
  animation-delay: 0.3s;
}

.menu-overlay.active .menu-nav a[data-index="6"] {
  animation-delay: 0.35s;
}


/* Pulse Path Drawing */
@keyframes drawPath {
  0% {
    stroke-dashoffset: var(--path-length, 2000);
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

/* Pulse Glow Effect */
@keyframes pulseGlow {
  0% {
    opacity: 1;
    r: 6;
  }

  50% {
    opacity: 1;
    r: 8;
  }

  100% {
    opacity: 0;
    r: 10;
  }
}




/* ===== RESPONSIVE DESIGN ===== */

/* 5. LARGE SCREENS (1921px+) */
@media (min-width: 1921px) {
  .header {
    padding: 2rem 4rem;
  }

  .logo {
    font-size: 1.8rem;
  }

  .hamburger-lines {
    width: 40px;
    gap: 7px;
  }

  .hamburger-lines .line {
    height: 4.5px;
  }

  .hero-left {
    width: 52%;
  }

  .hero-right {
    width: 68%;
    padding-left: 280px;
    padding-right: 6rem;
  }

  .hero-content {
    max-width: 1000px;
    margin-left: 80px;
  }

  .hero-content h1 {
    font-size: 6rem;
  }

  .tagline {
    font-size: 1.8rem;
    margin-top: 1.5rem;
  }

  .disclaimer-modal {
    max-width: 950px;
    padding: 4rem;
  }

  .modal-title {
    font-size: 2.5rem;
  }

  .modal-text {
    max-height: 400px;
  }

  .modal-text p,
  .modal-text p1 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .checkbox-text {
    font-size: 1.05rem;
  }

  .checkmark {
    height: 24px;
    width: 24px;
  }

  .proceed-btn {
    padding: 1.2rem 3rem;
    font-size: 1.05rem;
  }
}

/* 2. STANDARD DESKTOP (1367px - 1920px) */
@media (min-width: 1367px) and (max-width: 1920px) {
  .header {
    padding: 1.7rem 3.5rem;
  }

  .logo {
    font-size: 1.6rem;
  }

  .hamburger-lines {
    width: 37px;
  }

  .hero-left {
    width: 51%;
  }

  .hero-right {
    width: 69%;
    padding-left: 250px;
    padding-right: 5.5rem;
  }

  .hero-content {
    max-width: 900px;
    margin-left: 70px;
  }

  .hero-content h1 {
    font-size: 5.5rem;
  }

  .tagline {
    font-size: 1.6rem;
  }

  .disclaimer-modal {
    max-width: 850px;
    padding: 3.5rem;
  }

  .modal-title {
    font-size: 2.2rem;
  }

  .modal-text {
    max-height: 360px;
  }

  .modal-text p,
  .modal-text p1 {
    font-size: 1.02rem;
  }

  .proceed-btn {
    padding: 1.1rem 2.7rem;
    font-size: 0.98rem;
  }
}

/* 1. LAPTOP / HALF SCREEN (1025px - 1366px) - FIXED */
@media (min-width: 1025px) and (max-width: 1366px) {
  .header {
    padding: 1.5rem 3rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .menu-btn {
    margin-top: 8px;
  }

  .hamburger-lines {
    width: 35px;
    gap: 6px;
  }

  .hamburger-lines .line {
    height: 4px;
  }

  .hero-left {
    width: 50%;
  }

  .hero-right {
    width: 70%;
    padding-left: 220px;
    padding-right: 5rem;
  }

  .hero-content {
    max-width: 800px;
    margin-left: 60px;
  }

  .hero-content h1 {
    font-size: 5rem;
  }

  .tagline {
    font-size: 1.5rem;
    margin-top: 1rem;
  }
    .pcb-pattern {
    transform-origin: center center;
    opacity: 0.5;
    filter: brightness(1.15);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  .disclaimer-modal {
    max-width: 800px;
    padding: 3rem;
  }

  .modal-title {
    font-size: 2rem;
  }

  .modal-text {
    max-height: 320px;
  }

  .modal-text p,
  .modal-text p1 {
    font-size: 0.95rem;
  }

  .proceed-btn {
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
  }
}

/* 3. TABLET (769px - 900px) */
@media (min-width: 769px) and (max-width: 900px) {
  .header {
    padding: 1.4rem 2.5rem;
  }

  .logo {
    font-size: 1.4rem;
  }

  .hamburger-lines {
    width: 32px;
    gap: 5px;
  }

  .hamburger-lines .line {
    height: 3.5px;
  }

  .hero {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .hero-left {
    width: 100%;
    min-height: 60vh;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
  }

  .hero-right {
    width: 100%;
    min-height: 65vh;
    margin-left: 0;
  }


  .hero-content {
    max-width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 3.5rem;
  }

  .tagline {
    font-size: 1.3rem;
  }

  .pcb-pattern,
  .pulse-layer {
    display: none;
  }

  .disclaimer-modal {
    max-width: 90%;
    padding: 2.5rem;
  }

  .modal-title {
    font-size: 1.8rem;
  }

  .modal-text {
    max-height: 280px;
  }

  .modal-text p,
  .modal-text p1 {
    font-size: 0.92rem;
  }

  .proceed-btn {
    padding: 0.95rem 2.2rem;
    font-size: 0.88rem;
  }
}

/* 4. MOBILE LAYOUT (< 768px) */
@media (max-width: 768px) {
  .header {
    padding: 1.2rem 2rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .menu-btn {
    margin-top: 6px;
  }

  .hamburger-lines {
    width: 30px;
    gap: 5px;
  }

  .hamburger-lines .line {
    height: 3px;
  }

  .hero {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .hero-left {
    width: 100%;
    min-height: 48vh;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
  }

  .hero-right {
    width: 100%;
    min-height: 60vh;
    margin-left: 0;
  }



  .hero-right {
    min-height: 58vh; /* 70vh → 58vh adjusted */
    margin-top: -40px;
    padding: 3.5rem 1.5rem 2.5rem 1.5rem;
  }

  .hero-content {
    max-width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.8rem;
    letter-spacing: 0.05em;
  }

  .tagline {
    font-size: 1.15rem;
    margin-top: 0.8rem;
    margin-left: 0;
  }

  .pcb-pattern {
    transform-origin: center center;
    opacity: 0.5;
    filter: brightness(1.15);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .disclaimer-overlay {
    padding: 1.5rem;
  }

  .disclaimer-modal {
    padding: 2rem 1.5rem;
    max-width: 100%;
  }

  .modal-title {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
  }

  .modal-content {
    gap: 1.2rem;
  }

  .modal-text {
    max-height: 260px;
    padding-right: 0.5rem;
  }

  .modal-text p,
  .modal-text p1 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .checkmark {
    height: 18px;
    width: 18px;
    margin-right: 0.6rem;
  }

  .checkbox-text {
    font-size: 0.9rem;
  }

  .warning-message {
    font-size: 0.82rem;
  }

  .proceed-btn {
    width: 100%;
    text-align: center;
    padding: 0.9rem 2rem;
    font-size: 0.88rem;
  }

  body.auto-hide-header.scrolled .services-hero,
  body.auto-hide-header.scrolled .hero-section {
    padding-top: 5rem;
  }
}

/* 4.1 SMALL PHONES (< 480px) */
@media (max-width: 480px) {
  .header {
    padding: 1rem 1.5rem;
  }

  .logo {
    font-size: 1.2rem;
    letter-spacing: 0.15em;
  }

  .menu-btn {
    margin-top: 5px;
  }

  .hamburger-lines {
    width: 28px;
    gap: 4px;
  }

  .hamburger-lines .line {
    height: 2.5px;
  }

  .hero-left {
    width: 100%;
    min-height: 44vh;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
  }

  .hero-right {
    width: 100%;
    min-height: 62vh;
    margin-left: 0;
  }


  .hero-content h1 {
    font-size: 2.2rem;
    letter-spacing: 0.03em;
  }

  .tagline {
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-left: 0;
  }
  
    .pcb-pattern {
    transform-origin: center center;
    opacity: 0.5;
    filter: brightness(1.15);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .disclaimer-overlay {
    padding: 1rem;
  }

  .disclaimer-modal {
    padding: 1.75rem 1.25rem;
    border-radius: 6px;
  }

  .modal-title {
    font-size: 1.35rem;
  }

  .modal-content {
    gap: 1rem;
  }

  .modal-text {
    max-height: 220px;
  }

  .modal-text p,
  .modal-text p1 {
    font-size: 0.85rem;
    margin-bottom: 0.9rem;
  }

  .checkmark {
    height: 16px;
    width: 16px;
    margin-right: 0.5rem;
  }

  .checkmark:after {
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
  }

  .checkbox-text {
    font-size: 0.85rem;
  }

  .warning-message {
    font-size: 0.8rem;
    padding: 0.4rem 0;
  }

  .proceed-btn {
    padding: 0.85rem 1.8rem;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
  }

  body.auto-hide-header.scrolled .services-hero,
  body.auto-hide-header.scrolled .hero-section {
    padding-top: 4.5rem;
  }
}