/* RESET & BASE */
*{margin:0;padding:0;box-sizing:border-box;font-family:'Montserrat',sans-serif;scroll-behavior:smooth;}
body{background:#0a0f1a;color:#fff;line-height:1.6;}
a{text-decoration:none;color:inherit;}

/* HEADER */
header{display:flex;justify-content:space-between;align-items:center;padding:10px 30px;background:rgba(10,15,26,0.85);position:fixed;width:100%;top:0;z-index:10;backdrop-filter:blur(10px);}
header .logo img{height:80px;}
header nav a{margin-left:20px;font-weight:500;color:#fff;transition:0.3s;}
header nav a:hover{color:#00aaff;}

/* HERO */
.hero{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;height:100vh;background:linear-gradient(135deg,#0a0f1a,#001028);padding:0 20px;}
.hero h1{font-size:3em;color:#00aaff;margin-bottom:20px;animation:fadeIn 2s;}
.hero p{font-size:1.2em;margin-bottom:30px;max-width:700px;color:#ccc;animation:fadeIn 3s;}
.hero .cta-btn{padding:15px 35px;background:#00aaff;color:#fff;font-weight:600;border-radius:5px;transition:0.3s;animation:fadeIn 4s;}
.hero .cta-btn:hover{background:#0088cc;}

/* SERVICES */
.services{padding:100px 50px 50px 50px;text-align:center;background:#0a0f1a;}
.services h2{font-size:2em;margin-bottom:50px;color:#00aaff;}
.service-container{display:flex;flex-wrap:wrap;justify-content:center;gap:30px;}
.service{background:rgba(0,170,255,0.05);padding:30px;border-radius:10px;flex:1 1 250px;min-width:250px;transition:0.3s;cursor:pointer;transform:translateY(0);}
.service:hover{background:rgba(0,170,255,0.15);transform:translateY(-10px);box-shadow:0 10px 20px rgba(0,170,255,0.3);}
.service img{width:60px;margin-bottom:20px;}
.service h3{margin-bottom:15px;font-size:1.2em;color:#fff;}
.service p{font-size:0.95em;color:#ccc;}

/* ABOUT */
.about{padding:100px 50px;background:#001028;text-align:center;}
.about h2{font-size:2em;margin-bottom:20px;color:#00aaff;}
.about p{font-size:1em;max-width:700px;margin:0 auto 20px auto;color:#ccc;}

/* PORTFOLIO */
.portfolio{padding:100px 50px;text-align:center;background:#0a0f1a;}
.portfolio h2{font-size:2em;margin-bottom:50px;color:#00aaff;}
.portfolio-filters{margin-bottom:30px;}
.portfolio-filters button{padding:10px 20px;margin:0 10px;background:rgba(0,170,255,0.1);border:none;color:#fff;border-radius:5px;cursor:pointer;transition:0.3s;}
.portfolio-filters button.active, .portfolio-filters button:hover{background:#00aaff;}
.portfolio-container{display:flex;flex-wrap:wrap;justify-content:center;gap:30px;}
.portfolio-item{background:rgba(0,170,255,0.05);border-radius:10px;overflow:hidden;flex:1 1 250px;min-width:250px;transition:0.3s;cursor:pointer;}
.portfolio-item img{width:100%;height:auto;display:block;}
.portfolio-item.hide{display:none;}
.portfolio-item:hover{transform:scale(1.05);}

/* FINAL CTA */
.final-cta{padding:100px 50px;text-align:center;background:#001028;}
.final-cta h2{font-size:2em;margin-bottom:30px;color:#00aaff;}
.final-cta .cta-btn{padding:15px 35px;background:#00aaff;color:#fff;font-weight:600;border-radius:5px;transition:0.3s;}
.final-cta .cta-btn:hover{background:#0088cc;}

/* FOOTER */
footer{padding:30px 50px;text-align:center;background:#0a0f1a;color:#ccc;}
footer a{color:#00aaff;margin:0 10px;transition:0.3s;}
footer a:hover{color:#0088cc;}

/* POPUP */
.popup-bg{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.8);justify-content:center;align-items:center;z-index:1000;}
.popup{background:#001028;padding:30px;border-radius:10px;max-width:400px;width:90%;text-align:center;position:relative;}
.popup h3{margin-bottom:20px;color:#00aaff;}
.popup input, .popup textarea{width:100%;padding:10px;margin-bottom:15px;border:none;border-radius:5px;}
.popup button{padding:10px 25px;background:#00aaff;color:#fff;border:none;border-radius:5px;cursor:pointer;transition:0.3s;}
.popup button:hover{background:#0088cc;}
.popup .close{position:absolute;top:10px;right:15px;cursor:pointer;font-weight:bold;font-size:18px;color:#fff;}

/* ANIMAÇÃO */
@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}

/* RESPONSIVE */
@media(max-width:768px){
  .service-container,.portfolio-container{flex-direction:column;}
  header{flex-direction:column;align-items:flex-start;}
  header nav{margin-top:10px;}
}