/* ==========================================================================
   Sionnach Cyber Security Consulting Ltd. - Design System & Custom Stylesheet
   ========================================================================== */

/* Google Fonts Import: Outfit for Headings, Inter for Body Text */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Tokens */
  --bg-primary: #070a13;
  --bg-secondary: #0c1222;
  --bg-card: rgba(13, 20, 38, 0.45);
  --bg-card-hover: rgba(18, 28, 54, 0.65);
  
  --accent-orange: hsl(18, 100%, 50%);
  --accent-orange-glow: rgba(255, 87, 34, 0.15);
  --accent-teal: hsl(175, 100%, 42%);
  --accent-teal-glow: rgba(0, 229, 255, 0.12);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --border-light: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(255, 87, 34, 0.3);
  --border-teal-glow: rgba(0, 229, 255, 0.3);
  
  /* Fonts */
  --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;

  /* Native color scheme configuration */
  color-scheme: dark;
}

/* Base Styles & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Cyber Grid & Glow Effects */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 15% 20%, rgba(255, 87, 34, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(0, 229, 255, 0.04) 0%, transparent 40%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
  z-index: -1;
  pointer-events: none;
}

/* Custom Scrollbar */
scrollbar-color: var(--text-muted) var(--bg-secondary);

@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
  }
}

/* Typography & Headings (Using text-wrap balance & pretty) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance; /* Modern typography best practice */
}

p, li, blockquote {
  text-wrap: pretty; /* Modern typography best practice for body text */
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

img {
  max-width: 100%;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navbar */
.navbar {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  background-color: rgba(7, 10, 19, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid var(--border-light);
}

.brand-title {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.brand-2sc {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  color: var(--accent-orange);
  background: rgba(255, 87, 34, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-glow);
  text-transform: lowercase;
  transition: all 0.3s ease;
}

.nav-brand-link:hover .brand-title {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 87, 34, 0.2);
}

.nav-brand-link:hover .brand-2sc {
  background: var(--accent-orange);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.4);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.contact-btn {
  background: linear-gradient(135deg, var(--accent-orange), #ff7e40);
  color: #fff !important;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 15px var(--accent-orange-glow);
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.3);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  padding: 8rem 0 6rem 0;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 87, 34, 0.08);
  border: 1px solid var(--border-glow);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-orange);
  margin-bottom: 2rem;
  box-shadow: 0 0 15px rgba(255, 87, 34, 0.05);
}

.hero-badge span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent-orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 87, 34, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 87, 34, 0); }
}

.hero h1 {
  font-size: 3.5rem;
  letter-spacing: -1px;
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 span {
  background: linear-gradient(to right, var(--accent-orange), #ff9e79);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-orange), #ff7e40);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-orange-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 87, 34, 0.35);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

/* Services Section */
.services {
  padding: 6rem 0;
  border-top: 1px solid var(--border-light);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  color: var(--accent-teal);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Glassmorphism Card Design */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(7, 10, 19, 0.5), 0 0 25px rgba(255, 87, 34, 0.04);
}

.service-card:hover::before {
  opacity: 1;
}

/* Alternate glow for IAM & DSGVO cards to Teal for visual harmony */
.service-card.teal-glow:hover {
  border-color: var(--border-teal-glow);
  box-shadow: 0 12px 30px rgba(7, 10, 19, 0.5), 0 0 25px rgba(0, 229, 255, 0.03);
}

.service-card.teal-glow::before {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.05) 0%, transparent 60%);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  background-color: rgba(255, 87, 34, 0.08);
  border: 1px solid var(--border-glow);
  color: var(--accent-orange);
  transition: all 0.4s ease;
}

.service-card.teal-glow .service-icon {
  background-color: rgba(0, 229, 255, 0.08);
  border-color: var(--border-teal-glow);
  color: var(--accent-teal);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(3deg);
  background-color: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange);
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
}

