/* AJC Automations Website Styles */

:root {
  /* Brand Colors - Based on business card */
  --primary-blue: #1e40af;
  --secondary-blue: #3b82f6;
  --light-blue: #60a5fa;
  --accent-blue: #2563eb;
  --dark-bg: #0f172a;
  --card-bg: #1e293b;
  --text-white: #ffffff;
  --text-gray: #e2e8f0;
  --text-light: #cbd5e1;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-blue) 100%);
  color: var(--text-white);
  line-height: 1.6;
  min-height: 100vh;
}

/* Header & Navigation */
header {
  background: rgba(30, 41, 91, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text-white);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo-icon {
  width: 50px;
  height: 50px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--light-blue) 100%);
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
}

/* SVG-based circuit pattern */
.logo-icon::before {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cg fill='%23ffffff' stroke='%23ffffff' stroke-width='1'%3E%3C!-- Top row nodes --%3E%3Ccircle cx='6' cy='8' r='2' fill='%23ffffff'/%3E%3Ccircle cx='13' cy='8' r='2' fill='%23ffffff'/%3E%3Ccircle cx='20' cy='8' r='2' fill='%23ffffff'/%3E%3C!-- Connecting lines --%3E%3Cline x1='8' y1='8' x2='11' y2='8' stroke='%23ffffff' stroke-width='1.5'/%3E%3Cline x1='15' y1='8' x2='18' y2='8' stroke='%23ffffff' stroke-width='1.5'/%3E%3Cline x1='13' y1='10' x2='13' y2='16' stroke='%23ffffff' stroke-width='1.5'/%3E%3C!-- Bottom nodes --%3E%3Ccircle cx='8' cy='18' r='2' fill='%23ffffff'/%3E%3Ccircle cx='18' cy='18' r='2' fill='%23ffffff'/%3E%3C!-- Bottom connecting lines --%3E%3Cline x1='13' y1='18' x2='16' y2='18' stroke='%23ffffff' stroke-width='1.5'/%3E%3Cline x1='10' y1='18' x2='13' y2='18' stroke='%23ffffff' stroke-width='1.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

.nav-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--light-blue);
}

.nav-links a.active {
  color: var(--light-blue);
}

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

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Hero Section */
.hero {
  padding: var(--space-2xl) 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--text-white) 0%, var(--light-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 1.5rem;
  color: var(--text-gray);
  margin-bottom: var(--space-xl);
  font-weight: 300;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--light-blue) 100%);
  color: var(--text-white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--secondary-blue);
  color: var(--light-blue);
}

.btn-secondary:hover {
  background: var(--secondary-blue);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: var(--space-2xl) 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-xl);
  background: linear-gradient(135deg, var(--text-white) 0%, var(--light-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.card {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-blue);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--light-blue) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-white);
}

.card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Forms */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--text-gray);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-md);
  background: rgba(30, 41, 59, 0.8);
  color: var(--text-white);
  font-family: var(--font-primary);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
footer {
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  padding: var(--space-xl) 0;
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-section h4 {
  color: var(--text-white);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.footer-section p,
.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--light-blue);
}

.footer-bottom {
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  padding-top: var(--space-md);
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .tagline {
    font-size: 1.2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

/* Custom Checkbox Styling */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--text-gray);
    cursor: pointer;
    padding: 1rem 0.875rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(15, 23, 42, 0.3);
    min-height: 52px;
    line-height: 1.4;
    font-size: 0.95rem;
    font-weight: 500;
}

.checkbox-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
}

.checkbox-item input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 4px;
    margin-right: 0.875rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(30, 41, 59, 0.8);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-item input[type="checkbox"]:hover {
    border-color: var(--secondary-blue);
    background: rgba(59, 130, 246, 0.1);
}

.checkbox-item input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--secondary-blue), var(--light-blue));
    border-color: var(--secondary-blue);
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-item input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.checkbox-item.checked {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--secondary-blue);
    color: var(--text-white);
}

/* Text label within checkbox */
.checkbox-item span,
.checkbox-item:not(:has(span)) {
    display: flex;
    align-items: center;
    flex: 1;
    line-height: 1.4;
}

/* Ensure text is properly aligned */
.checkbox-item {
    text-align: left;
}

.checkbox-item:before {
    content: '';
    display: none;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }