/* =========================================
   NICOTEC - ROOT & VARIABLES
   ========================================= */
:root {
  /* Escala de Cores: Azul Vibrante da Logo (#0d88ff / #00a4ff aprox) */
  --color-primary: #0f8aff;
  --color-primary-dark: #006ce6;
  --color-primary-light: #52aeff;
  --color-secondary: #00d2ff;
  
  /* Cores Neutras e Fundo */
  --bg-dark: #0a0e17; /* Volta ao escuro oficial */
  --bg-darker: #05080c;
    --bg-card: rgba(20, 30, 48, 0.7);
    --bg-light: #f8fbff;

    /* Texto */
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dark: #1e293b;

    /* Efeitos e Sombras */
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --glow-primary: 0 0 20px rgba(0, 86, 179, 0.5);

    /* Transições e Borders */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* =========================================
   RESETS & GLOBAL
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 6rem 0;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.subtitle {
    color: var(--color-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #fff;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(51, 136, 255, 0.6);
}

.btn-outline {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    background: transparent;
}

.btn-outline:hover:not(.disabled) {
  background: var(--color-secondary);
  color: var(--bg-dark);
}

.btn.disabled,
.btn:disabled {
  background: transparent;
  border-color: #475569;
  color: #475569;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
    border-width: 1px;
}

/* =========================================
   HEADER / NAVBAR
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding var(--transition-normal);
    padding: 1.5rem 0;
}

.header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Nova estrutura de logo com texto duplo */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
}

.logo-top {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -1px;
}

.logo-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  margin-top: -2px; /* Junta as linhas */
}

/* Ícone no meio de soft house */
.logo-bottom i {
  color: #fff;
  font-size: 0.8rem; /* ícone de sliders pequeno */
}

.nav-links {
  display: flex;
    gap: 2.5rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-main);
  position: relative;
}

.nav-links a.disabled-link {
  color: #475569;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-links a:not(.disabled-link)::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width var(--transition-normal);
}

.nav-links a:not(.disabled-link):hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:not(.disabled-link):hover,
.nav-links a.active {
  color: var(--color-secondary);
}

/* Seletor de Idiomas no Menu */
.lang-selector {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255,255,255,0.1);
}

