/* Cyber Dagger Custom Theme CSS */
/* Brand Colors:
   Primary Blue: #2468A2
   Dark Navy: #2E506E, #194367, #0C1C3B, #010A26
   White: #FFFFFF
   Light Gray: #DFE3E6
   Black: #000000
*/

:root {
  --cd-primary: #2468A2;
  --cd-navy: #2E506E;
  --cd-navy-dark: #194367;
  --cd-navy-darker: #0C1C3B;
  --cd-navy-darkest: #010A26;
  --cd-white: #FFFFFF;
  --cd-light-gray: #DFE3E6;
  --cd-black: #000000;
  --cd-text: #333333;
  --cd-text-light: #666666;
  --cd-accent: #2468A2;
  --cd-gradient: linear-gradient(130deg, #2E506E 0%, #2E506E 30%, #0C1C3B 65%, #010A26 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--cd-text);
  background-color: var(--cd-white);
}

a {
  color: var(--cd-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--cd-navy);
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Open Sans', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--cd-navy-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(1, 10, 38, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.site-logo span {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cd-white);
  letter-spacing: 1px;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 5px;
}

.nav-menu li a {
  display: block;
  padding: 10px 18px;
  color: var(--cd-white);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background: rgba(36, 104, 162, 0.3);
  color: var(--cd-white);
}

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

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--cd-white);
  transition: all 0.3s ease;
}

/* Hero Section with Particles */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cd-gradient);
  overflow: hidden;
  padding-top: 80px;
}

#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cd-white);
  padding: 40px 20px;
  max-width: 900px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--cd-white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.8;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 35px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--cd-primary);
  color: var(--cd-white);
}

.btn-primary:hover {
  background: var(--cd-navy);
  color: var(--cd-white);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(36, 104, 162, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--cd-white);
  border: 2px solid var(--cd-white);
}

.btn-outline:hover {
  background: var(--cd-white);
  color: var(--cd-navy-dark);
}

/* Page Hero (smaller, for inner pages) */
.page-hero {
  position: relative;
  padding: 150px 20px 80px;
  background: var(--cd-gradient);
  text-align: center;
  color: var(--cd-white);
  overflow: hidden;
}

.page-hero #particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-hero .hero-content {
  position: relative;
  z-index: 2;
}

.page-hero .hero-title {
  font-size: 2.5rem;
}

/* Sections */
.section {
  padding: 80px 20px;
}

.section-dark {
  background: var(--cd-navy-darkest);
  color: var(--cd-white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--cd-white);
}

.section-gray {
  background: var(--cd-light-gray);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.2rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--cd-primary);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}

.service-card {
  background: var(--cd-white);
  padding: 35px 30px;
  border-radius: 8px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.service-card .icon {
  font-size: 2.5rem;
  color: var(--cd-primary);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--cd-text-light);
  margin-bottom: 1.5rem;
}

.service-card a {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* Why Us / Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-item {
  display: flex;
  gap: 20px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon {
  font-size: 2rem;
  color: var(--cd-primary);
  flex-shrink: 0;
}

.feature-content h4 {
  color: var(--cd-white);
  margin-bottom: 0.5rem;
}

.feature-content p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.95rem;
}

/* Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--cd-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
  display: none;
}

.blog-card-content {
  padding: 25px;
}

.blog-card-meta {
  font-size: 0.85rem;
  color: var(--cd-text-light);
  margin-bottom: 0.75rem;
}

.blog-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.blog-card h3 a {
  color: var(--cd-navy-dark);
}

.blog-card h3 a:hover {
  color: var(--cd-primary);
}

.blog-card p {
  color: var(--cd-text-light);
  font-size: 0.95rem;
}

/* Single Blog Post */
.blog-single {
  padding: 40px 20px 80px;
  max-width: 800px;
  margin: 0 auto;
}

.blog-single h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.blog-meta {
  color: var(--cd-text-light);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cd-light-gray);
}

.blog-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.blog-content h2 {
  margin-top: 2rem;
}

.blog-content ul, .blog-content ol {
  margin: 1rem 0 1rem 2rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-content blockquote {
  border-left: 4px solid var(--cd-primary);
  padding-left: 20px;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--cd-text-light);
}

.blog-content code {
  background: var(--cd-light-gray);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Fira Code', monospace;
  font-size: 0.9em;
}

.blog-content pre {
  background: var(--cd-navy-darkest);
  color: var(--cd-white);
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: var(--cd-white);
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--cd-primary);
}

.contact-content h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.contact-content p {
  margin: 0;
  color: var(--cd-text-light);
}

/* Footer */
.site-footer {
  background: var(--cd-navy-darkest);
  color: var(--cd-white);
  padding: 60px 20px 30px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--cd-white);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--cd-white);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--cd-white);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--cd-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Certifications */
.certifications {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.cert-badge {
  padding: 8px 15px;
  background: rgba(36, 104, 162, 0.2);
  border: 1px solid var(--cd-primary);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 80px 20px;
  background: var(--cd-gradient);
  color: var(--cd-white);
}

.cta-section h2 {
  color: var(--cd-white);
  margin-bottom: 1rem;
}

.cta-section p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(1, 10, 38, 0.98);
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .main-nav.active {
    transform: translateX(0);
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
  }

  .nav-menu li a {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .page-hero {
    padding: 120px 20px 60px;
  }

  .page-hero .hero-title {
    font-size: 1.8rem;
  }

  .section {
    padding: 50px 20px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-white { color: var(--cd-white); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
