/* Auto Shield Website - Blueprint Theme CSS */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* CSS Variables for Blueprint Theme */
:root {
  --primary-bg: #0a0e1a;
  --secondary-bg: #0f1419;
  --grid-color: #00ffff;
  --grid-secondary: #0099cc;
  --text-primary: #e0f6ff;
  --text-secondary: #66ccff;
  --accent-color: #00ff88;
  --hover-color: #0066ff;
  --neon-glow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
  --subtle-glow: 0 0 5px currentColor;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rajdhani', 'Courier New', monospace;
  background: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Blueprint Grid Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(0, 153, 204, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 153, 204, 0.05) 1px, transparent 1px);
  background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
  pointer-events: none;
  z-index: -1;
  animation: gridPulse 4s ease-in-out infinite alternate;
}

@keyframes gridPulse {
  0% { opacity: 0.3; }
  100% { opacity: 0.6; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', 'Courier New', monospace;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: var(--subtle-glow);
}

h1 {
  font-size: 3rem;
  color: var(--accent-color);
  text-shadow: var(--neon-glow);
}

h2 {
  font-size: 2.5rem;
  color: var(--grid-color);
}

h3 {
  font-size: 2rem;
  color: var(--text-secondary);
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 400;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: var(--hover-color);
  text-shadow: var(--subtle-glow);
}

/* Header and Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--grid-color);
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-family: 'Orbitron', monospace;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-color);
  text-shadow: var(--neon-glow);
  letter-spacing: 2px;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  font-family: 'Orbitron', monospace;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--grid-color), transparent);
  transition: left 0.5s ease;
}

.nav-link:hover {
  color: var(--grid-color);
  border-color: var(--grid-color);
  box-shadow: var(--subtle-glow);
}

.nav-link:hover::before {
  left: 100%;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--grid-color);
  margin: 3px 0;
  transition: 0.3s;
  box-shadow: var(--subtle-glow);
}

/* Main Content */
.main-content {
  margin-top: 100px;
  min-height: calc(100vh - 100px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--grid-color), transparent);
  animation: heroLine 3s ease-in-out infinite;
}

@keyframes heroLine {
  0%, 100% { opacity: 0.3; width: 20%; }
  50% { opacity: 1; width: 80%; }
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% { text-shadow: 0 0 20px var(--accent-color); }
  100% { text-shadow: 0 0 30px var(--accent-color), 0 0 40px var(--accent-color); }
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 300;
}

/* Article Styles */
.article {
  background: rgba(15, 20, 25, 0.8);
  border: 1px solid var(--grid-secondary);
  border-radius: 10px;
  padding: 3rem;
  margin: 3rem 0;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

.article::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(45deg, var(--grid-color), var(--accent-color), var(--grid-color));
  border-radius: 10px;
  z-index: -1;
  opacity: 0.3;
}

.article-title {
  color: var(--accent-color);
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2.5rem;
}

.article-content {
  text-align: justify;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Content Sections */
.content-section {
  background: rgba(15, 20, 25, 0.6);
  border-left: 3px solid var(--grid-color);
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent-color);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.content-section:hover::before {
  transform: scaleY(1);
}

.section-title {
  color: var(--grid-color);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

/* Grid Layout for Projects/Blog */
.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.grid-item {
  background: rgba(15, 20, 25, 0.8);
  border: 1px solid var(--grid-secondary);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.grid-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grid-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.grid-item:hover {
  border-color: var(--accent-color);
  box-shadow: 0 5px 20px rgba(0, 255, 136, 0.2);
  transform: translateY(-5px);
}

.grid-item:hover::before {
  transform: scaleX(1);
}

/* Contact Form */
.contact-form {
  background: rgba(15, 20, 25, 0.8);
  border: 1px solid var(--grid-secondary);
  border-radius: 10px;
  padding: 2rem;
  max-width: 600px;
  margin: 2rem auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(10, 14, 26, 0.8);
  border: 1px solid var(--grid-secondary);
  border-radius: 5px;
  color: var(--text-primary);
  font-family: 'Rajdhani', monospace;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--grid-color);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.form-button {
  background: linear-gradient(45deg, var(--grid-color), var(--accent-color));
  color: var(--primary-bg);
  border: none;
  padding: 1rem 2rem;
  border-radius: 5px;
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

/* Footer */
.footer {
  background: rgba(10, 14, 26, 0.95);
  border-top: 2px solid var(--grid-color);
  padding: 2rem 0;
  text-align: center;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 26, 0.98);
    flex-direction: column;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-top: 1px solid var(--grid-color);
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .nav-item {
    margin: 0.5rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .container {
    padding: 1rem;
  }
  
  .article {
    padding: 2rem 1.5rem;
  }
  
  .grid-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .article-title {
    font-size: 1.8rem;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
  
  .logo {
    font-size: 1.5rem;
  }
}

/* Loading Animation */
.loading-line {
  position: relative;
  overflow: hidden;
}

.loading-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--grid-color), transparent);
  animation: loading 2s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

