/* ===== CYBER AI STYLING FOR PROTWIN ===== */

/* CSS Custom Properties */
:root {
  --cyber-cyan: #00ffff;
  --cyber-purple: #c77dff;
  --cyber-blue: #0080ff;
  --cyber-pink: #ff00ff;
  --cyber-green: #00ff41;
  --dark-bg: #0a0a0a;
  --dark-secondary: #1a1a2e;
  --dark-tertiary: #16213e;
  --cyber-gradient: linear-gradient(135deg, var(--cyber-cyan) 0%, var(--cyber-purple) 50%, var(--cyber-blue) 100%);
  --glow-shadow: 0 0 20px;
  --text-glow: 0 0 10px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--dark-bg);
}

body {
  font-family: 'Rajdhani', sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
              linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Cyber Grid Overlay */
.cyber-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
  animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* Particle System */
.particle-system {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--cyber-cyan);
  border-radius: 50%;
  animation: floatParticle 6s linear infinite;
  box-shadow: var(--glow-shadow) var(--cyber-cyan);
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(100px);
    opacity: 0;
  }
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  text-shadow: var(--text-glow) var(--cyber-cyan);
  letter-spacing: 1px;
}

.cyber-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  background: var(--cyber-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 1rem;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% { filter: drop-shadow(0 0 10px var(--cyber-cyan)); }
  100% { filter: drop-shadow(0 0 30px var(--cyber-purple)); }
}

.cyber-subtitle {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--cyber-cyan);
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 400;
  text-shadow: var(--text-glow) var(--cyber-cyan);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 2rem;
  text-align: center;
}

.cyber-text {
  font-size: 1.4rem;
  line-height: 1.8;
  color: #b0b8c8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

/* Buttons */
.cyber-btn {
  position: relative;
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 2px solid;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1;
}

.cyber-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--cyber-gradient);
  transition: left 0.3s ease;
  z-index: -1;
}

.cyber-btn:hover::before {
  left: 0;
}

.btn-primary {
  color: var(--cyber-cyan);
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
  color: #000;
  box-shadow: 0 0 30px var(--cyber-cyan);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--cyber-purple);
  border-color: var(--cyber-purple);
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

.btn-secondary:hover {
  color: #000;
  box-shadow: 0 0 30px var(--cyber-purple);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 2rem 0;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-cta {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
}

.section:nth-child(even) {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.5) 0%, rgba(22, 33, 62, 0.5) 100%);
}

/* Glassmorphism Cards */
.cyber-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  margin: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cyber-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyber-gradient);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.cyber-card:hover::before {
  transform: translateX(0);
}

.cyber-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
  border-color: rgba(0, 255, 255, 0.3);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--cyber-cyan);
  text-shadow: var(--glow-shadow) var(--cyber-cyan);
}

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin: 4rem 0;
}

/* Problem/Solution Section */
.problem-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 4rem 0;
}

.problem, .solution {
  padding: 3rem;
  border-radius: 15px;
  position: relative;
}

.problem {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.1) 0%, rgba(139, 0, 0, 0.1) 100%);
  border: 1px solid rgba(255, 0, 0, 0.3);
}

.solution {
  background: linear-gradient(135deg, rgba(0, 255, 0, 0.1) 0%, rgba(0, 128, 0, 0.1) 100%);
  border: 1px solid rgba(0, 255, 65, 0.3);
}

.problem h3, .solution h3 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.testimonial {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--cyber-cyan);
  font-family: 'Orbitron', monospace;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 6rem 0;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cyber-pattern" patternUnits="userSpaceOnUse" width="20" height="20"><path d="M 0,20 l 0,-20 20,0" fill="none" stroke="rgba(0,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23cyber-pattern)"/></svg>');
  opacity: 0.3;
}

/* Footer */
.footer {
  background: var(--dark-bg);
  padding: 3rem 0 1rem;
  text-align: center;
  border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--cyber-cyan);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  text-shadow: var(--glow-shadow) var(--cyber-cyan);
  transform: translateY(-2px);
}

/* Glitch Effect */
.glitch {
  position: relative;
  animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch-1 0.3s infinite;
  color: var(--cyber-cyan);
  z-index: -1;
}

.glitch::after {
  animation: glitch-2 0.3s infinite;
  color: var(--cyber-pink);
  z-index: -2;
}

@keyframes glitch {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
}

@keyframes glitch-1 {
  0%, 100% { transform: translate(0); }
  10% { transform: translate(-2px, -2px); }
  20% { transform: translate(2px, 2px); }
}

@keyframes glitch-2 {
  0%, 100% { transform: translate(0); }
  30% { transform: translate(2px, -2px); }
  40% { transform: translate(-2px, 2px); }
}

/* General Text Improvements */
li {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

small {
  font-size: 1rem !important;
}

.cyber-card p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #d0d8e0;
}

.cyber-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Footer text */
.footer p {
  font-size: 1.1rem;
}

.footer-links a {
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .two-column,
  .problem-solution {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .cyber-btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
  }
  
  /* Mobile font size adjustments */
  .cyber-text {
    font-size: 1.3rem;
  }
  
  .cyber-card p {
    font-size: 1.1rem;
  }
  
  li {
    font-size: 1.1rem;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--cyber-gradient);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cyber-cyan);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--cyber-cyan);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Pulse Animation */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}