/*
Theme Name:   Astra Child - Novus Systems
Theme URI:    https://novussystems.io
Description:  Novus Systems Child Theme for Astra
Author:       Novus Systems
Author URI:   https://novussystems.io
Template:     astra
Version:      1.0.0
Text Domain:  astra-child-novus
*/

/* ============================================================
   NOVUS SYSTEMS — CHILD THEME GLOBAL CSS
   Astra Child Theme
   ============================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Exo+2:ital,wght@0,100;0,200;0,300;0,400;0,600;0,700;0,800;1,400&family=Share+Tech+Mono&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --ns-primary:        #0066FF;
  --ns-cyan:           #00C2FF;
  --ns-deep:           #003CBE;
  --ns-bg-dark:        #071A3A;
  --ns-bg-deeper:      #05142E;
  --ns-text-light:     #E6EDF7;
  --ns-text-soft:      #A8B3C7;
  --ns-glow:           #0C2A5A;
  --ns-gradient:       linear-gradient(135deg, #00C2FF 0%, #0066FF 45%, #003CBE 100%);
  --ns-font-heading:   'Rajdhani', sans-serif;
  --ns-font-body:      'Exo 2', sans-serif;
  --ns-font-mono:      'Share Tech Mono', monospace;
}

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--ns-bg-deeper);
  color: var(--ns-text-light);
  font-family: var(--ns-font-body);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

/* ── ASTRA OVERRIDES ── */

/* Remove Astra default header (we use custom) */
.site-header,
.ast-header-break-point .main-header-bar,
#masthead {
  display: none !important;
}

/* Remove Astra default footer */
.site-footer,
#colophon {
  display: none !important;
}

/* Remove default page padding */
.ast-container,
.ast-page-builder-template .site-content {
  max-width: 100% !important;
  padding: 0 !important;
}

.ast-page-builder-template #content {
  padding: 0 !important;
}

/* Elementor full-width fix */
.elementor-section.elementor-section-full_width {
  padding: 0 !important;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ns-font-heading);
  color: var(--ns-text-light);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1rem;
}

p {
  font-family: var(--ns-font-body);
  color: var(--ns-text-soft);
  margin: 0 0 1rem;
}

a {
  color: var(--ns-cyan);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--ns-primary);
}

code, pre, .mono {
  font-family: var(--ns-font-mono);
}

/* ── UTILITY CLASSES ── */
.ns-gradient-text {
  background: var(--ns-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ns-section {
  padding: 120px 60px;
  position: relative;
  overflow: hidden;
}

.ns-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ns-section-tag {
  font-family: var(--ns-font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--ns-cyan);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ns-section-tag::before {
  content: '//';
  opacity: 0.5;
}

/* ── BUTTONS ── */
.ns-btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--ns-font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.ns-btn-primary {
  background: var(--ns-gradient);
  color: white;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
}

.ns-btn-primary:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 102, 255, 0.6);
}

.ns-btn-outline {
  background: transparent;
  color: var(--ns-text-light);
  border: 1px solid rgba(0, 194, 255, 0.35);
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
}

.ns-btn-outline:hover {
  color: var(--ns-cyan);
  border-color: var(--ns-cyan);
  box-shadow: 0 0 30px rgba(0, 194, 255, 0.2);
}

/* ── SCROLL REVEAL ── */
.ns-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.ns-reveal.ns-visible {
  opacity: 1;
  transform: translateY(0);
}

.ns-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.ns-reveal-left.ns-visible {
  opacity: 1;
  transform: translateX(0);
}

.ns-reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.ns-reveal-right.ns-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── CUSTOM CURSOR ── */
.ns-cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--ns-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, opacity 0.3s;
  mix-blend-mode: screen;
}

.ns-cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 194, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

/* ── SCAN LINE EFFECT ── */
.ns-scan-line {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(0, 194, 255, 0.3), transparent);
  z-index: 99990;
  pointer-events: none;
  animation: ns-scan 8s linear infinite;
}

@keyframes ns-scan {
  0%   { top: -2px; }
  100% { top: 100vh; }
}

/* ── NOISE OVERLAY ── */
.ns-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99980;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .ns-section { padding: 80px 32px; }
}