.lang-selector a {
  font-size: 0.85rem;
  font-weight: 700;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* offset header */
    background: radial-gradient(circle at 80% 20%, rgba(0, 86, 179, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(0, 210, 255, 0.1) 0%, transparent 40%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 2;
}

.hero-text h1 span {
    color: var(--color-secondary);
    display: block;
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glassmorphism Cards na Hero */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: absolute;
    box-shadow: var(--card-shadow);
    animation: float 6s ease-in-out infinite;
}

.glass-card i {
  color: var(--color-primary);
  font-size: 1.5rem;
}

.decor-card-1 {
    top: 10%;
    left: 0;
    animation-delay: 0s;
}

.decor-card-2 {
    bottom: 20%;
    right: 0;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Divider SVG Hero */
.custom-shape-divider-bottom-1683226300 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1683226300 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.custom-shape-divider-bottom-1683226300 .shape-fill {
    fill: var(--bg-darker);
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services {
    background-color: var(--bg-darker);
}

.section-header {
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 45, 70, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(15, 138, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-primary);
  font-size: 2rem;
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    background: var(--color-primary);
    color: #fff;
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about {
    background: var(--bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    align-items: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.core-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.values-card {
    text-align: left;
    padding: 2rem;
}

/* Helper background para criar separação caso necessário */
.bg-light {
    background-color: var(--bg-darker) !important; /* Adaptado para dark theme */
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact {
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
}

.contact p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   FORMS & INPUTS (Global overrides)
   ========================================= */
select option {
  background-color: var(--bg-darker); /* Garante que a lista não fique branca no Windows/Chrome */
  color: #fff;
}

.contact-form-wrapper input,
.contact-form-wrapper select,
.contact-form-wrapper textarea {
  background-color: #1e293b !important; /* Cor Cinza Escuro Slate 800 */
  border: 1px solid #334155 !important;
  color: #fff;
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--radius-md);
  transition: border-color var(--transition-short), box-shadow var(--transition-short);
}

.contact-form-wrapper input:focus,
.contact-form-wrapper select:focus,
.contact-form-wrapper textarea:focus {
  border-color: var(--color-primary) !important;
  outline: none;
  box-shadow: 0 0 0 1px var(--color-primary);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    color: var(--text-main);
}

.footer-social a:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   EXTRACTED UTILITY & COMPONENT CLASSES
   ========================================= */
.main-content {
    padding-top: 100px;
}
.page-title-text {
    font-size: 3rem; 
    margin-top: 0.5rem;
}
.page-title-desc {
    color: var(--text-muted); 
    max-width: 600px; 
    margin: 1rem auto 0;
}
.about-image-wrapper {
    position: relative;
}
.about-image-placeholder {
    width: 100%; 
    height: 400px; 
    background: rgba(15, 138, 255, 0.1); 
    border-radius: var(--radius-lg); 
    border: 1px solid rgba(15, 138, 255, 0.3); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    position: relative;
}
.about-image-icon {
    font-size: 5rem; 
    color: var(--color-primary); 
    opacity: 0.5;
}
.about-image-caption {
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 1.5rem; 
    background: linear-gradient(transparent, rgba(0,0,0,0.8)); 
    text-align: center; 
    font-weight: bold;
}
.values-icon {
    font-size: 2rem; 
    color: var(--color-primary); 
    margin-bottom: 1rem;
}
.values-title {
    font-size: 1.2rem; 
    margin-bottom: 0.5rem;
}
.values-desc {
    color: var(--text-muted); 
    font-size: 0.95rem;
}
.pointer-events-none { pointer-events: none !important; }
.mt-3 { margin-top: 3rem !important; }
.mt-4 { margin-top: 4rem !important; }
.cta-gradient {
    background: linear-gradient(135deg, rgba(15, 138, 255, 0.1), rgba(0, 210, 255, 0.05)); 
    border-top: 1px solid rgba(255,255,255,0.05); 
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cta-title {
    font-size: 2.5rem; 
    margin-bottom: 1.5rem;
}
.cta-desc {
    font-size: 1.1rem; 
    color: var(--text-muted); 
    max-width: 600px; 
    margin: 0 auto 2rem;
}
.cta-buttons {
    display: flex; 
    gap: 1rem; 
    justify-content: center; 
    flex-wrap: wrap;
}
.process-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 2rem; 
    margin-top: 3rem; 
    text-align: center;
}
.process-number {
    width: 50px; 
    height: 50px; 
    background: var(--color-primary); 
    color:#fff; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.5rem; 
    margin: 0 auto 1rem; 
    font-weight: bold;
}
.process-desc {
    color: var(--text-muted); 
    font-size: 0.9rem;
}
.tech-cta-desc {
    margin: 1rem auto 2.5rem; 
    max-width: 600px; 
    color: var(--text-muted);
}
.pt-0 { padding-top: 0 !important; }
.contact-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 4rem;
}
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.w-100 { width: 100% !important; }
.ms-2 { margin-left: 0.5rem !important; }
.contact-item {
    display: flex; 
    gap: 1rem; 
    align-items: flex-start; 
    margin-bottom: 2rem;
}
.contact-item-icon {
    width: 50px; 
    height: 50px; 
    background: rgba(15, 138, 255, 0.1); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--color-primary); 
    font-size: 1.2rem; 
    flex-shrink: 0;
}
.contact-item-text {
    color: var(--text-muted); 
    font-size: 0.95rem;
}
.contact-item-subtext {
    color: var(--text-muted); 
    font-size: 0.9rem; 
    margin-top: 0.3rem;
}
.contact-link {
    color: var(--text-main); 
    text-decoration: none;
}
.contact-form {
    background: var(--bg-card); 
    padding: 2.5rem; 
    border-radius: var(--radius-lg); 
    border: 1px solid rgba(255,255,255,0.05); 
    box-shadow: var(--card-shadow);
}
.contact-form-grid {
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 1.5rem; 
    margin-bottom: 1.5rem;
}
.form-label {
    display: block; 
    margin-bottom: 0.5rem; 
    font-size: 0.9rem; 
    color: var(--text-muted);
}
.resize-vertical {
    resize: vertical;
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE)
   ========================================= */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        display: none;
        /* Simplificação no mobile */
    }
}

.mobile-only-login {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 15, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* Changed from center to flex-start for scrollability */
        padding-top: 2rem;
        overflow-y: auto;
        transition: right var(--transition-normal);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1rem 0;
        width: 70%;
        text-align: center;
    }

    .nav-actions {
        display: none;
    }
    
    .mobile-only-login {
        display: block !important;
        width: fit-content;
        margin: 2rem auto 3rem;
    }
    
    .mobile-only-login a {
        display: inline-block;
        width: auto;
        padding: 6px 15px;
    }

    .nav-links a {
        display: block;
        padding: 1.5rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: center; /* Centraliza links no mobile */
    }

    .lang-selector {
        justify-content: center;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        padding: 1.5rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
  
  .hero-buttons {
    flex-direction: column;
    padding: 0 1rem;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
  
  /* Garante grids em 1 coluna e centralizados no mobile para melhor leitura */
  .services-grid, 
  .core-values-grid, 
  .process > div > div {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  
  .contact-info, .contact-form-wrapper {
    text-align: center !important;
  }

  .contact-info > div {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* =========================================
   ANIMATIONS & REVEALS
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* =========================================
   WHATSAPP FLOATING BUTTON
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
    margin-top: 2px;
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 70px;
    right: 10px;
    background: #fff;
    color: #333;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 25px;
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #fff transparent transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 26px;
        bottom: 15px;
        right: 15px;
    }
    .whatsapp-tooltip {
        display: none;
    }
}