*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Poppins',sans-serif;
  background:#070707;
  color:#fff;
  overflow-x:hidden;
}

/* ===== Scroll Progress ===== */

.progress-bar{
  position:fixed;
  top:0;
  left:0;
  height:3px;
  background:linear-gradient(90deg,#ff1f3d,#ff0066);
  width:0%;
  z-index:9999;
}

/* ===== NAVBAR ===== */

header{
  position:fixed;
  top:0;
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 60px;
  backdrop-filter:blur(12px);
  background:rgba(0,0,0,0.4);
  transition:all .4s ease;
  z-index:1000;
}

header.hide{
  transform:translateY(-100%);
}

header.scrolled{
  background:rgba(0,0,0,0.85);
  box-shadow:0 5px 30px rgba(255,0,60,0.3);
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
}

.logo img{
  width:40px;
}

nav a{
  color:#bbb;
  margin-left:35px;
  text-decoration:none;
  font-weight:500;
  position:relative;
  transition:0.3s;
}

nav a:hover,
nav a.active{
  color:#ff1f3d;
}

nav a::after{
  content:'';
  position:absolute;
  bottom:-6px;
  left:0;
  height:2px;
  width:0%;
  background:#ff1f3d;
  transition:0.3s;
}

nav a:hover::after,
nav a.active::after{
  width:100%;
}

/* ===== HERO ===== */

.hero{
  height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding-top:100px;
  position:relative;
  overflow:hidden;
  background:linear-gradient(-45deg,#0b0b0b,#1a0005,#2b0008,#0b0b0b);
  background-size:400% 400%;
  animation:gradientMove 10s ease infinite;
}

@keyframes gradientMove{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

.hero h1{
  font-size:60px;
  color:#ff1f3d;
}

.hero p{
  color:#aaa;
  margin:20px 0;
}

.btn{
  padding:14px 35px;
  border-radius:40px;
  text-decoration:none;
  font-weight:600;
  transition:0.3s;
  position:relative;
  display:inline-block;
}

.primary{
  background:#ff1f3d;
  color:#fff;
}

.primary:hover{
  box-shadow:0 0 25px #ff1f3d;
}

.secondary{
  border:2px solid #ff1f3d;
  color:#ff1f3d;
  margin-left:20px;
}

.secondary:hover{
  background:#ff1f3d;
  color:#fff;
}

/* ===== SECTIONS ===== */

.section{
  padding:140px 60px;
  max-width:1200px;
  margin:auto;
  opacity:0;
  transform:translateY(60px);
  transition:all .8s ease;
}

.section.visible{
  opacity:1;
  transform:translateY(0);
}

.section h2{
  margin-bottom:20px;
  color:#ff1f3d;
}

.dark{
  background:#111;
}

.stats{
  display:flex;
  gap:40px;
  margin-top:30px;
}

.stats h3{
  color:#ff1f3d;
}

/* ===== 3D CARDS ===== */

.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:35px;
  margin-top:50px;
}

.card{
  background:#161616;
  padding:35px;
  border-radius:18px;
  transition:transform .2s ease, box-shadow .3s;
  transform-style:preserve-3d;
  perspective:1000px;
}

.card:hover{
  box-shadow:0 0 40px rgba(255,0,60,0.5);
}

/* ===== FOOTER ===== */

footer{
  text-align:center;
  padding:40px;
  border-top:1px solid #222;
  background:#0b0b0b;
}

/* ===== PARTICLES ===== */

canvas{
  position:fixed;
  top:0;
  left:0;
  z-index:-1;
}

/* ===== CURSOR GLOW ===== */

.cursor{
  width:18px;
  height:18px;
  border:2px solid #ff1f3d;
  border-radius:50%;
  position:fixed;
  pointer-events:none;
  transform:translate(-50%,-50%);
  z-index:2000;
}

.cursor-trail{
  width:400px;
  height:400px;
  background:radial-gradient(circle,rgba(255,0,60,0.2) 0%,transparent 70%);
  position:fixed;
  pointer-events:none;
  transform:translate(-50%,-50%);
  z-index:0;
}