@media (max-width: 768px) {
  .ns-section { padding: 60px 20px; }
  .ns-cursor, .ns-cursor-ring { display: none; }
}

/* ============================================================
   NOVUS SYSTEMS — WORDPRESS FIX CSS
   Πρόσθεσε αυτό στο:
   Appearance → Customize → Additional CSS
   ΄Η στο τέλος του style.css του child theme
   ============================================================ */

/* ────────────────────────────────────────────
   1. ΕΞΑΛΕΙΨΗ ΛΕΥΚΩΝ ΚΕΝΩΝ / GAPS
   Elementor sections, columns, containers
──────────────────────────────────────────── */

/* Global page background */
html,
body,
.site,
.site-content,
#page,
#content,
.entry-content,
.ast-container,
.ast-page-builder-template .site-content,
.elementor,
.elementor-section-wrap {
  background-color: #05142E !important;
  color: #E6EDF7 !important;
}

/* Elementor sections — μηδέν padding/margin */
.elementor-section,
.elementor-top-section,
.elementor-inner-section,
.e-container,
.e-con,
.elementor-container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  background-color: transparent !important;
}

/* Elementor columns */
.elementor-column,
.elementor-col-100,
.elementor-widget-wrap,
.elementor-element {
  padding: 0 !important;
  margin: 0 !important;
  background-color: transparent !important;
}

/* Elementor HTML widget wrapper */
.elementor-widget-html,
.elementor-widget-html .elementor-widget-container {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  line-height: 0;
}

/* Κάθε section να γεμίζει το πλάτος */
.elementor-section.elementor-section-full_width,
.elementor-section.elementor-section-full_width > .elementor-container {
  max-width: 100% !important;
  width: 100% !important;
}

/* ────────────────────────────────────────────
   2. HEADER FIX
──────────────────────────────────────────── */

/* Κρύψε ΤΕΛΕΙΩΣ το Astra native header */
#masthead,
.site-header,
.main-header-bar,
.ast-header-break-point .main-header-bar,
header.site-header,
.ast-primary-header-bar,
.ast-above-header,
.ast-below-header,
#ast-fixed-header {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  visibility: hidden !important;
}

/* Αφαίρεσε το margin-top που βάζει το Astra για fixed header */
#page,
.hfeed {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Custom nav backgrounds */
#ns-navbar {
  background: transparent !important;
}

#ns-navbar.ns-scrolled {
  background: rgba(5, 20, 46, 0.88) !important;
  backdrop-filter: blur(20px) !important;
}

/* ────────────────────────────────────────────
   3. TYPOGRAPHY FIX — Γκρι τίτλοι
──────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.elementor-widget-container h1,
.elementor-widget-container h2,
.elementor-widget-container h3,
.elementor h1,
.elementor h2,
.elementor h3 {
  color: #E6EDF7 !important;
  font-family: 'Rajdhani', sans-serif !important;
}

/* Τα gradient texts να μη χαλάνε */
h1[style*="transparent"],
h2[style*="transparent"],
h3[style*="transparent"],
span[style*="transparent"],
.ns-hero-title .line2,
.line2 {
  -webkit-text-fill-color: transparent !important;
}

/* Paragraphs */
p {
  color: #A8B3C7 !important;
  font-family: 'Exo 2', sans-serif !important;
}

/* ────────────────────────────────────────────
   4. STATS BAR background fix
──────────────────────────────────────────── */

.ns-stats-bar {
  background: rgba(12, 42, 90, 0.7) !important;
}

/* ────────────────────────────────────────────
   5. DARK SCROLLBAR
──────────────────────────────────────────── */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #05142E; }
::-webkit-scrollbar-thumb { background: #003CBE; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #0066FF; }

/* ────────────────────────────────────────────
   6. ASTRA FOOTER HIDE
──────────────────────────────────────────── */

.site-footer,
#colophon,
.ast-footer-row,
.footer-bar {
  display: none !important;
  height: 0 !important;
}

/* Admin bar offset για fixed navbar */
body.admin-bar #ns-navbar {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar #ns-navbar {
    top: 46px !important;
  }
}
