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

/* ===== GLOBAL RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #050505;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  z-index: 0;
}

/* ===== FIXED BACKGROUND ANIMATION (VISIBLE & PULSING) ===== */
/* Vertical glowing lines */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: linear-gradient(90deg, rgba(132, 204, 22, 0.04) 1px, transparent 1px);
  background-size: 120px 100%;
  z-index: -2;
  pointer-events: none;
}

/* Pulsing neon gradients */
body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200vw;
  height: 200vh;
  background: 
    radial-gradient(circle at 30% 30%, rgba(132, 204, 22, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(187, 247, 208, 0.05) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
  animation: pulseGlow 10s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9) translate(0, 0); opacity: 0.5; }
  100% { transform: scale(1.1) translate(-2%, -2%); opacity: 1; }
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 120px 0;
  position: relative;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
}

.section-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  text-align: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #bbf7d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #a1a1aa;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

/* ===== NAVBAR (GLASSMORPHISM) ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 1rem 0;
  background: rgba(5, 5, 5, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
  height: 45px;
  width: auto;
}

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

.nav-links a {
  color: #a1a1aa;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: #ffffff;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #84cc16;
  box-shadow: 0 0 10px #84cc16;
}

/* ===== BUTTONS ===== */
.btn-primary, .cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #84cc16, #bbf7d0);
  color: #050505;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(132, 204, 22, 0.3);
}

.btn-primary:hover, .cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(132, 204, 22, 0.5);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #ffffff;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: #84cc16;
  background: rgba(132, 204, 22, 0.1);
  transform: translateY(-3px);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
}

.hero-content h1 {
  font-size: clamp(4rem, 8vw, 7.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.5rem;
  color: #a1a1aa;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* ===== GRID & CARDS ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.5rem;
}

.card {
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 3rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(132, 204, 22, 0.06), transparent 40%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.card:hover {
  transform: translateY(-10px);
  border-color: rgba(132, 204, 22, 0.3);
  box-shadow: 0  20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(132, 204, 22, 0.1);
}

.card-icon {
  width: 72px;
  height: 72px;
  background: rgba(132, 204, 22, 0.1);
  color: #84cc16;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(132, 204, 22, 0.2);
}

.card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.card p {
  color: #a1a1aa;
  font-size: 1.1rem;
  flex-grow: 1;
}

/* ===== STATS GRID ===== */
.stats-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-number {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #bbf7d0, #84cc16);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.5rem;
}

/* ===== TAGS & FILTERS ===== */
.filter-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.tag {
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: #a1a1aa;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.tag:hover, .tag.active {
  background: rgba(132, 204, 22, 0.15);
  border-color: #84cc16;
  color: #84cc16;
  transform: translateY(-2px);
}

/* ===== BLOG & PORTFOLIO IMAGES ===== */
.blog-image {
  width: calc(100% + 6rem);
  margin: -3rem -3rem 2rem -3rem;
  height: 250px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-meta {
  display: flex;
  gap: 1rem;
  color: #a1a1aa;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #84cc16;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.1);
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

/* ===== FOOTER ===== */
.footer {
  background: #020202;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0 40px 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.8rem;
}

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

.footer ul a:hover {
  color: #84cc16;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  text-align: center;
  color: #a1a1aa;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; } /* Mobile menu would go here */
  .hero-content h1 { font-size: 3rem; }
  .section { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .container { padding: 0 20px; }
}