@import url('../css/hero.css'); /* Importando Hero */
@import url('../css/about.css'); /* Importando About */
@import url('../css/service.css'); /* Importando Services */
@import url('../css/watch.css'); /* Importando Watch */
@import url('../css/price.css'); /* Importando Price */
@import url('../css/testimonial.css'); /* Importando Testimonial */
@import url('../css/portfolio.css'); /* Importando Portfolio */
@import url('../css/contact.css'); /* Importando Contato */
@import url('../css/footer.css'); /* Importando Footer */
@import url('../css/partners.css'); /* Importando Partners */

@font-face {
  font-family: 'xspace';
  src: url('/src/font/Xspace\ Regular.otf') format('woff2'),
       url('fonts/nome-da-sua-fonte.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

:root {
  --primary-color: #a259ff;
  --primary-color2: #755bfa;
  --text-dark: #000000;
  --subheading: #888;
  --text-light: #aaa4a4;
  --white: #fff;
  --brand-purple: rgba(162, 89, 255, 0.15); /* Roxo Cosmos suave */
  --brand-cyan: rgba(50, 207, 201, 0.15);   /* Ciano suave */
  --primary-bg: #000000; /* Fundo preto base */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui;
}

body {
    background:
        radial-gradient(1200px 800px at 80% 10%, var(--brand-purple), transparent 60%),
        radial-gradient(1000px 700px at 10% 90%, var(--brand-cyan), transparent 55%),
        var(--primary-bg);
    background-attachment: fixed;
    color: var(--white);
}

body::-webkit-scrollbar {
  width: 5px;
}

body::-webkit-scrollbar-thumb {
  background: var(--text-dark);
  border: 1px solid var(--subheading);
  border-radius: 10px;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-padding-top: 120px; /* Impede que o seu cabeçalho fixo cubra o título da seção! */
}

/* ========================================= */
/* EASTER EGG GLITCH*/
/* ========================================= */
.glitch {
    animation: glitch 0.3s infinite;
}

@keyframes glitch {
    0% { transform: translate(2px, -2px); }
    25% { transform: translate(-2px, 2px); }
    50% { transform: translate(2px, 2px); }
    75% { transform: translate(-2px, -2px); }
    100% { transform: translate(0); }
}

/* ========================================= */
/* EFEITO WARP SPEED (ESTRELAS AO ROLAR) */
/* ========================================= */
#star-container {
    position: fixed; /* Deixa as estrelas presas na tela inteira */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Garante que os botões do site continuem clicáveis */
    z-index: 0; /* Joga as estrelas lá pro fundo do site */
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: twinkle var(--duration, 3s) infinite ease-in-out;
    will-change: transform, opacity;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 20px;
    padding: 0 20px;
    margin: 20px auto;
  }
  /*Espaçamento padrão nos celulares*/
  section:not(.heroSection) {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
}

/* RESPONSIVIDADE GLOBAL PARA IPAD / TABLETS */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 40px; /* Cria a margem de segurança nas paredes do iPad */
    }
}