/* ========================================
   DAEMON LABS - CUSTOM CSS
   Modern, Dark Theme for Red Team/Pentesting
   ======================================== */

/* ========================================
   CSS VARIABLES (Custom Properties)
   Easy to modify theme colors and spacing
   ======================================== */
:root {
  /* Color Palette - Dark cybersecurity theme */
  --color-bg-primary: #0a0a0a;        /* Main background - deep black */
  --color-bg-secondary: #141414;      /* Secondary background - slightly lighter */
  --color-bg-card: #1a1a1a;           /* Card/section backgrounds */
  
  --color-text-primary: #ffffff;      /* Main text color */
  --color-text-secondary: #a0a0a0;    /* Secondary text - muted gray */
  --color-text-muted: #666666;        /* Even more muted text */
  
  --color-accent-primary: #E31818;    /* Red accent - daemon theme */
  --color-accent-hover: #b91c1c;      /* Darker red for hover states */
  --color-accent-glow: rgba(220, 38, 38, 0.3); /* Red glow effect */
  
  /* Spacing system - consistent spacing throughout */
  --spacing-xs: 0.5rem;    /* 8px */
  --spacing-sm: 1rem;      /* 16px */
  --spacing-md: 2rem;      /* 32px */
  --spacing-lg: 4rem;      /* 64px */
  --spacing-xl: 6rem;      /* 96px */
  
  /* Typography */
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Layout */
  --max-width: 1200px;
  --border-radius: 8px;
  
  /* Transitions - smooth animations */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

/* Modern CSS reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased; /* Better font rendering */
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
}

h1 {
  font-size: 3.5rem;   /* 56px - Hero heading */
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;   /* 40px - Section headings */
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.75rem;  /* 28px - Subsections */
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-secondary);
}

/* Responsive typography - smaller on mobile */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

/* ========================================
   NAVIGATION
   ======================================== */

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(10, 10, 10, 0.95); /* Slightly transparent */
  backdrop-filter: blur(10px); /* Frosted glass effect */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000; /* Stay on top of everything */
  padding: var(--spacing-sm) 0;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  vertical-align: middle;
}

/* Logo styling */
.logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}


.logo img {
    vertical-align: bottom;
    padding-right: 5px;
}

.logo span {
  color: var(--color-accent-primary); /* Red accent on "daemon" */

}

/* Navigation links */
.nav-links {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
}

.nav-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-normal);
  position: relative;
}

/* Underline effect on hover */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent-primary);
  transition: width var(--transition-normal);
}

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

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

/* Mobile menu toggle (hamburger icon) */
.mobile-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile responsive navigation */
@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-bg-primary);
    flex-direction: column;
    padding: var(--spacing-md);
    gap: var(--spacing-sm);
    display: none; /* Hidden by default */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-links.active {
    display: flex; /* Show when hamburger is clicked */
  }
}

/* ========================================
   LAYOUT CONTAINERS
   ======================================== */

/* Main container for content */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Section spacing */
section {
  padding: var(--spacing-xl) 0;
  min-height: 100vh; /* Full viewport height for main sections */
  display: flex;
  align-items: center;
}

/* Alternate background colors for sections */
section:nth-child(even) {
  background-color: var(--color-bg-secondary);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  padding-top: calc(var(--spacing-xl) + 60px); /* Account for fixed nav */
  text-align: center;
  background: linear-gradient(180deg, 
    var(--color-bg-primary) 0%, 
    var(--color-bg-secondary) 100%
  );
}

