@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import 'https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css';

:root {
  --bg-dark: #0F172A;
  --bg-darker: #020617;
  --primary: #1D4ED8;
  --primary-light: #3B82F6;
  --secondary: #6366F1;
  --accent: #8B5CF6;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-neumorphic: 15px 15px 30px #0a0f1a, -15px -15px 30px #141d34;
  --shadow-neumorphic-inset: inset 10px 10px 20px #0a0f1a, inset -10px -10px 20px #141d34;
}

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

body {
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, #1e293b 100%);
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(29, 78, 216, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Glassmorphism base */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
}

/* Neumorphism base */
.neumorphic {
  background: var(--bg-dark);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-neumorphic);
  transition: all 0.3s ease;
}

.neumorphic:hover {
  box-shadow: 20px 20px 40px #0a0f1a, -20px -20px 40px #141d34;
  transform: translateY(-2px);
}

.neumorphic-inset {
  background: var(--bg-dark);
  border-radius: 1rem;
  box-shadow: var(--shadow-neumorphic-inset);
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  backdrop-filter: blur(20px);
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-light);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

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

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { filter: drop-shadow(0 0 20px rgba(29, 78, 216, 0.5)); }
  to { filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.8)); }
}

.hero p {
  font-size: 1.25rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Buttons */
.btn, .cta {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(29, 78, 216, 0.3);
  position: relative;
  overflow: hidden;
}

.btn:hover, .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(29, 78, 216, 0.4);
}

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

.btn:hover::before, .cta:hover::before {
  left: 100%;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Modern Cards */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(99, 102, 241, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(29, 78, 216, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover::after {
  opacity: 1;
}

/* Tech Stack Cards */
.tech-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--primary), transparent);
  animation: rotate 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-card::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--bg-dark);
  border-radius: 0.8rem;
  z-index: 1;
}

.tech-card .content {
  position: relative;
  z-index: 2;
}

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

.tech-card:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(29, 78, 216, 0.3);
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Interactive Tech Items */
.tech-item {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

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

.tech-item:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(29, 78, 216, 0.4);
}

.tech-item:hover::before {
  left: 100%;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #f1f5f9;
}

.card p {
  color: #94a3b8;
  margin-bottom: 1rem;
}

/* Tool Detail Page */
.tool-detail {
  max-width: 800px;
  margin: 6rem auto 2rem;
  padding: 2rem;
  text-align: center;
}

.tool-detail h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tool-detail img {
  width: 100%;
  max-width: 400px;
  height: 300px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 2rem;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.feature-item {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

/* Forms */
.form-container {
  max-width: 600px;
  margin: 6rem auto 2rem;
  padding: 2rem;
}

.form-container form {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 2rem;
}

.form-container input,
.form-container textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--neumorphic-inset);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  color: #e2e8f0;
  font-family: inherit;
  box-shadow: var(--shadow-neumorphic-inset);
}

.form-container input:focus,
.form-container textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.form-container input::placeholder,
.form-container textarea::placeholder {
  color: #64748b;
}

/* Footer */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

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

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

.footer-links a:hover {
  color: var(--primary-light);
}

/* WhatsApp Button */
.whatsapp-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: #e2e8f0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  z-index: 999;
  transition: left 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-overlay.active {
  left: 0;
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
}

.mobile-nav-links li {
  margin-bottom: 2rem;
}

.mobile-nav-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
  color: var(--primary-light);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
  
  .tool-detail,
  .form-container {
    margin: 4rem 1rem 2rem;
    padding: 1rem;
  }
  
  .tool-detail > div:first-of-type {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .features-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Mobile-specific animations */
  .tech-card {
    padding: 1rem;
  }
  
  .tech-item {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  /* Disable complex animations on mobile for performance */
  .card:hover,
  .tech-card:hover {
    transform: translateY(-5px) scale(1.01);
  }
  
  .cursor-trail {
    display: none;
  }
  
  .particle {
    display: none;
  }
  
  /* Mobile typing effect adjustment */
  .typing-text {
    animation: none;
    border-right: none;
  }
  
  /* Simplified glitch effect for mobile */
  .glitch::before,
  .glitch::after {
    display: none;
  }
}

/* Modern Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  animation: fadeIn 1s ease forwards;
}

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

.slide-in {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideIn 1s ease forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  animation: scaleIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.rotate-in {
  opacity: 0;
  transform: rotate(-180deg) scale(0.5);
  animation: rotateIn 1s ease forwards;
}

@keyframes rotateIn {
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

/* Text Effects */
.typing-text {
  overflow: hidden;
  border-right: 3px solid var(--primary);
  white-space: nowrap;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--primary); }
}

.glitch {
  position: relative;
  font-weight: 800;
}

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

.glitch::before {
  animation: glitch-1 2s infinite;
  color: #ff0000;
  z-index: -1;
  opacity: 0.8;
}

.glitch::after {
  animation: glitch-2 2s infinite;
  color: #00ffff;
  z-index: -2;
  opacity: 0.8;
}

.glitch-active::before {
  animation: glitch-1 0.3s ease-in-out;
}

.glitch-active::after {
  animation: glitch-2 0.3s ease-in-out;
}

@keyframes glitch-1 {
  0%, 14%, 15%, 49%, 50%, 99%, 100% { transform: translate(0); }
  15%, 49% { transform: translate(-2px, 2px); }
}

@keyframes glitch-2 {
  0%, 20%, 21%, 62%, 63%, 99%, 100% { transform: translate(0); }
  21%, 62% { transform: translate(2px, -2px); }
}

/* Floating Animation */
.float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

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

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

/* Success Message */
.success-message {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  z-index: 9999;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(29, 78, 216, 0.5);
}

/* Cursor Trail Effect */
.cursor-trail {
  position: fixed;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, var(--primary), transparent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.1s ease;
  opacity: 0;
}

/* Enhanced Particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  animation: particleFloat 3s infinite ease-in-out;
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(29, 78, 216, 0.3);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Matrix Rain Effect */
.matrix-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.1;
}

/* Neon Glow Effects */
.neon-glow {
  text-shadow: 
    0 0 5px var(--primary),
    0 0 10px var(--primary),
    0 0 15px var(--primary),
    0 0 20px var(--primary);
  animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
  from {
    text-shadow: 
      0 0 5px var(--primary),
      0 0 10px var(--primary),
      0 0 15px var(--primary),
      0 0 20px var(--primary);
  }
  to {
    text-shadow: 
      0 0 2px var(--primary),
      0 0 5px var(--primary),
      0 0 8px var(--primary),
      0 0 12px var(--primary);
  }
} 