/* RubenK9Guard Website - Main Styles */

/* CSS Custom Properties */
:root {
  /* Colors - RubenK9Guard Techwear Monochrome Palette */
  --color-black: #0b0b0b; /* Negru mat */
  --color-charcoal: #1a1a1a; /* Gri cărbune */
  --color-graphite: #2a2a2a; /* Gri mediu */
  --color-off-white: #ffffff; /* Alb pur */
  --color-dim-grey: #bfc4ca; /* Argintiu iridescent */
  --color-subtle-silver: #bfc4ca; /* Argintiu iridescent pentru accente */
  
  /* Semantic Colors - Optimizate pentru fundal futuristic */
  --color-background: linear-gradient(180deg, #0b0b0b 0%, #1a1a1a 100%);
  --color-text-primary: #ffffff; /* Alb pur pentru contrast maxim */
  --color-text-accent: #bfc4ca; /* Argintiu iridescent pentru accente */
  --color-emergency: var(--color-subtle-silver);
  --color-overlay: rgba(11, 11, 11, 0.8);
  --color-card-bg: var(--color-graphite);
  --color-card-hover: #252629;
  --color-border: var(--color-subtle-silver);
  --color-glow: rgba(158, 163, 168, 0.3);
  --color-subtitle: var(--color-dim-grey);
  
  /* Typography */
  --font-primary: 'Inter', 'Segoe UI', 'Arial', 'Helvetica', sans-serif;
  --font-headings: 'Orbitron', 'Inter', 'Segoe UI', sans-serif;
  --font-size-h1: 3rem;
  --font-size-h2: 2.5rem;
  --font-size-h3: 1.5rem;
  --font-size-body: 1rem;
  --font-weight-normal: 400;
  --font-weight-bold: 700;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Layout */
  --container-max-width: 1200px;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: #ffffff; /* Alb pur pentru contrast maxim */
  background: linear-gradient(180deg, #0b0b0b 0%, #1a1a1a 100%); /* Gradient futuristic */
  overflow-x: hidden;
  overflow-y: auto; /* Ensure only one vertical scrollbar */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Textură subtilă futuristică pe fundal - handled by theme.css */

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--color-text-accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-emergency);
}

/* Container and Layout */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Section Spacing - GAP FOARTE MIC cu fundal transparent */
section {
  padding: 5px 0; /* Gap foarte mic între secțiuni - consistent pe tot site-ul */
  background: transparent; /* Toate secțiunile moștenesc fundalul body */
  position: relative; /* Pentru layering corect */
}

.section-title {
  text-align: center;
  margin-bottom: 25px; /* Gap foarte mic sub titlu */
  color: var(--color-text-accent);
  position: relative;
}

/* About section styles moved to theme.css - DO NOT DUPLICATE */

/* Elimină orice pseudo-elemente care ar putea crea linii */
.section-title::before,
.section-title::after {
  display: none !important;
  content: none !important;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  background: transparent;
  border: 2px solid var(--color-text-accent);
  color: var(--color-text-accent);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background: var(--color-text-accent);
  color: #0b0b0b; /* solid dark color for maximum contrast */
  box-shadow: 0 0 20px var(--color-glow);
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-emergency);
  border-color: var(--color-emergency);
  color: var(--color-text-primary);
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-emergency);
  box-shadow: 0 0 20px rgba(255, 106, 0, 0.5);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-accent {
  color: var(--color-text-accent);
}

.text-emergency {
  color: var(--color-emergency);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

/* Animations */
/* fadeInUp animation disabled to fix flickering */

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 10px var(--color-glow);
  }
  50% {
    box-shadow: 0 0 30px var(--color-glow);
  }
}

.fade-in-up {
  /* Animation disabled to fix flickering */
  animation: none !important;
}

.glow-effect {
  animation: glow 2s ease-in-out infinite;
}/* Per
formance Optimizations */

/* Lazy loading for images */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Optimize font loading */
@font-display: swap;

/* Critical CSS inlining hint */
.above-fold {
  contain: layout style paint;
}

/* Video optimization */
.video-background {
  will-change: transform;
  transform: translateZ(0);
}

/* GPU acceleration for animations */
.service-card,
.btn,
.cta-button {
  will-change: transform;
  transform: translateZ(0);
}

/* Optimize repaints */
.navbar {
  will-change: transform;
  backface-visibility: hidden;
}

/* Preload critical resources */
.preload-critical {
  content: '';
  position: absolute;
  left: -9999px;
  background-image: url('logo.webp');
}/* Ac
cessibility Styles */