.hero h1 {
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, 
    var(--color-text-primary) 0%, 
    var(--color-text-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Red accent for specific words */
.hero .accent {
  color: var(--color-accent-primary);
  -webkit-text-fill-color: var(--color-accent-primary);
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
}

/* ========================================
   Animation
   ======================================== */

.hero {
  position: relative;
  overflow: hidden;
}

/* Triangle wireframe pattern */
.hero::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  right: 0;
  bottom: 0;
  background-image:
    /* Upward pointing triangles */
    linear-gradient(120deg, transparent 49.5%, rgba(220, 38, 38, 0.15) 49.5%, rgba(220, 38, 38, 0.15) 50.5%, transparent 50.5%),
    linear-gradient(60deg, transparent 49.5%, rgba(220, 38, 38, 0.15) 49.5%, rgba(220, 38, 38, 0.15) 50.5%, transparent 50.5%),
    linear-gradient(180deg, transparent 49.5%, rgba(220, 38, 38, 0.15) 49.5%, rgba(220, 38, 38, 0.15) 50.5%, transparent 50.5%),
    /* Downward pointing triangles */
    linear-gradient(-120deg, transparent 49.5%, rgba(220, 38, 38, 0.1) 49.5%, rgba(220, 38, 38, 0.1) 50.5%, transparent 50.5%),
    linear-gradient(-60deg, transparent 49.5%, rgba(220, 38, 38, 0.1) 49.5%, rgba(220, 38, 38, 0.1) 50.5%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(220, 38, 38, 0.1) 49.5%, rgba(220, 38, 38, 0.1) 50.5%, transparent 50.5%);
  background-size: 100px 173px; /* Height is width * sqrt(3) for equilateral triangles */
  background-position: 0 0, 0 0, 0 0, 50px 86.5px, 50px 86.5px, 50px 86.5px;
  animation: wireframeSlide 25s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes wireframeSlide {
  0% {
    transform: translateY(0) translateX(0);
  }
  100% {
    transform: translateY(100px) translateX(50px);
  }
}

/* Pulsing glow on some triangles */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, var(--color-accent-glow) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, var(--color-accent-glow) 0%, transparent 35%),
    radial-gradient(circle at 50% 50%, var(--color-accent-glow) 0%, transparent 40%);
  animation: glowPulse 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}


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

/* Ensure content is above background */
.hero .container {
  position: relative;
  z-index: 1;
}

/* GPU acceleration */
.hero::before,
.hero::after {
  will-change: transform, opacity;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--color-accent-primary);
  color: var(--color-text-primary);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all var(--transition-normal);
  border: 2px solid var(--color-accent-primary);
  cursor: pointer;
}

.btn:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px); /* Subtle lift effect */
  box-shadow: 0 10px 30px var(--color-accent-glow); /* Glow effect */
}

/* Secondary button style (outlined) */
.btn-secondary {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--color-accent-primary);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all var(--transition-normal);
  border: 2px solid var(--color-accent-primary);
  cursor: pointer;
  background-color: transparent;
  border: 2px solid var(--color-text-secondary);
  color: var(--color-text-primary);
}

.btn-secondary:hover {
  background-color: rgba(5, 2, 2, 0.1);
  border-color: var(--color-text-primary);
  box-shadow: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--color-accent-glow); /* Glow effect */
}

/* Button group for multiple buttons */
.btn-group {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}



/* ========================================
   CARDS / SERVICE BOXES
   ======================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.card {
  background-color: var(--color-bg-card);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: var(--color-accent-primary);
  transform: translateY(-4px); /* Lift on hover */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.card h3 {
  color: var(--color-accent-primary);
  margin-bottom: var(--spacing-sm);
}

.card p {
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* Icon styling in cards (if you add icons later) */
.card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-accent-primary);
}

/* ========================================
   ABOUT / CONTENT SECTIONS
   ======================================== */

.content-section {
  max-width: 800px;
  margin: 0 auto;
}

.content-section h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

/* Two column layout for about/team sections */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

@media (max-width: 768px) {
  .two-column {
    grid-template-columns: 1fr; /* Stack on mobile */
  }
}

/* ========================================
   CONTACT SECTION / FORM
   ======================================== */

.contact-section {
  background-color: var(--color-bg-card);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-lg);
  max-width: 600px;
  margin: 0 auto;
}

form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

label {
  color: var(--color-text-primary);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

input,
textarea {
  width: 100%;
  padding: var(--spacing-sm);
  background-color: var(--color-bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

textarea {
  min-height: 150px;
  resize: vertical; /* Allow vertical resize only */
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  background-color: var(--color-bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-lg) 0;
  text-align: center;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  list-style: none;
}

.footer-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent-primary);
}

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

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Spacing utilities */
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }

/* Display utilities */
.hidden { display: none; }

/* Accent text color */
.text-accent { color: var(--color-accent-primary); }

/* ========================================
   ANIMATIONS (Optional - add if desired)
   ======================================== */

/* Fade in animation for sections */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply to elements you want to animate */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Pulse effect for important elements */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

/* Hide on mobile */
@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
}

/* Hide on desktop */
@media (min-width: 769px) {
  .hide-desktop {
    display: none;
  }
}

/* ========================================
   PRINT STYLES (Optional but professional)
   ======================================== */
@media print {
  nav,
  footer,
  .btn {
    display: none;
  }
  
  body {
    background-color: white;
    color: black;
  }
}