/* home.css - styles for index (particles + sparkles + layout) */

:root{
  --bg-dark: #07121a;
  --accent: #24c99a;
  --muted: #a8ebe6;
  --glass-bg: rgba(255,255,255,0.03);
}

/* reset */
*{box-sizing:border-box;margin:0;padding:0}
html,body{
  height:100%;
  font-family:'Poppins',sans-serif;
  background:linear-gradient(135deg,var(--bg-dark) 0%, #071827 60%);
  color:#e6fbf6;
  scroll-behavior:smooth
}

/* Particles container (behind everything) */
#particles-js{
  position:fixed;
  inset:0;
  z-index:-2;
  background:#07121a; /* base */
}

/* Sparkle container above particles but under content */
#sparkle-container{
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
}

/* Header / Nav */
.site-header{
  position:fixed;top:0;left:0;width:100%;
  background:rgba(6,18,28,0.6);
  backdrop-filter:blur(6px);
  border-bottom:3px solid var(--accent);
  z-index:100; /* higher than sparkles and particles */
}
.navbar{display:flex;justify-content:space-between;align-items:center;padding:16px 48px}
.logo{font-weight:800;color:var(--accent);font-size:1.4rem}
.nav-links{display:flex;gap:28px;list-style:none;position:relative;z-index:100}
.nav-links a{color:var(--muted);text-decoration:none;font-weight:600;cursor:pointer}
.nav-links a.active,.nav-links a:hover{color:var(--accent);border-bottom:2px solid var(--accent);padding-bottom:6px}

/* dropdown menu */
.dropdown{position:relative}
.dropdown-menu{
  display:none;position:absolute;top:44px;left:0;
  background:rgba(4,8,12,0.95);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:10px;padding:8px 0;min-width:260px;
  box-shadow:0 16px 40px rgba(0,0,0,0.5);
  z-index:150; /* higher than header links */
}
.dropdown.open .dropdown-menu{display:block}
.dropdown-menu li a{
  display:flex;align-items:center;gap:10px;
  padding:10px 14px;color:var(--muted);text-decoration:none
}
.dropdown-menu li a:hover{background:var(--accent);color:#00120a}
.dropdown-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px}

/* HERO */
.hero{padding:140px 20px 60px 20px;min-height:calc(100vh - 120px);display:flex;align-items:center}
.hero-inner{max-width:1100px;margin:0 auto;text-align:center}
.brand-center{font-size:56px;letter-spacing:0.12em;color:var(--accent);text-shadow:0 8px 30px rgba(36,201,154,0.07);margin-bottom:8px}
.hero h2{font-size:32px;color:var(--accent);margin-bottom:12px}
.hero p{color:var(--muted);font-size:18px;margin-bottom:18px}
.btn{display:inline-block;padding:12px 22px;border-radius:999px;text-decoration:none;font-weight:700;cursor:pointer}
.btn-primary{background:var(--accent);color:#06161a}
.btn-outline{border:2px solid var(--accent);color:var(--accent);background:transparent}

/* Containers & Cards */
.container{max-width:1200px;margin:0 auto;padding:30px 24px}
.section-title{font-size:22px;color:var(--accent);margin-bottom:18px}
.cards-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}
.feature-card{
  background:linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius:12px;padding:20px;backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,0.06)
}
.feature-icon{font-size:28px;margin-bottom:10px}

/* Services glass cards */
.service-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:18px}
.glass-card{
  background:var(--glass-bg);
  border:1px solid rgba(255,255,255,0.08);
  padding:18px;border-radius:12px;backdrop-filter:blur(8px);
  box-shadow:0 8px 30px rgba(36,201,154,0.04)
}
.alt{background:linear-gradient(135deg, rgba(2,6,9,0.55), rgba(4,8,12,0.55));}

/* About & projects */
.about-grid{display:grid;grid-template-columns:1fr 420px;gap:24px;align-items:center}
.about-media img{width:100%;border-radius:8px}
.projects-row{display:flex;gap:16px;flex-wrap:wrap}
.project-card{width:calc(33% - 10px);background:var(--glass-bg);border-radius:10px;overflow:hidden;border:1px solid rgba(255,255,255,0.06)}
.project-card img{width:100%;height:140px;object-fit:cover}
.project-card h5{padding:10px 12px;color:var(--muted)}

/* CTA */
.cta{padding:40px 24px;text-align:center}

/* Footer */
.site-footer{padding:26px 20px;background:rgba(6,18,28,0.5);text-align:center}

/* Sparkle particle */
.sparkle{
  position:fixed;
  width:8px;height:8px;border-radius:50%;
  background:radial-gradient(circle, #24c99a, rgba(36,201,154,0.08) 50%, transparent 70%);
  filter:drop-shadow(0 0 10px #24c99a);
  pointer-events:none;opacity:0.95;
  transform:translate3d(0,0,0);
  transition:transform 700ms cubic-bezier(.2,.9,.3,1), opacity 700ms;
}

/* Responsive */
@media (max-width:1100px){.about-grid{grid-template-columns:1fr}}
@media (max-width:820px){.cards-row{grid-template-columns:repeat(2,1fr)}.project-card{width:48%}}
@media (max-width:520px){.nav-links{display:none}.navbar{padding:12px}.brand-center{font-size:40px}}
