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

:root {
  /* Green Color Palette */
  --clr-green-50: #ecfdf5;
  --clr-green-100: #d1fae5;
  --clr-green-400: #34d399;
  --clr-green-500: #10b981;
  --clr-green-600: #059669;
  --clr-green-neon: #00ff88;
  --clr-green-neon-glow: rgba(0, 255, 136, 0.4);
  
  /* Dark Theme Colors */
  --clr-dark-bg: #030712;
  --clr-dark-card: rgba(17, 24, 39, 0.6);
  --clr-dark-border: rgba(52, 211, 153, 0.2);
  --clr-text-main: #f9fafb;
  --clr-text-muted: #9ca3af;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--clr-dark-bg);
  color: var(--clr-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.05), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(52, 211, 153, 0.08), transparent 25%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Glassmorphism Utilities */
.glass {
  background: var(--clr-dark-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--clr-dark-border);
  border-radius: 16px;
}

/* Typography Utilities */
.text-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--clr-green-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 1000;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-dark-border);
  padding: 0.75rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--clr-green-400);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--clr-text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-green-400);
  transition: var(--transition-fast);
  border-radius: 2px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--clr-green-500);
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}

.btn-primary:hover {
  background: var(--clr-green-400);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--clr-green-400);
  border: 1px solid var(--clr-green-400);
}

.btn-outline:hover {
  background: rgba(52, 211, 153, 0.1);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--clr-text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--clr-dark-border);
  border-radius: 50px;
  color: var(--clr-green-400);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: float 4s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.125rem;
  color: var(--clr-text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Floating Tech Icons in Hero */
.floating-icon {
  position: absolute;
  font-size: 2.5rem;
  color: var(--clr-green-400);
  opacity: 0.3;
  filter: drop-shadow(0 0 10px var(--clr-green-400));
  z-index: 1;
}

.icon-1 { top: 20%; left: 15%; animation: float 6s ease-in-out infinite; }
.icon-2 { top: 30%; right: 15%; animation: float 7s ease-in-out infinite reverse; font-size: 3.5rem; }
.icon-3 { bottom: 25%; left: 20%; animation: float 5s ease-in-out infinite 1s; }
.icon-4 { bottom: 30%; right: 25%; animation: float 8s ease-in-out infinite 2s; font-size: 2rem; }

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

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--clr-text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Products Section */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  padding: 2.5rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: var(--transition-slow);
}

.product-card:hover {
  transform: translateY(-10px);
  border-color: var(--clr-green-500);
  box-shadow: 0 10px 40px -10px rgba(16, 185, 129, 0.2);
}

.product-card:hover::before {
  left: 100%;
}

.product-icon {
  width: 60px;
  height: 60px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--clr-green-400);
  margin-bottom: 1.5rem;
}

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

.product-card p {
  color: var(--clr-text-muted);
  margin-bottom: 1.5rem;
}

.product-features {
  margin-bottom: 2rem;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--clr-text-muted);
  font-size: 0.95rem;
}

.product-features i {
  color: var(--clr-green-500);
}

/* Tech Stack Section */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.tech-item {
  padding: 2rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tech-item i {
  font-size: 3rem;
  color: var(--clr-text-muted);
  transition: var(--transition-normal);
  margin-bottom: 1rem;
}

.tech-item span {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: var(--transition-normal);
}

.tech-item:hover {
  background: rgba(16, 185, 129, 0.05);
  border-color: var(--clr-green-400);
  transform: translateY(-5px);
}

.tech-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(16, 185, 129, 0.06),
    transparent 40%
  );
  z-index: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

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

.tech-item > * {
  position: relative;
  z-index: 1;
}

.tech-item:hover i, .tech-item:hover span {
  color: var(--clr-green-400);
  filter: drop-shadow(0 0 8px var(--clr-green-neon-glow));
}

/* Footer */
footer {
  border-top: 1px solid var(--clr-dark-border);
  padding: 4rem 0 2rem;
  background: rgba(0,0,0,0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--clr-text-muted);
  margin-top: 1rem;
  font-size: 0.95rem;
}

.footer-title {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--clr-text-muted);
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--clr-green-400);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--clr-text-muted);
  font-size: 0.875rem;
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--clr-dark-card);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--clr-dark-border);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: var(--transition-normal);
  }
  
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .mobile-toggle {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .floating-icon {
    display: none;
  }
}
