/* Critical above-the-fold styles for immediate rendering */

/* Reset and base styles */
* {
  box-sizing: border-box;
}

body { 
  margin: 0; 
  padding: 0; 
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  background: #000;
  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}

.appear-animate { 
  opacity: 1; 
}

/* Hero section critical styles */
.hero-split { 
  position: relative; 
  background: linear-gradient(180deg, rgba(0,0,0,0.92), rgba(0,0,0,0.96));
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(80px, 10vw, 140px) 0;
  overflow: hidden;
}

.hero-split__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  width: 100%;
}

.hero-split__left {
  z-index: 2;
}

.hero-content {
  max-width: 90%;
}

.hero-headline {
  font-weight: 900;
  font-size: clamp(20px, 5.5vw, 48px);
  line-height: 0.95;
  margin: 0 0 32px;
  color: white;
  letter-spacing: -0.02em;
  word-spacing: -0.01em;
}

.hero-headline .brand { 
  display: inline; 
  color: white; 
  margin-bottom: 0; 
}

.hero-headline .midline { 
  display: inline; 
  color: white; 
}

.hero-headline .tagline {
  display: block;
  color: #00E0FF;
  filter: drop-shadow(0 0 24px rgba(0,224,255,.3));
  margin-top: 8px;
}

.hero-sub {
  max-width: 56ch;
  opacity: 0.85;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.7;
  margin: 0 0 40px;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.btn-attackium {
  display: inline-block;
  padding: 16px 32px;
  background: rgba(0, 0, 0, 0.8);
  color: #00E0FF;
  text-decoration: none;
  border: 2px solid #00E0FF;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.btn-attackium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,224,255,0.1), transparent);
  transition: left 0.5s ease;
}

.btn-attackium:hover {
  background: rgba(0, 224, 255, 0.15);
  color: #00E0FF;
  box-shadow: 0 0 20px rgba(0,224,255,0.3), 0 0 40px rgba(0,224,255,0.1), inset 0 0 20px rgba(0,224,255,0.1);
  transform: translateY(-2px);
  border-color: #00E0FF;
}

.btn-attackium:hover::before {
  left: 100%;
}

.btn-attackium:active {
  transform: translateY(0);
  box-shadow: 0 0 15px rgba(0,224,255,0.2), inset 0 0 15px rgba(0,224,255,0.05);
  background: rgba(0, 0, 0, 0.9);
}

.btn-attackium-primary {
  background: rgba(0, 0, 0, 0.9);
  color: #00E0FF;
  border-color: #00E0FF;
  box-shadow: 0 0 15px rgba(0,224,255,0.2), inset 0 0 15px rgba(0,224,255,0.05);
}

.btn-attackium-primary:hover {
  background: rgba(0, 224, 255, 0.1);
  color: #00E0FF;
  box-shadow: 0 0 25px rgba(0,224,255,0.3), 0 0 50px rgba(0,224,255,0.1), inset 0 0 25px rgba(0,224,255,0.1);
}

/* Button pulse animation */
@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0,224,255,0.2), inset 0 0 15px rgba(0,224,255,0.05);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(0,224,255,0.1), inset 0 0 15px rgba(0,224,255,0.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0,224,255,0.2), inset 0 0 15px rgba(0,224,255,0.05);
  }
}

.btn-attackium-primary {
  animation: buttonPulse 3s infinite;
}

.btn-attackium-primary:hover {
  animation: none;
}

/* Hero visual area */
.hero-split__right {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
}

.hero-visual {
  --globe-size: clamp(500px, 65vw, 1200px);
  width: var(--globe-size);
  height: var(--globe-size);
  position: relative;
  margin-left: 20%;
  margin-top: -200px;
  margin-bottom: -140px;
  display: grid;
  place-items: center;
  opacity: 1;
  transform: none;
  pointer-events: none;
  isolation: isolate;
}

.globe {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.85;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,.6));
}

/* Soft cyan aura behind the visual */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(60% 60% at 50% 50%,
    rgba(0, 224, 255, 0.18) 0%,
    rgba(0, 224, 255, 0.10) 30%,
    rgba(0, 0, 0, 0) 70%);
  filter: blur(26px);
  z-index: -1;
  opacity: 0.85;
}