.service-card.teal-glow:hover .service-icon {
  background-color: var(--accent-teal);
  color: #070a13;
  border-color: var(--accent-teal);
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4);
}

.service-card h3 {
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.service-card li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.service-card li::before {
  content: '→';
  color: var(--accent-orange);
  font-weight: bold;
}

.service-card.teal-glow li::before {
  color: var(--accent-teal);
}

.service-card:hover li {
  color: var(--text-secondary);
}

/* About Section */
.about {
  padding: 6rem 0;
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-secondary);
  position: relative;
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-content h2 {
  font-size: 2.5rem;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.about-accent-text {
  font-weight: 500;
  color: var(--accent-orange);
}

.about-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.about-logo-wrapper {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-width: 380px;
  position: relative;
  transition: transform 0.4s ease;
}

.about-logo-wrapper:hover {
  transform: scale(1.02) rotate(-1deg);
}

.about-logo-wrapper img {
  border-radius: 16px;
  width: 100%;
}

.about-logo-wrapper::after {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  bottom: -10px;
  left: -10px;
  border: 1px dashed var(--accent-orange);
  border-radius: 30px;
  opacity: 0.3;
  pointer-events: none;
}

/* Contact Section */
.contact {
  padding: 8rem 0;
  border-top: 1px solid var(--border-light);
  position: relative;
}

.contact-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 4rem 3rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  position: relative;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-teal));
  border-radius: 0 0 4px 4px;
}

.contact h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.contact p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2.5rem auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  background-color: rgba(7, 10, 19, 0.6);
  border: 1px solid var(--border-light);
  padding: 0.8rem 1rem;
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.15);
}

.contact-submit {
  background: linear-gradient(135deg, var(--accent-orange), #ff7e40);
  color: #fff;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--accent-orange-glow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.35);
}

.form-feedback {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  min-height: 24px;
}

.form-feedback.success {
  color: var(--accent-teal);
}

.form-feedback.error {
  color: #f87171;
}

/* Footer Section */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 3rem 0;
  background-color: #04060b;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo img {
  height: 36px;
  width: 36px;
  border-radius: 50%;
}

.footer-logo span {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--text-primary);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--text-secondary);
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Scroll Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styling */
@media (max-width: 992px) {
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .about-content {
    align-items: center;
  }
  .hero h1 {
    font-size: 2.75rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .navbar {
    padding: 0 1.5rem;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    padding-top: 3rem;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid var(--border-light);
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .hero {
    padding: 6rem 0 4rem 0;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-card {
    padding: 3rem 1.5rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Inline Fox Logo ('o') & Brand Links */
.nav-brand-link, .hero-brand-link, .about-brand-link, .footer-brand-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.brand-logo-o {
  display: inline-block;
  vertical-align: middle;
  width: 0.9em;
  height: 0.9em;
  position: relative;
  top: -0.05em;
  margin: 0 0.05em;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  overflow: visible;
}

.brand-logo-o img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.brand-logo-o:hover {
  transform: scale(1.6) !important;
  box-shadow: 0 0 15px var(--accent-orange-glow);
  z-index: 10;
}

/* Adjustments for specific contexts */
.hero-brand-link span {
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-brand-link:hover span {
  background: linear-gradient(to right, var(--accent-orange), #ff9e79);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  font-weight: 400;
  line-height: 1;
  margin-top: 0.2rem;
  transition: color 0.3s ease;
}

.nav-brand-link:hover .brand-subtext {
  color: var(--text-secondary);
}

.nav-brand-link:hover .brand-text {
  background: linear-gradient(135deg, #fff 10%, var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Footer specific */
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}
.footer-brand-text {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.1rem;
}
.footer-brand-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer-brand-link:hover .footer-brand-subtext {
  color: var(--text-secondary);
}

/* Responsive adjustment for header subtext to fit small devices */
@media (max-width: 480px) {
  .brand-subtext {
    display: none; /* Hide full text suffix on very narrow screens */
  }
}

