/* Modern Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: white;
  min-height: 100vh;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow-x: hidden;
}

/* Animated gradient background */
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Animated tech pattern background */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230f3460' fill-opacity='0.2'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -1;
  animation: backgroundMove 40s linear infinite;
}

@keyframes backgroundMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 500px 500px;
  }
}

/* WebFusion logo animation */
.logo-container {
  margin-bottom: 2rem;
  position: relative;
}

.logo {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, #00b4db, #0083b0, #4facfe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  letter-spacing: 2px;
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  0% {
    text-shadow: 0 0 5px rgba(79, 172, 254, 0.5);
  }
  100% {
    text-shadow: 0 0 20px rgba(79, 172, 254, 0.8), 0 0 30px rgba(0, 180, 219, 0.6);
  }
}

h1 {
  font-size: 2.5rem;
  margin: 2rem 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  padding-bottom: 1rem;
  transition: all 0.3s ease;
}

h1:hover {
  transform: translateY(-5px);
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: #4facfe;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(79, 172, 254, 0.5);
}

a {
  display: inline-block;
  margin: 1rem 0 3rem;
  padding: 1rem 2rem;
  background: rgba(15, 52, 96, 0.7);
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid #4facfe;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(79, 172, 254, 0.3), transparent);
  transition: all 0.5s ease;
  z-index: -1;
}

a:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  color: white;
  border-color: #00b4db;
}

a:hover::before {
  left: 100%;
  transition: 0.5s;
}

/* Special styling for different links */
a:nth-of-type(1) {
  background: rgba(15, 52, 96, 0.7);
  border-color: #4facfe;
}

a:nth-of-type(1):hover {
  box-shadow: 0 0 20px rgba(79, 172, 254, 0.5);
}

a:nth-of-type(2) {
  background: rgba(15, 52, 96, 0.7);
  border-color: #ff9a8b;
}

a:nth-of-type(2):hover {
  box-shadow: 0 0 20px rgba(255, 154, 139, 0.5);
}

a:nth-of-type(3) {
  background: rgba(15, 52, 96, 0.7);
  border-color: #00f2fe;
}

a:nth-of-type(3):hover {
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
}

/* Floating elements animation */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(79, 172, 254, 0.2);
  border-radius: 50%;
  animation: float 15s infinite linear;
}

.floating-element:nth-child(1) {
  top: 10%;
  left: 20%;
  width: 15px;
  height: 15px;
  animation-duration: 25s;
}

.floating-element:nth-child(2) {
  top: 70%;
  left: 80%;
  width: 12px;
  height: 12px;
  animation-duration: 20s;
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  top: 40%;
  left: 40%;
  width: 8px;
  height: 8px;
  animation-duration: 30s;
  animation-delay: 5s;
}

.floating-element:nth-child(4) {
  top: 80%;
  left: 10%;
  width: 20px;
  height: 20px;
  animation-duration: 22s;
  animation-delay: 7s;
}

.floating-element:nth-child(5) {
  top: 20%;
  left: 90%;
  width: 15px;
  height: 15px;
  animation-duration: 18s;
  animation-delay: 10s;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-100px) rotate(180deg);
    opacity: 0.4;
  }
  100% {
    transform: translateY(-200px) rotate(360deg);
    opacity: 0;
  }
}

/* NEW: Animated geometric shapes */
.geometric-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
}

.shape {
  position: absolute;
  opacity: 0.15;
  animation: shapeMove 20s infinite linear;
}

.shape-1 {
  top: 15%;
  left: 10%;
  width: 80px;
  height: 80px;
  border: 3px solid #4facfe;
  transform: rotate(45deg);
  animation-duration: 35s;
}

.shape-2 {
  top: 75%;
  left: 85%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #00f2fe;
  animation-duration: 45s;
}

.shape-3 {
  top: 60%;
  left: 15%;
  width: 70px;
  height: 70px;
  background: rgba(0, 180, 219, 0.1);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation-duration: 40s;
}

.shape-4 {
  top: 25%;
  left: 80%;
  width: 100px;
  height: 100px;
  background: rgba(79, 172, 254, 0.1);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation-duration: 50s;
}

@keyframes shapeMove {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  25% {
    transform: translateX(100px) translateY(50px) rotate(90deg);
  }
  50% {
    transform: translateX(50px) translateY(100px) rotate(180deg);
  }
  75% {
    transform: translateX(-50px) translateY(50px) rotate(270deg);
  }
  100% {
    transform: translateX(0) translateY(0) rotate(360deg);
  }
}

/* NEW: Digital circuit lines */
.circuit-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -3;
}

.circuit-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(0, 180, 219, 0.2), transparent);
  height: 2px;
  width: 100%;
  opacity: 0;
  animation: circuitPulse 8s infinite;
}

.circuit-line:nth-child(1) {
  top: 20%;
  animation-delay: 0s;
}

.circuit-line:nth-child(2) {
  top: 40%;
  animation-delay: 2s;
}

.circuit-line:nth-child(3) {
  top: 60%;
  animation-delay: 4s;
}

.circuit-line:nth-child(4) {
  top: 80%;
  animation-delay: 6s;
}

@keyframes circuitPulse {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  20% {
    opacity: 0.5;
  }
  80% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* NEW: Particle system */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -4;
}

.particle {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: particleFloat 15s infinite linear;
}

@keyframes particleFloat {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translate(var(--tx), var(--ty));
    opacity: 0;
  }
}

/* NEW: Digital rain effect (Matrix-like) */
.digital-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -5;
}

.rain-column {
  position: absolute;
  top: -20%;
  color: rgba(0, 242, 254, 0.15);
  font-family: monospace;
  font-size: 1.2rem;
  line-height: 1;
  animation: digitalRain 10s infinite linear;
}

@keyframes digitalRain {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100vh);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  .logo {
    font-size: 2.5rem;
  }
  
  a {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    margin: 0.8rem 0 2rem;
  }
}

/* Container for content */
.container {
  background: rgba(22, 33, 62, 0.7);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(79, 172, 254, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  width: 100%;
  animation: fadeIn 1s ease-out;
  z-index: 10;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse animation for call-to-action */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

a:nth-of-type(3) {
  animation: pulse 3s infinite;
}

footer {
  background-color: #ffffff00;
  color: #f1f1f1;
  padding: 40px 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-logo-img {
  width: 100px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
  margin-bottom: 10px;
}

.footer-credits {
  font-size: 0.9rem;
  color: #cccccc;
}

.footer-links h3,
.footer-social h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links a {
  text-decoration: none;
  color: #999999;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #00ffff;
}

.social-note {
  font-size: 0.85rem;
  color: #ff0000;
  margin-bottom: 8px;
}

.social-icons a {
  margin-right: 10px;
  font-size: 1.2rem;
  color: #aaaaaa;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #00ffff;
}