/* Responsive design */
@media (max-width: 980px) {
  .hero-split__inner { 
    grid-template-columns: 1fr; 
    gap: 40px; 
    text-align: center;
  }
  
  .hero-split__left { order: 1; }
  .hero-split__right { order: 2; min-height: 360px; }
  .hero-headline { font-size: clamp(32px, 8vw, 56px); }
  .hero-content { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  
  .hero-visual {
    margin-top: -100px;
    margin-bottom: -70px;
  }
}

@media (max-width: 640px) {
  .hero-split { 
    padding: clamp(60px, 8vw, 100px) 0; 
    position: relative; 
  }
  
  .hero-split__inner { text-align: left; }
  .hero-content { 
    max-width: 100%; 
    margin-top: -24px; 
  }
  
  .hero-split__left { position: relative; z-index: 2; }
  .hero-split__right { 
    position: absolute; 
    inset: 0; 
    z-index: 1; 
    display: grid; 
    place-items: center; 
    pointer-events: none; 
  }
  
  .hero-visual { 
    margin-top: -120px; 
    margin-bottom: -100px; 
  }
  
  .hero-headline .brand,
  .hero-headline .midline,
  .hero-headline .tagline { display: block; }
  
  .hero-headline { font-size: clamp(25px, 8.1vw, 43px); }
  .hero-sub { font-size: clamp(16px, 1.6vw, 20px); }
  .hero-ctas { gap: 16px; }
  
  .btn-attackium {
    padding: 14px 28px;
    font-size: 13px;
    width: 100%;
    text-align: center;
  }
}

/* Larger screens */
@media (min-width: 1280px) {
  .hero-visual {
    --globe-size: clamp(720px, 70vw, 1400px);
  }
}

@media (min-width: 1536px) {
  .hero-visual {
    --globe-size: clamp(900px, 75vw, 1600px);
  }
}

/* Horizontal Flow Diagram Styles for Penetration Testing Page */
.hero-visual .horizontal-flow-diagram {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  position: relative !important;
}

.horizontal-flow-diagram .flow-step-compact {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(20, 20, 20, 0.8)) !important;
  border: 1px solid rgba(0, 224, 255, 0.2) !important;
  border-radius: 16px !important;
  padding: 16px 20px !important;
  min-width: 140px !important;
  max-width: 160px !important;
  text-align: center !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.flow-step-compact:hover {
  border-color: rgba(0, 224, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.flow-step-compact.active {
  border-color: rgba(0, 224, 255, 0.5);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 20, 0.9));
  box-shadow: 0 0 20px rgba(0, 224, 255, 0.15);
}

.step-icon-compact {
  color: #00E0FF;
  background: rgba(0, 224, 255, 0.1);
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(0, 224, 255, 0.2);
  display: inline-flex;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.flow-step-compact:hover .step-icon-compact {
  background: rgba(0, 224, 255, 0.15);
  border-color: rgba(0, 224, 255, 0.3);
}

.step-title-compact {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.2;
}

.step-desc-compact {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  line-height: 1.4;
  margin: 0;
}

.flow-arrow-compact {
  color: #00E0FF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
}

/* Mobile-first responsive adjustments */
@media (max-width: 767px) {
  /* Mobile hero section padding */
  .page-section {
    padding-top: 100px !important;
    padding-bottom: 60px !important;
  }
  
  /* Restructure mobile layout - text first, then cards */
  .mobile-hero-layout {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
  }
  
  .mobile-hero-layout .col-lg-6:first-child {
    order: 1 !important;
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 40px !important;
    padding: 0 20px !important;
  }
  
  .mobile-hero-layout .col-lg-6:last-child {
    order: 2 !important;
    width: 100% !important;
    padding: 0 20px !important;
  }
  
  /* Mobile hero visual - center everything */
  .hero-visual {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0 20px !important;
  }
  
  .hero-visual .horizontal-flow-diagram {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 400px !important;
    gap: 16px !important;
    margin: 0 auto !important;
  }
  
  .horizontal-flow-diagram .flow-step-compact {
    padding: 20px 24px !important;
    min-width: 250px !important;
    max-width: 300px !important;
    width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
  
  .step-title-compact {
    font-size: 1.1rem !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
  }
  
  .step-desc-compact {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    color: rgba(255, 255, 255, 0.8) !important;
  }
  
  .flow-arrow-compact {
    transform: rotate(90deg) !important;
    margin: 8px 0 !important;
    color: #00E0FF !important;
  }
  
  /* Mobile text content centering */
  .hero-content {
    text-align: center !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  
  .eyebrow-text {
    text-align: center !important;
    margin-bottom: 20px !important;
  }
  
  .hero-title {
    text-align: center !important;
    margin-bottom: 24px !important;
  }
  
  .hero-subtitle {
    text-align: center !important;
    margin-bottom: 32px !important;
  }
  
  .hero-ctas {
    justify-content: center !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  
  /* Mobile button adjustments */
  .btn-attackium {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  /* Footer socials - horizontal and smaller on mobile */
  .fw-social-inline {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 14px !important; /* add a bit more spacing between icons */
    flex-wrap: nowrap !important;
  }
  .fw-social-inline-item {
    display: inline-flex !important;
  }
  .fw-social-inline .link-hover-anim {
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    border-radius: 10px !important;
  }
  .fw-social-inline .link-hover-anim svg {
    width: 16px !important;
    height: 16px !important;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .mobile-hero-layout .col-lg-6:first-child,
  .mobile-hero-layout .col-lg-6:last-child {
    padding: 0 15px !important;
  }
  
  .hero-visual .horizontal-flow-diagram {
    max-width: 100% !important;
    padding: 0 10px !important;
  }
  
  .horizontal-flow-diagram .flow-step-compact {
    min-width: 200px !important;
    max-width: 250px !important;
    padding: 16px 20px !important;
  }
  
  .step-title-compact {
    font-size: 1rem !important;
  }
  
  .step-desc-compact {
    font-size: 0.8rem !important;
  }
}

/* Small mobile devices */
@media (min-width: 481px) and (max-width: 767px) {
  .hero-visual .horizontal-flow-diagram {
    max-width: 350px !important;
  }
  
  .horizontal-flow-diagram .flow-step-compact {
    min-width: 220px !important;
    max-width: 280px !important;
  }
}

/* Tablet styles */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-visual .horizontal-flow-diagram {
    gap: 12px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  
  .horizontal-flow-diagram .flow-step-compact {
    min-width: 120px !important;
    max-width: 140px !important;
    flex: 0 0 auto !important;
  }
}

/* Desktop styles */
@media (min-width: 992px) {
  .horizontal-flow-diagram {
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
  }
  
  .flow-step-compact {
    flex: 0 0 auto;
    margin: 0 5px;
  }
}

/* Ensure proper column layout */
.col-lg-6 .hero-visual {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  padding: 20px !important;
}

/* Mobile/Desktop visibility control */
.mobile-layout {
  display: none !important;
}

.desktop-layout {
  display: flex !important;
}

.pt-page-hero {
  padding-top: 8px; /* ~80% tighter on desktop */
}

.mobile-text-content {
  text-align: center !important;
  margin-bottom: 40px !important;
  padding: 0 20px !important;
}

.mobile-cards-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 20px !important;
  padding: 0 20px !important;
}

.mobile-card {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(20, 20, 20, 0.8)) !important;
  border: 1px solid rgba(0, 224, 255, 0.2) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  width: 100% !important;
  max-width: 320px !important;
  text-align: center !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 16px !important;
}

.mobile-card-icon {
  color: #00E0FF !important;
  background: rgba(0, 224, 255, 0.1) !important;
  padding: 12px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(0, 224, 255, 0.2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  height: 48px !important;
}

.mobile-card-content {
  text-align: center !important;
}

.mobile-card-title {
  color: #fff !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  margin: 0 0 8px !important;
  line-height: 1.2 !important;
}

.mobile-card-desc {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

.mobile-arrow {
  color: #00E0FF !important;
  font-size: 24px !important;
  font-weight: bold !important;
  margin: 8px 0 !important;
}

/* Mobile button adjustments */
@media (max-width: 991px) {
  /* Show only mobile layout on small screens */
  .mobile-layout { display: block !important; }
  .desktop-layout { display: none !important; }

  .pt-page-hero { padding-top: 90px; }

  /* Footer bottom spacing among sections */
  .footer-1 .row.align-items-center { row-gap: 14px !important; }
  .footer-1 .col-lg-4 { margin-bottom: 6px !important; }
  .fw-social-inline { margin-top: 4px !important; margin-bottom: 4px !important; }

  .hero-ctas {
    flex-direction: column !important;
    gap: 16px !important;
    align-items: center !important;
  }
  
  .btn-attackium {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 !important;
  }
}

/* Show only desktop layout on large screens */
@media (min-width: 992px) {
  .mobile-layout { display: none !important; }
  .desktop-layout { display: flex !important; }
  .pt-page-hero { padding-top: 0px; }
  /* Desktop footer socials - smaller */
  .fw-social-inline .link-hover-anim { width: 34px !important; height: 34px !important; border-radius: 8px !important; }
  .fw-social-inline .link-hover-anim svg { width: 16px !important; height: 16px !important; }
}
