/* File: css/style.css */

/* Global */
body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #0f172a, #1e3a8a, #0f172a);
  background-attachment: fixed;
  color: #fff;
  overflow-x: hidden;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Animated Gradient Border */
.animated-border {
  border: 2px solid transparent;
  border-radius: 9999px;
  background-clip: padding-box;
  position: relative;
}
.animated-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(270deg, #3b82f6, #06b6d4, #8b5cf6, #3b82f6);
  background-size: 600% 600%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderGradient 12s ease infinite;
}
@keyframes borderGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Navigation underline */
.nav-link {
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(to right, #3b82f6, #06b6d4);
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Progress stroke (scroll bar at header bottom) */
#progressStroke {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, #3b82f6, #06b6d4);
  width: 0%;
  border-radius: 0 0 9999px 9999px;
  transition: width 0.2s linear;
}

/* Sections */
section {
  position: relative;
  z-index: 5;
}

/* Hero styling */
#home {
  background: linear-gradient(135deg, #0f172a, #1e3a8a, #0f172a);
  background-attachment: fixed;
  padding-top: 8rem;
  padding-bottom: 8rem;
}

/* Cards */
section .p-6 {
  transition: all 0.3s ease;
}
section .p-6:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 212, 255, 0.2);
}

/* Hexagon (Industries) */
.hex {
  width: 180px;
  aspect-ratio: 1 / 1.1547;
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hex-inner {
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Floating accent animations */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin-slow {
  animation: spin-slow 12s linear infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(59,130,246,0.5); }
  50% { box-shadow: 0 0 40px rgba(59,130,246,0.8); }
}
.glow {
  animation: pulse-glow 3s infinite;
}

/* Swiper overrides */
.swiper {
  padding-bottom: 2rem;
}
.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
footer {
  background: linear-gradient(to right, #0f172a, #1e3a8a, #0f172a);
  border-top: 2px solid rgba(59,130,246,0.5);
}
footer p {
  color: #94a3b8;
}

/* Scroll to top button */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff;
  padding: 12px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: none;
  z-index: 99;
  transition: all 0.3s ease;
}
#scrollTopBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(6,182,212,0.6);
}

/* Responsive */
@media (max-width: 768px) {
  #siteHeader {
    width: 95%;
  }
  #home h1 {
    font-size: 2.5rem;
  }
  #home p {
    font-size: 1rem;
  }
}