@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --bg-color: #050505;
  --card-bg: #111111;
  --text-main: #ffffff;
  --text-muted: #888888;
  --primary-color: #ff3b3b;
  --primary-gradient: linear-gradient(135deg, #ff3b3b 0%, #ff0055 100%);
  --glow-shadow: 0 0 20px rgba(255, 59, 59, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.05);
  --nav-glass: rgba(5, 5, 5, 0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Utilities */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (min-width: 1600px) {
  .container {
    max-width: 1600px;
    padding: 0 60px;
  }
}

.section-padding {
  padding: 100px 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Header / Nav */
.main-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  z-index: 1000;
  background: var(--nav-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 15px 30px;
  padding-right: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.cta-btn {
  background: var(--text-main);
  color: var(--bg-color);
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-btn:hover::before {
  width: 300px;
  height: 300px;
}

.cta-btn:hover {
  background: transparent;
  color: var(--text-main);
  border-color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 10px 25px;
  border-radius: 30px;
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 59, 59, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-secondary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-secondary:hover {
  background: var(--glass-border);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 59, 59, 0.2);
}

.button-ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  animation: ripple-effect 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-effect {
  to {
    width: 200px;
    height: 200px;
    opacity: 0;
  }
}

/* Sections */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 140px;
  overflow: hidden;
}

/* Hero Background Effects */
.hero-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -2;
  opacity: 0.8;
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}

.glow-bg {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(
    circle,
    rgba(255, 59, 59, 0.4) 0%,
    rgba(255, 0, 85, 0.25) 35%,
    rgba(5, 5, 5, 0) 70%
  );
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
  animation: glow-pulse 8s ease-in-out infinite;
}

.glow-bg-secondary {
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(255, 0, 85, 0.3) 0%,
    rgba(255, 59, 59, 0.15) 40%,
    rgba(5, 5, 5, 0) 70%
  );
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
  animation: glow-pulse 10s ease-in-out infinite reverse;
}

@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

/* Floating Particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 59, 59, 0.5);
  animation: float-particle 15s infinite ease-in-out;
}

.particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 12s;
}

.particle:nth-child(2) {
  top: 40%;
  left: 80%;
  animation-delay: 2s;
  animation-duration: 15s;
}

.particle:nth-child(3) {
  top: 60%;
  left: 20%;
  animation-delay: 4s;
  animation-duration: 18s;
}

.particle:nth-child(4) {
  top: 80%;
  left: 70%;
  animation-delay: 1s;
  animation-duration: 14s;
}

.particle:nth-child(5) {
  top: 30%;
  left: 50%;
  animation-delay: 3s;
  animation-duration: 16s;
}

.particle:nth-child(6) {
  top: 70%;
  left: 40%;
  animation-delay: 5s;
  animation-duration: 13s;
}

.particle:nth-child(7) {
  top: 50%;
  left: 90%;
  animation-delay: 2.5s;
  animation-duration: 17s;
}

.particle:nth-child(8) {
  top: 10%;
  left: 60%;
  animation-delay: 4.5s;
  animation-duration: 15s;
}

@keyframes float-particle {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translate(100px, -100px) scale(1.5);
    opacity: 0.8;
  }
  90% {
    opacity: 1;
  }
}

/* Floating Code Snippets */
.floating-codes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.code-snippet {
  position: absolute;
  font-size: 2rem;
  color: rgba(255, 59, 59, 0.15);
  transition: all 0.3s ease;
}

.code-snippet:nth-child(1) {
  top: 15%;
  left: 5%;
  animation: float-code 20s infinite ease-in-out;
  animation-delay: 0s;
}

.code-snippet:nth-child(2) {
  top: 25%;
  right: 10%;
  animation: float-code 20s infinite ease-in-out;
  animation-delay: 2s;
}

.code-snippet:nth-child(3) {
  top: 65%;
  left: 15%;
  animation: float-code 20s infinite ease-in-out;
  animation-delay: 4s;
}

.code-snippet:nth-child(4) {
  top: 45%;
  right: 5%;
  animation: float-code 20s infinite ease-in-out;
  animation-delay: 1s;
}

.code-snippet:nth-child(5) {
  top: 75%;
  right: 20%;
  animation: float-code 20s infinite ease-in-out;
  animation-delay: 3s;
}

.code-snippet:nth-child(6) {
  top: 85%;
  left: 8%;
  animation: float-code 20s infinite ease-in-out;
  animation-delay: 5s;
}

.code-snippet:hover {
  color: rgba(255, 59, 59, 0.4);
  transform: scale(1.2) rotate(10deg);
}

@keyframes float-code {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.1;
  }
  50% {
    transform: translateY(-30px) rotate(5deg);
    opacity: 0.2;
  }
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--glass-border);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  margin-bottom: 30px;
  animation: fadeInDown 0.8s ease;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Content */
.hero-content {
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-label i {
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
  50% {
    opacity: 0.7;
    transform: rotate(180deg) scale(1.2);
  }
}

.hero-title {
  font-size: 4.5rem;
  margin-bottom: 25px;
  letter-spacing: -2px;
  line-height: 1.1;
  font-weight: 800;
}

@media (min-width: 1600px) {
  .hero-title {
    font-size: 5.5rem;
  }
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-subtitle strong {
  color: var(--text-main);
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.hero-buttons .cta-btn,
.hero-buttons .btn-secondary {
  padding: 15px 35px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.hero-buttons .cta-btn:hover i {
  transform: translateX(5px);
}

.hero-buttons .btn-secondary:hover i {
  transform: scale(1.2);
}

/* Hero Metrics */
.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  max-width: 700px;
  margin: 0 auto;
  margin-bottom: 80px;
}

@media (min-height: 800px) {
  .hero-metrics {
    margin-bottom: 120px;
  }
}

@media (max-height: 800px) {
  .hero-scroll {
    bottom: 20px;
  }
}

.metric-item {
  text-align: center;
}

.metric-number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 5px;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}

/* Hero Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
  animation: fadeIn 1.5s ease 1s backwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.scroll-indicator {
  width: 30px;
  height: 50px;
  border: 2px solid var(--glass-border);
  border-radius: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}

.scroll-indicator i {
  font-size: 0.7rem;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  cursor: pointer;
  color: var(--text-main);
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 120px;
  }

  .main-header {
    width: 95%;
    padding: 15px 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #111;
    flex-direction: column;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
  }

  .nav-links.active {
    display: flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .menu-toggle {
    display: block;
  }

  .desktop-cta {
    display: none;
  }

  .hero-metrics {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    margin-bottom: 40px;
  }

  .metric-divider {
    width: 80%;
    height: 1px;
  }

  .hero-scroll {
    bottom: 15px;
    font-size: 0.75rem;
  }
  
  .scroll-indicator {
    width: 25px;
    height: 40px;
  }

  .glow-bg,
  .glow-bg-secondary {
    width: 400px;
    height: 400px;
  }
}

/* ===================================
   FOOTER STYLES
   =================================== */
.main-footer {
  background: linear-gradient(180deg, #080808 0%, #050505 100%);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

.footer-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 60px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-logo i {
  color: var(--primary-color);
  font-size: 1.8rem;
}

.footer-description {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 59, 59, 0.1);
  border: 1px solid rgba(255, 59, 59, 0.3);
  border-radius: 30px;
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
}

.footer-badge i {
  font-size: 0.9rem;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li a {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.footer-links li a i {
  font-size: 0.75rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.footer-links li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-links li a:hover i {
  transform: translateX(3px);
}

.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-contact li {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.footer-contact li i {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact li div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-contact li span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-contact li a,
.footer-contact li p {
  color: var(--text-main);
  font-size: 0.95rem;
  margin: 0;
  transition: color 0.3s ease;
}

.footer-contact li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding: 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social .social-link {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.footer-social .social-link:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(255, 59, 59, 0.3);
}

.footer-copyright {
  text-align: center;
}

.footer-copyright p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-credits {
  text-align: center;
}

.footer-credits p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-credits i {
  color: var(--primary-color);
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  10%, 30% {
    transform: scale(1.1);
  }
  20%, 40% {
    transform: scale(1);
  }
}

/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 5px 20px rgba(255, 59, 59, 0.4);
}

.scroll-top-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 59, 59, 0.6);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Footer Responsive */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .main-footer {
    padding: 60px 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }

  .footer-bottom {
    padding: 25px 0;
  }

  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}