/* Focus indicators */
*:focus {
  outline: 2px solid var(--color-text-accent);
  outline-offset: 2px;
}

/* Skip link removed as requested */

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Form help text */
.form-help {
  display: block;
  margin-top: var(--spacing-xs);
  color: #ccc;
  font-size: 0.85rem;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-background: #000000;
    --color-text-primary: #ffffff;
    --color-text-accent: #00ffff;
    --color-border: #ffffff;
  }
  
  /* Service card border handled by theme.css */
  
  .btn, .cta-button, .form-button {
    border-width: 3px;
  }
}

/* Focus visible for better keyboard navigation */
.service-card:focus-visible,
.btn:focus-visible,
.cta-button:focus-visible {
  outline: 3px solid var(--color-text-accent);
  outline-offset: 3px;
}

/* Ensure minimum touch target size */
@media (pointer: coarse) {
  .nav-menu a,
  .btn,
  .cta-button,
  .form-button,
  /* Service card touch targets handled by theme.css */
}/* Cross-b
rowser compatibility fixes */

/* Safari video background fix */
@supports (-webkit-appearance: none) {
  .video-background {
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
  }
}

/* Firefox flexbox fixes */
@-moz-document url-prefix() {
  .navbar {
    display: -moz-flex;
  }
  
  /* Hero styles moved to theme.css */
}

/* Internet Explorer 11 support */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  /* Services grid IE11 support removed - modern browsers only */
}

/* Edge legacy support */
@supports (-ms-ime-align: auto) {
  .video-background {
    object-fit: cover;
  }
}

/* Print styles */
@media print {
  .video-background,
  .nav-toggle,
  .emergency-info,
  .cta-button,
  .form-container {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  /* Hero and section title styles moved to theme.css */
  
  /* Service card print styles removed - handled by theme.css */
}

/* Service card interactions handled by theme.css */

.btn:active,
.cta-button:active,
.form-button:active {
  transform: translateY(1px) scale(0.98);
}

/* Smooth transitions for all interactive elements */
a, button, input, textarea, select {
  transition: all 0.2s ease;
}

/* Loading state improvements */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

/* Ensure consistent box-sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Prevent horizontal scroll on mobile */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Optimize font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Final spacing adjustments */
section + section {
  margin-top: 0;
}

/* Services section styles handled by theme.css */

/* About section padding controlled by specific styles above */

.contact-section {
  padding-top: var(--spacing-lg);
}/* 
Enhanced Typography matching the new logo */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-logo);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-title {
  font-family: var(--font-logo);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-logo);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.service-title {
  font-family: var(--font-logo);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Logo container improvements */
.logo-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: var(--spacing-sm);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.company-name {
  font-family: var(--font-logo);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 2px;
  line-height: 1.1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  transition: var(--transition);
}

.company-tagline {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-accent);
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin-top: 2px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.logo-container:hover .company-name {
  color: var(--color-text-accent);
}

.logo-container:hover .company-tagline {
  color: #ffffff;
}

/* Ensure logo is properly sized on different screens */
@media screen and (max-width: 768px) {
  .logo {
    height: 55px;
  }
  
  .footer-logo {
    height: 45px;
  }
  
  .company-name {
    font-size: 1.1rem;
    letter-spacing: 1.5px;
  }
  
  .company-tagline {
    font-size: 0.65rem;
    letter-spacing: 0.3px;
  }
  
  .logo-container {
    gap: var(--spacing-xs);
  }
}

@media screen and (max-width: 480px) {
  .logo {
    height: 50px;
  }
  
  .footer-logo {
    height: 40px;
  }
  
  .company-name {
    font-size: 0.95rem;
    letter-spacing: 1px;
  }
  
  .company-tagline {
    font-size: 0.6rem;
    letter-spacing: 0.2px;
  }
}/* Enh
anced Typography - Orbitron for headings, Inter for body */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-title {
  font-family: var(--font-headings);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-headings);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.service-title {
  font-family: var(--font-headings);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.company-name {
  font-family: var(--font-headings);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 2px;
  line-height: 1.1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  transition: var(--transition);
}

.info-title {
  font-family: var(--font-headings);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.contact-form-title {
  font-family: var(--font-headings);
  font-weight: 700;
  letter-spacing: 0.02em;
}/
* DESKTOP FIXES - FORȚAT PENTRU ECRANE MARI */
@media (min-width: 769px) {
  /* Background texture handled globally by theme.css */
  
  .hero-section {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  .hero-title, h1 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .hero-sub, .hero-subtitle {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .hero-buttons {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
  }
  
  section {
    background: transparent !important;
  }
}