/* ============================================
   CySec - Home Page Styles
   ============================================ */

/* Hero Section */
.hero {
  text-align: center;
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(196, 22, 28, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: pulse 4s ease-in-out infinite;
}

/* @keyframes pulse in animations.css (shared) */
.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 44px 34px;
}

.hero-title {
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, #ffffff 0%, var(--red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--muted);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-description {
  max-width: 900px;
  margin: 0 auto var(--spacing-xl);
  text-align: left;
}

.hero-text {
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-text:last-child {
  margin-bottom: 0;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(196, 22, 28, 0.2);
}

.hero-highlight {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(196, 22, 28, 0.05);
  border: 1px solid rgba(196, 22, 28, 0.15);
  border-radius: var(--r-md);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.8s ease-out both;
}

.hero-highlight:nth-child(1) {
  animation-delay: 1s;
}

.hero-highlight:nth-child(2) {
  animation-delay: 1.2s;
}

.hero-highlight:nth-child(3) {
  animation-delay: 1.4s;
}

.hero-highlight:nth-child(4) {
  animation-delay: 1.6s;
}

.hero-highlight:hover {
  transform: translateY(-4px);
  background: rgba(196, 22, 28, 0.1);
  border-color: rgba(196, 22, 28, 0.3);
  box-shadow: 0 4px 12px rgba(196, 22, 28, 0.2);
}

.highlight-icon {
  color: var(--red);
  font-weight: 700;
  font-size: 1.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(196, 22, 28, 0.15);
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.hero-highlight:hover .highlight-icon {
  transform: scale(1.2) rotate(360deg);
}

.hero-highlight span:last-child {
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.hero-highlight:hover span:last-child {
  color: rgba(196, 22, 28, 0.95);
}

/* @keyframes fadeInUp in animations.css (shared) */

/* Stats Section */
.stats-section {
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
  padding: var(--spacing-xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.stat-card {
  text-align: center;
  padding: var(--spacing-lg);
  cursor: default;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--red) 0%, rgba(196, 22, 28, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-xs);
  line-height: 1;
}

.stat-label {
  color: var(--muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.service-card {
  padding: var(--spacing-lg);
  text-align: left;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(196, 22, 28, 0.08), transparent);
  transition: left 0.5s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(196, 22, 28, 0.3);
  box-shadow: 0 8px 20px rgba(196, 22, 28, 0.1);
}

.service-card h3 {
  color: var(--red);
  margin-bottom: var(--spacing-md);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: rgba(196, 22, 28, 0.9);
}

.service-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0;
  transition: color 0.3s ease;
}

.service-card:hover p {
  color: var(--text);
}

/* Solutions Accordion */
.solutions-accordion {
  max-width: 900px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: var(--spacing-md);
  border: 1px solid var(--stroke0);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  border-color: rgba(196, 22, 28, 0.3);
}

.accordion-item.active {
  border-color: rgba(196, 22, 28, 0.5);
  box-shadow: 0 4px 12px rgba(196, 22, 28, 0.15);
}

.accordion-header {
  padding: var(--spacing-lg);
  background: var(--glass1);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  user-select: none;
}

.accordion-header:hover {
  background: rgba(196, 22, 28, 0.08);
  padding-left: calc(var(--spacing-lg) + 4px);
}

.accordion-item.active .accordion-header {
  background: rgba(196, 22, 28, 0.12);
  border-bottom: 1px solid rgba(196, 22, 28, 0.2);
}

.accordion-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text);
  transition: color 0.3s ease;
}

.accordion-item.active .accordion-header h3 {
  color: rgba(196, 22, 28, 0.95);
}

.accordion-icon {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.25rem;
  color: var(--red);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

.accordion-body {
  padding: var(--spacing-lg);
  color: var(--muted);
  line-height: 1.7;
}

.accordion-body p {
  margin-bottom: var(--spacing-md);
}

.accordion-link {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-block;
  margin-top: var(--spacing-sm);
  transition: all 0.3s ease;
  opacity: 0.8;
}

.accordion-link:hover {
  opacity: 1;
  transform: translateX(4px);
}

/* CTA Section */
.cta-section {
  padding: var(--spacing-xl) 0;
}

.cta-card {
  text-align: center;
  padding: var(--spacing-xl);
  max-width: 700px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(196, 22, 28, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
  border: 1px solid rgba(196, 22, 28, 0.2);
}

.cta-card h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
  background: linear-gradient(135deg, var(--text) 0%, var(--red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-card p {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: var(--spacing-lg);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

/* Features Section */
.features-section {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(5, 5, 5, 0.5) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.feature-card {
  padding: var(--spacing-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(196, 22, 28, 0.1), transparent);
  transition: left 0.5s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(196, 22, 28, 0.4);
  box-shadow: 0 8px 20px rgba(196, 22, 28, 0.15);
}

.feature-bullet {
  color: var(--red);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-bullet {
  transform: scale(1.3) rotate(5deg);
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0;
  flex: 1;
  transition: color 0.3s ease;
}

.feature-card:hover p {
  color: var(--text);
}

/* Industries Chips */
.industries-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: center;
  margin-top: var(--spacing-lg);
}

.chip {
  padding: 0.75rem 1.5rem;
  background: var(--glass1);
  border: 1px solid var(--stroke0);
  border-radius: 2rem;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  cursor: default;
  position: relative;
  overflow: hidden;
}

.chip::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(196, 22, 28, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.chip:hover::before {
  width: 300%;
  height: 300%;
}

.chip:hover {
  border-color: rgba(196, 22, 28, 0.6);
  color: rgba(196, 22, 28, 0.95);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 12px rgba(196, 22, 28, 0.2);
}

.interactive-chip {
  cursor: pointer;
}

/* Technologies Section */
.technologies-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(5, 5, 5, 0.4) 100%);
}

.technologies-carousel-wrapper {
  position: relative;
  max-width: 1400px;
  margin: var(--spacing-lg) auto 0;
  padding: 0 var(--spacing-md);
}

.technologies-carousel {
  overflow: hidden;
  position: relative;
}

.technologies-track {
  display: flex;
  gap: var(--spacing-sm);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  width: fit-content;
}



.tech-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xs);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: default;
  min-height: 55px;
  min-width: 90px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tech-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(100, 200, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tech-item:hover::before {
  opacity: 1;
}

.tech-item:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(100, 200, 255, 0.3);
  box-shadow: 0 8px 24px rgba(100, 200, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.tech-item img {
  width: 100%;
  max-width: 85px;
  height: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: grayscale(0.2) brightness(0.95) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 12px rgba(150, 150, 150, 0.4)) drop-shadow(0 0 20px rgba(100, 100, 100, 0.2));
  position: relative;
  z-index: 1;
}

.tech-item:hover img {
  opacity: 1;
  filter: grayscale(0) brightness(1.1) drop-shadow(0 5px 10px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 16px rgba(150, 150, 150, 0.5)) drop-shadow(0 0 24px rgba(100, 100, 100, 0.3));
  transform: scale(1.05);
}

/* Partners Strip */
.partners-strip {
  padding: var(--spacing-lg) 0;
  background: var(--bg1);
  margin: var(--spacing-xl) 0;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-md);
  align-items: center;
  margin-top: var(--spacing-md);
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm);
  background: var(--glass1);
  border: 1px solid var(--stroke0);
  border-radius: var(--r-md);
  transition: var(--transition);
  min-height: 100px;
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
}

.partner-logo:hover {
  border-color: var(--red);
  transform: scale(1.05);
}

.partner-logo img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Quote Request Section */
.quote-section {
  max-width: 600px;
  margin: var(--spacing-xl) auto;
  text-align: center;
}

.quote-section h2 {
  margin-bottom: var(--spacing-sm);
}

.quote-section p {
  color: var(--muted);
  margin-bottom: var(--spacing-lg);
}

/* Counter Animation */
.counter {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--red);
  display: block;
}

.counter-label {
  color: var(--muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.stat-card {
  text-align: center;
  padding: var(--spacing-md);
}

/* Typing Effect */
.typing-text {
  border-right: 2px solid var(--red);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% {
    border-color: var(--red);
  }

  51%, 100% {
    border-color: transparent;
  }
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(196, 22, 28, 0.3);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

/* Interactive Card Base */
.interactive-card {
  position: relative;
  overflow: hidden;
}

/* Smooth Transitions */
.reveal,
.stagger-item {
  will-change: opacity, transform;
}


@media (max-width: 768px) {
  .hero {
    padding: var(--spacing-md) 0;
    min-height: auto;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-description {
    text-align: center;
  }

  .hero-text {
    font-size: 0.9375rem;
    text-align: left;
  }

  .hero-highlights {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: stretch;
  }

  .hero-highlight {
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }

  .stat-number {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .feature-card {
    padding: var(--spacing-md);
  }

  .industries-chips {
    justify-content: flex-start;
    gap: var(--spacing-sm);
  }

  .chip {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }

  .technologies-carousel-wrapper {
    padding: 0 var(--spacing-md);
    max-width: 100%;
  }

  .tech-item {
    padding: var(--spacing-xs);
    min-height: 50px;
    min-width: 80px;
  }

  .tech-item img {
    max-width: 70px;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .technologies-carousel-wrapper {
    padding: 0 var(--spacing-sm);
    max-width: 100%;
  }

  .tech-item {
    padding: var(--spacing-xs);
    min-height: 45px;
    min-width: 70px;
  }

  .tech-item img {
    max-width: 60px;
  }

  .cta-card {
    padding: var(--spacing-lg);
  }

  .cta-card h2 {
    font-size: 1.5rem;
  }

  .cta-card p {
    font-size: 1rem;
  }

  .solutions-accordion {
    max-width: 100%;
  }

  .accordion-header {
    padding: var(--spacing-md);
  }

  .accordion-header h3 {
    font-size: 1.125rem;
  }
}
